/* ============================================================================
 * GENERATED FILE — DO NOT EDIT.
 * Edit templates/dhs_child/css/src/*.css, then run: node tools/css/build.mjs
 * Sources, in cascade order:
 *   - 00-tokens.css
 *   - 10-base.css
 *   - 20-components.css
 *   - 21-clientshell.css
 *   - 22-domainpages.css
 *   - 90-legacy.css
 *   - 95-legacy-bridge.css
 *   - 96-storefront.css
 *   - 97-public.css
 *   - 98-cart.css
 *   - 99-checkout-payment.css
 *   - 99-onboarding.css
 *   - 99-portal-legacy.css
 * ========================================================================== */

/* ==== 00-tokens.css ======================================================= */
/* GENERATED by tools/tokens/build.mjs from design/tokens/core.tokens.json — DO NOT EDIT. */
/* Derived from Figma MusGoOFqKLxikjU3LrVUdS, 08SEP2026 drop (offline .fig ingestion, zero API calls, exported_at 2026-09-08T17:38:16Z, 149,754 kiwi nodes; palette unchanged since the 2026-08-29 pull v2392341692058104958). */
:root {

  /* Colour */
  --dhs-color-brand-300: #A8DAAA;
  --dhs-color-brand-500: #2CB34A;
  --dhs-color-brand-600: #35A839;
  --dhs-color-brand-700: #2D8F30;
  --dhs-color-brand-900: #1E6020;
  --dhs-color-brand-050: #EBF6EB;
  --dhs-color-brand-accent: #FF0D8A;
  --dhs-color-ink-300: #94979C;
  --dhs-color-ink-400: #717680;
  --dhs-color-ink-500: #535862;
  --dhs-color-ink-600: #515151;
  --dhs-color-ink-700: #414651;
  --dhs-color-ink-800: #333338;
  --dhs-color-ink-900: #181D27;
  --dhs-color-surface-100: #F7F7F7;
  --dhs-color-surface-white: #FFFFFF;
  --dhs-color-surface-050: #FAFAFA;
  --dhs-color-surface-dark: #1A1A2E;
  --dhs-color-surface-drawer: #053321;
  --dhs-color-line-100: #E9EAEB;
  --dhs-color-line-200: #E3E3E3;
  --dhs-color-line-300: #D5D7DA;
  --dhs-color-line-400: #CECFD2;
  --dhs-color-line-500: #A4A7AE;
  --dhs-color-status-danger: #EF373E;
  --dhs-color-status-warning: #FFC700;
  --dhs-color-status-warning-deep: #EB941F;
  --dhs-color-status-info: #00B7FB;
  --dhs-color-status-info-deep: #1890FF;
  --dhs-color-status-success: #17B26A;
  --dhs-color-status-success-text: #067647;
  --dhs-color-status-success-tint: #ECFDF3;
  --dhs-color-status-warning-600: #F79009;
  --dhs-color-status-warning-text: #B54708;
  --dhs-color-status-warning-tint: #FFFAEB;
  --dhs-color-status-danger-600: #D92D20;
  --dhs-color-status-danger-text: #B42318;
  --dhs-color-status-danger-tint: #FEF3F2;
  --dhs-color-status-info-700: #175CD3;
  --dhs-color-status-info-tint: #EFF8FF;
  --dhs-color-derived-brand-action-hover: #174B19;
  --dhs-color-derived-danger: #DE333A;
  --dhs-color-derived-pink: #E30C7B;
  --dhs-color-accent-cyan: #66D9FF;
  --dhs-color-accent-purple: #A22DF8;
  --dhs-color-accent-stat-red: #AD312A;
  --dhs-color-accent-purple-tint: #F4F3FF;

  /* Font */
  --dhs-font-family-ui: "Proxima Nova", "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dhs-font-family-display: "Proxima Nova", "Open Sans", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --dhs-font-weight-light: 300;
  --dhs-font-weight-regular: 400;
  --dhs-font-weight-medium: 500;
  --dhs-font-weight-semibold: 600;
  --dhs-font-weight-bold: 700;
  --dhs-font-weight-black: 900;

  /* Spacing (4px base) */
  --dhs-space-1: 4px;
  --dhs-space-2: 8px;
  --dhs-space-3: 12px;
  --dhs-space-4: 16px;
  --dhs-space-5: 20px;
  --dhs-space-6: 24px;
  --dhs-space-8: 32px;
  --dhs-space-10: 40px;
  --dhs-space-12: 48px;
  --dhs-space-16: 64px;
  --dhs-space-18: 72px;
  --dhs-space-0-5: 2px;
  --dhs-space-1-5: 6px;
  --dhs-space-2-5: 10px;

  /* Radii */
  --dhs-radius-xs: 4px;
  --dhs-radius-sm: 6px;
  --dhs-radius-md: 8px;
  --dhs-radius-lg: 10px;
  --dhs-radius-xl: 12px;
  --dhs-radius-2xl: 16px;
  --dhs-radius-pill: 9999px;

  /* Shadows */
  --dhs-shadow-xs: 0px 1px 2px 0px rgba(10,13,18,0.05);
  --dhs-shadow-sm: 0px 4px 12px 0px rgba(0,0,0,0.03);
  --dhs-shadow-md: 0px 6px 16px 0px rgba(0,0,0,0.08);
  --dhs-shadow-lg: 0px 9px 28px 8px rgba(0,0,0,0.05);
  --dhs-shadow-brand-glow: 0px 8px 24px 0px rgba(53,168,57,0.15);
  --dhs-shadow-focus-ring: 0px 0px 0px 2px rgba(34,197,94,0.20);

  /* Typography (composite roles) */
  --dhs-type-body-size: 14px;
  --dhs-type-body-line: 20px;
  --dhs-type-body-weight: 400;
  --dhs-type-body-strong-size: 14px;
  --dhs-type-body-strong-line: 20px;
  --dhs-type-body-strong-weight: 600;
  --dhs-type-body-lg-size: 16px;
  --dhs-type-body-lg-line: 24px;
  --dhs-type-body-lg-weight: 600;
  --dhs-type-body-sm-size: 13px;
  --dhs-type-body-sm-line: 16px;
  --dhs-type-body-sm-weight: 400;
  --dhs-type-caption-size: 12px;
  --dhs-type-caption-line: 18px;
  --dhs-type-caption-weight: 400;
  --dhs-type-nav-size: 14px;
  --dhs-type-nav-line: 17px;
  --dhs-type-nav-weight: 700;
  --dhs-type-eyebrow-size: 12px;
  --dhs-type-eyebrow-line: 18px;
  --dhs-type-eyebrow-weight: 700;
  --dhs-type-price-size: 16px;
  --dhs-type-price-line: 24px;
  --dhs-type-price-weight: 700;
  --dhs-type-h3-size: 18px;
  --dhs-type-h3-line: 28px;
  --dhs-type-h3-weight: 700;
  --dhs-type-h2-size: 24px;
  --dhs-type-h2-line: 32px;
  --dhs-type-h2-weight: 700;
  --dhs-type-display-size: 24px;
  --dhs-type-display-line: 32px;
  --dhs-type-display-weight: 400;
  --dhs-type-display-sub-size: 18px;
  --dhs-type-display-sub-line: 30px;
  --dhs-type-display-sub-weight: 400;
}

/* ==== 10-base.css ========================================================= */
/* Base layer: fonts, resets, focus, motion, and the spacing utilities generated from the scale.
   Depends on 00-tokens.css. */

/* ============================================================================================
 * BREAKPOINT LADDER — the only four values any @media in css/src/ may use.
 *
 *     575.98px   phone            (Bootstrap sm floor)
 *     767.98px   large phone / small tablet portrait
 *     991.98px   tablet landscape / small laptop
 *    1199.98px   laptop
 *
 * Enforced by tools/css/build.mjs, which fails the build on any other value. Adding a rung is a
 * deliberate decision: change the LADDER array there, and say why here.
 *
 * WHY THESE FOUR. They are Bootstrap 4.5.3's own max-width breakpoints, and that is not a
 * cosmetic choice. The parent theme IS Bootstrap 4.5.3, and the vendored order-form stylesheet
 * templates/orderforms/dhs_cart/css/all.min.css -- which loads AFTER custom.css and therefore
 * wins the cascade -- already keys off 575/767/991/1199. Renumbering onto invented round numbers
 * would leave our rules straddling the vendor's boundaries, so a band could exist where the
 * vendor rule applies and ours does not. Matching the vendor removes that class of bug entirely.
 * The vendored all.css / all.min.css are NOT ours and must not be renumbered.
 *
 * These are desktop-first max-width queries, matching the existing codebase. 390px is the
 * VERIFICATION TARGET (CLAUDE.md: no horizontal overflow at 390), not a rung.
 *
 * There are deliberately no breakpoint TOKENS: CSS custom properties are not permitted inside a
 * media-query condition, so `@media (max-width: var(--dhs-bp-md))` never matches in any browser.
 * A token here would be inert and would advertise a capability that does not exist. The lint is
 * the enforcement mechanism instead.
 *
 * History: before 2026-08-10 there were 15 ad-hoc values (480/540/560/600/640/720/760/767/820/
 * 860/900/991/1000/1100/1199) across 56 blocks in 7 files, with no shared scale. That is how
 * KD-58 happened -- the nav was hidden at 1100 and its replacement burger revealed at 900, so
 * 901-1100px had no navigation at all. Two numbers that had to agree, didn't, and nothing
 * checked. Mapping was to the NEAREST rung, preferring the narrower one when ambiguous, because
 * horizontal overflow and unreachable navigation are both automatically detected by
 * tools/design/shots.mjs while over-application of a mobile rule is not -- so the failure mode
 * that a test can catch is the safer one to risk.
 * ========================================================================================== */

/* Proxima Nova, licensed to Safaricom, self-hosted as woff2 from ../fonts/ (5 weights x
   normal/italic; source .otf archived for reference at design/assets/fonts/proximanova/, not
   shipped). Used for both --dhs-font-family-ui and --dhs-font-family-display — Futura was
   briefly wired as a second display typeface (it appears throughout the Figma files) but the
   designer confirmed 2026-08-05 it's no longer used, so there is deliberately no Futura
   @font-face here. */
@font-face { font-family: "Proxima Nova"; font-weight: 300; font-style: normal; font-display: swap; src: local("Proxima Nova Light"), url("../fonts/proximanova-light.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 300; font-style: italic; font-display: swap; src: local("Proxima Nova Light Italic"), url("../fonts/proximanova-lightitalic.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 400; font-style: normal; font-display: swap; src: local("Proxima Nova"), url("../fonts/proximanova-regular.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 400; font-style: italic; font-display: swap; src: local("Proxima Nova Italic"), url("../fonts/proximanova-regularitalic.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 600; font-style: normal; font-display: swap; src: local("Proxima Nova Semibold"), url("../fonts/proximanova-semibold.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 600; font-style: italic; font-display: swap; src: local("Proxima Nova Semibold Italic"), url("../fonts/proximanova-semibolditalic.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 700; font-style: normal; font-display: swap; src: local("Proxima Nova Bold"), url("../fonts/proximanova-bold.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 700; font-style: italic; font-display: swap; src: local("Proxima Nova Bold Italic"), url("../fonts/proximanova-bolditalic.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 900; font-style: normal; font-display: swap; src: local("Proxima Nova Black"), url("../fonts/proximanova-black.woff2") format("woff2"); }
@font-face { font-family: "Proxima Nova"; font-weight: 900; font-style: italic; font-display: swap; src: local("Proxima Nova Black Italic"), url("../fonts/proximanova-blackitalic.woff2") format("woff2"); }

body {
    font-family: var(--dhs-font-family-ui);
    font-size: var(--dhs-type-body-size);
    line-height: var(--dhs-type-body-line);
    color: var(--dhs-color-ink-900);
    background: var(--dhs-color-surface-100);
}

h1, h2, h3, h4 { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-bold); }
h1 { font-family: var(--dhs-font-family-display); font-size: var(--dhs-type-display-size); line-height: var(--dhs-type-display-line); font-weight: 400; }
h2 { font-size: var(--dhs-type-h2-size); line-height: var(--dhs-type-h2-line); }
h3 { font-size: var(--dhs-type-h3-size); line-height: var(--dhs-type-h3-line); }

/* Green text on white must use the AA-safe derivative, never the raw brand green (2.74:1). */
a { color: var(--dhs-color-brand-900); text-decoration: none; }
a:hover { color: var(--dhs-color-derived-brand-action-hover); text-decoration: underline; }

/* Keyboard accessibility: a visible focus ring on every interactive element, on both white and
   tinted surfaces. Never remove this without an equivalent replacement. */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
    outline: 2px solid var(--dhs-color-brand-900);
    outline-offset: 2px;
    border-radius: var(--dhs-radius-xs);
}

.dhs-skip-link {
    position: absolute; left: -9999px; top: 0; z-index: 999;
    background: var(--dhs-color-brand-900); color: #fff;
    padding: var(--dhs-space-2) var(--dhs-space-4); border-radius: 0 0 var(--dhs-radius-md) 0;
}
.dhs-skip-link:focus { left: 0; }

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

/* Spacing utilities generated FROM the scale, so they can never drift from it. Deliberately
   tiny — margin/padding/gap only. This is not a licence to build Tailwind. */
.dhs-u-mt-2 { margin-top: var(--dhs-space-2); }
.dhs-u-mt-4 { margin-top: var(--dhs-space-4); }
.dhs-u-mt-6 { margin-top: var(--dhs-space-6); }
.dhs-u-mb-2 { margin-bottom: var(--dhs-space-2); }
.dhs-u-mb-4 { margin-bottom: var(--dhs-space-4); }
.dhs-u-mb-6 { margin-bottom: var(--dhs-space-6); }
.dhs-ta-r { text-align: right; }
.dhs-ta-c { text-align: center; }
.dhs-muted { color: var(--dhs-color-ink-400); }

/* Screen-reader-only label (used by the storefront search form). */
.dhs-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ==== 20-components.css =================================================== */
/* Component layer — the new design system, derived from Figma MusGoOFqKLxikjU3LrVUdS.
   .dhs-* selectors ONLY. Bootstrap/WHMCS/DataTables selectors belong in 30-native-overrides.css.

   Colour rule enforced throughout: raw design colours for large/decorative fills, AA-safe
   derived colours wherever text sits on colour. brand.500 (#2CB34A) in particular is 2.74:1
   against white and can NEVER carry white text at any size — dark ink on it is the only
   accessible pairing.

   Buttons and green text use brand.900 (#1E6020), the design's own darkest green, at 7.64:1
   both on and under white. That decision (2026-07-29) removed three invented colours. */

/* ---------- Buttons ---------------------------------------------------------------------- */
.dhs-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--dhs-space-2);
    min-height: 44px; padding: 0 var(--dhs-space-4);   /* 44px = mobile touch-target minimum */
    font-family: var(--dhs-font-family-ui);
    font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold);
    line-height: 1; border: 1px solid transparent; border-radius: var(--dhs-radius-pill);
    cursor: pointer; text-decoration: none; transition: background-color .15s ease, border-color .15s ease;
}
.dhs-btn:hover { text-decoration: none; }
.dhs-btn-fill { background: var(--dhs-color-brand-900); color: #fff; }
.dhs-btn-fill:hover { background: var(--dhs-color-derived-brand-action-hover); color: #fff; }
.dhs-btn-outline { background: #fff; color: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); }
.dhs-btn-outline:hover { background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); }
.dhs-btn-ghost { background: transparent; color: var(--dhs-color-ink-700); }
.dhs-btn-ghost:hover { background: var(--dhs-color-surface-100); }
.dhs-btn-danger { background: var(--dhs-color-derived-danger); color: #fff; }
/* Storage-upgrade CTA (clientareaproducts.tpl/clientareaproductdetails.tpl), driven by the
   warn/crit tier from dhs_disk_tier() (includes/hooks/dhs_cpanel_lib.php): amber<->green at
   75-89% usage, red<->amber at 90%+ — always paired with .dhs-btn-fill, whose brand-900 green is
   the warn pulse's own "off" endpoint. prefers-reduced-motion is handled globally (10-base.css),
   no per-rule override needed. Was referenced by both templates with no rule at all until now —
   see docs/UAT_Known_Defects.md KD-58's classcheck note. */
@keyframes dhs-btn-pulse-warn { 0%, 100% { background-color: var(--dhs-color-brand-900); } 50% { background-color: var(--dhs-warning); } }
@keyframes dhs-btn-pulse-crit { 0%, 100% { background-color: var(--dhs-color-derived-danger); } 50% { background-color: var(--dhs-warning); } }
.dhs-btn-pulse-warn { animation: dhs-btn-pulse-warn 2s ease-in-out infinite; }
.dhs-btn-pulse-crit { animation: dhs-btn-pulse-crit 1.2s ease-in-out infinite; }
.dhs-btn-sm { min-height: 32px; padding: 0 var(--dhs-space-3); font-size: var(--dhs-type-body-sm-size); }
/* Payment CTAs hard-disable while a request is in flight, to prevent double payment. */
.dhs-btn[disabled], .dhs-btn[aria-disabled="true"] { opacity: .5; pointer-events: none; cursor: not-allowed; }

/* ---------- Status chips ----------------------------------------------------------------- */
/* Always label + tone, never colour alone. */
.dhs-chip {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 2px var(--dhs-space-2-5); border-radius: var(--dhs-radius-pill);
    font-size: var(--dhs-type-caption-size); font-weight: var(--dhs-font-weight-semibold);
    line-height: var(--dhs-type-caption-line); white-space: nowrap;
}
.dhs-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
/* 2026-08-15: migrated to the status ramp the client-area redesign adopted
   (core.tokens.json color.status.* — every text/tint pair AA-gated in tokens/build.mjs). */
.dhs-chip--success { background: var(--dhs-color-status-success-tint); color: var(--dhs-color-status-success-text); }
.dhs-chip--danger  { background: var(--dhs-color-status-danger-tint); color: var(--dhs-color-status-danger-text); }
.dhs-chip--warning { background: var(--dhs-color-status-warning-tint); color: var(--dhs-color-status-warning-text); }
.dhs-chip--info    { background: #E6F6FE; color: #0B5C77; }
.dhs-chip--neutral { background: var(--dhs-color-surface-100); color: var(--dhs-color-ink-600); }

/* ---------- Cards & panels --------------------------------------------------------------- */
/* Canonical .dhs-panel — the ONLY definition of this class in the theme (2026-08-01
   consolidation: this class had 3 competing declarations across 90-legacy.css/97-public.css/
   here, each touching a different subset of its properties depending on load order — see
   docs/Client_Area_Design_System.md §4). Shadow is deliberately shadow-md, not the old
   shadow-sm (3% opacity, functionally invisible) — the client-area design system calls for
   visible elevation on primary content panels (§5). */
.dhs-panel {
    background: #fff; border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6);
    box-shadow: var(--dhs-shadow-md); margin-bottom: var(--dhs-space-6);
}
.dhs-panel + .dhs-panel { margin-top: var(--dhs-space-6); }
.dhs-panel__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap; margin-bottom: var(--dhs-space-4); }
.dhs-panel > h2 { font-size: var(--dhs-type-h3-size); line-height: var(--dhs-type-h3-line); font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-2); }
.dhs-panel > h2 + p { font-size: var(--dhs-type-body-size); line-height: var(--dhs-type-body-line); color: var(--dhs-color-ink-500); margin: 0 0 var(--dhs-space-5); }
.dhs-sec { font-size: var(--dhs-type-h3-size); line-height: var(--dhs-type-h3-line); font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-900); margin: 0; }

/* ---------- Stat cards (P16) -------------------------------------------------------------- */
/* Canonical .dhs-stat / .dhs-statgrid — the ONLY definition (2026-08-01 consolidation: this had
   two competing declarations, one with the accent-bar+icon-chip below but a weak hover, one with
   proper hover-lift motion but no accent/icon — see docs/Client_Area_Design_System.md §4. Merged
   here rather than picking one. */
.dhs-statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dhs-space-6); margin-bottom: var(--dhs-space-6); }
/* 3-up variant + plain (no accent bar, no icon disc) cards — the My Receipts summary row
   (Figma 4870:40898, 2026-08-19 drop): Total Paid / Last Payment / Payment Methods. */
.dhs-statgrid--3 { grid-template-columns: repeat(3, 1fr); }
.dhs-stat--plain::after { display: none; }
.dhs-stat__sub { display: block; margin-top: var(--dhs-space-2); color: var(--dhs-color-ink-500); font-size: var(--dhs-type-caption-size, 13px); }
/* Toggle-switch restyle of a NATIVE checkbox (Figma 4901:20120's notification preferences) —
   same input, same posted form contract; appearance:none is what unlocks styling it. Shares the
   name with 97-public.css's segmented <a> toggle by design (different widget, same class) — both
   ship together; see the LAYERED entry in tools/css/classcheck.mjs.
   QUALIFIED TO `input.` 2026-09-23: sharing the bare class was not actually harmless. 97-public's
   `.dhs-switch` sets background:#fff and display:inline-flex, and being the later file in build
   order it won on equal specificity — so the checkbox variant rendered as a white track holding a
   white knob, i.e. an empty bordered box (the same symptom UAT reported for the SSO toggle). The
   element qualifier makes the two widgets unambiguous without renaming either. */
input.dhs-switch { appearance: none; -webkit-appearance: none; flex: 0 0 auto; width: 40px; height: 22px; border-radius: 11px; background: var(--dhs-color-line-400); position: relative; cursor: pointer; transition: background .15s ease; margin: 0; }
input.dhs-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s ease; }
input.dhs-switch:checked { background: var(--dhs-green); }
input.dhs-switch:checked::after { left: 20px; }

/* ---------------------------------------------------------------------------
   bootstrap-switch skin (UAT 2026-09-23: "ON/OFF misaligned", "Yes/No misaligned")

   THREE native WHMCS controls are this widget, all carrying class
   `toggle-switch-success`, all initialised by the PARENT theme's scripts.min.js
   (`jQuery('.toggle-switch-success').bootstrapSwitch({onColor:'success'})`):
     - Single Sign-On          clientareasecurity.tpl  (#inputAllowSso)
     - Join our mailing list   clientregister.tpl      (marketingoptin)
     - Store my card           orderforms/dhs_cart/checkout.tpl (#inputNoStore)

   WHY THIS BLOCK EXISTS. The vendor lays the control out from widths its JS
   MEASURES at init and writes as inline styles — wrapper `width:76px`,
   container `width:110px; margin-left:-36px` — then hides the inactive label by
   sliding the container under `overflow:hidden` at a fixed `min-width`. That is
   only stable while the rendered text matches what was measured. When it does
   not — a webfont resolving after init, OS display scaling, a minimum-font-size
   setting, a different fallback face — the two handles no longer fit the baked
   container width and WRAP, which is the stacked ON-over-OFF box UAT
   photographed; in the off state it reads as an empty bordered box. It is
   environment-dependent, which is why it survives a warm local cache in both
   Chrome and Edge and still breaks on a tester's machine.

   WHY `!important`. These declarations exist specifically to beat the JS's own
   inline `width`/`margin-left`, which nothing else can outrank, and the vendor's
   `.bootstrap-switch.bootstrap-switch-{mini,small,large}` min-widths. Layout is
   handed to flex so the control sizes to whatever the text actually renders as,
   and the inactive side is hidden by STATE CLASS rather than by clipping — after
   which text metrics cannot affect whether it fits.

   The widget itself is deliberately KEPT: the parent's JS binds the SSO save to
   its vendor event (`#inputAllowSso .on('switchChange.bootstrapSwitch')` →
   serialises #frmSingleSignOn), so replacing it with a CSS-only switch would
   silently break the save. This is presentation only — no class, id or form
   contract changes. The input keeps the vendor's own positioning rule; do not
   restyle it, the JS handles clicks on the wrapper.
   --------------------------------------------------------------------------- */
.bootstrap-switch { display: inline-flex !important; width: auto !important; min-width: 0 !important; height: auto !important; overflow: hidden; line-height: normal; vertical-align: middle; border: 1px solid var(--dhs-color-line-300, #d5d7da); border-radius: var(--dhs-radius-pill, 999px); background: var(--dhs-color-surface-100, #f3f4f6); cursor: pointer; }
.bootstrap-switch .bootstrap-switch-container { display: flex !important; width: auto !important; margin-left: 0 !important; align-items: stretch; transform: none !important; }
.bootstrap-switch .bootstrap-switch-handle-on,
.bootstrap-switch .bootstrap-switch-handle-off { display: inline-flex !important; align-items: center; justify-content: center; float: none !important; width: auto !important; min-width: 44px; padding: 5px 12px; font-size: 13px; font-weight: var(--dhs-font-weight-bold, 700); line-height: 18px; white-space: nowrap; border-radius: 0; text-indent: 0; }
/* The knob: the vendor's middle "label" cell. Sized, never text-measured. */
.bootstrap-switch .bootstrap-switch-label { display: inline-flex !important; align-items: center; justify-content: center; float: none !important; width: auto !important; min-width: 20px; padding: 0; background: #fff; text-indent: 0; }
/* Only the active side is shown — no reliance on the slide-under-overflow trick. */
.bootstrap-switch.bootstrap-switch-off .bootstrap-switch-handle-on { display: none !important; }
.bootstrap-switch.bootstrap-switch-on .bootstrap-switch-handle-off { display: none !important; }
/* Brand colours (the vendor's #5cb85c "success" is not our palette). */
.bootstrap-switch .bootstrap-switch-handle-on { background: var(--dhs-green) !important; color: #fff !important; }
.bootstrap-switch .bootstrap-switch-handle-off { background: transparent !important; color: var(--dhs-color-ink-500, #535862) !important; }
.bootstrap-switch.bootstrap-switch-on { border-color: var(--dhs-green); }
.bootstrap-switch.bootstrap-switch-focused { outline: 2px solid var(--dhs-green-600); outline-offset: 2px; box-shadow: none; }
.bootstrap-switch.bootstrap-switch-disabled, .bootstrap-switch.bootstrap-switch-readonly, .bootstrap-switch.bootstrap-switch-indeterminate { opacity: .6; cursor: not-allowed; }
.dhs-switch:focus-visible { outline: 2px solid var(--dhs-green-600); outline-offset: 2px; }
.dhs-stat {
    position: relative; display: block; background: #fff; text-decoration: none;
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-5) var(--dhs-space-6) var(--dhs-space-6);
    box-shadow: var(--dhs-shadow-xs); overflow: hidden;
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dhs-stat:hover {
    text-decoration: none; box-shadow: var(--dhs-shadow-lg);
    border-color: var(--dhs-color-brand-500); transform: translateY(-3px);
}
.dhs-stat::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--dhs-stat-accent, var(--dhs-color-brand-500)); }
.dhs-stat--success, .dhs-stat.success { --dhs-stat-accent: var(--dhs-color-brand-500); }
.dhs-stat--danger,  .dhs-stat.danger  { --dhs-stat-accent: var(--dhs-color-status-danger); }
.dhs-stat--warning, .dhs-stat.warning { --dhs-stat-accent: var(--dhs-color-status-warning); }
.dhs-stat--info,    .dhs-stat.info    { --dhs-stat-accent: var(--dhs-color-status-info); }
.dhs-stat__label { display: block; color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-size); }
.dhs-stat__value { display: block; margin-top: var(--dhs-space-2); font-size: 34px; line-height: 1.1; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-stat__ico { position: absolute; top: var(--dhs-space-5); right: var(--dhs-space-6); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--dhs-stat-accent); color: #fff; }
.dhs-stat__ico svg { width: 20px; height: 20px; }

/* ---------- Tables ------------------------------------------------------------------------ */
/* .dhs-table/.dhs-table-wrap's full definition (sticky header, sort-icon affordance — needed
   for real DataTables pages) lives in 90-legacy.css's "WAVE 1" section, not duplicated here
   (2026-08-01 consolidation — see docs/Client_Area_Design_System.md §4). Its --dhs-radius-card
   resolves to the same 12px as --dhs-radius-xl via 95-legacy-bridge.css, so there is no visual
   discrepancy despite the two files. */

.dhs-svc-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--dhs-radius-md); background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); vertical-align: middle; margin-right: var(--dhs-space-3); }
.dhs-svc-ico svg { width: 18px; height: 18px; }
.dhs-svc-name { font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
.dhs-svc-grp { display: block; margin-left: 44px; font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-400); }

/* ---------- Category tabs ----------------------------------------------------------------- */
/* Must survive 1 group or 12: wraps rather than overflowing the page. */
.dhs-pilltoggle { display: flex; flex-wrap: wrap; gap: var(--dhs-space-2); }
.dhs-pilltoggle button {
    min-height: 36px; padding: 0 var(--dhs-space-4); border-radius: var(--dhs-radius-pill);
    border: 1px solid var(--dhs-color-line-300); background: #fff; cursor: pointer;
    font-size: var(--dhs-type-body-sm-size); font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-700);
}
.dhs-pilltoggle button:hover { border-color: var(--dhs-color-brand-900); color: var(--dhs-color-brand-900); }
.dhs-pilltoggle button.is-active { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); color: #fff; }
/* .dhs-pill exists so pill buttons are never class-less: 96-manage's `.dhs-panel
   button:not([class])` fallback would otherwise fill them green (observed live on the
   invoices page, 2026-08-15). Inherits its look from `.dhs-pilltoggle button` above. */
.dhs-pilltoggle .dhs-pill { font: inherit; }
.dhs-pilltoggle__n { opacity: .75; margin-left: 4px; }

/* ---------- Section/welcome band (Client Area Design System §5) -------------------------- */
/* A light brand-tint header for the top of landing-type pages (dashboard greeting, list-page
   headers) — deliberately NOT the storefront's dark full-bleed gradient (see the design
   system's "authenticated richness != marketing richness" principle, §2). One short band, not
   a hero: keep it to a single row of heading + optional actions + optional subtext. */
.dhs-welcomeband {
    background: linear-gradient(135deg, var(--dhs-color-brand-050) 0%, #fff 100%);
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-5) var(--dhs-space-6); margin-bottom: var(--dhs-space-6);
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap;
}
.dhs-welcomeband h1, .dhs-welcomeband h2 {
    margin: 0; font-size: var(--dhs-type-h2-size); line-height: var(--dhs-type-h2-line);
    font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900);
}
.dhs-welcomeband p { margin: var(--dhs-space-1) 0 0; color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-size); }
.dhs-welcomeband .actions { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; }
@media (max-width: 575.98px) { .dhs-welcomeband { padding: var(--dhs-space-4); } }

/* ---------- Empty state -------------------------------------------------------------------- */
.dhs-empty { text-align: center; padding: var(--dhs-space-12) var(--dhs-space-6); }
.dhs-empty__ico { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dhs-color-surface-100); color: var(--dhs-color-ink-400); margin-bottom: var(--dhs-space-4); }
.dhs-empty__ico svg { width: 26px; height: 26px; }
.dhs-empty__msg { color: var(--dhs-color-ink-500); margin-bottom: var(--dhs-space-4); }

/* ---------- List group (Order New Services) ------------------------------------------------ */
.dhs-lg { list-style: none; margin: 0; padding: 0; }
.dhs-lg-row { display: flex; align-items: center; gap: var(--dhs-space-3); padding: var(--dhs-space-3) 0; border-bottom: 1px solid var(--dhs-color-line-200); }
.dhs-lg-row:last-child { border-bottom: 0; }
.dhs-orderlist__name { flex: 1; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-800); }

/* ---------- Dashboard two-column ----------------------------------------------------------- */
.dhs-dash-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--dhs-space-6); }

/* ---------- Embedded third-party module output --------------------------------------------- */
/* A provisioning module renders its own HTML via _ClientArea() and will not match this design
   system. Contain it so foreign markup degrades acceptably instead of breaking the layout. */
.dhs-module-embed { border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6); background: #fff; overflow-x: auto; }
.dhs-module-embed img { max-width: 100%; height: auto; }
.dhs-module-embed table { width: 100%; }

/* ---------- Responsive --------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    .dhs-statgrid { grid-template-columns: repeat(2, 1fr); }
    .dhs-dash-cols { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    /* 2x2, not a single column: every 02SEP mobile frame draws phone stat tiles as a 2-up
       grid (Stats-Grid-Mobile / mobile-support-tickets / mobile-my-invoices — audit M3.1). */
    .dhs-statgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dhs-space-3); }
    .dhs-panel { padding: var(--dhs-space-4); }

    /* Wide tables stack into labelled cards — they must never scroll the page sideways.
       Interim treatment pending the designer's mobile table spec (gap analysis §5.2).

       The label/right-align half is scoped to td[data-label], NOT every td. Several of our
       "tables" are single-column, header-less lists rendered as a table — the Knowledgebase
       article list, both Downloads lists — where there is no column name to show and nothing to
       align against. Applied unconditionally, those rows right-aligned their own link text and
       emitted an empty ::before. A cell only gets the label treatment if it actually has a
       label; everything else just stacks. */
    .dhs-table, .dhs-table thead, .dhs-table tbody, .dhs-table th, .dhs-table td, .dhs-table tr { display: block; }
    .dhs-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .dhs-table tbody tr { border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-md); margin-bottom: var(--dhs-space-3); padding: var(--dhs-space-2); }
    .dhs-table td { border: 0; padding: var(--dhs-space-2); }
    .dhs-table td[data-label] { display: flex; justify-content: space-between; gap: var(--dhs-space-4); text-align: right; }
    .dhs-table td[data-label]::before { content: attr(data-label); font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-500); text-align: left; }
    .dhs-svc-grp { margin-left: 0; }
}

/* ---------- Promo accent (brand.accent #FF0D8A) --------------------------------------------- */
/* Promoted to a CORE brand accent on 2026-07-29. Deliberately scarce - 41 uses across the whole
   design file vs brand green's 2,858 - so it marks genuine promo moments only, never general UI.
   White on the raw value is 3.70:1 and FAILS: pair it with dark ink, or use derived.pink when
   white text is unavoidable. */
.dhs-badge--offer {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 3px var(--dhs-space-3); border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-brand-accent); color: var(--dhs-color-ink-900);
    font-size: var(--dhs-type-caption-size); font-weight: var(--dhs-font-weight-bold);
    line-height: var(--dhs-type-caption-line); white-space: nowrap;
}
/* White-text variant — uses the AA-safe derivative, never the raw accent. */
.dhs-badge--offer-solid { background: var(--dhs-color-derived-pink); color: #fff; }

.dhs-chip--promo { background: #FFE6F2; color: #A8005A; }

/* Deliberately NO special styling for .dhs-annbar b (the coupon code inside the offer bar).
   Figma's actual announcement-bar node is a single plain-white text run, no separate badge —
   an earlier pass invented an accent-pill treatment here to make the code pop, which is what
   caused the contrast bug (yellow-on-pink, 2.36:1, then dark-ink-on-pink, still only 4.56:1 -
   the ceiling for any text colour against this pink). Matching the real design instead: <b>
   inherits .dhs-annbar's white and picks up bold from the browser's default <b> styling, at
   7.64:1 against the bar's dark green - the same safe ratio as the rest of the sentence. */

/* ==== 21-clientshell.css ================================================== */
/* ==========================================================================
   21 · CLIENT-AREA LEFT-NAV SHELL — 2026-08 redesign (Figma 4566:41188 sidebar,
   4580:47348 dashboard chrome, 4597:12005 mobile, 4613:52053 More sheet).
   Renders only under body.dhs-leftnav (includes/hooks/dhs_client_shell.php via
   header.tpl); the previous top-nav chrome (90-legacy "CLIENT AREA v2") is
   untouched and returns the moment clientAreaNavStyle = top.
   Desktop: 272px sticky sidebar + slim topbar, content on surface-050.
   <=991.98px: sidebar becomes the "More" slide-over sheet; fixed bottom tab bar.
   ========================================================================== */

body.dhs-leftnav {
    background: var(--dhs-color-surface-050);
}

.dhs-shell {
    display: grid;
    grid-template-columns: 272px minmax(0, 1fr);
    min-height: 100vh;
}
.dhs-shell-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: var(--dhs-color-surface-050);
}
body.dhs-leftnav #main-body { flex: 1 0 auto; }

/* --- Sidebar ------------------------------------------------------------- */
.dhs-sb {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-4);
    background: var(--dhs-color-surface-white);
    border-right: 1px solid var(--dhs-color-line-100);
    padding: var(--dhs-space-6) var(--dhs-space-4);
}
.dhs-sb__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--dhs-space-1);
}
/* Logo at the DESIGN's size, not a token guess: the 4566:41188 render draws the lockup ~148px
   wide in the 272px sidebar (≈55% of its width, ≈51px tall at the PNG's 155:54 ratio). It was
   shipping at height:32px (≈92px wide) — "almost invisible", user 2026-08-18. The asset itself
   already matches the design (byte-identical to design/payments/images/saf-logo.png). */
/* No percentage max-width here: the brand <a> is a shrink-to-fit flex item, so a % on the img
   resolves circularly against the img's own contribution (60% of 148 = the 89px it shipped at
   for one commit). The fixed width is safe — the sidebar is a fixed 272px column. */
.dhs-sb__brand img { width: 148px; height: auto; display: block; }
.dhs-sb__close {
    display: none;
    background: none;
    border: 0;
    color: var(--dhs-color-ink-500);
    padding: var(--dhs-space-2);
    cursor: pointer;
}
.dhs-sb__close svg { width: 20px; height: 20px; }

.dhs-sb__search {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-2);
    border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-2) var(--dhs-space-3);
    color: var(--dhs-color-ink-400);
    cursor: text;
}
.dhs-sb__search svg { width: 18px; height: 18px; flex: none; }
.dhs-sb__search input {
    border: 0;
    outline: none;
    flex: 1 1 auto;
    min-width: 0;
    font-size: var(--dhs-type-body-size);
    line-height: var(--dhs-type-body-line);
    color: var(--dhs-color-ink-900);
    background: transparent;
}
.dhs-sb__search kbd {
    flex: none;
    font-size: var(--dhs-type-caption-size);
    color: var(--dhs-color-ink-400);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xs);
    padding: 1px var(--dhs-space-1);
    background: var(--dhs-color-surface-050);
}

.dhs-sb__nav {
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-0-5);
    flex: 1 1 auto;
}
.dhs-sb__sec { display: flex; flex-direction: column; }
.dhs-sb__item,
.dhs-sb__secbtn {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-3);
    width: 100%;
    padding: var(--dhs-space-2) var(--dhs-space-3);
    border: 0;
    background: none;
    border-radius: var(--dhs-radius-sm);
    color: var(--dhs-color-ink-700);
    font-family: inherit;
    font-size: var(--dhs-type-body-lg-size);
    font-weight: var(--dhs-type-body-lg-weight);
    line-height: var(--dhs-type-body-lg-line);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}
.dhs-sb__item:hover,
.dhs-sb__secbtn:hover {
    background: var(--dhs-color-surface-050);
    color: var(--dhs-color-ink-900);
    text-decoration: none;
}
.dhs-sb__item.is-active,
.dhs-sb__secbtn.is-active-sec {
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-700);
}
.dhs-sb__ic { flex: none; display: inline-flex; }
.dhs-sb__ic svg { width: 20px; height: 20px; }
.dhs-sb__lbl { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dhs-sb__badge {
    flex: none;
    font-size: var(--dhs-type-caption-size);
    font-weight: var(--dhs-type-body-strong-weight);
    color: var(--dhs-color-brand-700);
    background: var(--dhs-color-brand-050);
    border-radius: var(--dhs-radius-pill);
    padding: 1px var(--dhs-space-2);
}
.dhs-sb__chev { width: 16px; height: 16px; flex: none; transition: transform 0.15s ease; }
.dhs-sb__secbtn[aria-expanded="true"] .dhs-sb__chev { transform: rotate(180deg); }

.dhs-sb__sub {
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-0-5);
    padding: var(--dhs-space-1) 0 var(--dhs-space-1) var(--dhs-space-8);
}
/* Author `display` beats the UA's [hidden]{display:none} — without this guard the accordion's
   hidden attribute was inert and every section rendered permanently expanded (same pattern as
   .dhs-navdrawer[hidden] in 97-public.css). */
.dhs-sb__sub[hidden] { display: none; }
.dhs-sb__sub a {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-2);
    padding: var(--dhs-space-1-5) var(--dhs-space-3);
    border-radius: var(--dhs-radius-sm);
    color: var(--dhs-color-ink-500);
    font-size: var(--dhs-type-body-size);
    line-height: var(--dhs-type-body-line);
    text-decoration: none;
}
.dhs-sb__sub a:hover { background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-900); text-decoration: none; }
.dhs-sb__sub a.is-active { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); font-weight: var(--dhs-type-body-strong-weight); }
.dhs-sb__sub hr { border: 0; border-top: 1px solid var(--dhs-color-line-100); margin: var(--dhs-space-1) 0; }

.dhs-sb__foot {
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-0-5);
    border-top: 1px solid var(--dhs-color-line-100);
    padding-top: var(--dhs-space-4);
}
.dhs-sb__user { position: relative; margin-top: var(--dhs-space-2); }
.dhs-sb__usercard {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-3);
    width: 100%;
    background: none;
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-3);
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    color: var(--dhs-color-ink-900);
}
.dhs-sb__usercard:hover { background: var(--dhs-color-surface-050); }
.dhs-sb__avatar,
.dhs-tb__avatar {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-700);
    font-weight: var(--dhs-type-body-strong-weight);
    font-size: var(--dhs-type-body-sm-size);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-transform: uppercase;
}
.dhs-sb__userid,
.dhs-tb__userid { min-width: 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.dhs-sb__userid b,
.dhs-tb__userid b {
    font-size: var(--dhs-type-body-strong-size);
    font-weight: var(--dhs-type-body-strong-weight);
    line-height: var(--dhs-type-body-strong-line);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dhs-sb__userid small,
.dhs-tb__userid small {
    font-size: var(--dhs-type-caption-size);
    line-height: var(--dhs-type-caption-line);
    color: var(--dhs-color-ink-400);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dhs-sb__usermenu {
    position: absolute;
    bottom: calc(100% + var(--dhs-space-2));
    left: 0;
    right: 0;
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-md);
    box-shadow: var(--dhs-shadow-md);
    padding: var(--dhs-space-2);
    display: flex;
    flex-direction: column;
    z-index: 40;
}
.dhs-sb__usermenu a {
    padding: var(--dhs-space-2) var(--dhs-space-3);
    border-radius: var(--dhs-radius-sm);
    color: var(--dhs-color-ink-700);
    font-size: var(--dhs-type-body-size);
    text-decoration: none;
}
.dhs-sb__usermenu a:hover { background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-900); text-decoration: none; }
.dhs-sb__usermenu hr { border: 0; border-top: 1px solid var(--dhs-color-line-100); margin: var(--dhs-space-1) 0; }
/* Same [hidden] guard as .dhs-sb__sub above — the popover ships hidden and JS toggles it. */
.dhs-sb__usermenu[hidden] { display: none; }

.dhs-sb .is-filtered { display: none; }

/* --- Topbar --------------------------------------------------------------- */
.dhs-tb {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dhs-space-4);
    background: var(--dhs-color-surface-white);
    border-bottom: 1px solid var(--dhs-color-line-100);
    padding: var(--dhs-space-3) var(--dhs-space-6);
    position: sticky;
    top: 0;
    z-index: 30;
}
.dhs-tb__crumb { min-width: 0; overflow: hidden; }
.dhs-tb__crumb .breadcrumb {
    margin: 0;
    padding: 0;
    background: none;
    font-size: var(--dhs-type-body-size);
}
/* 29AUG frames: the current crumb sits in a brand-tint pill ("Home > [Dashboard]"). */
.dhs-tb__crumb .breadcrumb-item.active {
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-900);
    border-radius: var(--dhs-radius-sm);
    padding: 2px 10px;
    font-weight: var(--dhs-font-weight-semibold);
}
.dhs-tb__actions { display: flex; align-items: center; gap: var(--dhs-space-2); flex: none; }
.dhs-tb__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-md);
    color: var(--dhs-color-ink-500);
}
.dhs-tb__icon:hover { background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-900); }
.dhs-tb__icon svg { width: 20px; height: 20px; }
.dhs-tb__count {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-brand-700);
    color: var(--dhs-color-surface-white);
    font-size: 11px;
    line-height: 18px;
    text-align: center;
    padding: 0 4px;
}
.dhs-tb__user {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-2);
    max-width: 240px;
    padding: var(--dhs-space-1) var(--dhs-space-2) var(--dhs-space-1) var(--dhs-space-1);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    color: var(--dhs-color-ink-900);
    text-decoration: none;
}
.dhs-tb__user:hover { background: var(--dhs-color-surface-050); text-decoration: none; }
/* User popover in the top bar (UAT 2026-09-23: "add a logout button to the profile icon").
   The sidebar card's menu (.dhs-sb__usermenu) mirrored into the header — same items, same
   [hidden] toggle contract — but anchored DOWNWARD from the chip and right-aligned so it cannot
   run off the viewport edge. .dhs-tb is z-index 30 with no overflow clip, so 40 here lands above
   the page content beneath it. The [hidden] guard is required for the same reason as the
   sidebar's: this file deliberately counters Bootstrap's own [hidden] handling further down. */
.dhs-tb__userwrap { position: relative; display: inline-flex; }
button.dhs-tb__user { background: none; font: inherit; cursor: pointer; text-align: left; }
.dhs-tb__chev { width: 16px; height: 16px; flex: none; color: var(--dhs-color-ink-400); }
.dhs-tb__usermenu {
    position: absolute;
    top: calc(100% + var(--dhs-space-2));
    right: 0;
    min-width: 220px;
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-md);
    box-shadow: var(--dhs-shadow-md);
    padding: var(--dhs-space-2);
    display: flex;
    flex-direction: column;
    z-index: 40;
}
.dhs-tb__usermenu a { padding: var(--dhs-space-2) var(--dhs-space-3); border-radius: var(--dhs-radius-sm); color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-size); text-decoration: none; white-space: nowrap; }
.dhs-tb__usermenu a:hover { background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-900); text-decoration: none; }
.dhs-tb__usermenu hr { border: 0; border-top: 1px solid var(--dhs-color-line-100); margin: var(--dhs-space-1) 0; }
.dhs-tb__usermenu[hidden] { display: none; }

/* Content spacing inside the shell: the boxed pages keep their own container,
   just trimmed of the old top-nav offsets. */
body.dhs-leftnav #main-body > .container,
body.dhs-leftnav #main-body > div { padding-top: var(--dhs-space-6); }

/* Wide native content (DataTables invoice/ticket lists) must scroll inside its own
   wrapper, never the page. Pre-existing at 390 under the OLD chrome too (measured
   2026-08-15: scrollWidth 451 on vw 390 with clientAreaNavStyle=top) — fixed here for
   the shell only; the rollback chrome is deliberately left as it always was. */
body.dhs-leftnav .table-container,
body.dhs-leftnav .dataTables_wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}

/* --- Dashboard recomposition (Figma 4580:47348) --------------------------- */
.dhs-dash-alert {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-3);
    background: var(--dhs-color-status-warning-tint);
    border: 1px solid var(--dhs-color-status-warning-600);
    border-left-width: 3px;
    border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-3) var(--dhs-space-4);
    margin-bottom: var(--dhs-space-6);
    flex-wrap: wrap;
}
.dhs-dash-alert__ic { color: var(--dhs-color-status-warning-600); display: inline-flex; }
.dhs-dash-alert__ic svg { width: 22px; height: 22px; }
.dhs-dash-alert__txt { flex: 1 1 240px; color: var(--dhs-color-status-warning-text); }
.dhs-dash-alert__txt b { margin-right: var(--dhs-space-2); }

.dhs-dash-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: var(--dhs-space-4);
    margin-bottom: var(--dhs-space-6);
}
.dhs-dash-quick__card {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-3);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-4);
    color: var(--dhs-color-ink-900);
    text-decoration: none;
}
.dhs-dash-quick__card:hover { border-color: var(--dhs-color-brand-300); text-decoration: none; box-shadow: var(--dhs-shadow-sm); }
.dhs-dash-quick__ic {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-700);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dhs-dash-quick__ic svg { width: 20px; height: 20px; }
.dhs-dash-quick__card > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dhs-dash-quick__card b { font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-type-body-strong-weight); }
.dhs-dash-quick__card small { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }

.dhs-dash-setup {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dhs-space-4);
    flex-wrap: wrap;
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-4) var(--dhs-space-5);
    margin-bottom: var(--dhs-space-6);
}
.dhs-dash-setup > span { display: flex; flex-direction: column; }
.dhs-dash-setup small { color: var(--dhs-color-ink-400); }

/* Base .dhs-dash-cols grid (2-col + its own responsive collapse) lives in
   20-components.css — the shell only adds the band rhythm below it. */
body.dhs-leftnav .dhs-dash-cols { margin-bottom: var(--dhs-space-6); }
.dhs-dash-list { padding: var(--dhs-space-2) var(--dhs-space-5) var(--dhs-space-4); }
.dhs-dash-list__row {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-3);
    padding: var(--dhs-space-3) 0;
    border-bottom: 1px solid var(--dhs-color-line-100);
}
.dhs-dash-list__row:last-child { border-bottom: 0; }
.dhs-dash-list__main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dhs-dash-list__main b {
    font-size: var(--dhs-type-body-strong-size);
    font-weight: var(--dhs-type-body-strong-weight);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.dhs-dash-list__main small { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }
.dhs-dash-list__empty { color: var(--dhs-color-ink-400); padding: var(--dhs-space-3) 0; margin: 0; }

/* Stat cards, 29AUG frame 4580:47348 (audit A01): label top-left + tinted icon chip top-right,
   the big number below. Neutral cards for Services/Domains (green glyph on brand tint);
   attention accents on Tickets (warning) and Invoices (danger) — border, label AND number
   carry the accent, exactly as drawn. Scoped to the shell: the rollback chrome keeps the
   pre-shell horizontal layout. */
body.dhs-leftnav .dhs-statcard { flex-direction: column; align-items: stretch; gap: var(--dhs-space-2); }
body.dhs-leftnav .dhs-statcard__top { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-2); }
body.dhs-leftnav .dhs-statcard__n { font-size: 32px; line-height: 40px; }
body.dhs-leftnav .dhs-statcard--services,
body.dhs-leftnav .dhs-statcard--domains { border-color: var(--dhs-color-line-100); }
body.dhs-leftnav .dhs-statcard--services .dhs-statcard__chip,
body.dhs-leftnav .dhs-statcard--domains .dhs-statcard__chip { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-600); }
body.dhs-leftnav .dhs-statcard--tickets { border-color: var(--dhs-color-status-warning-600); }
body.dhs-leftnav .dhs-statcard--tickets .dhs-statcard__chip { background: var(--dhs-color-status-warning-tint); color: var(--dhs-color-status-warning-600); }
body.dhs-leftnav .dhs-statcard--tickets .dhs-statcard__lbl,
body.dhs-leftnav .dhs-statcard--tickets .dhs-statcard__n { color: var(--dhs-color-status-warning-600); }
body.dhs-leftnav .dhs-statcard--invoices { border-color: var(--dhs-color-status-danger-600); }
body.dhs-leftnav .dhs-statcard--invoices .dhs-statcard__chip { background: var(--dhs-color-status-danger-tint); color: var(--dhs-color-status-danger-600); }
body.dhs-leftnav .dhs-statcard--invoices .dhs-statcard__lbl,
body.dhs-leftnav .dhs-statcard--invoices .dhs-statcard__n { color: var(--dhs-color-status-danger-600); }

/* Page-head split row + in-page search (29AUG my-services frame 4651:13743; reusable on any
   list page whose frame draws a title-row search). */
.dhs-pagehead--split { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap; }
.dhs-pagesearch {
    display: flex; align-items: center; gap: var(--dhs-space-2);
    min-width: 260px; padding: 0 var(--dhs-space-3);
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-surface-white); color: var(--dhs-color-ink-400);
}
.dhs-pagesearch svg { width: 18px; height: 18px; flex: none; }
.dhs-pagesearch input {
    border: 0; outline: none; background: none; font: inherit; color: var(--dhs-color-ink-900);
    padding: 10px 0; width: 100%;
}
.dhs-pagesearch:focus-within { border-color: var(--dhs-color-brand-600); }
@media (max-width: 575.98px) { .dhs-pagesearch { min-width: 0; width: 100%; } }

/* Proactive-alert dismiss (29AUG frame) */
.dhs-dash-alert__close {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer;
    color: var(--dhs-color-status-warning-600); border-radius: var(--dhs-radius-sm);
}
.dhs-dash-alert__close:hover { background: var(--dhs-color-status-warning-tint); }
.dhs-dash-alert__close svg { width: 16px; height: 16px; }

/* Upgrade Your Plan band (29AUG frame; data = daily usage snapshot, see clientareahome.tpl) */
.dhs-dash-upgrade {
    display: flex; align-items: center; gap: var(--dhs-space-4); flex-wrap: wrap;
    background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-300);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-4) var(--dhs-space-5);
    margin-bottom: var(--dhs-space-6);
}
.dhs-dash-upgrade__ic {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-600); color: #fff;
}
.dhs-dash-upgrade__ic svg { width: 20px; height: 20px; }
.dhs-dash-upgrade__txt { flex: 1 1 280px; display: flex; flex-direction: column; }
.dhs-dash-upgrade__txt b { font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-type-body-strong-weight); }
.dhs-dash-upgrade__txt small { color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }
.dhs-dash-upgrade__meta { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); white-space: nowrap; }
.dhs-dash-upgrade__meta b { color: var(--dhs-color-brand-600); }

/* Native home panels (Recent Support Tickets, Recent News, Domains Expiring Soon, plus any
   future hook panel) — KEPT beyond the frame per the parity rule, but skinned to the design
   system so they stop reading as stock Bootstrap (audit A01). Class hooks only; the panel
   markup/JS contract is untouched. */
body.dhs-leftnav .client-home-cards .card {
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl);
    box-shadow: none; margin-bottom: var(--dhs-space-6);
}
body.dhs-leftnav .client-home-cards .card-header {
    background: #fff; border-bottom: 1px solid var(--dhs-color-line-100);
    padding: var(--dhs-space-4) var(--dhs-space-5);
    border-radius: var(--dhs-radius-xl) var(--dhs-radius-xl) 0 0;
}
body.dhs-leftnav .client-home-cards .card-title { font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-type-body-strong-weight); color: var(--dhs-color-ink-900); }
body.dhs-leftnav .client-home-cards .card-footer { background: #fff; border-top: 1px solid var(--dhs-color-line-100); border-radius: 0 0 var(--dhs-radius-xl) var(--dhs-radius-xl); }
body.dhs-leftnav .client-home-cards .card-header .btn {
    border-radius: var(--dhs-radius-pill); border: 0; color: #fff;
    background: var(--dhs-color-brand-600); font-weight: var(--dhs-font-weight-semibold);
}
body.dhs-leftnav .client-home-cards .card-header .btn:hover { background: var(--dhs-color-derived-brand-action-hover); color: #fff; }

/* --- Mobile dashboard (Figma 4597:12005, 390x1981) ------------------------
   The drop's mobile dashboard keeps all of the desktop bands, but as a compact
   stack: stat tiles 2x2 (NOT the generic 1-col collapse 97-public.css applies),
   full-width action buttons, wrappable list rows. Scoped to body.dhs-leftnav for
   two reasons at once: the frame belongs to the left-nav shell, and the scope
   outranks 97-public's later-in-cascade 1-col rule without any !important. */
@media (max-width: 575.98px) {
    body.dhs-leftnav .dhs-statcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dhs-space-3); }
    body.dhs-leftnav .dhs-statcard { padding: var(--dhs-space-3); gap: var(--dhs-space-3); border-radius: var(--dhs-radius-md); }
    body.dhs-leftnav .dhs-statcard__chip { width: 32px; height: 32px; }
    body.dhs-leftnav .dhs-statcard__chip svg { width: 16px; height: 16px; }
    body.dhs-leftnav .dhs-statcard__lbl { font-size: 12px; line-height: 18px; }
    body.dhs-leftnav .dhs-dash-alert { flex-wrap: wrap; }
    body.dhs-leftnav .dhs-dash-alert .dhs-btn { flex: 1 1 100%; justify-content: center; text-align: center; }
    /* 29AUG mobile frame: the three quick actions sit in ONE row of compact upright cards
       (icon above label), not a full-width stack. */
    body.dhs-leftnav .dhs-dash-quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dhs-space-3); }
    body.dhs-leftnav .dhs-dash-quick__card { flex-direction: column; align-items: flex-start; text-align: left; gap: var(--dhs-space-2); padding: var(--dhs-space-3); }
    body.dhs-leftnav .dhs-dash-quick__card b { font-size: var(--dhs-type-body-sm-size); }
    body.dhs-leftnav .dhs-dash-quick__card small { font-size: 11px; }
    body.dhs-leftnav .dhs-dash-setup { flex-direction: column; align-items: stretch; }
    body.dhs-leftnav .dhs-dash-setup .dhs-btn { justify-content: center; text-align: center; }
    body.dhs-leftnav .dhs-dash-list__row { flex-wrap: wrap; }
}

/* --- Mobile billing (Figma 4616:12369, 390x844) ---------------------------
   The invoices table stacks into the frame's invoice cards at phone widths:
   number + status chip on the row head, due date beneath, amount big. Scoped
   to the one table (#tableInvoicesList — its tbody is hand-authored in
   clientareainvoices.tpl, columns fixed: num/created/due/total/status), so no
   other DataTables table is affected. The Pay-All control links to WHMCS's own Mass Pay and
   — since 2026-09-04, user decision — renders at EVERY width: it was mobile-only (per the
   old frame 4616:12369), which left desktop with no on-page route at all (the native rail
   link is filtered as duplication by listrail.tpl; Billing menu, last item, was the only way).
   The final frame 5090:32410 drew no Pay-All at all; ours stays under the baseline rule. */
.dhs-invlist-actions { display: flex; align-items: center; gap: var(--dhs-space-2); flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 575.98px) {
    .dhs-invlist-actions { width: 100%; }
    .dhs-inv-payall.dhs-btn { width: 100%; justify-content: center; order: -1; }
    #tableInvoicesList thead { display: none; }
    #tableInvoicesList, #tableInvoicesList tbody, #tableInvoicesList tr, #tableInvoicesList td { display: block; width: 100%; box-sizing: border-box; max-width: 100%; }
    #tableInvoicesList tr {
        position: relative; background: var(--dhs-color-surface-white);
        border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
        padding: var(--dhs-space-3) var(--dhs-space-4); margin-bottom: var(--dhs-space-3);
    }
    #tableInvoicesList td { padding: 0; border: 0; }
    #tableInvoicesList td:nth-child(1) { font-size: var(--dhs-type-body-strong-size); padding-right: 90px; }
    #tableInvoicesList td:nth-child(2) { display: none; }   /* created date — the frame keeps only due/paid */
    #tableInvoicesList td:nth-child(3) { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }
    #tableInvoicesList td:nth-child(3)::before { content: "Due "; }
    #tableInvoicesList td:nth-child(4) { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin-top: var(--dhs-space-1); }
    #tableInvoicesList td:nth-child(5) { position: absolute; top: var(--dhs-space-3); right: var(--dhs-space-4); width: auto; }
}

/* Affiliates referrals DataTable: 5 fixed columns overflow a phone card (473px content at 390,
   found in the 2026-08-29 mobile scan) — give the wrapper its own scroll per the CLAUDE.md
   wide-table rule; the DataTables contract is untouched. */
@media (max-width: 575.98px) {
    #tableAffiliatesList_wrapper, .dhs-table-wrap:has(#tableAffiliatesList) { overflow-x: auto; }
    #tableAffiliatesList { min-width: 480px; }
}

/* --- Mobile domains (29AUG mobile-my-domains 5077:27985) ------------------
   The native DomainsList table has six columns (checkbox / SSL icon / domain /
   reg date / due date / status) and was SIDE-SCROLLING inside its wrapper at
   390px — page-level overflow stayed clean, so the width gate never flagged it
   (found in the 2026-08-29 mobile pass). Stack it into the frame's domain
   cards: name leading, status chip top-right, dates as labelled rows. The
   checkbox stays (bulk actions are real) and every DataTables/JS contract —
   ids, classes, row onclick, .domids — is untouched. */
@media (max-width: 575.98px) {
    #tableDomainsList thead { display: none; }
    #tableDomainsList, #tableDomainsList tbody, #tableDomainsList tr, #tableDomainsList td { display: block; width: 100%; box-sizing: border-box; max-width: 100%; }
    #tableDomainsList tr {
        position: relative; background: var(--dhs-color-surface-white);
        border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
        padding: var(--dhs-space-3) var(--dhs-space-4); margin-bottom: var(--dhs-space-3);
    }
    #tableDomainsList td { padding: 0; border: 0; }
    #tableDomainsList td:nth-child(1) { position: absolute; top: var(--dhs-space-3); left: var(--dhs-space-4); width: auto; }
    #tableDomainsList td:nth-child(2) { display: inline-block; width: auto; margin-left: 26px; }
    #tableDomainsList td:nth-child(3) { font-size: var(--dhs-type-body-strong-size); padding: 0 110px 6px 26px; }
    #tableDomainsList td:nth-child(4),
    #tableDomainsList td:nth-child(5) { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }
    #tableDomainsList td:nth-child(4)::before { content: "Registered "; }
    #tableDomainsList td:nth-child(5)::before { content: "Next due "; }
    #tableDomainsList td:nth-child(6) { position: absolute; top: var(--dhs-space-3); right: var(--dhs-space-4); width: auto; }
}

/* --- Mobile tickets (02SEP mobile-support-tickets 5119:28690, audit M3.1) --
   REWRITTEN 2026-09-03: the previous block mapped the pre-rework FOUR-column table
   (dept/subject/status/updated) and mis-stacked the current six columns (id/subject/
   dept/priority/status/updated) — id rendered mid-card, priority fought status for the
   top-right slot. Frame card: id caption top-left, status chip top-right, subject bold,
   dept + priority chips one line, updated small. DataTables/listrail contracts untouched. */
@media (max-width: 575.98px) {
    #tableTicketsList thead { display: none; }
    #tableTicketsList, #tableTicketsList tbody { display: block; width: 100%; }
    #tableTicketsList tr {
        display: flex; flex-flow: row wrap; align-items: center; gap: 2px 8px;
        position: relative; background: var(--dhs-color-surface-white);
        border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
        padding: var(--dhs-space-3) var(--dhs-space-4); margin-bottom: var(--dhs-space-3);
    }
    #tableTicketsList td { display: block; padding: 0; border: 0; text-align: left; box-sizing: border-box; }
    #tableTicketsList td:nth-child(1) { width: 100%; padding-right: 110px; color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }
    #tableTicketsList td:nth-child(1) a { color: inherit; text-decoration: none; }
    #tableTicketsList td:nth-child(2) { width: 100%; font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-type-body-strong-weight); }
    #tableTicketsList td:nth-child(2) a { color: var(--dhs-color-ink-900); text-decoration: none; }
    #tableTicketsList td:nth-child(3),
    #tableTicketsList td:nth-child(4) { width: auto; font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-500); }
    #tableTicketsList td:nth-child(5) { position: absolute; top: var(--dhs-space-3); right: var(--dhs-space-4); width: auto; }
    #tableTicketsList td:nth-child(6) { width: 100%; color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }
    #tableTicketsList td:nth-child(6)::before { content: "Updated "; }
}

/* --- My Details (Figma 4617:12264 mobile-my-details) ----------------------
   Profile strip renders at every width; phone widths additionally stack the
   Bootstrap .form-row field pairs full-width (bare `.col` never wraps on its
   own, so at 390 the pairs rendered cramped 2-across) and stretch the save
   buttons. The .form-row rule is deliberately global-mobile, not page-scoped:
   two-across form fields at 390 are wrong everywhere. */
.dhs-profilestrip {
    display: flex; align-items: center; gap: var(--dhs-space-4);
    background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-4) var(--dhs-space-5);
    margin-bottom: var(--dhs-space-5);
}
.dhs-profilestrip__avatar {
    width: 48px; height: 48px; border-radius: 50%; flex: none;
    display: flex; align-items: center; justify-content: center;
    background: var(--dhs-color-brand-600); color: #fff;
    font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-font-weight-bold);
    text-transform: uppercase;
}
.dhs-profilestrip__meta { display: flex; flex-direction: column; min-width: 0; }
.dhs-profilestrip__meta b { font-size: var(--dhs-type-body-strong-size); color: var(--dhs-color-ink-900); }
.dhs-profilestrip__meta span { font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-400); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 575.98px) {
    .form-row > .dhs-field.col { flex: 1 1 100%; max-width: 100%; }
    body.dhs-leftnav form .dhs-btn[type="submit"], body.dhs-leftnav form button.dhs-btn { width: 100%; justify-content: center; }
}

/* --- Manage pages (Figma 4666:* manage-* frames) --------------------------
   Shared chrome for all ten dhs_portal pages under the shell. The in-page
   "Manage Service" rail steps aside (see _manage_nav.tpl) so .dhs-layout
   collapses to one column; the old two-column look returns with the rollback. */
/* Collapse the two-column rail grid ONLY where the rail actually stepped aside
   (_manage_nav renders nothing under the shell, leaving no .dhs-side child).
   Pages that build their OWN rail — My Services' View/status filters — keep their
   two columns: that rail carries real controls the shell does not duplicate. */
body.dhs-leftnav .dhs-layout:not(:has(> .dhs-side)) { display: block; }

.dhs-mng-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--dhs-space-4); margin-bottom: var(--dhs-space-4); flex-wrap: wrap; }
/* 29AUG manage frames: the service picker rides the title row's right edge as a compact
   dropdown with a green status dot (the include moved inside .dhs-mng-head, 2026-08-29).
   The cpanel-unavailable banner stays full-width on its own row. */
.dhs-mng-head .dhs-svc-select { margin-bottom: 0; }
.dhs-mng-head .dhs-svc-unavail { flex: 1 1 100%; order: 5; }
.dhs-select--statusdot { position: relative; }
.dhs-select--statusdot::before {
    content: ""; position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--dhs-color-brand-600); z-index: 1; pointer-events: none;
}
/* !important: 90-legacy's `.dhs-select select` shorthand `padding: 9px 38px 9px 14px` re-sets
   padding-left in the same pass on some engines' shorthand handling — observed live 2026-08-29
   (dot over the first glyph despite the double-class rule). */
.dhs-select.dhs-select--statusdot select { padding-left: 30px !important; }
.dhs-mng-head h2 { font-size: 28px; line-height: 36px; font-weight: var(--dhs-type-h2-weight); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-mng-head p { margin: var(--dhs-space-1) 0 0; color: var(--dhs-color-ink-400); }

.dhs-mng-card {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    margin-bottom: var(--dhs-space-6);
    overflow: hidden;
}
.dhs-mng-card__hd {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dhs-space-4);
    flex-wrap: wrap;
    padding: var(--dhs-space-4) var(--dhs-space-5);
}
.dhs-mng-card__hd h3 { margin: 0; font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-type-h3-weight); }
.dhs-mng-tools { display: flex; align-items: center; gap: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-mng-tabs { display: inline-flex; border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); overflow: hidden; }
.dhs-mng-tabs button {
    border: 0;
    background: var(--dhs-color-surface-white);
    color: var(--dhs-color-ink-700);
    font-family: inherit;
    font-size: var(--dhs-type-body-size);
    font-weight: var(--dhs-type-body-strong-weight);
    padding: var(--dhs-space-1-5) var(--dhs-space-3);
    cursor: pointer;
    border-right: 1px solid var(--dhs-color-line-300);
}
.dhs-mng-tabs button:last-child { border-right: 0; }
.dhs-mng-tabs button.is-active { background: var(--dhs-color-brand-600); color: var(--dhs-color-surface-white); }
.dhs-mng-search { display: inline-flex; align-items: center; gap: var(--dhs-space-2); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-1-5) var(--dhs-space-3); color: var(--dhs-color-ink-400); }
.dhs-mng-search svg { width: 16px; height: 16px; }
.dhs-mng-search input { border: 0; outline: none; background: transparent; font-size: var(--dhs-type-body-size); color: var(--dhs-color-ink-900); width: 140px; }

body.dhs-leftnav .dhs-portal-table { border-collapse: collapse; width: 100%; }
body.dhs-leftnav .dhs-portal-table thead th {
    background: var(--dhs-color-surface-050);
    color: var(--dhs-color-ink-500);
    font-size: var(--dhs-type-caption-size);
    font-weight: var(--dhs-type-body-strong-weight);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    padding: var(--dhs-space-3) var(--dhs-space-5);
}
body.dhs-leftnav .dhs-portal-table td { padding: var(--dhs-space-4) var(--dhs-space-5); border-top: 1px solid var(--dhs-color-line-100); }

.dhs-rec-type {
    display: inline-block;
    min-width: 34px;
    text-align: center;
    padding: 1px var(--dhs-space-2);
    border-radius: var(--dhs-radius-xs);
    border: 1px solid var(--dhs-color-line-300);
    background: var(--dhs-color-surface-050);
    color: var(--dhs-color-ink-700);
    font-size: var(--dhs-type-caption-size);
    font-weight: var(--dhs-type-body-strong-weight);
}
.dhs-rec-type--a, .dhs-rec-type--aaaa { background: var(--dhs-color-status-info-tint); color: var(--dhs-color-status-info-700); border-color: var(--dhs-color-status-info-tint); }
.dhs-rec-type--mx, .dhs-rec-type--txt { background: var(--dhs-color-accent-purple-tint); color: var(--dhs-color-accent-purple); border-color: var(--dhs-color-accent-purple-tint); }
.dhs-rec-type--cname, .dhs-rec-type--srv, .dhs-rec-type--caa { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); border-color: var(--dhs-color-brand-050); }

.dhs-btn-danger-outline {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-status-danger-600);
    color: var(--dhs-color-status-danger-600);
    border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-1-5) var(--dhs-space-4);
    font-family: inherit;
    font-size: var(--dhs-type-body-size);
    font-weight: var(--dhs-type-body-strong-weight);
    cursor: pointer;
}
.dhs-btn-danger-outline:hover { background: var(--dhs-color-status-danger-tint); }

.dhs-mng-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: var(--dhs-space-4);
    align-items: end;
    padding: 0 var(--dhs-space-5) var(--dhs-space-5);
}
.dhs-mng-form label, .dhs-mng-form input, .dhs-mng-form select { min-width: 0; }
.dhs-mng-form label {
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-1);
    font-size: var(--dhs-type-body-sm-size);
    font-weight: var(--dhs-type-body-strong-weight);
    color: var(--dhs-color-ink-700);
}
.dhs-mng-form input,
.dhs-mng-form select {
    border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-2) var(--dhs-space-3);
    font-family: inherit;
    font-size: var(--dhs-type-body-size);
    color: var(--dhs-color-ink-900);
    background: var(--dhs-color-surface-white);
}
@media (max-width: 991.98px) {
    .dhs-mng-form { grid-template-columns: 1fr 1fr; }
    .dhs-mng-form > button { grid-column: 1 / -1; }
}
@media (max-width: 575.98px) {
    .dhs-mng-form { grid-template-columns: 1fr; }
}

.dhs-mng-templates { margin-bottom: var(--dhs-space-6); }
.dhs-mng-templates h3 { font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-type-h3-weight); margin: 0 0 var(--dhs-space-3); }
.dhs-mng-templates form { display: flex; gap: var(--dhs-space-3); flex-wrap: wrap; }

/* Manage-email (4666:14482) additions, reused by the other manage frames. */
.dhs-deliverability { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; padding: 0 var(--dhs-space-5) var(--dhs-space-5); }
.dhs-usagebar {
    display: inline-block; vertical-align: middle; width: 90px; height: 6px;
    border-radius: var(--dhs-radius-pill); background: var(--dhs-color-line-200, #E9EAEB);
    overflow: hidden; margin-right: var(--dhs-space-2);
}
.dhs-usagebar > span { display: block; height: 100%; background: var(--dhs-color-brand-600); border-radius: inherit; }
.dhs-usagebar--hot > span { background: var(--dhs-color-warn-600, #F79009); }
.dhs-mng-inlineform { display: flex; gap: var(--dhs-space-2); align-items: center; flex-wrap: wrap; }
.dhs-mng-inlineform input[type="password"] {
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-1) var(--dhs-space-3); font-family: inherit;
    font-size: var(--dhs-type-body-sm-size); width: 150px; min-width: 0;
}
/* Phone (29AUG mobile-manage-email 5028:12626): the stacked mailbox card's Change-password
   row put a fixed 150px input + button into a ~150px value column, so both overflowed the
   card edge (found live 2026-08-29 in the mobile pass). Let the row wrap and the field fill. */
@media (max-width: 575.98px) {
    /* The stacked card renders each cell as a label/value row; a form cell needs the whole
       width, so drop the label side for that one cell and let the field+button fill it. */
    .dhs-portal-table td[data-label="Change password"] { display: block; }
    .dhs-portal-table td[data-label="Change password"]::before { display: block; margin-bottom: 6px; }
    .dhs-portal-table .dhs-mng-inlineform { width: 100%; }
    .dhs-portal-table .dhs-mng-inlineform input[type="password"] { width: 100%; flex: 1 1 100%; }
    .dhs-portal-table .dhs-mng-inlineform .dhs-btn { width: 100%; justify-content: center; }
}
/* Input with a fixed domain suffix ("info | @demobiz.co.ke"), per the create-mailbox card. */
.dhs-mng-suffixed { display: flex; align-items: stretch; min-width: 0; }
.dhs-mng-suffixed input { flex: 1; border-radius: var(--dhs-radius-md) 0 0 var(--dhs-radius-md); }
.dhs-mng-suffix {
    display: flex; align-items: center; padding: 0 var(--dhs-space-3);
    border: 1px solid var(--dhs-color-line-300); border-left: 0;
    border-radius: 0 var(--dhs-radius-md) var(--dhs-radius-md) 0;
    background: var(--dhs-color-surface-tint, #F9FAFB);
    color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); white-space: nowrap;
}

/* Free-form card body (manage-security's forms live in cards, not tables/forms grids). */
.dhs-mng-card__bd { padding: 0 var(--dhs-space-5) var(--dhs-space-5); }
/* KB popular chips (02SEP 5119:29247, audit M3.1): real most-viewed articles. */
.dhs-kb-chips { display: flex; align-items: center; gap: var(--dhs-space-2); flex-wrap: wrap; margin-top: var(--dhs-space-3); }
.dhs-kb-chips__lbl { font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-500); }
.dhs-kb-chips a {
    display: inline-flex; align-items: center; padding: 5px 12px;
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-surface-white, #fff); color: var(--dhs-color-ink-700);
    font-size: var(--dhs-type-caption-size); text-decoration: none;
}
.dhs-kb-chips a:hover { border-color: var(--dhs-color-brand-600); color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-kb-chips--hero .dhs-kb-chips__lbl { color: rgba(255, 255, 255, 0.75); }
.dhs-kb-chips--hero a { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.35); color: #fff; }
.dhs-kb-chips--hero a:hover { background: rgba(255, 255, 255, 0.22); color: #fff; }

/* Download cards (02SEP 5119:29712 / 5162:34539, audit M3.1). */
.dhs-dlcard {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4);
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-white, #fff); padding: var(--dhs-space-4) var(--dhs-space-5);
    flex-wrap: wrap;
}
.dhs-dlcard__main { flex: 1 1 260px; min-width: 0; }
.dhs-dlcard__main b a { color: var(--dhs-color-ink-900); text-decoration: none; font-size: var(--dhs-type-body-strong-size); }
.dhs-dlcard__main p { margin: 4px 0 6px; color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); line-height: 1.5; }

/* Guide-card footer row: read-time badge left, Read Article CTA right (02SEP 4913:59387). */
.dhs-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3); margin-top: auto; flex-wrap: wrap; }

/* Change Password (02SEP 4901:20354 / 5124:15303, audit M2.1): live requirements checklist
   + reveal toggles. */
.dhs-pwwrap { position: relative; display: block; }
.dhs-pwwrap input { padding-right: 44px; }
.dhs-pwreveal {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; background: none; cursor: pointer;
    color: var(--dhs-color-ink-400); border-radius: var(--dhs-radius-sm);
}
.dhs-pwreveal:hover { color: var(--dhs-color-ink-700); background: var(--dhs-color-surface-050); }
.dhs-pwreveal.is-on { color: var(--dhs-color-brand-600); }
.dhs-pwreveal svg { width: 18px; height: 18px; }
.dhs-pwreqs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.dhs-pwreqs li {
    position: relative; padding-left: 26px;
    color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size);
}
.dhs-pwreqs li::before {
    content: ""; position: absolute; left: 0; top: 1px; width: 16px; height: 16px;
    border: 2px solid var(--dhs-color-line-300); border-radius: 50%; box-sizing: border-box;
}
.dhs-pwreqs li.is-met { color: var(--dhs-color-ink-900); }
.dhs-pwreqs li.is-met::before {
    border-color: var(--dhs-color-brand-600); background: var(--dhs-color-brand-600);
}
.dhs-pwreqs li.is-met::after {
    content: ""; position: absolute; left: 4px; top: 5px; width: 8px; height: 5px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(-45deg);
}

/* Ticket Detail (02SEP 5205:17198 / 5205:17559, audit M1.2). */
.dhs-tk-summary__top { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-tk-summary__subject { font-size: 20px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-tk-summary__meta {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--dhs-space-4);
    border-top: 1px solid var(--dhs-color-line-100); margin-top: var(--dhs-space-4); padding-top: var(--dhs-space-4);
}
.dhs-tk-summary__meta span { display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-color-ink-400); margin-bottom: 2px; }
.dhs-tk-summary__meta b { color: var(--dhs-color-ink-900); font-size: var(--dhs-type-body-sm-size); }
.dhs-tk-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: var(--dhs-space-5); align-items: start; }
/* minmax(0,1fr), not bare 1fr: the native markdown editor's toolbar has a wide min-content
   and a plain 1fr track lets it force the column past the viewport (390 overflow, found by
   the M1.2 gate). */
@media (max-width: 991.98px) { .dhs-tk-grid { grid-template-columns: minmax(0, 1fr); } }
.dhs-tk-msg { display: flex; gap: var(--dhs-space-3); }
.dhs-tk-msg__avatar {
    flex: none; width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--dhs-color-surface-100, #eef1f4); color: var(--dhs-color-ink-700);
    font-weight: var(--dhs-font-weight-bold);
}
.dhs-tk-msg--staff .dhs-tk-msg__avatar { background: var(--dhs-color-brand-600); color: #fff; }
.dhs-tk-msg__body { flex: 1 1 auto; min-width: 0; }
.dhs-tk-msg__meta { display: flex; align-items: center; gap: var(--dhs-space-2); flex-wrap: wrap; margin-bottom: 6px; }
.dhs-tk-msg__meta b { color: var(--dhs-color-ink-900); }
.dhs-tk-msg__bubble {
    background: var(--dhs-color-surface-tint, #F9FAFB); border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-3) var(--dhs-space-4);
    color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); line-height: 1.55;
}
.dhs-tk-msg--staff .dhs-tk-msg__bubble { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-300); }
.dhs-tk-replyfoot { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-tk-attach { display: inline-flex; align-items: center; gap: var(--dhs-space-2); color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); cursor: pointer; flex-wrap: wrap; }
.dhs-tk-attach input[type="file"] { font-size: 12.5px; max-width: 230px; }
/* Progress rail: reuse the transfer timeline, with state tiers. */
.dhs-tk-steps li.is-pending::before { border-color: var(--dhs-color-line-300); }
.dhs-tk-steps li.is-pending b, .dhs-tk-steps li.is-pending span { color: var(--dhs-color-ink-400); }
.dhs-tk-steps li.is-active::before { background: var(--dhs-color-brand-600); }
.dhs-tk-steps li:not(:last-child).is-pending::after { background: var(--dhs-color-line-300); }
.dhs-tk-steps__time { float: right; font-weight: 400; color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }

/* Pure-CSS :target modal (02SEP modal-container 5193:16630/16741 — Security block log's
   Confirm Unblock / Unblock Details). Zero JS: the row's link targets the overlay id, the
   scrim + Cancel/Close are plain anchors back to #blocklog. Keyboard/AT: role=dialog on the
   container, and because it is ordinary in-flow markup at the end of the card, tab order and
   screen readers reach every control without any focus-trap script. */
.dhs-modal { display: none; }
.dhs-modal:target { display: flex; position: fixed; inset: 0; z-index: 80; align-items: center; justify-content: center; padding: var(--dhs-space-4); }
.dhs-modal__scrim { position: absolute; inset: 0; background: rgba(24, 29, 39, 0.5); }
.dhs-modal__card {
    position: relative; width: 480px; max-width: 100%; max-height: 90vh; overflow-y: auto;
    background: var(--dhs-color-surface-white, #fff); border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-6); text-align: center; box-shadow: var(--dhs-shadow-lg);
}
.dhs-modal__card h3 { font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-type-h3-weight); color: var(--dhs-color-ink-900); margin: var(--dhs-space-3) 0 var(--dhs-space-1); }
.dhs-modal__ic {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 50%;
}
.dhs-modal__ic svg { width: 26px; height: 26px; }
.dhs-modal__ic--warn { background: var(--dhs-color-status-warning-tint); color: var(--dhs-color-status-warning-600); }
.dhs-modal__ic--ok { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-600); }
.dhs-modal__rows {
    text-align: left; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-tint, #F9FAFB); padding: var(--dhs-space-2) var(--dhs-space-4);
    margin: var(--dhs-space-4) 0;
}
.dhs-modal__rows > div { display: flex; justify-content: space-between; gap: var(--dhs-space-3); padding: var(--dhs-space-2) 0; border-bottom: 1px solid var(--dhs-color-line-100); align-items: center; }
.dhs-modal__rows > div:last-child { border-bottom: 0; }
.dhs-modal__rows span { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); }
.dhs-modal__rows b { color: var(--dhs-color-ink-900); font-size: var(--dhs-type-body-sm-size); text-align: right; }
.dhs-modal__warn {
    border: 1px solid var(--dhs-color-status-warning-600); background: var(--dhs-color-status-warning-tint);
    color: var(--dhs-color-status-warning-text, #7A5C00); border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-3) var(--dhs-space-4); font-size: var(--dhs-type-body-sm-size); text-align: left;
}
.dhs-modal__done {
    border: 1px solid var(--dhs-color-brand-300); background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-900); border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-3) var(--dhs-space-4); font-size: var(--dhs-type-body-sm-size);
}
.dhs-modal__actions { display: flex; gap: var(--dhs-space-3); justify-content: center; margin-top: var(--dhs-space-4); flex-wrap: wrap; }
.dhs-modal__actions .dhs-btn { min-width: 140px; justify-content: center; }

/* Read-only IP display field (29AUG manage-security 4833:53711). */
.dhs-ipfield {
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-surface-tint, #F9FAFB);
    padding: var(--dhs-space-3) var(--dhs-space-4); margin-bottom: var(--dhs-space-3);
    font-variant-numeric: tabular-nums; color: var(--dhs-color-ink-700);
}

/* --- List-page rail adapter (M5.3c; partials/listrail.tpl) ------------------------------
   The native View/filter panel re-rendered as a pill row above the table. The items keep
   tablelist.tpl's whole JS contract (view-filter-btns / list-group-item / span label /
   radio icon / .badge), so ONLY presentation lives here — including hiding the toggled
   radio icon, which the JS still flips harmlessly. */
.dhs-lr-filter { display: flex; flex-wrap: wrap; gap: var(--dhs-space-2); align-items: center; margin: 0 0 var(--dhs-space-4); }
.dhs-lr-filter__lbl { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-color-ink-500); margin-right: var(--dhs-space-2); }
.dhs-lr-filter a.dhs-lr-pill {
    display: inline-flex; align-items: center; gap: 6px; width: auto;
    min-height: 36px; padding: 0 var(--dhs-space-4); border-radius: var(--dhs-radius-pill);
    border: 1px solid var(--dhs-color-line-300); background: var(--dhs-color-surface-white, #fff);
    font-size: var(--dhs-type-body-sm-size); font-weight: var(--dhs-type-body-strong-weight);
    color: var(--dhs-color-ink-700); text-decoration: none;
}
.dhs-lr-filter a.dhs-lr-pill i { display: none; }
.dhs-lr-filter a.dhs-lr-pill:hover { border-color: var(--dhs-color-brand-900); color: var(--dhs-color-brand-900); }
.dhs-lr-filter a.dhs-lr-pill.active { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); color: #fff; }
.dhs-lr-filter a.dhs-lr-pill .badge { background: rgba(0, 0, 0, .08); color: inherit; border-radius: var(--dhs-radius-pill); padding: 2px 8px; }
.dhs-lr-filter a.dhs-lr-pill.active .badge { background: rgba(255, 255, 255, .22); }

/* Unrecognized-panel fallback: quiet collapsed disclosure, same posture as the store
   chrome's KD-60 fallback — visible, out of the way, never silently dropped. */
.dhs-lr-extra { margin: 0 0 var(--dhs-space-4); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-lg); background: var(--dhs-color-surface-tint, #F9FAFB); }
.dhs-lr-extra summary { cursor: pointer; padding: var(--dhs-space-3) var(--dhs-space-4); font-weight: var(--dhs-type-body-strong-weight); color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }
.dhs-lr-extra__body { padding: 0 var(--dhs-space-4) var(--dhs-space-4); display: flex; flex-direction: column; gap: var(--dhs-space-2); }
.dhs-lr-extra__body a { color: var(--dhs-color-brand-700, #1E6020); font-weight: 600; text-decoration: none; }
.dhs-lr-extra__body a:hover { text-decoration: underline; }
/* uri-less info rows (viewticket's Ticket Information: Department/Date Opened/Priority/…) */
.dhs-lr-extra__row { color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }

/* UPPER section label + tile description (manage-cpanel "QUICK SHORTCUTS", email quick tiles). */
.dhs-mng-label {
    font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--dhs-color-ink-500); margin: var(--dhs-space-5) 0 var(--dhs-space-3);
}
.dhs-shortcut__desc { display: block; font-size: 12.5px; color: var(--dhs-color-ink-500); margin-top: 2px; }
/* Authed KB search card (29AUG 4888:23190, audit A40): the hero's search form restyled for a
   light panel — the guest hero's white-on-dark input styling doesn't apply here. */
.dhs-kbsearch-panel { margin-bottom: var(--dhs-space-6); }
.dhs-kbsearch-panel .dhs-kb-hero__search-wrap { max-width: none; margin: 0; }
.dhs-kbsearch-panel .dhs-kb-hero__search input {
    border: 1px solid var(--dhs-color-line-300); background: var(--dhs-color-surface-white, #fff);
    color: var(--dhs-color-ink-900);
}
.dhs-kbsearch-panel .dhs-kb-hero__search input:focus { border-color: var(--dhs-color-brand-600); }

/* Authed announcements as stacked row cards (29AUG 4888:23901, audit A39). */
.dhs-cards.dhs-cards--rows { display: flex; flex-direction: column; gap: var(--dhs-space-4); }
.dhs-cards--rows .dhs-card { width: 100%; }

/* Receipt-detail metadata rows (29AUG 5104:25715, audit A33). */
.dhs-rcpt-meta { display: flex; flex-direction: column; }
.dhs-rcpt-meta > div {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3);
    padding: var(--dhs-space-2) 0; border-bottom: 1px solid var(--dhs-color-line-100);
}
.dhs-rcpt-meta > div:last-child { border-bottom: 0; }
.dhs-rcpt-meta span:first-child { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); }
.dhs-rcpt-meta b { font-variant-numeric: tabular-nums; }

/* Stat-card caption line (29AUG my-invoices 4866:39096, audit A30). */
.dhs-stat .cap { display: block; margin-top: 6px; color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); font-weight: var(--dhs-font-weight-regular, 400); }

/* Renew Domains (29AUG 4866:38652, audit A29): rows as cards, native .label chips in the
   badge language (label-* classes are the native JS/markup contract — skin only). */
.domain-renewals .domain-renewal {
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-white, #fff);
    padding: var(--dhs-space-4) var(--dhs-space-5); margin-bottom: var(--dhs-space-4);
}
.domain-renewals .domain-renewal h3 { font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-type-body-strong-weight); margin: 0 0 4px; }
.domain-renewals .domain-renewal .label {
    display: inline-flex; align-items: center; padding: 3px 10px;
    border-radius: var(--dhs-radius-pill); font-size: var(--dhs-type-caption-size);
    font-weight: var(--dhs-font-weight-semibold);
    background: var(--dhs-color-surface-tint, #F9FAFB); color: var(--dhs-color-ink-700);
    border: 1px solid var(--dhs-color-line-300);
}
.domain-renewals .domain-renewal .label-success { background: var(--dhs-color-status-success-tint); color: var(--dhs-color-status-success-text); border-color: transparent; }
.domain-renewals .domain-renewal .label-warning { background: var(--dhs-color-status-warning-tint); color: var(--dhs-color-status-warning-deep); border-color: transparent; }
.domain-renewals .domain-renewal .label-danger { background: var(--dhs-color-status-danger-tint); color: var(--dhs-color-status-danger-text); border-color: transparent; }

/* Transfer Domain 2-col + vertical timeline (29AUG 4866:35834, audit A27). */
.dhs-dt2col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--dhs-space-5); align-items: start; margin-bottom: var(--dhs-space-6); }
.dhs-dtsteps { list-style: none; margin: 0; padding: 0; }
.dhs-dtsteps li { position: relative; padding: 0 0 var(--dhs-space-5) 34px; }
.dhs-dtsteps li::before {
    content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px;
    border-radius: 50%; border: 5px solid var(--dhs-color-brand-600);
    background: var(--dhs-color-surface-white, #fff);
}
.dhs-dtsteps li:not(:last-child)::after {
    content: ""; position: absolute; left: 8px; top: 24px; bottom: 2px; width: 2px;
    background: var(--dhs-color-brand-600);
}
.dhs-dtsteps li:last-child { padding-bottom: 0; }
.dhs-dtsteps b { display: block; color: var(--dhs-color-ink-900); font-size: var(--dhs-type-body-strong-size); margin-bottom: 2px; }
.dhs-dtsteps span { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); line-height: 1.5; }

/* Register-a-Domain "from" chips + promo pair (29AUG 4866:37311, audit A26). */
.dhs-tldfromchips { display: flex; flex-wrap: wrap; gap: var(--dhs-space-2); margin: var(--dhs-space-4) 0 var(--dhs-space-2); }
.dhs-tldfromchip {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 5px 12px; border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-pill); background: var(--dhs-color-surface-white, #fff);
    color: var(--dhs-color-ink-700); font-size: var(--dhs-type-caption-size);
}
.dhs-tldfromchip b { color: var(--dhs-color-ink-900); }
.dhs-drpromo { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--dhs-space-4); }

/* Confirm Plan Change (29AUG 5044:33775, audit A18 — upgradesummary.tpl override). */
.dhs-upsum__grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(300px, 2fr); gap: var(--dhs-space-5); align-items: start; }
@media (max-width: 991.98px) { .dhs-upsum__grid { grid-template-columns: 1fr; } }
.dhs-upsum__rows { display: flex; flex-direction: column; gap: var(--dhs-space-2); margin-bottom: var(--dhs-space-4); }
.dhs-upsum__rows > div { display: flex; justify-content: space-between; gap: var(--dhs-space-3); color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }
.dhs-upsum__rows b { font-variant-numeric: tabular-nums; }
.dhs-upsum__due { border-top: 1px solid var(--dhs-color-line-100); padding-top: var(--dhs-space-2); margin-top: var(--dhs-space-1); }
.dhs-upsum__due span { font-weight: var(--dhs-type-body-strong-weight); color: var(--dhs-color-ink-900); }
.dhs-upsum__due b { font-size: 20px; color: var(--dhs-color-brand-900); }
.dhs-upsum__promo { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; }
.dhs-upsum__promo .dhs-input { flex: 1 1 160px; }

/* Manage Hosting Plan (29AUG 5017:12516, audit A17): current-plan card, usage tiles, plan grid. */
.dhs-plancard__price { display: flex; flex-direction: column; align-items: flex-end; gap: var(--dhs-space-2); }
.dhs-plancard__amount { font-size: 24px; line-height: 30px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-plancard__amount small { font-size: var(--dhs-type-body-sm-size); font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-400); }
.dhs-planusage { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--dhs-space-4); }
.dhs-planusage__tile { border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-4); background: var(--dhs-color-surface-white, #fff); }
.dhs-planusage__hd { display: flex; align-items: center; gap: var(--dhs-space-2); margin-bottom: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-planusage__hd b { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-900); }
.dhs-planusage__hd > span:last-child { margin-left: auto; color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); font-variant-numeric: tabular-nums; }
.dhs-planusage__ic { flex: none; display: inline-flex; color: var(--dhs-color-brand-600); }
.dhs-planusage__ic svg { width: 18px; height: 18px; }
.dhs-planshead { font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-type-h3-weight); color: var(--dhs-color-ink-900); margin: var(--dhs-space-6) 0 var(--dhs-space-4); }
.dhs-plansgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--dhs-space-4); }
.dhs-planopt {
    display: flex; flex-direction: column; gap: var(--dhs-space-2);
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-white, #fff); padding: var(--dhs-space-5);
}
.dhs-planopt--featured { border: 2px solid var(--dhs-color-brand-600); background: var(--dhs-color-brand-050); }
.dhs-planopt__hd { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-2); }
.dhs-planopt__hd b { font-size: var(--dhs-type-body-strong-size); color: var(--dhs-color-ink-900); }
.dhs-planopt__price { font-size: 26px; line-height: 34px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-planopt__price small { font-size: var(--dhs-type-body-sm-size); font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-400); }
.dhs-planopt__bullets { list-style: none; margin: 0 0 var(--dhs-space-3); padding: 0; color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); display: flex; flex-direction: column; gap: 6px; }
.dhs-planopt__bullets li::before { content: "\2022"; color: var(--dhs-color-ink-400); margin-right: 8px; }
.dhs-planopt__cta { margin-top: auto; justify-content: center; text-align: center; width: 100%; }

/* Alert-band danger variant + monitor tile grid (29AUG proactive-alerts 4847:18944). */
.dhs-dash-alert--danger {
    border-color: var(--dhs-color-status-danger-600);
    background: var(--dhs-color-status-danger-tint);
}
.dhs-dash-alert--danger .dhs-dash-alert__ic,
.dhs-dash-alert--danger .dhs-dash-alert__close { color: var(--dhs-color-status-danger-600); }
.dhs-dash-alert--danger .dhs-dash-alert__txt { color: var(--dhs-color-status-danger-text, #7A271A); }
.dhs-dash-alert--danger .dhs-btn.dhs-btn-fill { background: var(--dhs-color-status-danger-600); border-color: var(--dhs-color-status-danger-600); }
.dhs-monitors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dhs-space-4); padding: 0 var(--dhs-space-5) var(--dhs-space-5); }
@media (max-width: 767.98px) { .dhs-monitors { grid-template-columns: 1fr; } }
.dhs-monitor { border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-4) var(--dhs-space-5); background: var(--dhs-color-surface-white, #fff); }
/* flex-wrap: on a 390px card the title block + status chip exceed the row and the chip
   clipped off-card ("Healt…" — 2026-08-29 mobile pass); wrapped, the chip drops beneath. */
.dhs-monitor__hd { display: flex; align-items: flex-start; gap: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-monitor__hd > span:nth-child(2) { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dhs-monitor__hd b { font-size: var(--dhs-type-body-strong-size); color: var(--dhs-color-ink-900); }
.dhs-monitor__hd small { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-caption-size); }
.dhs-monitor__ic {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-600);
}
.dhs-monitor__ic svg { width: 18px; height: 18px; }
.dhs-monitor__val { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: var(--dhs-space-3) 0 var(--dhs-space-1); }
.dhs-monitor__ft { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); }

/* Guest drawer sign-in-to-chat prompt (user directive 2026-08-29). */
.dhs-help-guestchat {
    margin-top: var(--dhs-space-4); padding: var(--dhs-space-4);
    border: 1px solid var(--dhs-color-brand-300); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-brand-050);
}
.dhs-help-guestchat b { display: block; color: var(--dhs-color-ink-900); margin-bottom: 4px; }
.dhs-help-guestchat p { margin: 0 0 10px; color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }
.dhs-help-guestchat span { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; }

/* Chat Assistant page grid + domain-idea chips (29AUG 4847:18503). */
.dhs-abby-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: var(--dhs-space-5); align-items: start; }
@media (max-width: 991.98px) { .dhs-abby-grid { grid-template-columns: 1fr; } }
.dhs-domainideas { display: flex; flex-wrap: wrap; gap: var(--dhs-space-2); }
.dhs-domainidea {
    display: inline-flex; align-items: center; padding: 6px 12px;
    border: 1px solid var(--dhs-color-brand-300); border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-900);
    font-weight: var(--dhs-font-weight-semibold); font-size: var(--dhs-type-body-sm-size);
    text-decoration: none;
}
.dhs-domainidea:hover { border-color: var(--dhs-color-brand-600); text-decoration: none; }

/* Email-quick tool cards (29AUG 4847:18014): horizontal icon+title, desc, Configure link. */
.dhs-eq-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--dhs-space-4); }
.dhs-eq-card {
    display: flex; flex-direction: column; gap: var(--dhs-space-2);
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-white, #fff); padding: var(--dhs-space-5);
    text-decoration: none; color: inherit;
}
.dhs-eq-card:hover { box-shadow: var(--dhs-shadow-sm); border-color: var(--dhs-color-brand-300); text-decoration: none; }
.dhs-eq-card__hd { display: flex; align-items: center; gap: var(--dhs-space-3); }
.dhs-eq-card__hd b { font-size: var(--dhs-type-body-strong-size); color: var(--dhs-color-ink-900); }
.dhs-eq-card__ico {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-600);
}
.dhs-eq-card__ico svg { width: 18px; height: 18px; }
.dhs-eq-card__desc { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); line-height: 1.5; }
.dhs-eq-card__cta { color: var(--dhs-color-brand-600); font-weight: var(--dhs-font-weight-semibold); margin-top: auto; }

/* Email Quick Actions' Webmail card (emailquick.tpl, 2026-09-21). Three states share this card:
   a mailbox picker, a first-mailbox create form, and a plain login link when cPanel is unreadable.

   .dhs-webmail-form — mailbox <select> plus the hero CTA as a submit button on one row; both go
   full width and stack on phones. The border/cursor reset is needed because .dhs-hero-cta is
   written for <a> and this is the only place it is a <button>.

   .dhs-mng-form is built to sit DIRECTLY inside a .dhs-mng-card under its header, so it carries
   its own gutter; inside .dhs-mng-card__bd that gutter is doubled. Drop it rather than fork the
   grid, so the responsive behaviour is inherited untouched. .dhs-eq-empty likewise strips the
   dashed card framing .dhs-empty picks up in 97-public: no card inside a card. Left-aligned,
   because it introduces a left-aligned form.

   Double-class on .dhs-empty.dhs-eq-empty for the same reason .dhs-shortcuts--rich uses it below:
   the framing it undoes is declared LATER in the cascade (97-public), so a single class at equal
   specificity would lose. */
.dhs-webmail-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.dhs-webmail-form .dhs-select { flex: 1 1 240px; max-width: 420px; }
.dhs-webmail-form .dhs-hero-cta { border: 0; cursor: pointer; font-family: inherit; line-height: inherit; }
.dhs-mng-card__bd > .dhs-mng-form { padding: 0; }
.dhs-empty.dhs-eq-empty { padding: 0 0 var(--dhs-space-4); border: 0; background: none; text-align: left; }
.dhs-eq-empty .dhs-empty__ico { margin-bottom: var(--dhs-space-3); }
.dhs-eq-empty .dhs-empty__msg { margin-bottom: 0; }
@media (max-width: 575.98px) {
    .dhs-webmail-form .dhs-select { flex-basis: 100%; max-width: none; }
    .dhs-webmail-form .dhs-hero-cta { width: 100%; justify-content: center; }
}

/* Rich tinted tiles (29AUG manage-cpanel 4847:17689): brand-050 cards, centered stack. */
/* Double-class: the base .dhs-shortcuts grid lives later in the cascade (90-legacy). */
.dhs-shortcuts.dhs-shortcuts--rich { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--dhs-space-4); }
.dhs-shortcuts--rich .dhs-shortcut {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    gap: var(--dhs-space-2); padding: var(--dhs-space-5) var(--dhs-space-4);
    background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-300);
    border-radius: var(--dhs-radius-lg); text-decoration: none;
}
.dhs-shortcuts--rich .dhs-shortcut:hover { box-shadow: var(--dhs-shadow-sm); border-color: var(--dhs-color-brand-600); }
.dhs-shortcuts--rich .dhs-shortcut__ico {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-600); color: #fff;
}
.dhs-shortcuts--rich .dhs-shortcut__ico svg { width: 20px; height: 20px; }
.dhs-shortcuts--rich .dhs-shortcut__label { font-weight: var(--dhs-type-body-strong-weight); color: var(--dhs-color-ink-900); }
.dhs-shortcuts--rich .dhs-shortcut__desc { line-height: 1.45; }

/* Website-builder entry modes (4666:15496, reworked 2026-08-22) — Sitejet's own two doors,
   "Build with AI" and "Choose a template" (get_sso_link ui_mode=ai|template), replacing the
   former in-portal template gallery. Wraps to one column on phones — no horizontal overflow. */
.dhs-sb-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--dhs-space-4); }
.dhs-sb-mode {
    display: flex; flex-direction: column; gap: var(--dhs-space-2); align-items: flex-start;
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4); background: var(--dhs-color-surface-white, #fff);
}
.dhs-sb-mode__title { font-size: var(--dhs-type-body-size); font-weight: 700; color: var(--dhs-color-ink-900); }
.dhs-sb-mode__desc { font-size: 12.5px; line-height: 1.45; color: var(--dhs-color-ink-500); margin-bottom: var(--dhs-space-1); }

/* Quiet explainer band (manage-ssl "SSL is a status, not a task"; usage upgrade CTA). */
.dhs-mng-note {
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-lg);
    background: var(--dhs-color-surface-tint, #F9FAFB);
    padding: var(--dhs-space-4) var(--dhs-space-5); margin-bottom: var(--dhs-space-5);
}
.dhs-mng-note p { margin: var(--dhs-space-1) 0 0; color: var(--dhs-color-ink-700); font-size: var(--dhs-type-body-sm-size); }
.dhs-mng-note--warn { border-color: var(--dhs-color-warn-600, #F79009); background: #FFFAEB; }
/* Brand-tinted variant with icon chip (29AUG manage-ssl 4833:53095). */
.dhs-mng-note--brand {
    display: flex; align-items: flex-start; gap: var(--dhs-space-4);
    border-color: var(--dhs-color-brand-300);
    background: linear-gradient(90deg, var(--dhs-color-brand-050) 0%, #fff 85%);
}
.dhs-mng-note__ic {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: #fff; border: 1px solid var(--dhs-color-brand-300);
    color: var(--dhs-color-brand-600);
}
.dhs-mng-note__ic svg { width: 20px; height: 20px; }

/* Manage-usage (4666:14749): disk + traffic two-up, real-data stat trio, bar chart. */
.dhs-usage-grid { display: grid; grid-template-columns: minmax(240px, 1fr) 2fr; gap: var(--dhs-space-5); align-items: stretch; margin-bottom: var(--dhs-space-5); }
@media (max-width: 991.98px) { .dhs-usage-grid { grid-template-columns: 1fr; } }
.dhs-usage-disk { display: flex; align-items: center; gap: var(--dhs-space-5); padding: 0 var(--dhs-space-5) var(--dhs-space-5); flex-wrap: wrap; }
.dhs-usage-disk__meta { display: flex; flex-direction: column; gap: var(--dhs-space-2); align-items: flex-start; }
.dhs-usage-disk__mb { font-weight: var(--dhs-type-body-strong-weight); color: var(--dhs-color-ink-900); font-variant-numeric: tabular-nums; }
/* 29AUG manage-usage frame: the MB pair reads as the card's headline figure. */
.dhs-usage-disk__mb--lg { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); }
/* The 90-legacy radial-gradient mask renders as a FILLED pie in the capture browser (mask
   silently unapplied — observed live 2026-08-29); this inner-circle overlay produces the
   frame's ring on every engine. Sits under __center (which is a sibling stacked later). */
.dhs-donut__ring { position: relative; }
.dhs-donut__ring::after {
    content: ""; position: absolute; inset: var(--thick, 12px);
    background: var(--dhs-color-surface-white, #fff); border-radius: 50%;
}
/* Double-class scope: 90-legacy re-declares --thick:12px later in the cascade. */
.dhs-portal-usage .dhs-donut { --thick: 20px; }
.dhs-usage-stats { display: flex; gap: var(--dhs-space-6); padding: 0 var(--dhs-space-5) var(--dhs-space-4); flex-wrap: wrap; }
.dhs-usage-stats .num { display: block; font-size: var(--dhs-type-h3-size); font-weight: 700; color: var(--dhs-color-ink-900); font-variant-numeric: tabular-nums; }
.dhs-usage-stats .lbl { font-size: var(--dhs-type-caption-size, 12px); color: var(--dhs-color-ink-500); }
.dhs-usage-chart { display: flex; align-items: flex-end; gap: 2px; height: 110px; padding: 0 var(--dhs-space-5); }
.dhs-usage-chart > div { flex: 1; background: var(--dhs-color-brand-600); min-height: 3px; border-radius: 3px 3px 0 0; }
.dhs-usage-chart__axis { display: flex; justify-content: space-between; padding: var(--dhs-space-2) var(--dhs-space-5) var(--dhs-space-5); font-size: 11.5px; color: var(--dhs-color-ink-500); }

/* --- Checkout funnel: 72px icon rail (user decision 2026-08-16) -----------
   The funnel + pay-in-place pages (body.dhs-funnel, header.tpl's $dhsFunnelPage
   list) keep the shell but collapse the sidebar to an icon rail — an undrawn
   state extrapolated from 4566:41188. Clicking a section icon expands the full
   sidebar as an overlay + scrim, reusing the mobile More-sheet state
   (body.dhs-sb-open) — see clientsidebar.tpl's IIFE. These rules sit ABOVE the
   <=991.98px block on purpose: on phones that block re-takes the sidebar into
   its off-canvas sheet and the rail column collapses with the grid. */
body.dhs-funnel .dhs-shell { grid-template-columns: 72px minmax(0, 1fr); }
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb {
    padding: var(--dhs-space-6) var(--dhs-space-2);
    gap: var(--dhs-space-3);
    align-items: center;
}
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__brand,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__search,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__lbl,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__badge,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__chev,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__sub,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__userid,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__usermenu { display: none; }
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__nav,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__foot { align-items: center; width: 100%; }
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__item,
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__secbtn {
    justify-content: center;
    width: 44px;
    padding: var(--dhs-space-2);
}
body.dhs-funnel:not(.dhs-sb-open) .dhs-sb__usercard {
    border: 0;
    padding: var(--dhs-space-1);
    justify-content: center;
}
/* Expanded: the full 272px sidebar overlays the rail (scrim behind), any width. */
body.dhs-funnel .dhs-sb__scrim { display: block; }
body.dhs-funnel .dhs-sb__scrim[hidden] { display: none; }
body.dhs-funnel.dhs-sb-open .dhs-sb {
    position: fixed;
    inset: 0 auto 0 0;
    width: 272px;
    z-index: 60;
    box-shadow: var(--dhs-shadow-lg);
}

/* Funnel two-column checkout grids collapse one rung earlier: the rail leaves
   ~548px for the main column at a 1200px viewport, which the hard 420px/380px
   side columns (98-cart.css:1607/:546) would squeeze below usability by 992px.
   Scoped to the funnel only — guests keep 98-cart.css's own behaviour. *Both*
   side variants; #order-standard_cart.dhs-of carried so this outranks :546. */
@media (max-width: 1199.98px) {
    body.dhs-funnel #order-standard_cart.dhs-of .dhs-co-grid > .dhs-co-side,
    body.dhs-funnel #order-standard_cart.dhs-of .dhs-of-body > .row > .secondary-cart-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        position: static;
        margin-top: var(--dhs-space-6);
    }
}

/* --- Bottom tab bar + slide-over sheet (<=991.98px) ----------------------- */
.dhs-tabbar { display: none; }
/* Scrim geometry lives on the BASE rule (display:none by default) so every rule that turns it
   on gets a full-viewport clickable surface. It used to live only inside the <=991.98px media
   query — so on desktop checkout, `body.dhs-funnel .dhs-sb__scrim { display:block }` produced a
   static zero-height div: the click-to-collapse handler was wired but unreachable, and only Esc
   closed the expanded rail (UAT Part-5 N10). z-index 50 sits under the expanded sidebar (60)
   and over the sticky bulk bar (20) — modal while open, by design. */
.dhs-sb__scrim {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 50;
    background: rgba(24, 29, 39, 0.45); /* ink-900 @ 45% */
}

@media (max-width: 991.98px) {
    /* UAT 2026-09-05 ("radio buttons not working — register vs transfer, payment options"):
       the bare .dhs-shell selector here LOSES to body.dhs-funnel .dhs-shell above — a media
       query adds no specificity — so every FUNNEL page (checkout, viewcart, the configure*
       pages) kept the 72px rail column on phones. With the sidebar position:fixed (out of
       grid flow) down here, .dhs-shell-main auto-placed INTO that 72px column: the whole
       checkout rendered as a 72px-wide sliver, payment rows 32px wide, radios untappable.
       Non-funnel pages never matched the funnel rule, which is why only these flows broke.
       The funnel selector must be re-declared at its own specificity inside this block. */
    .dhs-shell,
    body.dhs-funnel .dhs-shell { grid-template-columns: minmax(0, 1fr); }

    .dhs-sb {
        position: fixed;
        inset: 0 auto 0 0;
        width: min(320px, 86vw);
        z-index: 60;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        box-shadow: none;
    }
    body.dhs-sb-open .dhs-sb { transform: translateX(0); box-shadow: var(--dhs-shadow-lg); }
    body.dhs-sb-open { overflow: hidden; }
    .dhs-sb__close { display: inline-flex; }

    /* Geometry now inherited from the base .dhs-sb__scrim rule above the media query. */
    .dhs-sb__scrim { display: block; }
    .dhs-sb__scrim[hidden] { display: none; }

    /* JS-blocked fallback (mirror of #dhsNavCk in 97-public.css): the tab bar's More <label>
       checks #dhsSbCk and slides the sheet in with no script; the sheet's close <label>
       unchecks it. The id selectors outrank the [hidden]/base rules. Inert when the IIFE is
       running (it preventDefault's the labels and keeps the box unchecked). */
    #dhsSbCk:checked ~ .dhs-sb { transform: translateX(0); box-shadow: var(--dhs-shadow-lg); }
    /* !important: the scrim ships with the hidden attribute and Bootstrap 4 (parent theme)
       has `[hidden] { display: none !important }` — see the #dhsNavCk note in 97-public.css. */
    #dhsSbCk:checked ~ .dhs-sb__scrim { display: block !important; }

    .dhs-tabbar {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 45;
        background: var(--dhs-color-surface-white);
        border-top: 1px solid var(--dhs-color-line-100);
        padding: var(--dhs-space-1) 0 max(var(--dhs-space-1), env(safe-area-inset-bottom));
    }
    .dhs-tabbar a,
    .dhs-tabbar button,
    .dhs-tabbar label {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        padding: var(--dhs-space-1) 0;
        border: 0;
        background: none;
        color: var(--dhs-color-ink-500);
        font-family: inherit;
        font-size: var(--dhs-type-caption-size);
        line-height: var(--dhs-type-caption-line);
        text-decoration: none;
        cursor: pointer;
    }
    .dhs-tabbar a.is-active { color: var(--dhs-color-brand-700); }
    .dhs-tabbar svg { width: 22px; height: 22px; }

    /* Keep page content and the floating FABs clear of the tab bar. */
    body.dhs-leftnav .dhs-shell-main { padding-bottom: 64px; }
    /* #dhs-fabs (the container) is the fixed element — the .dhs-fab buttons inside it are
       static flex children, so the previous `.dhs-fab { bottom: ... }` rule was a no-op and
       the Help FAB sat exactly on top of the tab bar's More control (measured live
       2026-08-18 at 390px: FAB box 320,774 48x48 vs More box 312,782 78x50 — every center
       tap on More hit the FAB instead). */
    body.dhs-leftnav #dhs-fabs { bottom: calc(64px + var(--dhs-space-4) + env(safe-area-inset-bottom, 0px)); }
    /* Bottom-sticky cart bars (KD-83 .dhs-bulkbar, z-20) would sit BEHIND the
       fixed tab bar (z-45) now that the funnel keeps the tab bar on phones. */
    /* 68px, not 64: the tab bar measures 67px at 390 (56px row + its top/bottom padding) — at
       64 the bar sat 3px under it (masspay contract eval, 2026-09-04). */
    body.dhs-leftnav .dhs-bulkbar { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }

    .dhs-tb { padding: var(--dhs-space-3) var(--dhs-space-4); }
    .dhs-tb__userid { display: none; } /* chip collapses to the avatar on phones */

    /* --- "Account & More" sheet presentation (mobile-more-full 4613:52053) ---
       Same markup as the desktop sidebar, restyled: title instead of brand, user card on
       top, sections flattened into always-open groups under uppercase eyebrows, chevroned
       rows, centered red Logout. Every link the desktop shell carries stays reachable —
       grouping itself remains WHMCS's real menu structure (parity contract), only the
       presentation matches the frame. */
    .dhs-sb__brand { display: none; }
    .dhs-sb__sheettitle {
        display: block; font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-type-h3-weight);
        color: var(--dhs-color-ink-900);
    }
    .dhs-sb__sheetuser {
        display: flex; align-items: center; gap: var(--dhs-space-3);
        margin: 0 var(--dhs-space-4) var(--dhs-space-3);
        padding: var(--dhs-space-3) var(--dhs-space-4);
        background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100);
        border-radius: var(--dhs-radius-lg); text-decoration: none; color: inherit;
    }
    .dhs-sb__sheetuser .dhs-sb__userid { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
    .dhs-sb__sheetuser .dhs-sb__userid b { font-size: var(--dhs-type-body-strong-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dhs-sb__sheetuser .dhs-sb__userid small { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-caption-size); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .dhs-sb__editpen {
        flex: none; display: inline-flex; align-items: center; justify-content: center;
        width: 34px; height: 34px; border-radius: 50%;
        background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100);
        color: var(--dhs-color-ink-700);
    }
    .dhs-sb__editpen svg { width: 15px; height: 15px; }
    /* Flatten the accordion: group buttons become plain eyebrow headers, sublists stay open
       (overrides the IIFE's hidden attribute — a no-JS session is identical). Toggling still
       flips [hidden] underneath, harmlessly. */
    .dhs-sb__secbtn {
        pointer-events: none;
        font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
        color: var(--dhs-color-ink-500); background: none;
    }
    .dhs-sb__secbtn .dhs-sb__ic, .dhs-sb__secbtn .dhs-sb__chev { display: none; }
    /* !important: the IIFE collapses sections by setting the hidden attribute, and the parent
       Bootstrap ships `[hidden] { display: none !important }` — same counter as the scrim's
       #dhsSbCk rule above. */
    .dhs-sb__sub, .dhs-sb__sub[hidden] { display: flex !important; }
    /* Chevron affordance on every row, per the frame. */
    .dhs-sb__sub a::after, .dhs-sb__item::after {
        content: ""; margin-left: auto; width: 7px; height: 7px; flex: none;
        border-right: 2px solid var(--dhs-color-ink-300, #B5BAC1);
        border-bottom: 2px solid var(--dhs-color-ink-300, #B5BAC1);
        transform: rotate(-45deg);
    }
    .dhs-sb__sub a { display: flex; align-items: center; }
    /* Bottom user card + popover give way to the sheet's own account rows. */
    .dhs-sb__user { display: none; }
    .dhs-sb__sheetacct { display: flex; flex-direction: column; padding: var(--dhs-space-2) 0 var(--dhs-space-4); }
    .dhs-sb__sheetacct a {
        display: flex; align-items: center; gap: var(--dhs-space-2);
        padding: var(--dhs-space-2) var(--dhs-space-4);
        color: var(--dhs-color-ink-700); text-decoration: none;
        font-size: var(--dhs-type-body-size);
    }
    .dhs-sb__sheetacct a:not(.dhs-sb__logout)::after {
        content: ""; margin-left: auto; width: 7px; height: 7px;
        border-right: 2px solid var(--dhs-color-ink-300, #B5BAC1);
        border-bottom: 2px solid var(--dhs-color-ink-300, #B5BAC1);
        transform: rotate(-45deg);
    }
    .dhs-sb__sheetacct .dhs-sb__logout {
        justify-content: center; margin-top: var(--dhs-space-3);
        color: var(--dhs-color-status-danger-600); font-weight: var(--dhs-font-weight-semibold);
    }
    .dhs-sb__sheetacct .dhs-sb__logout svg { width: 18px; height: 18px; }
}

/* Sheet-only elements stay out of the desktop sidebar. */
@media (min-width: 992px) {
    .dhs-sb__sheettitle, .dhs-sb__sheetuser, .dhs-sb__sheetacct { display: none; }
}

/* --- Footer: same content, the design's light row (Figma 4580:47348 bottom) --- */
body.dhs-leftnav .dhs-slim-foot {
    background: var(--dhs-color-surface-white);
    color: var(--dhs-color-ink-400);
    border-top: 1px solid var(--dhs-color-line-100);
    padding: var(--dhs-space-4) var(--dhs-space-6);
    font-size: var(--dhs-type-body-sm-size);
    text-align: left;
}
body.dhs-leftnav .dhs-slim-foot a { color: var(--dhs-color-brand-700); text-decoration: none; }
body.dhs-leftnav .dhs-slim-foot a:hover { text-decoration: underline; }
/* The footer ends up a direct grid child of .dhs-shell, so auto-placement dropped it into
   the SIDEBAR column (visible on every authed capture; unreadable at the funnel's 72px rail —
   found on the A19 upgrade-payment capture, 2026-08-29). Pin it under the CONTENT column,
   where every 29AUG manage frame draws it. Harmless if a page ever nests it correctly. */
body.dhs-leftnav .dhs-shell > .dhs-slim-foot { grid-column: 2; }
@media (max-width: 991.98px) { body.dhs-leftnav .dhs-shell > .dhs-slim-foot { grid-column: 1; } }

/* --- Print: the shell is chrome, not content ------------------------------ */
@media print {
    .dhs-sb, .dhs-sb__scrim, .dhs-tabbar, .dhs-tb__actions { display: none !important; }
    .dhs-shell { display: block; }
    body.dhs-leftnav { background: var(--dhs-color-surface-white); }
}
.dhs-onb-reco { margin-top: var(--dhs-space-6); }
.dhs-onb-reco .dhs-eq-cards { margin-top: var(--dhs-space-4); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }

/* --- user-security (rp=/user/security) — 2026-09-03 rogue-view fix -------------------------
   The native 2FA enable/disable toggle hides its counterpart elements with theme.min.css's
   `.w-hidden` (display:none, NO !important). custom.css loads after theme.min.css, so the
   theme's .dhs-btn display rule would defeat the hide and show BOTH buttons/status chips at
   once. Scoped to the native toggle class only. */
.twofa-config-link.w-hidden { display: none !important; }

/* System modal (#modalAjax, restored in footer.tpl the same day): brand-skin the native
   Bootstrap chrome so AJAX dialogs (the 2FA enrolment wizard among them) match the theme.
   COSMETIC ONLY — every id/class whmcs.js and the loaded wizard markup bind to stays native;
   btn-danger keeps Bootstrap's red (destructive intent), gaining only the pill radius. */
.system-modal .modal-content { border-radius: var(--dhs-radius-lg); border: 1px solid var(--dhs-color-line-100); }
.system-modal .modal-header { background: var(--dhs-color-surface-050); border-radius: var(--dhs-radius-lg) var(--dhs-radius-lg) 0 0; }
.system-modal .modal-title { font-family: var(--dhs-font-family-display); font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.system-modal .btn-primary { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); border-radius: var(--dhs-radius-pill); font-weight: var(--dhs-font-weight-semibold); }
.system-modal .btn-primary:hover, .system-modal .btn-primary:focus { background: var(--dhs-color-derived-brand-action-hover); border-color: var(--dhs-color-derived-brand-action-hover); }
.system-modal .btn-default, .system-modal .btn-secondary, .system-modal .btn-danger { border-radius: var(--dhs-radius-pill); }


/* --- Mass Payment (masspay.tpl, 2026-09-04) — NO Figma frame at either width -------------
   Extrapolated: invoice cards = the final mobile invoices card anatomy (5090:32410, the
   #tableInvoicesList stacking above); the sticky pay bar = the store's Cart_Summary_Sticky
   (5169:15885) built on the cart's .dhs-bulkbar (97-public.css), already lifted clear of the
   tab bar at <=991.98px by the body.dhs-leftnav .dhs-bulkbar rule in the mobile block above.
   The bar has never held a form control before — the select skin is the only new idea. All
   .dhs-mp-* selectors live only here (classcheck LAYERED untouched). */
.dhs-mp-help { color: var(--dhs-color-ink-400); font-size: var(--dhs-type-body-sm-size); margin: 0 0 var(--dhs-space-4); max-width: 70ch; }
.dhs-mp-list { display: grid; gap: var(--dhs-space-3); margin-bottom: var(--dhs-space-5); }
.dhs-mp-inv { background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-3) var(--dhs-space-4); min-width: 0; }
.dhs-mp-inv__num { font-size: var(--dhs-type-body-strong-size); font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-2); }
.dhs-mp-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--dhs-space-1); }
.dhs-mp-items li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--dhs-space-4); align-items: baseline; font-size: var(--dhs-type-body-sm-size); }
.dhs-mp-items__desc { color: var(--dhs-color-ink-500); overflow-wrap: anywhere; min-width: 0; }
.dhs-mp-items__amt { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-semibold); font-variant-numeric: tabular-nums; white-space: nowrap; }
.dhs-mp-summary { margin: 0 0 var(--dhs-space-5); padding: var(--dhs-space-3) var(--dhs-space-4); background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); display: grid; gap: var(--dhs-space-2); }
.dhs-mp-summary > div { display: flex; justify-content: space-between; gap: var(--dhs-space-4); font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }
.dhs-mp-summary dt { font-weight: var(--dhs-font-weight-semibold); margin: 0; }
.dhs-mp-summary dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--dhs-color-ink-900); }
.dhs-mp-summary__total { border-top: 1px solid var(--dhs-color-line-200); padding-top: var(--dhs-space-2); font-size: 16px; }
.dhs-mp-summary__total dt, .dhs-mp-summary__total dd { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-bold); }
.dhs-mp-paybar { border-radius: var(--dhs-radius-lg); margin-top: var(--dhs-space-2); }
.dhs-mp-paybar__method { display: flex; align-items: center; gap: var(--dhs-space-3); margin: 0; color: #fff; font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); }
.dhs-mp-paybar__method select.form-control { width: auto; min-width: 220px; height: 40px; padding: 0 var(--dhs-space-8) 0 var(--dhs-space-4); background-color: #fff; color: var(--dhs-color-ink-900); border: 1px solid transparent; border-radius: var(--dhs-radius-pill); font-size: 14px; }
.dhs-mp-paybar__method select.form-control:focus { box-shadow: 0 0 0 3px rgba(255, 255, 255, .45); border-color: #fff; }
.dhs-mp-paybar .dhs-btn.dhs-btn-fill { background: #fff; color: var(--dhs-color-brand-900); border-color: #fff; white-space: nowrap; }
.dhs-mp-paybar .dhs-btn.dhs-btn-fill:hover, .dhs-mp-paybar .dhs-btn.dhs-btn-fill:focus-visible { background: var(--dhs-color-surface-100); color: var(--dhs-color-brand-900); border-color: var(--dhs-color-surface-100); }
.dhs-mp-empty { text-align: center; padding: var(--dhs-space-8) var(--dhs-space-4); color: var(--dhs-color-ink-400); display: grid; gap: var(--dhs-space-4); justify-items: center; }
@media (max-width: 575.98px) {
    .dhs-mp-paybar { border-radius: var(--dhs-radius-lg) var(--dhs-radius-lg) 0 0; margin-left: calc(-1 * var(--dhs-space-4)); margin-right: calc(-1 * var(--dhs-space-4)); }
    .dhs-mp-paybar .dhs-mp-paybar__r { width: 100%; display: grid; grid-template-columns: 1fr; gap: var(--dhs-space-3); }
    .dhs-mp-paybar__method { display: grid; gap: var(--dhs-space-1); }
    .dhs-mp-paybar__method select.form-control { width: 100%; min-width: 0; }
    .dhs-mp-paybar .dhs-btn.dhs-btn-fill { width: 100%; justify-content: center; }
}

/* Sticky pay bar + floating Chat Assistant launcher — BOTH pinned to the bottom edge. Found once
   the two shipped together (2026-09-04, measured at 390): launcher 312-368 x 708-764 sat on the
   right end of the full-width Make Payment button (32-358 x 716-760). On any page carrying the
   pay bar, lift the whole #dhs-fabs stack above it. The bar's height is its own fixed content
   (total + method + button): 196px at <=575.98 (three stacked rows), 140px between 576 and
   991.98 (measured at 768 — the method/button row wraps under the total there); the 68px is
   the tab-bar lift the bar itself uses. At >=992 there is no tab bar and the launcher keeps its
   default corner: it overlaps only the bar's empty right-hand padding, 40px clear of Make
   Payment at 1440 (measured), which is accepted. :has() is already relied on elsewhere in this file.
   (1,2,0) outranks the base body.dhs-leftnav #dhs-fabs lift (1,1,0) by specificity, not order. */
@media (max-width: 991.98px) {
    body.dhs-leftnav:has(.dhs-mp-paybar) #dhs-fabs { bottom: calc(68px + 140px + var(--dhs-space-4) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 575.98px) {
    body.dhs-leftnav:has(.dhs-mp-paybar) #dhs-fabs { bottom: calc(68px + 196px + var(--dhs-space-4) + env(safe-area-inset-bottom, 0px)); }
}

/* ==== 22-domainpages.css ================================================== */
/* =========================================================================================
   22 · DOMAIN-MANAGEMENT FAMILY CHROME (2026-08-27)
   clientareadomaindetails / -domaincontactinfo / -domaingetepp + partials/domainhead.tpl.
   No Figma frame exists for this family (design/figma/screens/_INVENTORY.md draws only the
   my-domains list) — extrapolated from the theme's own precedents: My Services' plain-title
   pagehead type scale (.dhs-pagehead), product details' .dhs-navtabs underline strip (D8),
   and the .dhs-chip status vocabulary. The strip element also carries .dhs-navtabs and
   list-group-tab-nav — the former for the shared underline skin (90-legacy.css), the latter
   because core scripts.js keys its bookmark-hash writer and hash-activation sweep off it.
   ========================================================================================= */

.dhs-domhead {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 12px 24px; flex-wrap: wrap; margin: 0 0 18px;
}
.dhs-domhead__id { min-width: 0; }
.dhs-domhead__title { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.dhs-domhead__title h1 {
    font-size: 30px; line-height: 38px; font-weight: 800; color: var(--dhs-ink);
    margin: 0; overflow-wrap: anywhere; /* long domain names must wrap, never overflow (390px) */
}
.dhs-domhead__sub { margin: 6px 0 0; color: var(--dhs-muted); font-size: 14px; }
.dhs-domhead__actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

/* The strip scrolls sideways on phones instead of wrapping into a two-row jumble — same
   reasoning as .dhs-portal-table's mobile pattern: no horizontal PAGE overflow, the element
   owns its own scrolling. */
.dhs-domtabs { margin: 0 0 20px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.dhs-domtabs .nav-item { flex: none; }
.dhs-domtabs .nav-link { white-space: nowrap; }
.dhs-domtabs .nav-link.disabled { color: var(--dhs-muted); pointer-events: none; }

@media (max-width: 575.98px) {
    .dhs-domhead__title h1 { font-size: 24px; line-height: 30px; }
    /* Actions drop under the title at phone widths; buttons stay tappable full-row. */
    .dhs-domhead__actions { width: 100%; }
    .dhs-domhead__actions .dhs-btn { flex: 1 1 auto; text-align: center; }
}

/* ==== 90-legacy.css ======================================================= */
/* DHS child theme overrides for WHMCS "Twenty-One".
   Tokens match DomainHostingSite/app/web/src/theme.css so both frontends carry
   identical Safaricom branding during the coexistence period (see the phased
   cutover plan in Docs/WHMCS_Theme_Feasibility_Analysis.md). */
:root {
    --dhs-green: #43b02a;
    --dhs-green-600: #389323;
    --dhs-green-tint: #ecf4ea;
    --dhs-red: #eb243b;
    --dhs-ink: #1f2733;
    --dhs-muted: #5b6472;
    --dhs-line: #dee3e8;
    --dhs-bg: #f3f6f9;
    --dhs-radius-pill: 999px;
    --dhs-radius-card: 16px;
    --dhs-radius-input: 10px;
    --dhs-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body { font-family: var(--dhs-font); color: var(--dhs-ink); background: var(--dhs-bg); }

/* Twenty-One's primary buttons/links -> Safaricom green, pill radius.
   NOTE: selectors below target the DOCUMENTED Twenty-One button/nav class names;
   confirm exact class names once the licensed parent theme source is available
   (see dev/README.md) - this file is a starting point, not yet visually verified. */
.btn-primary, .btn-success, a.button { background: var(--dhs-green-700); border-color: var(--dhs-green-700); border-radius: var(--dhs-radius-pill); }
.btn-primary:hover, .btn-success:hover, a.button:hover { background: var(--dhs-green-800); border-color: var(--dhs-green-800); }
.card, .panel { border-radius: var(--dhs-radius-card); border-color: var(--dhs-line); }
input, select, textarea { border-radius: var(--dhs-radius-input); }

/* Mobile-first: never let dashboard widgets/tables force horizontal page scroll
   (mirrors the .resp-desktop/.resp-mobile pattern already proven in the SPA). */
@media (max-width: 575.98px) {
    table.table-responsive-stack, .dhs-portal-table { display: block; }
    .dhs-portal-table thead { display: none; }
    .dhs-portal-table tr { display: block; margin-bottom: 12px; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card); padding: 8px; }
    /* KD-61 §5 closure (2026-08-16): the padding here was DEAD (defeated by the base rule)
       — removed, not activated. The shell chrome re-declares its own cell padding. */
    /* white-space: normal is LOAD-BEARING: the base `.dhs-portal-table td:last-child` rule
       sets nowrap for desktop action cells, and a stacked colspan cell (every empty-state
       message) is by definition the last child — SSL's "No purchased certificates…" sentence
       rendered 1036px wide and clipped off the card at 390 (found 2026-08-29, mobile pass). */
    .dhs-portal-table td { display: flex; justify-content: space-between; border: none; white-space: normal; overflow-wrap: anywhere; min-width: 0; }
    /* tr td:last-child (0,2,2) so this outranks the desktop `.dhs-portal-table td:last-child`
       nowrap rule below (0,2,1) — specificity, not order, decides here. */
    .dhs-portal-table tr td:last-child { white-space: normal; }
    /* Figma 4673:15511 / 4667:24327 (mobile DNS): the stacked cells DO show their column
       label — the templates already carry data-label attrs, this renders them. Was the
       "interim labelled card stack" gap in Design_Gap_Analysis §5.2: attrs present,
       ::before rule only ever written for .dhs-table, never this pattern. */
    .dhs-portal-table td[data-label]::before { content: attr(data-label); font-weight: 600; color: var(--dhs-muted); margin-right: 12px; flex: none; }
    .dhs-portal-table td:not([data-label]) { justify-content: flex-end; }
}

/* ============================================================================
   STOREFRONT v2 — modern refresh (self-contained: CSS + inline SVG only; no CDN,
   fonts, or external images). Approximated branding: the .dhs-logo lockup and the
   .dhs-hero-art illustration are CSS/SVG PLACEHOLDERS — swap in the real Safaricom
   logo SVG + a hero photo when brand assets are available (see homepage.tpl).
   ============================================================================ */
:root {
    --dhs-green-700: #2e7d1e;   /* button fill: white text = 5.16:1 (WCAG AA) */
    --dhs-green-800: #24631a;   /* button hover: stays darker so hover keeps AA */
    --dhs-sky: #e9f1fb;
    --dhs-shadow-sm: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
    --dhs-shadow-md: 0 6px 16px rgba(16,24,40,.08), 0 2px 6px rgba(16,24,40,.06);
    --dhs-shadow-lg: 0 20px 45px rgba(16,24,40,.16);
}
h1, h2, h3, h4 { letter-spacing: -.01em; }

/* ---- Logo lockup (CSS/SVG approximation — replace with the real logo) ------- */
.dhs-logo { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; line-height: 1; }
.dhs-logo .mark { width: 30px; height: 30px; flex: 0 0 30px; }
.dhs-logo .word { font-weight: 800; font-size: 21px; color: var(--dhs-ink); }
.dhs-logo .word span { color: var(--dhs-green-600); }

/* ---- Branded public header (sticky) ---------------------------------------- */
.dhs-ph { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--dhs-line); box-shadow: var(--dhs-shadow-sm); }
.dhs-ph-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; padding: 12px 20px; }
.dhs-ph nav.main { display: flex; gap: 22px; flex: 1; margin-left: 10px; flex-wrap: wrap; }
.dhs-ph nav.main a { color: var(--dhs-ink); text-decoration: none; font-weight: 600; font-size: 15px; padding: 4px 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.dhs-ph nav.main a:hover, .dhs-ph nav.main a.active { color: var(--dhs-green-600); border-bottom-color: var(--dhs-green); }
.dhs-ph .actions { display: flex; align-items: center; gap: 8px; }
.dhs-icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--dhs-ink); background: transparent; border: none; text-decoration: none; position: relative; }
.dhs-icon-btn:hover { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
.dhs-icon-btn .count { position: absolute; top: 0; right: 0; background: var(--dhs-green); color: #fff; font-size: 10px; font-weight: 700; border-radius: 999px; min-width: 16px; text-align: center; padding: 0 4px; line-height: 16px; }
.dhs-btn { display: inline-flex; align-items: center; gap: 8px; border-radius: var(--dhs-radius-pill); padding: 9px 20px; font-weight: 700; text-decoration: none; font-size: 14px; border: 1.5px solid transparent; transition: all .15s ease; cursor: pointer; }
.dhs-btn-fill { background: var(--dhs-green); color: #fff; }
.dhs-btn-fill:hover { background: var(--dhs-green-600); color: #fff; box-shadow: var(--dhs-shadow-md); }
.dhs-btn-outline { background: #fff; color: var(--dhs-green-600); border-color: var(--dhs-green); }
.dhs-btn-outline:hover { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
@media (max-width: 767.98px) { .dhs-ph nav.main { display: none; } }

/* ---- Hero (light, two-column, bolder) rules REMOVED 2026-09-08 ---------------------------
   This legacy block (.dhs-hero / .dhs-hero-in grid / h1 / p.sub / .dhs-hero-art + its 767.98
   media) predated 96-storefront.css owning the hero. It was mostly overridden there, but its
   `display:grid; grid-template-columns:1.05fr .95fr` on .dhs-hero-in survived (96 no longer
   sets display since the Static Hero is single-column) and silently squeezed the new hero's
   copy into the left grid track. Only homepage.tpl ever emits .dhs-hero-* — 96-storefront.css
   is now the sole owner of those selectors. */

/* Domain search (Search + Transfer) + TLD price chips */
.dhs-search { background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-pill); box-shadow: var(--dhs-shadow-md); display: flex; align-items: center; gap: 8px; padding: 7px 7px 7px 22px; max-width: 580px; }
.dhs-search input { flex: 1; border: none; outline: none; font-size: 16px; padding: 10px 0; background: transparent; color: var(--dhs-ink); }
.dhs-search .btns { display: flex; gap: 6px; flex: 0 0 auto; }
.dhs-tlds { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.dhs-tld { background: #fff; border: 1px solid var(--dhs-line); border-radius: 10px; padding: 6px 12px; font-size: 13px; box-shadow: var(--dhs-shadow-sm); }
.dhs-tld b { color: var(--dhs-green-600); }
/* .dhs-hero-trust (legacy span-based variant) removed 2026-09-08 — no markup emits it since the
   Static Hero rebuild dropped the trust row; deleted rather than left as dead CSS. */

/* ---- Quick-links icon row (overlaps hero) ---------------------------------- */
.dhs-ql-wrap { max-width: 1180px; margin: -34px auto 0; padding: 0 20px; position: relative; z-index: 3; }
.dhs-ql { background: #fff; border: 1px solid var(--dhs-line); border-radius: 20px; box-shadow: var(--dhs-shadow-lg); display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 20px; }
.dhs-ql a { text-align: center; text-decoration: none; color: var(--dhs-ink); font-weight: 600; font-size: 14px; padding: 12px 6px; border-radius: 14px; transition: background .15s, transform .15s; }
.dhs-ql a:hover { background: var(--dhs-green-tint); transform: translateY(-3px); }
.dhs-ql .blob { width: 62px; height: 62px; margin: 0 auto 10px; border-radius: 46% 54% 60% 40% / 46% 44% 56% 54%; background: var(--dhs-sky); display: flex; align-items: center; justify-content: center; color: var(--dhs-green-600); }
.dhs-ql .blob svg { width: 26px; height: 26px; }
@media (max-width: 767.98px) { .dhs-ql { grid-template-columns: repeat(2, 1fr); } }

/* ---- Sections -------------------------------------------------------------- */
.dhs-lp-wrap { max-width: 1180px; margin: 0 auto; padding: 54px 20px; }
.dhs-lp-wrap h2 { font-size: 28px; font-weight: 800; margin-bottom: 4px; }
.dhs-muted { color: var(--dhs-muted, #5b6472); }

/* Plan cards */
.dhs-lp-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 22px 0 8px; }
@media (max-width: 991.98px) { .dhs-lp-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .dhs-lp-grid { grid-template-columns: 1fr; } }
.dhs-lp-card { position: relative; display: flex; flex-direction: column; border: 1px solid var(--dhs-line); border-radius: 18px; padding: 24px; background: #fff; box-shadow: var(--dhs-shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s; }
.dhs-lp-card:hover { transform: translateY(-5px); box-shadow: var(--dhs-shadow-lg); border-color: var(--dhs-green); }
.dhs-lp-card h4 { font-size: 20px; font-weight: 800; margin-bottom: 10px; }
.dhs-lp-featured { border-color: var(--dhs-green); box-shadow: var(--dhs-shadow-md); }
.dhs-lp-featured::before { content: "Most popular"; position: absolute; top: -11px; left: 24px; background: var(--dhs-green); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 12px; border-radius: 999px; }
.dhs-price { font-size: 30px; font-weight: 800; color: var(--dhs-ink); }
.dhs-price small { font-size: 13px; font-weight: 500; color: var(--dhs-muted); }
.dhs-feat { list-style: none; padding: 0; margin: 16px 0 18px; color: var(--dhs-muted); font-size: 14px; flex: 1; }
.dhs-feat li { display: flex; gap: 8px; align-items: flex-start; padding: 5px 0; }
.dhs-feat li svg { flex: 0 0 16px; margin-top: 2px; color: var(--dhs-green); }
.dhs-lp-cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 11px 18px; background: var(--dhs-green); color: #fff; border-radius: var(--dhs-radius-pill); text-decoration: none; font-weight: 700; transition: all .15s; }
.dhs-lp-cta:hover { background: var(--dhs-green-600); color: #fff; box-shadow: var(--dhs-shadow-md); }

/* Add-on chips */
.dhs-lp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.dhs-lp-chips a { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--dhs-line); border-radius: 12px; padding: 12px 16px; background: #fff; color: var(--dhs-ink); text-decoration: none; box-shadow: var(--dhs-shadow-sm); transition: all .15s; font-weight: 600; font-size: 14px; }
.dhs-lp-chips a:hover { border-color: var(--dhs-green); color: var(--dhs-green-600); transform: translateY(-2px); }
.dhs-lp-chips a svg { color: var(--dhs-green); }

/* How-to video cards */
.dhs-lp-vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 767.98px) { .dhs-lp-vids { grid-template-columns: repeat(2, 1fr); } }
.dhs-lp-vids a { display: block; text-decoration: none; color: var(--dhs-ink); border: 1px solid var(--dhs-line); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--dhs-shadow-sm); transition: all .15s; font-weight: 600; }
.dhs-lp-vids a:hover { transform: translateY(-3px); box-shadow: var(--dhs-shadow-md); color: var(--dhs-green-600); }
.dhs-lp-vids .thumb { height: 92px; background: linear-gradient(135deg, var(--dhs-green), var(--dhs-green-700)); display: flex; align-items: center; justify-content: center; }
.dhs-lp-vids .thumb .play { width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: flex; align-items: center; justify-content: center; color: var(--dhs-green-600); }
.dhs-lp-vids .label { padding: 12px 14px; font-size: 14px; }

/* Trust bar */
.dhs-trustbar { background: #fff; border-top: 1px solid var(--dhs-line); border-bottom: 1px solid var(--dhs-line); }
.dhs-trustbar-in { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 26px 40px; justify-content: center; align-items: center; padding: 22px 20px; color: var(--dhs-muted); font-size: 14px; font-weight: 600; }
.dhs-trustbar-in span { display: inline-flex; align-items: center; gap: 9px; }
.dhs-trustbar-in svg { color: var(--dhs-green); }

/* Footer */
.dhs-foot { background: var(--dhs-ink); color: #cbd2db; }
.dhs-foot-in { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 28px; padding: 46px 20px 30px; }
.dhs-foot h5 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.dhs-foot a { color: #cbd2db; text-decoration: none; display: block; padding: 4px 0; font-size: 14px; }
.dhs-foot a:hover { color: #fff; }
.dhs-foot p { font-size: 14px; color: #96a0ac; max-width: 260px; }
.dhs-foot-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 16px; font-size: 13px; color: #96a0ac; }
@media (max-width: 767.98px) { .dhs-foot-in { grid-template-columns: 1fr 1fr; } }

/* ============================================================================
   CLIENT AREA v2 — branded authenticated chrome (matches the live Safaricom
   client area). In a real WHMCS child theme this styling drives the overridden
   header.tpl/footer.tpl + the native navbar/sidebars; the DHS Portal menu items
   are added via the ClientAreaPrimaryNavbar hook (includes/hooks/dhs_clientarea_menu.php).
   Bootstrap 4.5.3-compatible; no JS required (CSS-only hover dropdowns).
   ============================================================================ */
/* Top utility bar: logo + search + cart + account dropdown */
.dhs-ca-top { background: #fff; border-bottom: 1px solid var(--dhs-line); }
.dhs-ca-top-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.dhs-ca-top-in .brand { display: flex; align-items: center; text-decoration: none; }
.dhs-ca-top-in .brand img { height: 40px; width: auto; display: block; }   /* was 32 — logo sizing pass 2026-08-18, matches the design's ~40px chrome logo */
.dhs-ca-top .spacer { flex: 1; }
.dhs-account { position: relative; }
.dhs-account > .trigger { display: inline-flex; align-items: center; gap: 8px; background: var(--dhs-green-tint); border: 1px solid transparent; border-radius: var(--dhs-radius-pill); padding: 8px 15px; font-family: inherit; font-size: 14px; font-weight: 700; color: var(--dhs-ink); cursor: pointer; text-decoration: none; }
.dhs-account > .trigger:hover, .dhs-account.open > .trigger { border-color: var(--dhs-green); }
.dhs-account > .trigger b { color: var(--dhs-green-600); }
.dhs-account > .trigger .dhs-caret { transition: transform .15s; }
.dhs-account.open > .trigger .dhs-caret { transform: rotate(180deg); }
.dhs-account .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; border: 1px solid var(--dhs-line); border-radius: 12px; box-shadow: var(--dhs-shadow-lg); min-width: 210px; padding: 6px; display: none; z-index: 60; }
.dhs-account.open .menu { display: block; }
.dhs-account .menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--dhs-ink); text-decoration: none; font-size: 14px; }
.dhs-account .menu a:hover { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
.dhs-account .menu hr { margin: 6px 4px; border: none; border-top: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-account .menu .dhs-menu-label { padding: 8px 12px 4px; font: 700 11px var(--dhs-font); text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-muted); }
.dhs-account .menu .dhs-menu-label:first-child { padding-top: 4px; }

/* Primary horizontal nav with CSS-only dropdowns */
.dhs-ca-nav { background: #fff; border-bottom: 1px solid var(--dhs-line); box-shadow: var(--dhs-shadow-sm); position: sticky; top: 0; z-index: 45; }
.dhs-ca-nav-in { max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 12px; flex-wrap: wrap; }
.dhs-ca-nav .item { position: relative; }
.dhs-ca-nav .item > a { display: inline-flex; align-items: center; gap: 6px; padding: 15px 14px; color: var(--dhs-ink); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.dhs-ca-nav .item > a:hover, .dhs-ca-nav .item.active > a { color: var(--dhs-green-600); border-bottom-color: var(--dhs-green); }
.dhs-ca-nav .item .drop { position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--dhs-line); border-radius: 12px; box-shadow: var(--dhs-shadow-lg); min-width: 224px; padding: 6px; display: none; z-index: 55; }
.dhs-ca-nav .item:hover .drop, .dhs-ca-nav .item:focus-within .drop { display: block; }
.dhs-ca-nav .item .drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--dhs-ink); text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; }
.dhs-ca-nav .item .drop a:hover { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
.dhs-ca-nav .nav-count { background: var(--dhs-green-tint); color: var(--dhs-green-600); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.dhs-ca-nav .loggedin { margin-left: auto; padding: 15px 8px; color: var(--dhs-muted); font-size: 13px; }
.dhs-ca-nav .loggedin b { color: var(--dhs-green-600); }
.dhs-caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .5; }

/* Body: breadcrumb + panel */
.dhs-ca-body { max-width: 1180px; margin: 24px auto 40px; padding: 0 20px; }
.dhs-crumb { color: var(--dhs-muted); font-size: 13px; margin-bottom: 14px; }
.dhs-crumb a { color: var(--dhs-muted); text-decoration: none; }
.dhs-crumb a:hover { color: var(--dhs-green-600); }
/* .dhs-panel's base declaration lives in 20-components.css (single source of truth — see
   docs/Client_Area_Design_System.md §4). Do not redeclare background/border/radius/shadow/
   padding here again; the form-control-fallback rules below (343+) are additive and unaffected. */

/* Themed client-area tables + status badges (used by the portal + core pages) */
/* Base data-table styling (was dropped when layout.tpl was rewritten — restored globally so
   authed pages get proper cell spacing, not just the public shell). */
.dhs-portal-table { width: 100%; border-collapse: collapse; }
.dhs-portal-table th, .dhs-portal-table td { padding: 13px 16px; border-bottom: 1px solid var(--dhs-line); text-align: left; vertical-align: middle; }
.dhs-portal-table th { color: var(--dhs-muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; background: #fafbfc; font-weight: 700; white-space: nowrap; }
.dhs-portal-table thead tr { border-bottom: 2px solid var(--dhs-line); }
.dhs-portal-table tbody tr:hover { background: var(--dhs-green-tint, #ecf4ea); }
.dhs-portal-table tbody tr:last-child td { border-bottom: none; }
.dhs-portal-table td:last-child { white-space: nowrap; text-align: right; }
/* Opt-in for cells that can hold an arbitrarily long unbroken token (a DKIM TXT value is
   400+ chars of base64). `anywhere` — not `break-word` — because only `anywhere` lowers the
   cell's min-content contribution to the auto table layout; without it the table grows past
   its `.dhs-mng-card` (overflow:hidden), which silently clipped the TTL and action columns
   off every row sharing the table (found on the DNS page's TXT tab, 2026-09-29). */
.dhs-portal-table td.dhs-cell-break { overflow-wrap: anywhere; min-width: 0; }
.dhs-portal-table td:last-child .btn, .dhs-portal-table td:last-child a { margin-left: 6px; }
.dhs-portal-table td:last-child .btn:first-child, .dhs-portal-table td:last-child a:first-child { margin-left: 0; }
.dhs-slim-foot { background: var(--dhs-ink); color: #96a0ac; text-align: center; padding: 16px; font-size: 13px; }
.dhs-slim-foot a { color: #cbd2db; text-decoration: none; }

@media (max-width: 767.98px) {
    .dhs-ca-nav .loggedin { display: none; }
    .dhs-ca-nav .item > a { padding: 12px 10px; font-size: 14px; }
}

/* ============================================================================
   FLOATING WIDGETS — global chrome: one unified Help panel with two
   INDEPENDENT flex regions inside .dhs-drawer (Help/KB filling the remaining
   space and scrolling on its own; Chat = Abby AI assistant anchored to the
   panel's bottom edge, sized to its content up to a cap) plus WhatsApp,
   injected on every page by the ClientAreaFooterOutput hook. Vanilla-JS
   driven; no framework. See the file header of
   includes/hooks/dhs_clientarea_widgets.php for why this replaced three
   earlier layout attempts (a tab strip, then two different single-shared-
   scroll stacks) that each broke in a different user-flagged way.
   The panel used to be two separate widgets (.dhs-wpanel for Abby, .dhs-drawer
   for Help) with their own FABs -- merged 2026-08-12 into one .dhs-drawer.
   .dhs-wpanel/.dhs-fab-abby/.dhs-help-tabs/.dhs-help-tab/.dhs-help-pinned/
   .dhs-help-divider no longer have any matching markup; removed rather than
   left as dead CSS.
   ============================================================================ */
#dhs-fabs { position: fixed; right: 22px; bottom: 22px; z-index: 1200; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.dhs-fab { display: inline-flex; align-items: center; justify-content: center; border: none; cursor: pointer; box-shadow: var(--dhs-shadow-lg); color: #fff; text-decoration: none; transition: transform .15s, box-shadow .15s; }
.dhs-fab:hover { transform: translateY(-2px); }
.dhs-fab-wa { width: 44px; height: 44px; border-radius: 50%; background: #25d366; }
/* Chat Assistant launcher (2026-09-04, UAT feedback — replaces the 48px "?" .dhs-fab-help).
   60px per the 08SEP2026 drop's fab-container (was 56); WhatsApp steps down to a 44px secondary
   above it. The glyph is the drop's message-chat-circle — two overlapping speech bubbles
   (component 5292:16750); the front bubble is FILLED with the button's own background via
   .dhs-fab-glyph-front so its outline knocks the back bubble's out, exactly as drawn.
   Draggable via dhs-widgets.js: the whole #dhs-fabs stack moves and snaps to a screen corner —
   UNCHANGED by the redesign (user directive 2026-09-08); .dhs-fab-left flips the hover label to
   the other side for the left-hand corners; .is-drag kills the hover lift while the pointer
   holds it. */
.dhs-fab-chat { width: 60px; height: 60px; border-radius: 50%; background: var(--dhs-color-brand-600, #35A839); touch-action: none; position: relative; }
.dhs-fab-chat:hover { background: var(--dhs-color-brand-700, #2D8F30); }
.dhs-fab-chat .dhs-fab-glyph-front { fill: var(--dhs-color-brand-600, #35A839); transition: fill .15s; }
.dhs-fab-chat:hover .dhs-fab-glyph-front { fill: var(--dhs-color-brand-700, #2D8F30); }
.dhs-fab-chatwrap { position: relative; display: inline-flex; }
.dhs-fab-label { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; background: var(--dhs-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 7px 12px; border-radius: 8px; box-shadow: var(--dhs-shadow-md); opacity: 0; transition: opacity .18s; pointer-events: none; }
.dhs-fab-label::after { content: ""; position: absolute; right: -4px; top: 50%; transform: translateY(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--dhs-ink); }
.dhs-fab-chatwrap:hover .dhs-fab-label, .dhs-fab-chat:focus-visible + .dhs-fab-label { opacity: 1; }
#dhs-fabs.dhs-fab-left { align-items: flex-start; }
#dhs-fabs.dhs-fab-left .dhs-fab-label { right: auto; left: calc(100% + 10px); }
#dhs-fabs.dhs-fab-left .dhs-fab-label::after { right: auto; left: -4px; }
#dhs-fabs.is-drag { cursor: grabbing; }
#dhs-fabs.is-drag .dhs-fab { transition: none; transform: none; }
#dhs-fabs.is-drag .dhs-fab-label { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .dhs-fab, .dhs-fab-label, .dhs-fab-chat .dhs-fab-glyph-front { transition: none; } .dhs-fab:hover { transform: none; } }

/* Generic display:none utility the widget JS relies on to toggle the KB
   topics/results/article sub-panels -- was referenced by this file's own JS
   already (kbShow()) but had no rule anywhere in the theme's loaded CSS.
   templates/orderforms/dhs_cart/css/style.css ALSO defines .w-hidden (no
   !important) -- and unlike this rule's original comment assumed, that
   stylesheet's page (templates/orderforms/dhs_cart/common.tpl) loads THIS
   file's compiled output too, so both rules are live on every cart page at
   once. Native cart JS (scripts.js's #frmDomainChecker handler) depends on
   overriding native .w-hidden with inline display styles via jQuery .show()/
   .fadeIn() to reveal domain-search results -- an !important version here
   permanently wins that fight regardless of source order, silently breaking
   the reveal (KD-67: domain search hung forever on "Searching..."). No
   !important is needed for THIS rule's own purpose either: kbShow() only
   ever toggles the class (classlist add/remove), never an inline style, so a
   plain display:none fully hides/reveals on client-area pages where nothing
   else defines .w-hidden at all -- there was never a competing rule to lose
   to here. */
.w-hidden { display: none; }

/* Chat: a flex:none sibling of .dhs-drawer-body inside the flex-column
   .dhs-drawer, so it's anchored to the panel's true bottom edge and cannot be
   pushed around by the Help/KB region above changing size. It has no fixed
   height -- it sizes to its own content (a short greeting + a couple of
   chips barely takes any room) up to max-height, at which point .dhs-chat's
   own overflow-y:auto below takes over so the composer stays anchored at
   THIS region's bottom regardless of how long the conversation gets. */
#dhs-help-chat { flex: none; max-height: 50%; display: flex; flex-direction: column; border-top: 1px solid var(--dhs-line); background: #fff; }
.dhs-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.dhs-msg { max-width: 85%; padding: 10px 12px; border-radius: 12px; font-size: 14px; line-height: 1.45; }
/* Bot rows carry the 08SEP2026 chat card's 32px avatar circle (frame 5289:34990: brand-050 fill,
   brand stroke, the cpu glyph) — drawn as a ::before so every producer of a .dhs-msg.bot bubble
   (the drawer JS, restore, abby.tpl's server-rendered transcript and History tab) gets it with
   zero markup changes. The glyph is a data-URI (allowed: CSS-embedded inline SVG), stroked in
   the brand-700 family. */
.dhs-msg.bot { background: #fff; border: 1px solid var(--dhs-line); align-self: flex-start; border-bottom-left-radius: 12px; position: relative; margin-left: 44px; }
.dhs-msg.bot::before { content: ""; position: absolute; left: -44px; top: 0; width: 32px; height: 32px; box-sizing: border-box; border-radius: 50%; border: 1px solid var(--dhs-color-brand-600, #35A839); background-color: var(--dhs-color-brand-050, #EBF6EB); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232D8F30' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Crect x='9' y='9' width='6' height='6'/%3E%3Cpath d='M9 1v3M15 1v3M9 20v3M15 20v3M20 9h3M20 14h3M1 9h3M1 14h3'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: center; background-size: 18px 18px; }
.dhs-msg.me { background: var(--dhs-green); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
/* Every action row under a bot reply (option buttons, the deep-link, the Related pill,
   the WhatsApp handover) is wrapped in .dhs-msg-opts by the drawer JS. Flex + gap keeps
   adjacent options from running together ("Yes, go aheadNo, cancel") and separates the
   row from the reply text above it. */
.dhs-msg-opts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 8px; }
.dhs-msg-opts .dhs-msg-act { margin-top: 0; }
.dhs-msg-act { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--dhs-green-600); text-decoration: none; }
.dhs-msg-act.wa { color: #128c4b; }
/* The "Related: <category>" pill is a <button> (it fills + resets the Help
   region's scroll, it doesn't navigate), so it needs its own reset before
   .dhs-msg-act's link styling reads right on it. */
button.dhs-msg-act { background: none; border: none; padding: 0; font: inherit; cursor: pointer; }
.dhs-msg-act-kb::before { content: "\1F4DA "; }

/* Thin footer strip under the composer (the chat card's chat-footer band, 08SEP2026 drop) —
   home of the "New chat" control, which used to sit in a tools row above the log (the frame has
   no such row). The visual pill stays small but padding keeps the hit area >=44px tall (mobile
   target-size rule). */
.dhs-chat-tools { display: flex; justify-content: flex-end; padding: 0 10px; flex: none; border-top: 1px solid var(--dhs-line-2, #eef1f5); background: #fff; }
.dhs-chat-tools button { border: none; background: none; color: var(--dhs-muted); font-size: 12.5px; font-weight: 700; cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; padding: 0 6px; }
.dhs-chat-tools button:hover { color: var(--dhs-green-700); }
/* Muted notice line inside the chat log ("Restored from earlier...") and on the abby page. */
.dhs-chat-note { font-size: 12px; color: var(--dhs-muted); text-align: center; padding: 2px 0; }
/* Full-page (abby.tpl History tab) read-only transcript container; bubble rows reuse .dhs-msg. */
.dhs-transcript { display: flex; flex-direction: column; gap: 8px; background: var(--dhs-bg); border: 1px solid var(--dhs-line); border-radius: 12px; padding: 14px; }
/* Suggestion chips per the chat card (frame 5289:34996): "SUGGESTIONS" eyebrow, then outlined
   green pills on #FAFAFA. Chip text uses the accessible green (the frame's #35A839 on #FAFAFA is
   3.9:1 — under AA for 12.5px text); the brand-600 border is the frame's, kept as a decorative
   accent. */
.dhs-chips { display: flex; gap: 8px; flex-wrap: wrap; padding: 4px 16px 12px; flex: none; }
.dhs-chips-label { flex: 0 0 100%; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-muted); margin: 2px 0; }
.dhs-chips button { border: 1px solid var(--dhs-color-brand-600, #35A839); background: #fafafa; border-radius: 16px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--dhs-green-600); }
.dhs-chips button:hover { background: var(--dhs-color-brand-050, #EBF6EB); border-color: var(--dhs-green); color: var(--dhs-green-700); }
/* Composer per the chat card's chat-input-bar: one quiet field bar with the square 36px icon
   send button (frame 5289:34996's send-btn, radius 6). :focus-within keeps a visible focus
   affordance on the bar now that the input itself is borderless. */
#dhs-abby-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--dhs-line); background: #fafafa; flex: none; align-items: center; }
#dhs-abby-form:focus-within { box-shadow: inset 0 0 0 2px var(--dhs-color-brand-300, #A8DAAA); }
#dhs-abby-form input { flex: 1; min-width: 0; border: none; background: transparent; padding: 8px 4px; outline: none; font-size: 14px; }
#dhs-abby-form button { border: none; background: var(--dhs-green-700); color: #fff; border-radius: 6px; width: 36px; height: 36px; padding: 0; flex: none; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
#dhs-abby-form button:hover { background: var(--dhs-green-800, #24631a); }
/* Chat card mode: the transcript fills the card under the green band — the two-region caps only
   exist when both regions share the panel (the no-JS stacked fallback keeps them). */
.dhs-drawer.dhs-mode-chat #dhs-help-chat { flex: 1; min-height: 0; max-height: none; border-top: none; }

/* Scrim: transparent on desktop (the panel is a small floating card now, per the 08SEP2026 drop
   — dimming the whole page under it read wrong), dimmed on phones where the card is near-full-
   screen. The element and its click-to-close behaviour are unchanged either way. */
.dhs-scrim { position: fixed; inset: 0; background: transparent; z-index: 1220; display: none; }
.dhs-scrim.open { display: block; }
/* FLOATING CARD (08SEP2026 drop, frames 5289:34981 chat / 5289:35014 help). Was a full-height
   right-edge drawer; now a rounded card anchored above the launcher. Closed = display:none — the
   hook's file header records why (a closed translateX(100%) fixed-position box still counted
   toward the document's scrollable width in Chrome, revealing a sliver on mobile side-swipe), so
   the open animation is a keyframe, not a transition. The card presents as ONE of two modes set
   by dhs-widgets.js: .dhs-mode-chat (green band, transcript fills the card) or .dhs-mode-help
   (white band, KB region + footer). No mode class (no-JS edge) = both regions stacked, the old
   layout, so nothing is unreachable without JS. */
.dhs-drawer { position: fixed; right: 22px; bottom: 96px; width: 400px; max-width: calc(100vw - 24px); height: min(720px, calc(100vh - 130px)); background: #fff; border: 1px solid var(--dhs-line); border-radius: 16px; box-shadow: 0 12px 24px rgba(0,0,0,.15); z-index: 1230; display: none; flex-direction: column; overflow: hidden; }
.dhs-drawer.open { display: flex; animation: dhsPanelIn .18s ease; }
.dhs-drawer.dhs-mode-chat { height: min(560px, calc(100vh - 130px)); }
@keyframes dhsPanelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
/* Applied for the first paint when the panel's open state is restored from sessionStorage on a
   page navigation, so the entrance animation doesn't replay on every page; removed after two
   rAFs, so manual open/close still animates. */
.dhs-drawer.dhs-noanim { transition: none; animation: none; }
/* Mode gating: each region exists in the DOM in both modes; CSS shows one card at a time. */
.dhs-drawer.dhs-mode-chat .dhs-drawer-body { display: none; }
.dhs-drawer.dhs-mode-chat > .dhs-drawer-foot { display: none; }
.dhs-drawer.dhs-mode-help #dhs-help-chat { display: none; }
.dhs-drawer .dhs-hd-chat { display: none; }
.dhs-drawer.dhs-mode-chat header .dhs-hd-chat { display: inline-flex; }
.dhs-drawer.dhs-mode-chat header .dhs-hd-help { display: none; }
/* Header: help card = white band with the green info-circle (frame 5289:35014); chat card = the
   brand band with the online dot (frame paints #2D8F30 — white 16px text there is 4.1:1, under
   AA's 4.5, so the band uses the ratified accessible green var(--dhs-green), same deviation as
   every CTA since 2026-09-03; the gate outranks the drawing). */
.dhs-drawer > header { background: #fff; color: var(--dhs-ink); padding: 12px 12px 12px 16px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex: none; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-drawer.dhs-mode-chat > header { background: var(--dhs-green); color: #fff; border-bottom: none; }
.dhs-hd-title { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; line-height: 24px; }
.dhs-hd-ico { color: var(--dhs-green-600); flex: none; }
.dhs-hd-dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; flex: none; }
.dhs-drawer > header .x { background: transparent; border: none; color: inherit; line-height: 1; cursor: pointer; flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 6px; margin: -6px; border-radius: 50%; }
.dhs-drawer > header .x:hover { opacity: .75; }
/* Header right-hand cluster: the cross-link pill plus the close button, grouped so
   justify-content:space-between on the header only splits the title from this cluster. */
.dhs-help-hdr-right { display: flex; align-items: center; gap: 10px; }
.dhs-help-jump { display: flex; gap: 4px; }
/* Cross-link pill (header only — the footer's "Ask the assistant" carries the same behavioural
   class for the shared JS handler but keeps its .dhs-btn-fill primary look): green-on-white on
   the help card's white band… */
.dhs-drawer > header .dhs-help-jump-btn { border: 1px solid var(--dhs-line); background: #fff; color: var(--dhs-green-600); font-weight: 700; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; cursor: pointer; }
.dhs-drawer > header .dhs-help-jump-btn:hover { background: var(--dhs-green-tint, #ecf4ea); }
/* …translucent white on the chat card's green band. */
.dhs-drawer.dhs-mode-chat > header .dhs-help-jump-btn { border-color: rgba(255,255,255,.3); background: transparent; color: rgba(255,255,255,.9); }
.dhs-drawer.dhs-mode-chat > header .dhs-help-jump-btn:hover { background: rgba(255,255,255,.16); color: #fff; }

/* Help/KB: fills whatever space Chat below it doesn't take, and scrolls
   independently -- populating categories, swapping in search results, etc.
   only ever changes scroll content/position WITHIN this region. It can never
   push Chat around, because Chat is a separate flex item, not a sibling
   inside this same scrolling box. */
.dhs-drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px; }
/* Section eyebrows per the help card ("POPULAR TOPICS" / "QUICK LINKS", 12/18 bold). */
.dhs-drawer-body h6 { text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .05em; color: var(--dhs-muted); margin: 18px 0 6px; }
.dhs-drawer-body > a { display: block; padding: 9px 0; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); color: var(--dhs-ink); text-decoration: none; font-size: 14px; }
.dhs-drawer-body > a:hover { color: var(--dhs-green-600); }
/* Search per the help card's search-field (radius 8 quiet field + the filled Search button,
   radius 6) — was a pill pair. */
.dhs-drawer-search { display: flex; gap: 8px; align-items: stretch; background: #f9fafb; border: 1px solid var(--dhs-line); border-radius: 8px; padding: 8px; }
.dhs-drawer-search input { flex: 1; min-width: 0; border: none; background: transparent; border-radius: 0; padding: 6px 8px; outline: none; font-size: 14px; }
.dhs-drawer-search:focus-within { box-shadow: 0 0 0 2px var(--dhs-color-brand-300, #A8DAAA); }
.dhs-drawer-search button { border: none; background: var(--dhs-green-700); color: #fff; border-radius: 6px; padding: 9px 18px; font-weight: 700; cursor: pointer; }
.dhs-drawer-search button:hover { background: var(--dhs-green-800, #24631a); }
/* Quick-link chips per the help card's tags-wrap (30px pills on #FAFAFA). */
.dhs-drawer-links { display: flex; flex-wrap: wrap; gap: 8px; }
.dhs-drawer-links a { border: 1px solid var(--dhs-line); background: #fafafa; border-radius: 16px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--dhs-ink); }
.dhs-drawer-links a:hover { border-color: var(--dhs-green); color: var(--dhs-green-600); }
/* Pinned footer per the help card's guides-footer: a direct child of the aside now (not scroll
   content), two equal buttons — "Ask the assistant" (filled, switches to the chat card) and
   WhatsApp (outlined). Hidden on the chat card by the mode rules above. */
.dhs-drawer-foot { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--dhs-line-2, #eef1f5); background: #fff; flex: none; }
.dhs-drawer-foot .dhs-btn { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.dhs-kb-results-title { font-weight: 700; font-size: 14px; margin: 4px 0 10px; }

/* Help drawer: Popular topics list + Categories accordion + shared result-row style (also used
   by search results and a category's expanded article list). .dhs-kb-topic previously had NO
   rule at all, so the topic anchors fell back to the browser default display:inline and rendered
   as one run-on sentence -- this fixes that, and the categories accordion below reuses the same
   .dhs-kb-result row style the search-results panel already emits markup for (also previously
   unstyled) so a category's articles look identical to a search result. */
.dhs-kb-topic-list { display: flex; flex-direction: column; }
/* Topic rows read as the help card's green underlined links (frame 5289:35014 topics-list). */
.dhs-kb-topic { display: block; padding: 9px 0; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); color: var(--dhs-green-600); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.dhs-kb-topic:last-child { border-bottom: none; }
.dhs-kb-topic:hover { color: var(--dhs-green-700); }

.dhs-kb-cats { display: flex; flex-direction: column; gap: 6px; }
.dhs-kb-cat { border: 1px solid var(--dhs-line); border-radius: 10px; overflow: hidden; }
.dhs-kb-cat-toggle { display: flex; align-items: center; width: 100%; gap: 8px; border: none; background: #fff; padding: 10px 12px; font-size: 14px; font-weight: 600; color: var(--dhs-ink); cursor: pointer; text-align: left; }
.dhs-kb-cat-toggle:hover { background: var(--dhs-bg); }
.dhs-kb-cat-name { flex: 1; }
.dhs-kb-cat-count { color: var(--dhs-muted); font-size: 12.5px; font-weight: 400; }
.dhs-kb-cat-caret { width: 8px; height: 8px; border-right: 2px solid var(--dhs-muted); border-bottom: 2px solid var(--dhs-muted); transform: rotate(-45deg); transition: transform .15s; flex: none; }
.dhs-kb-cat-toggle[aria-expanded="true"] .dhs-kb-cat-caret { transform: rotate(45deg); }
.dhs-kb-cat-articles { border-top: 1px solid var(--dhs-line); padding: 4px 12px; }
/* Parent-category heading in the Help drawer's category list: the KB nests (a parent holding
   subcategories), so the drawer groups its rows under the parent instead of listing parent and
   children as flat siblings. Count here is the rolled-up subtree total. */
.dhs-kb-cat-group { display: flex; align-items: baseline; gap: 8px; padding: 10px 2px 2px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-muted); }
.dhs-kb-cat-group > span:first-child { flex: 1; }
.dhs-kb-cat-group-count { font-weight: 600; letter-spacing: 0; }
.dhs-kb-cat-child { margin-left: 10px; }

.dhs-kb-result { display: block; padding: 9px 0; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); text-decoration: none; color: var(--dhs-ink); }
.dhs-kb-result:last-child { border-bottom: none; }
.dhs-kb-result:hover { color: var(--dhs-green-600); }
.dhs-kb-result strong { display: block; font-size: 14px; }
.dhs-kb-result-cat { display: inline-block; font-size: 11.5px; color: var(--dhs-muted); text-transform: uppercase; letter-spacing: .03em; margin-top: 2px; }
.dhs-kb-result-snippet { display: block; font-size: 12.5px; color: var(--dhs-muted); margin-top: 2px; }

/* USSD launcher removed 2026-08-01 — see includes/hooks/dhs_clientarea_widgets.php's file
   header. .dhs-fab-ussd / .dhs-ussd-panel / .dhs-ussd-screen / #dhs-ussd-form / .dhs-ussd-actions
   no longer have any matching markup; deleted rather than left as dead CSS. */

/* Phones: the floating card becomes a near-full-width sheet with the scrim dimmed (it is modal
   there in practice — it covers the page). Sits inside the viewport edges; env() keeps it clear
   of the home-indicator inset. Ladder breakpoint (767.98) per the BREAKPOINT LADDER block. */
@media (max-width: 767.98px) {
    .dhs-scrim { background: rgba(16,24,40,.4); }
    .dhs-drawer { right: 12px; left: 12px; width: auto; max-width: none; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); height: min(720px, calc(100vh - 24px)); }
    .dhs-drawer.dhs-mode-chat { height: min(560px, calc(100vh - 24px)); }
}

/* Toast notifications (top-right) */
#dhs-toasts { position: fixed; top: 16px; right: 16px; z-index: 1300; display: flex; flex-direction: column; gap: 8px; }
.dhs-toast { min-width: 220px; max-width: 340px; padding: 12px 16px; border-radius: 12px; color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--dhs-shadow-lg); opacity: 0; transform: translateX(20px); transition: opacity .25s, transform .25s; }
.dhs-toast.show { opacity: 1; transform: translateX(0); }
.dhs-toast.ok { background: var(--dhs-green); }
.dhs-toast.err { background: var(--dhs-red); }
.dhs-toast.info { background: var(--dhs-ink); }

/* ============================================================================
   INVOICE PAYMENT PANEL — one consistent look for every method, incl. the raw
   HTML the gateway modules (dhs_mpesa_link / dhs_pesapal_link) emit. Descendant
   selectors under .dhs-pay style inputs + buttons regardless of their classes;
   the card panel's inline widths (cvv 70px, exp flex) still win, so its row holds.
   ============================================================================ */
.dhs-pay { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; align-items: start; }
.dhs-pay-method { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dhs-line); border-radius: 16px; box-shadow: var(--dhs-shadow-sm); padding: 20px; transition: border-color .15s, box-shadow .15s; }
.dhs-pay-method:hover { border-color: var(--dhs-green); box-shadow: var(--dhs-shadow-md); }
/* icon-led card header */
.dhs-pay-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.dhs-pay-ico { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 12px; background: var(--dhs-green-tint); color: var(--dhs-green-600); display: inline-flex; align-items: center; justify-content: center; }
.dhs-pay-ico svg { width: 22px; height: 22px; }
.dhs-pay-head .t { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.dhs-pay-head .t strong { font-size: 15px; font-weight: 800; line-height: 1.2; }
.dhs-pay-head .t small { color: var(--dhs-muted); font-size: 12.5px; line-height: 1.3; }
/* featured (most-used) method */
.dhs-pay-method.feat { border-color: var(--dhs-green); box-shadow: 0 0 0 1px var(--dhs-green), var(--dhs-shadow-sm); }
.dhs-pay-method.feat:hover { box-shadow: 0 0 0 1px var(--dhs-green), var(--dhs-shadow-md); }
.dhs-pay-method.feat .dhs-pay-ico { background: var(--dhs-green); color: #fff; }
/* reserve space so the title never slides under the absolute badge on narrow phones */
.dhs-pay-method.feat .dhs-pay-head { padding-right: 92px; }
/* darker green so white badge text meets WCAG AA (white on #2e7d1e = 5.16:1) */
.dhs-pay-pop { position: absolute; top: 14px; right: 14px; background: var(--dhs-green-700); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 999px; letter-spacing: .02em; }
/* secure/compliance footer under the grid */
.dhs-pay-trust { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding: 12px 16px; background: var(--dhs-surface-2, #f8fafc); border: 1px solid var(--dhs-line-2, #eef1f5); border-radius: 12px; color: var(--dhs-muted); font-size: 13px; }
.dhs-pay-trust svg { flex: 0 0 18px; width: 18px; height: 18px; color: var(--dhs-green-600); }
.dhs-pay-method p, .dhs-pay-method .dhs-muted { color: var(--dhs-muted); font-size: 13.5px; }
.dhs-pay label { display: block; font-size: 13px; color: var(--dhs-muted); margin: 4px 0; }
.dhs-pay input[type=text], .dhs-pay input[type=tel], .dhs-pay input[type=number], .dhs-pay input:not([type]) {
    width: 100%; border: 1px solid var(--dhs-line); border-radius: 10px; padding: 9px 12px; font-size: 15px; margin-bottom: 8px; outline: none; color: var(--dhs-ink); background: #fff; }
.dhs-pay input:focus { border-color: var(--dhs-green); box-shadow: 0 0 0 3px var(--dhs-green-tint); }
.dhs-pay button, .dhs-pay .btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; background: var(--dhs-green-700); color: #fff; border-radius: var(--dhs-radius-pill); padding: 10px 20px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; transition: background .15s, box-shadow .15s; margin-top: auto; }
.dhs-pay button:hover, .dhs-pay .btn:hover { background: var(--dhs-green-800); color: #fff; box-shadow: var(--dhs-shadow-md); }
.dhs-pay .btn-block { width: 100%; }
.dhs-pay #dhs-mpesa-status, .dhs-pay #dhs-card-status, .dhs-pay .dhs-pay-msg { font-size: 13px; color: var(--dhs-muted); margin: 8px 0 0; min-height: 1em; }
.dhs-pay code { background: var(--dhs-green-tint); color: var(--dhs-green-600); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
/* The saved-mandate rows keep their own small "Charge now" buttons inline, not full pills. */
.dhs-pay-method form[action*="autopay_charge"] { margin: 0; }

/* ============================================================================
   FORM-CONTROL FALLBACK — brand any UN-CLASSED <input>/<select>/<textarea>/<button>
   inside client-area (.dhs-panel) or public (.pub-card) content, so the raw form
   controls across the portal pages (dns/email/security/payments/abby/jnps/…) match
   the design system without editing every template. `:not(.form-control)`/`:not(.btn)`
   leave Bootstrap-classed controls untouched.
   ============================================================================ */
.dhs-panel input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not(.form-control),
.dhs-panel select:not(.form-control), .dhs-panel textarea:not(.form-control),
.pub-card input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=submit]):not([type=button]):not(.form-control),
.pub-card select:not(.form-control), .pub-card textarea:not(.form-control) {
    border: 1px solid var(--dhs-line); border-radius: 10px; padding: 9px 12px; font-size: 15px; color: var(--dhs-ink); background: #fff; outline: none; max-width: 100%; vertical-align: middle; }
.dhs-panel input:not(.form-control):focus, .dhs-panel select:not(.form-control):focus, .dhs-panel textarea:not(.form-control):focus,
.pub-card input:not(.form-control):focus, .pub-card select:not(.form-control):focus, .pub-card textarea:not(.form-control):focus {
    border-color: var(--dhs-green); box-shadow: 0 0 0 3px rgba(67, 176, 42, .35); }
.dhs-panel button:not(.btn):not([class]), .pub-card button:not(.btn):not([class]) {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: none; background: var(--dhs-green-700); color: #fff; border-radius: var(--dhs-radius-pill); padding: 9px 18px; font-weight: 700; font-size: 14px; cursor: pointer; transition: background .15s; }
.dhs-panel button:not(.btn):not([class]):hover, .pub-card button:not(.btn):not([class]):hover { background: var(--dhs-green-800); }
/* Bootstrap .btn inside content: ensure the brand pill + hover is consistent everywhere. */
.dhs-panel .btn-primary, .dhs-panel .btn-success, .pub-card .btn-primary, .pub-card .btn-success { border-radius: var(--dhs-radius-pill); }
/* Inline code chips read on-brand (Bootstrap's default is pink/red). */
.dhs-panel code, .pub-card code { color: var(--dhs-green-600); background: var(--dhs-green-tint); padding: 1px 6px; border-radius: 6px; font-size: 13px; }
.dhs-panel label, .pub-card label { font-weight: 600; }

/* ============================================================================
   CLIENT-AREA v3 — SPA (DomainHostingSite) parity: persistent left-sidebar
   DashLayout, service cards with capacity gauges, stat grids, list-groups, and
   SPA-styled badges. Tokens mirror app/web/src/theme.css.
   ============================================================================ */
:root {
    --dhs-surface-2: #f8fafc; --dhs-green-tint-2: #f3f9f1;
    --dhs-amber: #b8860b; --dhs-amber-tint: #fdf6e3; --dhs-red-tint: #fdecee;
    --dhs-red-ink: #c31d2f;   /* on red-tint = 5.20:1 (AA) */
    --dhs-amber-ink: #7c5e00; /* on amber-tint = 5.63:1 (AA) */
    --dhs-blue: #1666c9; --dhs-blue-tint: #e5f1fe; --dhs-ink-2: #2a2e36; --dhs-line-2: #eef1f5;
}

/* ---- DashLayout: top bar + persistent left sidebar + main ---- */
.dhs-dash { display: grid; grid-template-columns: 224px 1fr; gap: 26px; align-items: start; max-width: 1180px; margin: 24px auto; padding: 0 20px; }
.dhs-side { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 3px; }
.dhs-side-grp { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--dhs-muted); font-weight: 700; padding: 14px 14px 6px; }
.dhs-side-link { display: flex; align-items: center; gap: 11px; padding: 10px 14px; border-radius: 12px; color: var(--dhs-muted); font-weight: 600; font-size: 14.5px; text-decoration: none; transition: background .12s, color .12s; }
.dhs-side-link:hover { background: #fff; color: var(--dhs-ink); text-decoration: none; }
.dhs-side-link.active { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
.dhs-side-link .ico { width: 19px; height: 19px; flex: 0 0 19px; }
.dhs-side-link .badge-pill-count { margin-left: auto; background: var(--dhs-green-tint); color: var(--dhs-green-700); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.dhs-main { min-width: 0; }
@media (max-width: 767.98px) {
    .dhs-dash { grid-template-columns: 1fr; gap: 14px; }
    /* KD-61 §5 closure (2026-08-16): flex-direction/gap removed — they were DEAD here
       (defeated by the later base rule) and listed in build.mjs KNOWN_DEAD; deleting dead
       declarations is behavior-neutral by definition. Making them LIVE is a separate,
       QA-gated decision that nobody has taken. */
    .dhs-side { position: static; overflow-x: auto; padding-bottom: 4px; }
    .dhs-side-grp { display: none; }
    .dhs-side-link { white-space: nowrap; padding: 8px 12px; }
    .dhs-side-link .badge-pill-count { display: none; }
}

/* ---- Page toolbar (H1 + actions) ---- */
.dhs-toolbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; margin-bottom: 18px; }
.dhs-toolbar h2 { margin: 0; }
.dhs-toolbar .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- Stat cards ---- */
/* .dhs-stat/.dhs-statgrid's base declaration lives in 20-components.css (single source of
   truth, merged with this file's former hover-lift rule — see
   docs/Client_Area_Design_System.md §4). .lbl/.num below are additive sub-element styling used
   by pages built against this older markup shape (label+number, not the newer
   __label/__value/__ico shape) and are kept working as-is. */
.dhs-stat .lbl { display: flex; align-items: center; gap: 8px; color: var(--dhs-muted); font-size: 13px; font-weight: 600; }
.dhs-stat .lbl svg { color: var(--dhs-green); }
.dhs-stat .num { font-size: 30px; font-weight: 800; margin-top: 6px; line-height: 1; }
.dhs-stat .num.danger { color: var(--dhs-red); }

/* ---- Service cards + capacity gauges ----
   Card anatomy restyled 2026-08-22 to frame 4651:13743 "desktop-my-services-all": 2-col grid,
   18px domain title, group-badge + plan-name row over a muted price line, the labelled
   .dhs-gauge/.dhs-meter bar (design shows a BAR, not the old donut), a divider above the
   action block, and a link-style footer (View Details green link + quiet DNS/Email). min()
   in the column clamp keeps 390px viewports at one column with no horizontal overflow. */
.dhs-svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(400px, 100%), 1fr)); gap: 20px; }
.dhs-svc-card { background: #fff; border: 1px solid var(--dhs-line); border-radius: 16px; box-shadow: var(--dhs-shadow-sm); padding: 22px; transition: transform .15s, box-shadow .15s; }
.dhs-svc-card:hover { transform: translateY(-3px); box-shadow: var(--dhs-shadow-lg); }
.dhs-svc-card .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.dhs-svc-card .hd .dom { font-size: 18px; font-weight: 800; }
.dhs-svc-card .plan { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 10px 0 2px; font-size: 14px; font-weight: 600; color: var(--dhs-ink-3); }
.dhs-svc-card .price { color: var(--dhs-muted); font-size: 13px; margin: 0 0 12px; }
.dhs-svc-card .tagline { color: var(--dhs-muted); font-size: 14px; margin: 0 0 12px; }
.dhs-svc-card .sub { color: var(--dhs-muted); font-size: 13px; margin: 4px 0 12px; }
.dhs-svc-card .badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.dhs-svc-card .foot { display: flex; gap: 8px; margin-top: 14px; }
.dhs-svc-card .foot .btn { flex: 1; }
.dhs-svc-card .foot--links { display: flex; align-items: center; gap: 18px; margin-top: 12px; }
.dhs-svclink { color: var(--dhs-green-700); font-weight: 600; font-size: 14px; text-decoration: none; }
.dhs-svclink:hover { text-decoration: underline; }
.dhs-quietlink { color: var(--dhs-ink-3); font-weight: 600; font-size: 14px; text-decoration: none; }
.dhs-quietlink:hover { color: var(--dhs-green-700); }
/* Page head + toolbar (title/subtitle then caption + page actions), full-width per the frame —
   replaces this page's gradient welcome band; the design's status-filter card is gone but the
   FILTER itself survives as the .dhs-pilltoggle row (functionality never degrades). */
.dhs-pagehead h1 { font-size: 30px; line-height: 38px; font-weight: 800; color: var(--dhs-ink); margin: 0; }
.dhs-pagehead p { margin: 4px 0 0; color: var(--dhs-muted); font-size: 15px; }
.dhs-svc-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.dhs-svc-toolbar .cap { font-size: 14px; font-weight: 600; color: var(--dhs-ink-3); }
.dhs-svc-toolbar .actions { display: flex; gap: 10px; flex-wrap: wrap; }
/* Recommended-for-you: the frame's wide horizontal promo card (badge + copy left, 240px action
   stack right). No per-product imagery exists in the WHMCS catalogue, so the frame's photo slot
   is deliberately not fabricated. Stacks at mobile widths. */
.dhs-reco-card { display: flex; align-items: center; gap: 24px; background: #fff; border: 1px solid var(--dhs-line); border-radius: 12px; padding: 24px; }
.dhs-reco-card + .dhs-reco-card { margin-top: 16px; }
.dhs-reco-card .rc-body { flex: 1 1 auto; min-width: 0; }
.dhs-reco-card .rc-body h3 { font-size: 18px; font-weight: 800; color: var(--dhs-ink); margin: 8px 0 4px; }
.dhs-reco-card .rc-body p { color: var(--dhs-ink-3); font-size: 14px; margin: 0; }
.dhs-reco-card .rc-actions { display: flex; flex-direction: column; gap: 10px; flex: 0 0 240px; }
@media (max-width: 767.98px) {
    .dhs-reco-card { flex-direction: column; align-items: stretch; }
    .dhs-reco-card .rc-actions { flex-basis: auto; }
}
.dhs-gauge { margin-bottom: 12px; }
.dhs-gauge .g-lbl { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; }
.dhs-gauge .g-lbl b { font-weight: 600; }
.dhs-gauge .g-lbl .g-val { color: var(--dhs-muted); }
.dhs-meter { height: 9px; background: var(--dhs-line-2); border-radius: 999px; overflow: hidden; }
.dhs-meter > span { display: block; height: 100%; background: var(--dhs-green); border-radius: 999px; transition: width .4s ease; }
.dhs-meter.warn > span { background: var(--dhs-amber); }
.dhs-meter.crit > span { background: var(--dhs-red); }
/* Healthy-usage fill is BLUE in frame 4651:13743 (informational — no action needed; the green
   in the card is reserved for its action button), warn/crit keep the amber/red tiers above. */
.dhs-meter.info > span { background: var(--dhs-color-status-info-deep); }

/* ---- List-group card (light lists: recent invoices, tickets, mailboxes) ---- */
.dhs-lg { background: #fff; border: 1px solid var(--dhs-line); border-radius: 16px; box-shadow: var(--dhs-shadow-sm); overflow: hidden; }
.dhs-lg-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--dhs-line-2); text-decoration: none; color: var(--dhs-ink); }
.dhs-lg-row:last-child { border-bottom: none; }
.dhs-lg-row:hover { background: var(--dhs-surface-2); text-decoration: none; }
.dhs-lg-row .meta { color: var(--dhs-muted); font-size: 12.5px; }

/* ---- Status badges: soft tint pills, WCAG-AA text, consistent site-wide.
   Global (was client-area-scoped, which left storefront badges on Bootstrap's
   solid green at 2.81:1). Double-class beats Bootstrap's .badge-* whatever the
   stylesheet order. All text/bg pairs verified >= 4.5:1. ---- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.badge.badge-success { background: var(--dhs-green-tint); color: var(--dhs-green-700); }   /* 4.60:1 */
.badge.badge-danger  { background: var(--dhs-red-tint);   color: var(--dhs-red-ink); }     /* 5.20:1 */
.badge.badge-warning { background: var(--dhs-amber-tint); color: var(--dhs-amber-ink); }   /* 5.63:1 */
.badge.badge-info    { background: var(--dhs-blue-tint);  color: var(--dhs-blue); }         /* 4.86:1 */
.badge.badge-secondary { background: var(--dhs-line-2);   color: var(--dhs-muted); }        /* 5.28:1 */

/* Cards in main content (portal pages use .card p-3) get the softer SPA look. */
.dhs-main .card, .dhs-panel .card { border: 1px solid var(--dhs-line); border-radius: 16px; box-shadow: var(--dhs-shadow-sm); }

/* SPA button variants (ghost / outline) usable anywhere .btn is. */
.btn-ghost { background: #fff; color: var(--dhs-ink); border: 1.5px solid var(--dhs-line); border-radius: var(--dhs-radius-pill); font-weight: 700; }
.btn-ghost:hover { border-color: var(--dhs-green); color: var(--dhs-green-700); background: #fff; }
.btn-outline { background: transparent; color: var(--dhs-green-700); border: 1.5px solid var(--dhs-green); border-radius: var(--dhs-radius-pill); font-weight: 700; }
.btn-outline:hover { background: var(--dhs-green-tint); color: var(--dhs-green-700); }
/* Bootstrap's .btn-outline-success text (#28a745) is ~3.4:1 on white — bring to AA. */
.btn-outline-success { color: var(--dhs-green-700); border-color: var(--dhs-green); }
.btn-outline-success:hover, .btn-outline-success:focus { background: var(--dhs-green-700); border-color: var(--dhs-green-700); color: #fff; }

/* ############################################################################
   WAVE 1 — PRODUCTION PARITY (per docs/Design_System_and_UI_Spec.md)
   Real logo + top horizontal nav + per-page contextual left sidebar + DataTable
   skin + donut/bar gauges + cPanel shortcut grid. Tokens verified vs live TwentyX.
   ############################################################################ */
:root {
    --dhs-radius-card-sm: 12px; --dhs-radius-chip: 12px; --dhs-font: "Open Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --dhs-ink-3: #474747; --dhs-line-soft: #f1f1f1; --dhs-line-strong: #dddddd;
    --dhs-hover-bg: #f3f6f9; --dhs-active-bg: #ecf4ea;
    --dhs-warning: #b26a00; --dhs-warning-bg: #fff4e5; --dhs-danger: var(--dhs-red); --dhs-danger-ink: #c11f30; --dhs-danger-bg: #fdecee;
    --dhs-shadow-xs: 0 1px 2px rgba(16,24,40,.05); --dhs-shadow-focus: 0 0 0 3px var(--dhs-focus-ring, rgba(67,176,42,.45));
    --dhs-t-fast: .15s; --dhs-t-slow: .4s; --dhs-ease-out: cubic-bezier(.16,1,.3,1); --dhs-z-sticky: 20;
}

/* ---- Top bar: real logo + horizontal nav + account menu ---- */
.dhs-top { background: #fff; border-bottom: 1px solid var(--dhs-line); position: sticky; top: 0; z-index: 50; }
.dhs-top-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 16px; padding: 12px 20px; }
.dhs-top .brand img { height: 40px; width: auto; display: block; }
.dhs-top .brand { display: inline-flex; align-items: center; }
.dhs-top .grow { flex: 1; }
.dhs-loggedin { color: var(--dhs-muted); font-size: 13px; background: var(--dhs-green-tint); border-radius: 999px; padding: 6px 14px; }
.dhs-loggedin b { color: var(--dhs-green-600); }
.dhs-topnav { background: #fff; border-bottom: 1px solid var(--dhs-line); box-shadow: var(--dhs-shadow-xs); }
.dhs-topnav-row { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 2px; padding: 0 12px; flex-wrap: wrap; }
.dhs-topnav .n { position: relative; }
.dhs-topnav .n > a { display: inline-flex; align-items: center; gap: 6px; padding: 16px 15px; color: var(--dhs-ink); text-decoration: none; font-weight: 600; font-size: 15px; border-bottom: 3px solid transparent; }
.dhs-topnav .n > a:hover, .dhs-topnav .n.active > a { color: var(--dhs-green-600); border-bottom-color: var(--dhs-green); background: var(--dhs-green-tint); }
.dhs-topnav .n .drop { position: absolute; left: 0; top: 100%; background: #fff; border: 1px solid var(--dhs-line); border-radius: 12px; box-shadow: var(--dhs-shadow-lg); min-width: 230px; padding: 6px; display: none; z-index: 55; }
.dhs-topnav .n:hover .drop, .dhs-topnav .n:focus-within .drop { display: block; }
.dhs-topnav .drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--dhs-ink); text-decoration: none; font-size: 14px; white-space: nowrap; }
.dhs-topnav .drop a:hover { background: var(--dhs-green-tint); color: var(--dhs-green-600); }
.dhs-topnav .drop .sep { border-top: 1px solid var(--dhs-line-soft); margin: 6px 4px; }
@media (max-width: 767.98px) { .dhs-topnav .n > a { padding: 12px 10px; font-size: 14px; } .dhs-loggedin { display: none; } }

/* ---- Two-column body: per-page contextual left sidebar + main ---- */
.dhs-layout { max-width: 1200px; margin: 22px auto; padding: 0 20px; display: grid; grid-template-columns: 264px 1fr; gap: 24px; align-items: start; }
.dhs-side { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 16px; }
.dhs-side-card { background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card-sm); box-shadow: var(--dhs-shadow-xs); overflow: hidden; }
.dhs-side-card__title { padding: 13px 16px 9px; font: 600 12px var(--dhs-font); text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-muted); border-bottom: 1px solid var(--dhs-line-soft); }
.dhs-side-nav a, .dhs-side-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 11px 16px; font: 600 14px var(--dhs-font); color: var(--dhs-ink-3); text-decoration: none; border-left: 3px solid transparent; background: none; border-top: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.dhs-side-nav a:hover { background: var(--dhs-hover-bg); color: var(--dhs-ink); }
.dhs-side-nav a.active { background: var(--dhs-green-tint); color: var(--dhs-green-600); border-left-color: var(--dhs-green); }
.dhs-side-nav .count { margin-left: auto; background: var(--dhs-green-tint); color: var(--dhs-green-600); border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 8px; }
.dhs-side-actions { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.dhs-side-actions a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--dhs-ink); font-weight: 600; font-size: 14px; }
.dhs-side-actions a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.dhs-side-actions a:hover { background: var(--dhs-hover-bg); }
.dhs-side-actions a.primary { background: var(--dhs-green); color: #fff; justify-content: center; }
.dhs-side-actions a.primary:hover { background: var(--dhs-green-600); }
.dhs-side-actions a.danger { color: var(--dhs-danger-ink); }
.dhs-side-info { padding: 6px 16px 14px; }
.dhs-side-info .r { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 13.5px; }
.dhs-side-info .r span:first-child { color: var(--dhs-muted); }
.dhs-side-info .r b { color: var(--dhs-ink); font-weight: 600; }
.dhs-side-alert { padding: 14px 16px; font-size: 13px; }
.dhs-side-alert.crit { border-left: 4px solid var(--dhs-danger); }
.dhs-side-alert.warn { border-left: 4px solid var(--dhs-warning); }
.dhs-main2 { min-width: 0; }
@media (max-width: 991.98px) { .dhs-layout { grid-template-columns: 1fr; } .dhs-side { position: static; } }

/* ---- WHMCS's own native client-area sidebar (templates/twenty-one/includes/sidebar.tpl,
   included from header.tpl/footer.tpl on EVERY logged-in page that has $primarySidebar/
   $secondarySidebar children — one shared partial, not a per-page template, so this one rule
   block re-skins it everywhere at once: the native "Your Info"/"Contacts"/"Shortcuts" panels
   AND this repo's own "DHS Self-service" panel (added via the ClientAreaPrimarySidebar hook in
   includes/hooks/dhs_clientarea_menu.php) render through the exact same markup/classes below —
   none of them had ever been reskinned before this, hence the stock-Bootstrap look. Was never a
   per-page gap to audit; it was simply never done. Deliberately CSS-only — sidebar.tpl's classes
   (card-sidebar/card-minimise/list-group-item/sidebar-menu-item-*) are untouched so the native
   collapse-panel JS keeps working. Visual language matches .dhs-side-card/.dhs-side-nav above
   (same flat-card, left-border-accent pattern) without literally sharing markup, since this is a
   different native component the theme can't restructure. ---- */
.sidebar .card-sidebar { border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card-sm, 10px); box-shadow: var(--dhs-shadow-xs, 0 1px 2px rgba(16,24,32,.06)); overflow: hidden; }
.sidebar .card-sidebar .card-header { background: #fff; border-bottom: 1px solid var(--dhs-line-soft, var(--dhs-line)); padding: 13px 16px 9px; }
.sidebar .card-sidebar .card-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 15px var(--dhs-font); color: var(--dhs-ink); }
.sidebar .card-sidebar .card-title > i:not(.card-minimise) { color: var(--dhs-green-600); font-size: 14px; width: 16px; text-align: center; }
.sidebar .card-sidebar .card-title .card-minimise { color: var(--dhs-muted); font-size: 12px; }
.sidebar .card-sidebar .card-title .badge { background: var(--dhs-green-tint); color: var(--dhs-green-600); font-weight: 700; }
.sidebar .card-sidebar .card-body { padding: 14px 16px; font-size: 13.5px; color: var(--dhs-ink-3, var(--dhs-ink)); line-height: 1.6; }
.sidebar .card-sidebar .card-footer { background: #fff; border-top: 1px solid var(--dhs-line-soft, var(--dhs-line)); padding: 10px 16px 14px; }
.sidebar .card-sidebar .list-group-item { padding: 11px 16px; font: 600 14px var(--dhs-font); color: var(--dhs-ink-3, var(--dhs-ink)); background: none; border: 0; border-top: 1px solid var(--dhs-line-soft, var(--dhs-line)); border-left: 3px solid transparent; border-radius: 0; }
.sidebar .card-sidebar .list-group-item:first-child { border-top: 0; }
.sidebar .card-sidebar .list-group-item:hover { background: var(--dhs-hover-bg, var(--dhs-green-tint)); color: var(--dhs-ink); }
.sidebar .card-sidebar .list-group-item.active { background: var(--dhs-green-tint); color: var(--dhs-green-600); border-left-color: var(--dhs-green); }
.sidebar .card-sidebar .list-group-item.disabled { color: var(--dhs-muted); opacity: .6; }
.sidebar .card-sidebar .sidebar-menu-item-wrapper { display: flex; align-items: center; gap: 10px; }
.sidebar .card-sidebar .sidebar-menu-item-icon { opacity: .75; width: 16px; text-align: center; }
.sidebar .card-sidebar .sidebar-menu-item-badge .badge { background: var(--dhs-green-tint); color: var(--dhs-green-600); font-weight: 700; }
.sidebar .card.bg-light .card-header { background: #fff; border-bottom: 1px solid var(--dhs-line-soft, var(--dhs-line)); }
.sidebar .card.bg-light .card-title { font: 700 15px var(--dhs-font); color: var(--dhs-ink); }

/* ---- Data table (DataTable skin: toolbar + scroll + sort + foot) ---- */
.dhs-table-wrap { background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card); }
.dhs-table-toolbar { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 16px; flex-wrap: wrap; border-bottom: 1px solid var(--dhs-line-soft); }
.dhs-table-toolbar input[type=search], .dhs-table-toolbar input.search { border: 1px solid var(--dhs-line); border-radius: 999px; padding: 8px 14px; font-size: 14px; min-width: 200px; outline: none; }
.dhs-table-scroll { overflow: auto; -webkit-overflow-scrolling: touch; }
.dhs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.dhs-table thead th { position: sticky; top: 0; z-index: var(--dhs-z-sticky); background: var(--dhs-surface-2, #f3f6f9); color: var(--dhs-ink); font-weight: 600; text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--dhs-line-strong); white-space: nowrap; }
.dhs-table thead th[data-sort] { cursor: pointer; user-select: none; }
.dhs-table thead th[data-sort]:hover { color: var(--dhs-green-700); }
.dhs-table thead th .sort-ico { opacity: .35; font-size: 9px; margin-left: 4px; }
.dhs-table thead th[aria-sort="ascending"] .sort-ico, .dhs-table thead th[aria-sort="descending"] .sort-ico { opacity: 1; color: var(--dhs-green-700); }
.dhs-table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--dhs-line-soft); color: var(--dhs-ink-3); vertical-align: middle; }
.dhs-table tbody tr:hover { background: var(--dhs-hover-bg); }
.dhs-table tbody tr:last-child td { border-bottom: none; }
.dhs-table td.num, .dhs-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.dhs-table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 16px; flex-wrap: wrap; font-size: 13px; color: var(--dhs-muted); border-top: 1px solid var(--dhs-line-soft); }
.dhs-table-foot .dhs-select { min-width: 0; }
.dhs-table-foot .dhs-select select { padding: 5px 30px 5px 10px; font-size: 13px; }
.dhs-pager { display: inline-flex; gap: 6px; }
.dhs-pager button { border: 1px solid var(--dhs-line); border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 13px; background: #fff; color: var(--dhs-ink); cursor: pointer; }
.dhs-pager button.cur { background: var(--dhs-green); color: #fff; border-color: var(--dhs-green); cursor: default; }
.dhs-pager button:disabled { color: var(--dhs-disabled-ink, #9aa4b2); background: var(--dhs-line-soft); cursor: not-allowed; }
.dhs-table-empty-row td { text-align: center; padding: 26px; color: var(--dhs-muted); }
@media (max-width: 575.98px) {
    .dhs-table thead { display: none; }
    .dhs-table tr { display: block; border: 1px solid var(--dhs-line); border-radius: 12px; margin: 10px; padding: 6px; }
    .dhs-table td { display: flex; justify-content: space-between; gap: 12px; border: 0 !important; }
    .dhs-table td::before { content: attr(data-label); font-weight: 600; color: var(--dhs-muted); }
}

/* ---- Donut/ring gauge ---- */
.dhs-donut { --p: 62; --size: 132px; --thick: 12px; width: var(--size); height: var(--size); position: relative; }
.dhs-donut__ring { width: 100%; height: 100%; border-radius: 50%; background: conic-gradient(var(--dhs-ring, var(--dhs-green)) calc(var(--p) * 1%), #eef1f4 0);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(50% - var(--thick)), #000 calc(50% - var(--thick) + 1px)); mask: radial-gradient(farthest-side, transparent calc(50% - var(--thick)), #000 calc(50% - var(--thick) + 1px)); }
.dhs-donut--warn { --dhs-ring: var(--dhs-warning); } .dhs-donut--crit { --dhs-ring: var(--dhs-danger); }
.dhs-donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.dhs-donut__num { font: 600 28px var(--dhs-font); color: var(--dhs-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.dhs-donut__label { font: 600 11px var(--dhs-font); text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-muted); margin-top: 4px; }
.dhs-donut-row { display: flex; gap: 32px; flex-wrap: wrap; justify-content: center; }
.dhs-donut-cell { text-align: center; }
.dhs-donut-cell .cap { color: var(--dhs-muted); font-size: 12.5px; margin-top: 8px; }

/* ---- cPanel quick-shortcut tiles ---- */
.dhs-shortcuts { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; }
.dhs-shortcut { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px 10px; min-height: 104px; background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-chip); text-decoration: none; text-align: center; transition: border-color var(--dhs-t-fast), box-shadow var(--dhs-t-fast), transform var(--dhs-t-fast); }
.dhs-shortcut:hover { border-color: var(--dhs-green); box-shadow: var(--dhs-shadow-md); transform: translateY(-2px); }
.dhs-shortcut__ico { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--dhs-green-tint); color: var(--dhs-green-dark, #2e7d1e); transition: background var(--dhs-t-fast), transform var(--dhs-t-fast); }
.dhs-shortcut__ico svg { width: 22px; height: 22px; }
.dhs-shortcut:hover .dhs-shortcut__ico { background: var(--dhs-green-700); color: #fff; transform: scale(1.06); }
.dhs-shortcut__label { font: 600 12px var(--dhs-font); color: var(--dhs-ink); line-height: 1.3; }
@media (max-width: 575.98px) { .dhs-shortcuts { grid-template-columns: repeat(3, 1fr); } }

/* Prominent single-CTA button (e.g. "Open cPanel"/"Open Webmail") — same pill+icon+hover-lift
   language as the landing page's .dhs-lp-cta, but on --dhs-green-700 (AA-compliant white-text
   fill, matching .btn-primary's own darkened value) rather than .dhs-lp-cta's plain --dhs-green,
   which falls short of WCAG AA for white text (~2.8:1) — not copying that gap into new code. */
.dhs-hero-cta { display: inline-flex; align-items: center; gap: 9px; padding: 13px 26px; background: var(--dhs-green-700); color: #fff; border-radius: var(--dhs-radius-pill); text-decoration: none; font-weight: 700; font-size: 15px; transition: all .15s; }
.dhs-hero-cta:hover { background: var(--dhs-green-800); color: #fff; box-shadow: var(--dhs-shadow-md); transform: translateY(-1px); }
.dhs-hero-cta svg { width: 20px; height: 20px; flex: 0 0 auto; }

/* Section headers inside main content (production uses hairline-underlined titles) */
.dhs-sec { border-bottom: 1px solid var(--dhs-line); padding-bottom: 10px; margin: 26px 0 16px; font-size: 18px; font-weight: 700; }
.dhs-sec:first-child { margin-top: 0; }

/* ---- Domain search results (storefront) ---- */
.dhs-dom-primary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-radius: 14px; margin: 18px 0 10px; flex-wrap: wrap; }
.dhs-dom-primary.ok { background: var(--dhs-green-tint); border: 1px solid var(--dhs-green); }
.dhs-dom-primary.no { background: var(--dhs-surface-2, #f3f6f9); border: 1px solid var(--dhs-line); }
.dhs-dom-primary .name { font-size: 21px; font-weight: 800; color: var(--dhs-ink); }
.dhs-dom-primary .sub { color: var(--dhs-muted); font-size: 14px; }
.dhs-dom-primary .buy { display: flex; align-items: center; gap: 16px; }
.dhs-dom-primary .price { font-size: 18px; font-weight: 800; color: var(--dhs-green-600); white-space: nowrap; }
.dhs-domlist-h { font-size: 12px; font-weight: 700; color: var(--dhs-muted); text-transform: uppercase; letter-spacing: .04em; margin: 20px 0 8px; }
.dhs-domlist { border: 1px solid var(--dhs-line); border-radius: 12px; overflow: hidden; background: #fff; }
.dhs-domrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); }
/* Phone: the saved-payment-method rows (name + ref + action buttons) exceeded the card and the
   Make-default button clipped at the edge (5090:33011 — 2026-08-29 mobile pass). Wrap. */
@media (max-width: 575.98px) { .dhs-domrow, .dhs-domrow .right { flex-wrap: wrap; } }
.dhs-domrow:last-child { border-bottom: none; }
.dhs-domrow:hover { background: var(--dhs-hover-bg, #f3f6f9); }
.dhs-domrow .name { font-weight: 600; display: flex; align-items: center; gap: 9px; }
.dhs-domrow.gone .name { color: var(--dhs-muted); }
.dhs-domrow .right { display: flex; align-items: center; gap: 16px; min-width: 190px; justify-content: flex-end; }
.dhs-domrow .price { font-weight: 700; white-space: nowrap; }
.dhs-domrow .taken { color: var(--dhs-muted); font-size: 13px; }
.dhs-rowactions { white-space: nowrap; }
.dhs-rowactions .btn + .btn { margin-left: 6px; }

/* ---- AR-aging "Outstanding by age" bar chart: shared baseline, faint tracks,
   single green fill (red reserved for the 90+ overdue bucket) ---- */
.dhs-agebars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 18px; overflow-x: auto; }
.dhs-agebars .col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.dhs-agebars .val { font-size: 12px; font-weight: 700; color: var(--dhs-ink); margin-bottom: 6px; white-space: nowrap; }
.dhs-agebars .track { width: 100%; max-width: 52px; height: 120px; background: var(--dhs-line-2, #eef1f5); border-radius: 7px; display: flex; align-items: flex-end; overflow: hidden; }
.dhs-agebars .fill { width: 100%; background: var(--dhs-green); border-radius: 7px 7px 0 0; transition: height .3s ease; }
.dhs-agebars .fill.has { min-height: 6px; }
.dhs-agebars .fill.over { background: var(--dhs-red); }
.dhs-agebars .lbl { font-size: 12px; color: var(--dhs-muted); margin-top: 8px; text-align: center; }
.dhs-agebars .cnt { font-size: 11px; color: var(--dhs-muted); text-align: center; }
@media (max-width: 575.98px) { .dhs-agebars { gap: 7px; } .dhs-agebars .val { font-size: 10.5px; } .dhs-agebars .lbl { font-size: 11px; } }

/* ---- Billing-page summary (stat cards / credit / quotes / recurring-payments) ---- */
.dhs-stat.danger { border-color: var(--dhs-red); }
.dhs-bsum-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.dhs-bsum-card { display: flex; flex-direction: column; }
.dhs-bsum-hd { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.dhs-bsum-hd .ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--dhs-green-tint); color: var(--dhs-green-700); display: inline-flex; align-items: center; justify-content: center; }
.dhs-bsum-hd .ico svg { width: 17px; height: 17px; }
.dhs-bsum-num { font-size: 26px; font-weight: 800; color: var(--dhs-ink); }
.dhs-bsum-card .btn { margin-top: auto; align-self: flex-start; }
.dhs-bsum-methods { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.dhs-bsum-methods .chip { background: var(--dhs-green-tint); color: var(--dhs-green-700); font-size: 12.5px; font-weight: 600; padding: 5px 12px; border-radius: 999px; }
.dhs-bsum-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

/* ---- Segmented status filter (Invoices toolbar) ---- */
.dhs-pilltoggle { display: inline-flex; gap: 4px; background: var(--dhs-surface-2, #f8fafc); border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-pill); padding: 4px; flex-wrap: wrap; }
.dhs-pilltoggle a { padding: 7px 16px; border-radius: var(--dhs-radius-pill); font-size: 13.5px; font-weight: 700; color: var(--dhs-muted); text-decoration: none; white-space: nowrap; }
.dhs-pilltoggle a:hover { color: var(--dhs-ink); text-decoration: none; }
.dhs-pilltoggle a.active { background: var(--dhs-green-700); color: #fff; box-shadow: var(--dhs-shadow-sm); }

/* ---- Toggle switch (registrar lock etc.) — a real form-submit control ---- */
.dhs-toggle { display: inline-flex; align-items: center; gap: 10px; border: none; background: none; cursor: pointer; padding: 0; font: inherit; }
.dhs-toggle .tr { position: relative; width: 44px; height: 24px; border-radius: 999px; background: var(--dhs-line); transition: background .18s; flex: 0 0 auto; }
.dhs-toggle .th { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.25); transition: left .18s; }
.dhs-toggle.on .tr { background: var(--dhs-green); }
.dhs-toggle.on .th { left: 23px; }
.dhs-toggle .lab { font-weight: 700; font-size: 14px; color: var(--dhs-ink); }
.dhs-toggle:focus-visible { outline: 2px solid var(--dhs-green); outline-offset: 3px; border-radius: 6px; }

/* ---- Branded <select> (service selector etc.), replaces the native control ---- */
.dhs-svc-select { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.dhs-svc-select > label { font-weight: 600; font-size: 14px; color: var(--dhs-ink-3, #474747); }
.dhs-select { position: relative; display: inline-block; min-width: 220px; }
.dhs-select select { -webkit-appearance: none; -moz-appearance: none; appearance: none; width: 100%; padding: 9px 38px 9px 14px; border: 1px solid var(--dhs-line); border-radius: 10px; background: #fff; font: inherit; font-size: 14px; color: var(--dhs-ink); cursor: pointer; outline: none; }
.dhs-select select:focus { border-color: var(--dhs-green); box-shadow: 0 0 0 3px rgba(67, 176, 42, .35); }
.dhs-select::after { content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--dhs-muted); border-bottom: 2px solid var(--dhs-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* ---- Native tab-strip skin (clientareaproductdetails.tpl, D8 pattern-styling 2026-08-22):
   the Bootstrap nav-tabs classes/ids/data-toggle stay for WHMCS's bundled tab JS — this skins
   the same markup to the design's underline-tab look (.dhs-tabs' language). ---- */
.dhs-navtabs { border-bottom: 1px solid var(--dhs-line); gap: 24px; }
.dhs-navtabs .nav-item { margin-bottom: -1px; }
.dhs-navtabs .nav-link {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    background: transparent; padding: 10px 2px;
    font-size: 14px; font-weight: 600; color: var(--dhs-ink);
}
.dhs-navtabs .nav-link:hover { color: var(--dhs-green-700); border-color: transparent; border-bottom-color: var(--dhs-line-2); }
.dhs-navtabs .nav-link.active {
    color: var(--dhs-green-700); background: transparent;
    border-color: transparent; border-bottom: 2px solid var(--dhs-green-700);
}

/* ---- Network-status aggregate banner + empty-incidents card (serverstatus.tpl authed, D15
   pattern-styling 2026-08-22 — the frame's Status Banner / Incidents Card language applied to
   the REAL data units: $opencount and per-server rows; the 6-category grid stays unbuilt). ---- */
.dhs-statusband { display: flex; align-items: flex-start; gap: 14px; border-color: var(--dhs-color-brand-300); background: var(--dhs-green-tint); }
.dhs-statusband--issue { border-color: #FEDF89; background: #FFFAEB; }
.dhs-statusband__icon {
    flex: none; width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    background: var(--dhs-green); color: #fff;
}
.dhs-statusband--issue .dhs-statusband__icon { background: var(--dhs-amber); color: var(--dhs-ink); }

/* ---- Ticket thread (viewticket.tpl, D6 pattern-styling 2026-08-22 — no design frame exists
   for this view; the message-card language is extrapolated: staff replies tinted brand,
   customer replies plain card). The native .requestor-badge class stays on the element (parent
   CSS may target it) but is re-skinned to the badge vocabulary here. ---- */
.dhs-ticket-msg {
    border: 1px solid var(--dhs-line); border-radius: 12px; padding: 14px 16px;
    background: #fff;
}
.dhs-ticket-msg--staff { background: var(--dhs-green-tint); border-color: var(--dhs-color-brand-300); }
.dhs-ticket-msg .message { margin-top: 6px; white-space: pre-line; }
.dhs-ticket-msg .label.requestor-badge {
    display: inline-block; border-radius: 999px; padding: 1px 10px;
    font-size: 12px; line-height: 18px; font-weight: 600;
    background: var(--dhs-color-surface-050); color: var(--dhs-ink-3);
    border: 1px solid var(--dhs-line);
}
.dhs-ticket-msg--staff .label.requestor-badge {
    background: var(--dhs-color-brand-050); color: var(--dhs-green-700); border-color: var(--dhs-color-brand-300);
}

/* ---- Ticket list table skin (supportticketslist.tpl, D6) — the table body is native
   tablelist.tpl markup by DataTables contract, so this is a CSS-only skin scoped to the id:
   native .label.status chips take the badge tints; no markup or JS-contract change. ---- */
#tableTicketsList { border-collapse: separate; border-spacing: 0; }
#tableTicketsList thead th {
    font-size: 13px; font-weight: 600; color: var(--dhs-muted);
    border-bottom: 1px solid var(--dhs-line); background: var(--dhs-color-surface-050);
}
#tableTicketsList tbody tr:hover { background: var(--dhs-color-surface-050); }
#tableTicketsList .label.status {
    display: inline-block; border-radius: 999px; padding: 1px 10px;
    font-size: 12px; line-height: 18px; font-weight: 600;
    background: var(--dhs-color-surface-050); color: var(--dhs-ink-3);
    border: 1px solid var(--dhs-line);
}
#tableTicketsList .label.status.status-open,
#tableTicketsList .label.status.status-customerreply { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
#tableTicketsList .label.status.status-answered { background: #EFF8FF; border-color: #B2DDFF; color: #175CD3; }
#tableTicketsList .label.status.status-closed { background: var(--dhs-color-surface-050); border-color: var(--dhs-line); color: var(--dhs-ink-3); }
#tableTicketsList .label.status.status-onhold,
#tableTicketsList .label.status.status-inprogress { background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
/* status-custom keeps its inline background-color from the template — only shape it */
#tableTicketsList .label.status.status-custom { color: #fff; border-color: transparent; }

/* ---- Alert with a trailing action (proactive alerts) — CTA on its own end, not inline ---- */
.dhs-alert-flex { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.dhs-alert-flex .btn { flex: 0 0 auto; }

/* ---- Service cards: equal height, action group pinned to a common bottom row ---- */
.dhs-svc-card { display: flex; flex-direction: column; }
.dhs-svc-card .svc-actions { margin-top: auto; }
.dhs-svc-card .svc-actions .foot { margin-top: 10px; }

/* ---- Storefront product cards (hosting plans, SSL certs): equal height via grid,
   button pinned to a shared bottom edge regardless of blurb line count. auto-fill
   (not auto-fit) so a short trailing row keeps natural card width instead of
   stretching into a giant pill-button card. ---- */
.dhs-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 16px; }
.dhs-product-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card); padding: 20px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.dhs-product-card:hover { border-color: var(--dhs-green); box-shadow: var(--dhs-shadow-md); transform: translateY(-2px); }
.dhs-product-card .name { font-size: 16px; font-weight: 800; color: var(--dhs-ink); margin-bottom: 6px; }
.dhs-product-card .price { font-size: 21px; font-weight: 800; color: var(--dhs-green-700); margin-bottom: 8px; }
.dhs-product-card .price small { font-size: 13px; font-weight: 600; color: var(--dhs-muted); }
.dhs-product-card .blurb { flex: 1; color: var(--dhs-muted); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px; }
.dhs-feature-list { flex: 1; list-style: none; margin: 0 0 16px; padding: 0; }
.dhs-feature-list li { position: relative; padding-left: 20px; margin-bottom: 7px; color: var(--dhs-ink-3, #474747); font-size: 13.5px; line-height: 1.4; }
.dhs-feature-list li::before { content: ""; position: absolute; left: 0; top: 6px; width: 8px; height: 8px; border-radius: 50%; background: var(--dhs-green-tint); border: 1.5px solid var(--dhs-green); }
.dhs-product-card .btn { margin-top: auto; }

/* ---- Cart summary: line items, hairline total, prominent checkout, a real empty state ---- */
.dhs-cart-lines { border: 1px solid var(--dhs-line); border-radius: 12px; overflow: hidden; background: #fff; }
.dhs-cart-line { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-cart-line:last-child { border-bottom: none; }
.dhs-cart-line .li { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dhs-cart-line .li .t { font-weight: 700; font-size: 14.5px; color: var(--dhs-ink); }
.dhs-cart-line .li .m { font-size: 12.5px; color: var(--dhs-muted); }
.dhs-cart-line .pr { font-weight: 700; font-size: 14.5px; white-space: nowrap; }
.dhs-cart-line .rm { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: var(--dhs-muted); text-decoration: none; transition: background .15s, color .15s; }
.dhs-cart-line .rm:hover { background: var(--dhs-red-tint); color: var(--dhs-red-ink); text-decoration: none; }
.dhs-cart-total { display: flex; justify-content: space-between; align-items: baseline; padding: 16px 4px 4px; font-size: 17px; font-weight: 800; color: var(--dhs-ink); }
.dhs-cart-checkout { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; font-size: 15.5px; padding: 13px; }
.dhs-cart-empty, .dhs-kb-empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 40px 20px; }
.dhs-cart-empty svg, .dhs-kb-empty svg { width: 40px; height: 40px; color: var(--dhs-line-strong, #c8d0da); margin-bottom: 14px; }
.dhs-cart-empty .t, .dhs-kb-empty .t { font-weight: 700; font-size: 15px; color: var(--dhs-ink); margin-bottom: 4px; }
.dhs-cart-empty .m, .dhs-kb-empty .m { font-size: 13.5px; color: var(--dhs-muted); max-width: 320px; }

/* ---- Knowledgebase: accordion list (was static text blocks that looked like
   links but did nothing, and the search box was decorative — see router.php) ---- */
.dhs-kb-list { border: 1px solid var(--dhs-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--dhs-shadow-sm); }
.dhs-kb-item { border-bottom: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-kb-item:last-child { border-bottom: none; }
.dhs-kb-item .q { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 22px; background: none; border: none; text-align: left; cursor: pointer; font: inherit; }
.dhs-kb-item .q:hover, .dhs-kb-item.open .q { background: var(--dhs-surface-2, #f8fafc); }
.dhs-kb-item .q:focus-visible { outline: 2px solid var(--dhs-green); outline-offset: -2px; }
.dhs-kb-item .ico { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 10px; background: var(--dhs-green-tint); color: var(--dhs-green-700); display: inline-flex; align-items: center; justify-content: center; }
.dhs-kb-item .ico svg { width: 17px; height: 17px; }
.dhs-kb-item .t { flex: 1; min-width: 0; font-weight: 700; font-size: 15px; color: var(--dhs-ink); }
.dhs-kb-item .chev { flex: 0 0 auto; color: var(--dhs-muted); transition: transform .18s, color .18s; }
.dhs-kb-item .chev svg { width: 16px; height: 16px; display: block; }
.dhs-kb-item.open .chev { transform: rotate(180deg); color: var(--dhs-green-700); }
.dhs-kb-item .a { max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.dhs-kb-item.open .a { max-height: 240px; }
.dhs-kb-item .a p { margin: 0; padding: 0 22px 18px 70px; color: var(--dhs-ink-3, #474747); font-size: 14px; line-height: 1.6; }
@media (max-width: 575.98px) { .dhs-kb-item .a p { padding-left: 22px; } }

/* ---- Contact Us: info + form side by side (was a lone form floating in a sea
   of empty space at 640px max-width) ---- */
.dhs-contact-grid, .dhs-reg-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; max-width: 900px; margin: 0 auto; }
.dhs-reg-grid { max-width: none; }
@media (max-width: 767.98px) { .dhs-contact-grid, .dhs-reg-grid { grid-template-columns: 1fr; } }
.dhs-contact-info, .dhs-contact-form-card, .dhs-reg-info, .dhs-reg-form-card { background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card); padding: 24px; }
.dhs-contact-info .lead { color: var(--dhs-muted); font-size: 14px; line-height: 1.5; margin: 0 0 16px; }
.dhs-contact-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-contact-item:first-of-type { border-top: none; padding-top: 0; }
.dhs-contact-item .ico { flex: 0 0 36px; width: 36px; height: 36px; border-radius: 10px; background: var(--dhs-green-tint); color: var(--dhs-green-700); display: inline-flex; align-items: center; justify-content: center; }
.dhs-contact-item .ico svg { width: 18px; height: 18px; }
.dhs-contact-item .b { min-width: 0; }
.dhs-contact-item .b strong { display: block; font-size: 13.5px; color: var(--dhs-ink); margin-bottom: 2px; }
.dhs-contact-item .b span { display: block; font-size: 13px; color: var(--dhs-muted); }
.dhs-contact-item .b a { font-size: 13px; color: var(--dhs-green-700); text-decoration: none; font-weight: 600; }
.dhs-contact-item .b a:hover { text-decoration: underline; }

/* ---- Register page: "Already registered?" sidebar links ---- */
.dhs-reg-links { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.dhs-reg-links a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin: 0 -10px; border-radius: 9px; color: var(--dhs-green-700); font-weight: 600; font-size: 13.5px; text-decoration: none; }
.dhs-reg-links a:hover { background: var(--dhs-green-tint); text-decoration: none; }
.dhs-reg-links svg { width: 16px; height: 16px; flex: 0 0 auto; }

/* ---- Register page: mock CAPTCHA (real WHMCS uses native reCAPTCHA/hCaptcha —
   there's no vendor to mock this against, so this is a lightweight visual stand-in) ---- */
.dhs-captcha { display: flex; align-items: center; gap: 12px; margin: 6px 0 16px; flex-wrap: wrap; }
.dhs-captcha-code { display: inline-flex; background: linear-gradient(135deg, var(--dhs-ink) 0%, #3a4658 100%); border-radius: 10px; padding: 10px 18px; letter-spacing: 4px; font-family: "Courier New", monospace; font-weight: 800; font-size: 19px; color: #fff; user-select: none; }
.dhs-captcha-code span:nth-child(odd) { display: inline-block; transform: rotate(-6deg); }
.dhs-captcha-code span:nth-child(even) { display: inline-block; transform: rotate(5deg); }
.dhs-captcha-refresh { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dhs-line); background: #fff; color: var(--dhs-muted); text-decoration: none; transition: border-color .15s, color .15s, transform .3s; flex: 0 0 auto; }
.dhs-captcha-refresh:hover { border-color: var(--dhs-green); color: var(--dhs-green-700); transform: rotate(120deg); }
.dhs-captcha input { max-width: 160px; margin: 0; }

/* ---- Register page: password-strength meter (dedicated name — .dhs-meter already
   has two colliding definitions elsewhere in this file; don't add a third) ---- */
.dhs-pwstrength { margin: 6px 0 16px; }
.dhs-pwstrength .track { height: 8px; background: var(--dhs-line-2, #eef1f5); border-radius: 999px; overflow: hidden; }
.dhs-pwstrength .fill { height: 100%; width: 0; border-radius: inherit; background: var(--dhs-red); transition: width .25s ease, background .25s ease; }
.dhs-pwstrength .lbl { font-size: 12px; color: var(--dhs-muted); margin-top: 5px; }

/* ---- Real Bootstrap .form-control, branded (was plain default-Bootstrap grey —
   never themed despite everything else on the site being branded) ---- */
.form-control { border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-input); padding: 10px 13px; font-size: 15px; line-height: 1.4; color: var(--dhs-ink); background: #fff; height: auto; box-shadow: none; transition: border-color .15s, box-shadow .15s; }
.form-control:focus { border-color: var(--dhs-green); box-shadow: 0 0 0 3px rgba(67, 176, 42, .35); color: var(--dhs-ink); }
.form-group label { font-weight: 600; font-size: 13.5px; color: var(--dhs-ink-3, #474747); margin-bottom: 6px; }
.form-text, .form-group small { color: var(--dhs-muted); font-size: 12.5px; }

/* ---- Announcements: timeline-style list, one card, icon-typed rows (was flat
   stacked cards with no visual hierarchy) ---- */
.dhs-ann-list { border: 1px solid var(--dhs-line); border-radius: 16px; overflow: hidden; background: #fff; box-shadow: var(--dhs-shadow-sm); }
.dhs-ann { display: flex; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--dhs-line-2, #eef1f5); }
.dhs-ann:last-child { border-bottom: none; }
.dhs-ann:hover { background: var(--dhs-surface-2, #f8fafc); }
.dhs-ann .ico { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.dhs-ann .ico svg { width: 19px; height: 19px; }
.dhs-ann .ico.maintenance { background: var(--dhs-amber-tint); color: var(--dhs-amber-ink); }
.dhs-ann .ico.billing { background: var(--dhs-blue-tint); color: var(--dhs-blue); }
.dhs-ann .ico.feature, .dhs-ann .ico.info { background: var(--dhs-green-tint); color: var(--dhs-green-700); }
.dhs-ann .body { flex: 1; min-width: 0; }
.dhs-ann .hd { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.dhs-ann .hd strong { font-size: 15px; color: var(--dhs-ink); }
.dhs-ann .hd .date { flex: 0 0 auto; font-size: 12px; color: var(--dhs-muted); white-space: nowrap; }
.dhs-ann p { margin: 0; color: var(--dhs-ink-3, #474747); font-size: 13.5px; line-height: 1.55; }
@media (max-width: 575.98px) { .dhs-ann .hd { flex-direction: column; align-items: flex-start; gap: 2px; } }

/* ---- Invoice: prominent status label, billed-to/pay-to, breakdown, payments, KRA block ---- */
.dhs-inv-brand { margin-bottom: 22px; }
.dhs-inv-brand img { height: 34px; width: auto; display: block; }
.badge-lg { font-size: 15px; padding: 6px 16px; letter-spacing: .02em; }
.dhs-inv-parties { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-bottom: 18px; }
.dhs-inv-party { background: #fff; border: 1px solid var(--dhs-line); border-radius: var(--dhs-radius-card); padding: 18px 20px; }
.dhs-inv-party h4 { margin: 0 0 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-muted); }
.dhs-inv-party strong { display: block; font-size: 15px; color: var(--dhs-ink); margin-bottom: 4px; }
.dhs-inv-party p { margin: 0; color: var(--dhs-ink-3, #474747); font-size: 13.5px; line-height: 1.6; }
.dhs-portal-table tr.dhs-inv-highlight td { background: var(--dhs-surface-2, #f8fafc); font-weight: 800; }
.dhs-inv-empty-tx { text-align: center; padding: 22px; color: var(--dhs-muted); font-size: 13.5px; }
.dhs-inv-kra { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.dhs-inv-kra-fields { flex: 1; min-width: 220px; display: flex; flex-direction: column; gap: 10px; }
.dhs-inv-kra-fields .r strong { display: block; font-size: 12px; color: var(--dhs-muted); text-transform: uppercase; letter-spacing: .03em; margin-bottom: 2px; }
.dhs-inv-kra-fields .r span { font-size: 14px; color: var(--dhs-ink); font-family: "Courier New", monospace; }
.dhs-inv-kra img { width: 130px; height: 130px; flex: 0 0 auto; border: 1px solid var(--dhs-line); border-radius: 10px; padding: 6px; background: #fff; }
.dhs-inv-actions { display: flex; gap: 10px; justify-content: flex-end; margin: 18px 0; }

/* PRINT — an invoice is a document a customer files, emails or hands to an accountant. Anything
   that is app chrome must not appear on it.
 *
 * This block previously listed #dhs-abby-launcher, #dhs-help-launcher, #dhs-whatsapp-launcher,
 * #dhs-ussd-launcher and .dhs-toast-wrap. NONE of those selectors exist — the real markup in
 * includes/hooks/dhs_clientarea_widgets.php uses #dhs-fabs / .dhs-fab / #dhs-help / #dhs-chat /
 * #dhs-scrim / #dhs-toasts (the USSD launcher itself was later removed entirely — see that file's
 * header — so #dhs-ussd* is gone from both the markup and this rule, not just renamed; the
 * standalone #dhs-abby/#dhs-abby-btn/.dhs-wpanel widget was likewise removed 2026-08-12 when Abby
 * merged into the single #dhs-help panel). So the rules matched nothing and the floating WhatsApp
 * bubble printed on every invoice, on top of the KRA QR code.
 *
 * Selectors below are taken from that file, not guessed. */
@media print {
  /* App chrome. (.sim-banner was listed here and is gone — the simulator banner was removed
     from the UI, so the selector matched nothing.) */
  .dhs-top, .dhs-topnav, .dhs-crumb, .dhs-side, .dhs-slim-foot,
  .dhs-lp-head, .dhs-lp-foot, .dhs-annbar, .dhs-inv-actions,
  /* Payment UI — the invoice states what was paid; it must not offer to take another payment */
  .dhs-pay, .dhs-pay-trust,
  /* Every floating widget: the FAB rail, the panel, its chat log, the scrim and toasts */
  #dhs-fabs, .dhs-fab, #dhs-help, #dhs-help-btn,
  #dhs-chat, #dhs-scrim, #dhs-toasts,
  .dhs-drawer,
  /* Feedback / survey prompts are not part of the document */
  .dhs-jnps-band { display: none !important; }

  .dhs-layout { display: block; }
  .dhs-panel, .dhs-main { box-shadow: none !important; border: none !important; padding: 0 !important; margin: 0 !important; }
  body { background: #fff !important; }
  a[href]::after { content: ""; }
}

/* ==== 95-legacy-bridge.css ================================================ */
/* Legacy bridge — loaded AFTER 90-legacy.css so it wins the cascade.

   Re-points the old --dhs-* token names at the new Figma-derived values, so the 15 existing
   dhs_portal pages and the storefront adopt the new brand immediately, without touching a single
   line of their markup. This is what makes the whole theme visually comparable to the design in
   one step, and it is deliberately temporary: as each page is migrated to the new component
   classes, its dependency on these aliases disappears, and this file shrinks to nothing.

   Text-bearing aliases point at brand.900 (#1E6020), NOT the raw mid-greens — #2CB34A is 2.74:1
   against white and would silently reintroduce the contrast failure the gate exists to prevent.
   Because these aliases feed 15 unmigrated pages, getting this wrong is invisible until an
   accessibility audit finds it. */
:root {
    /* Brand — brand.900 is the design's own darkest green and the only one that passes AA. */
    --dhs-green: var(--dhs-color-brand-900);
    --dhs-green-600: var(--dhs-color-derived-brand-action-hover);
    --dhs-green-700: var(--dhs-color-brand-900);
    --dhs-green-800: var(--dhs-color-derived-brand-action-hover);
    --dhs-green-dark: var(--dhs-color-brand-900);   /* was referenced but never defined */
    --dhs-green-tint: var(--dhs-color-brand-050);
    --dhs-green-tint-2: var(--dhs-color-brand-050);

    /* Ink & surfaces */
    --dhs-ink: var(--dhs-color-ink-900);
    --dhs-ink-2: var(--dhs-color-ink-800);
    --dhs-ink-3: var(--dhs-color-ink-700);
    --dhs-muted: var(--dhs-color-ink-500);
    --dhs-line: var(--dhs-color-line-100);
    --dhs-line-2: var(--dhs-color-line-200);
    --dhs-line-soft: var(--dhs-color-line-200);
    --dhs-line-strong: var(--dhs-color-line-300);
    --dhs-bg: var(--dhs-color-surface-100);
    --dhs-surface-2: var(--dhs-color-surface-050);
    --dhs-hover-bg: var(--dhs-color-surface-100);
    --dhs-active-bg: var(--dhs-color-brand-050);

    /* Status */
    --dhs-red: var(--dhs-color-derived-danger);
    --dhs-danger: var(--dhs-color-derived-danger);
    --dhs-danger-ink: #B3242A;
    --dhs-red-ink: #B3242A;
    --dhs-warning: #7A5A00;
    --dhs-warning-bg: #FFF6DB;
    --dhs-amber: var(--dhs-color-status-warning);
    --dhs-blue: var(--dhs-color-status-info);

    /* Type & shape */
    --dhs-font: var(--dhs-font-family-ui);
    --dhs-radius-card: var(--dhs-radius-xl);
    --dhs-radius-card-sm: var(--dhs-radius-lg);
    --dhs-radius-input: var(--dhs-radius-md);
    --dhs-radius-chip: var(--dhs-radius-xl);
    --dhs-radius-pill: var(--dhs-radius-pill);

    /* Elevation + the previously-undefined focus ring */
    --dhs-shadow-xs: var(--dhs-shadow-xs);
    --dhs-shadow-sm: var(--dhs-shadow-sm);
    --dhs-shadow-md: var(--dhs-shadow-md);
    --dhs-shadow-lg: var(--dhs-shadow-lg);
    --dhs-focus-ring: rgba(33, 136, 56, .45);
}

/* ==== 96-storefront.css =================================================== */
/* Storefront layer — public marketing pages (homepage.tpl).
   Rebuilt to the Figma homepage frame 4043:2758 (1440x6608, 13 sections).
   Values below are the design's own, taken from the node tree, not eyeballed. */

.dhs-lp { background: #fff; }
.dhs-lp-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--dhs-space-6); }

/* ---- 1. announcement bar (#1E6020, 36px) ------------------------------------------------- */
.dhs-annbar {
    background: var(--dhs-color-brand-900); color: #fff; text-align: center;
    font-size: var(--dhs-type-body-sm-size); line-height: 36px; min-height: 36px;
}
/* The offer-code pill styling (background + AA-safe ink text) lives in 20-components.css — do
   not re-declare .dhs-annbar b here. A prior duplicate rule here that only set `color` (to
   status-warning yellow) merged per-property with that rule's un-overridden pink background,
   rendering yellow-on-pink at 2.36:1 contrast, well under WCAG AA. */

/* ---- 2. header (white, 80px) -------------------------------------------------------------- */
.dhs-lp-head { background: #fff; border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-lp-head-in { max-width: 1240px; margin: 0 auto; padding: 0 var(--dhs-space-6); min-height: 80px; display: flex; align-items: center; gap: var(--dhs-space-8); }
.dhs-lp-logo { display: flex; align-items: center; gap: var(--dhs-space-2); font-weight: var(--dhs-font-weight-bold); font-size: 20px; color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-lp-logo img { height: 40px; width: auto; }   /* was 30 — logo sizing pass 2026-08-18: near-invisible in the 80px header band the design draws */
.dhs-lp-nav { display: flex; align-items: center; gap: var(--dhs-space-6); flex: 1; }
.dhs-lp-nav a { color: var(--dhs-color-ink-800); font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold); }
.dhs-lp-nav a:hover, .dhs-lp-nav a.is-active { color: var(--dhs-color-brand-900); text-decoration: none; }

/* Products/Support/About dropdowns (2026-08-20, Design_Diff D16) — CSS-only hover/focus-within
   reveal, no JS needed to open. Panel <a>s carry their own explicit colors on <strong>/<span> so
   the plain .dhs-lp-nav a:hover rule above never fights them. */
.dhs-lp-navdd { position: relative; }
.dhs-lp-navdd__trigger { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 0; margin: 0; color: var(--dhs-color-ink-800); font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold); font-family: inherit; cursor: pointer; }
.dhs-lp-navdd__trigger:hover, .dhs-lp-navdd__trigger.is-active { color: var(--dhs-color-brand-900); }
.dhs-lp-navdd__chev { width: 14px; height: 14px; flex: none; transition: transform .15s ease; }
.dhs-lp-navdd:hover .dhs-lp-navdd__chev, .dhs-lp-navdd:focus-within .dhs-lp-navdd__chev { transform: rotate(180deg); }
.dhs-lp-navdd__panel { position: absolute; top: 100%; left: 0; margin-top: var(--dhs-space-3); background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); box-shadow: var(--dhs-shadow-lg); padding: var(--dhs-space-4); display: flex; gap: var(--dhs-space-6); min-width: 240px; opacity: 0; visibility: hidden; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, visibility .15s; z-index: 40; }
.dhs-lp-navdd:hover .dhs-lp-navdd__panel, .dhs-lp-navdd:focus-within .dhs-lp-navdd__panel { opacity: 1; visibility: visible; transform: translateY(0); }
.dhs-lp-navdd__col { display: flex; flex-direction: column; gap: 2px; min-width: 200px; }
.dhs-lp-navdd__group { display: block; font-size: 11px; font-weight: var(--dhs-font-weight-semibold); text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-color-ink-500); padding: 0 var(--dhs-space-2); margin-bottom: var(--dhs-space-2); }
.dhs-lp-navdd__item { display: block; padding: var(--dhs-space-2); border-radius: var(--dhs-radius-md); white-space: nowrap; }
.dhs-lp-navdd__item:hover { background: var(--dhs-color-surface-050); text-decoration: none; }
.dhs-lp-navdd__item strong { display: block; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); font-size: 14px; }
.dhs-lp-navdd__item span { display: block; font-weight: 400; color: var(--dhs-color-ink-500); font-size: 12px; margin-top: 1px; }
.dhs-lp-navdd__item[aria-current="page"] strong { color: var(--dhs-color-brand-900); }
.dhs-lp-navdd__chat { display: block; margin-top: var(--dhs-space-2); padding: var(--dhs-space-2); border-top: 1px solid var(--dhs-color-line-100); padding-top: var(--dhs-space-3); font-size: 13px; color: var(--dhs-color-ink-500); cursor: pointer; }
.dhs-lp-navdd__chat span { color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-semibold); }
.dhs-lp-navdd__chat:hover { text-decoration: none; }
.dhs-lp-navdd__chat:hover span { text-decoration: underline; }
.dhs-lp-head-actions { display: flex; align-items: center; gap: var(--dhs-space-4); }
.dhs-lp-iconbtn { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--dhs-color-ink-800); background: transparent; border: 0; cursor: pointer; position: relative; }
.dhs-lp-iconbtn:hover { background: var(--dhs-color-surface-100); }
.dhs-lp-iconbtn svg { width: 20px; height: 20px; }
.dhs-lp-cartn { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--dhs-color-derived-danger); color: #fff; font-size: 11px; line-height: 18px; text-align: center; padding: 0 4px; }

/* ---- 3. Static Hero (frame 5056:33436, 589px) ----------------------------------------------
   Full-bleed photograph (the design's own fill 28888cca…, shipped as ../images/hero-farm.webp)
   behind a left-to-right scrim built from the frame's #0F1412 gradient stops; the copy, search
   bar and TLD chips overlay it. --dhs-hero-photo is the admin override seam ($dhs_hero_image
   sets it inline on the section); the var() fallback is the shipped photo, swapped for the
   smaller crop on phones in the 767.98 block below. The old #0B0F0C->#08210F gradient hero and
   its right-hand carousel card are gone with the frame. */
/* Crop + sizing (2026-09-09, UAT: the subject's head was cut off on wide/100%-zoom windows and
   the crop varied with browser zoom): `cover` scales the photo to the window's full WIDTH, so a
   fixed-height band shows an ever-thinner slice as the window widens — and `center` positioning
   took that loss from the top, where the subject is. Two-part fix, matching the design file's
   own crop (frame 5056:33436 anchors the fill top-ish and trims the bottom):
   - `center top`: whatever `cover` must trim always comes off the field at the bottom, never
     the subject — at any width or zoom.
   - height: the FRAME'S OWN 589px, held constant on desktop. Two failed extrapolations first
     (2026-09-09 UAT): a fixed band + centre crop cut the subject's head off as windows widened;
     then a width-tracking band (41vw, viewport-capped) filled the whole first screen on a
     2560×1178 monitor and hid every band below the hero. The drawing itself settles it — a
     589px band with the photo anchored top — so wider windows simply see more field at the
     sides via `cover`, never a taller hero and never a cropped subject. The min() viewport
     guard (160px ≈ announcement bar + header) only bites on very short windows; min-height
     still lets the band grow if the overlaid content ever needs more room. */
.dhs-hero {
    background-image: linear-gradient(90deg, rgba(15,20,18,.88) 0%, rgba(15,20,18,.60) 38%, rgba(15,20,18,.28) 66%, rgba(15,20,18,.10) 100%), var(--dhs-hero-photo, url("../images/hero-farm.webp"));
    background-size: cover; background-position: center top;
    color: #fff; padding: var(--dhs-space-16) 0; min-height: min(589px, 100vh - 160px); display: flex; align-items: center;
}
.dhs-hero-in { max-width: 1240px; width: 100%; margin: 0 auto; padding: 0 var(--dhs-space-6); }
.dhs-hero-copy { max-width: 933px; }
/* .dhs-hero-headline: legacy alias of the h1 style (no markup emits it since the carousel was
   retired 2026-09-08; kept on the shared rule below at zero cost). */
.dhs-hero h1, .dhs-hero .dhs-hero-headline {
    font-family: var(--dhs-font-family-display);
    font-size: 56px; line-height: 1.08; font-weight: var(--dhs-font-weight-bold);
    color: #fff; margin: 0 0 var(--dhs-space-5);
}
.dhs-hero p.dhs-hero-sub { font-size: 21px; line-height: 32px; color: rgba(255,255,255,.85); margin: 0 0 var(--dhs-space-8); max-width: 52ch; }

/* Search bar — dark, pill, on the gradient */
/* Search bar per the frame's domain-search-bar (760x68, radius 14, WHITE, #a4a7ae hairline):
   search glyph + dark-ink input, the light TLD dropdown (radius 8, #fafafa on #e9eaeb), and the
   filled Search button (radius 8 per the frame, overriding .dhs-btn's pill). Was the dark
   translucent bar of the retired gradient hero. */
.dhs-hero-search { display: flex; align-items: center; gap: var(--dhs-space-2); background: #fff; border: 1px solid #a4a7ae; border-radius: 14px; padding: var(--dhs-space-2) var(--dhs-space-2) var(--dhs-space-2) var(--dhs-space-4); max-width: 760px; box-shadow: var(--dhs-shadow-md); }
.dhs-hero-search__ico { flex: none; color: var(--dhs-color-ink-500, #414651); }
.dhs-hero-search input[type="text"] { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--dhs-color-ink-900); font-size: var(--dhs-type-body-lg-size); padding: 0 var(--dhs-space-2); min-height: 48px; }
.dhs-hero-search input::placeholder { color: #717680; }
.dhs-hero-search select { min-height: 44px; border-radius: var(--dhs-radius-md); background: #fafafa; color: var(--dhs-color-ink-700, #414651); border: 1px solid var(--dhs-line, #e9eaeb); padding: 0 var(--dhs-space-3); font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold); }
.dhs-hero-search select option { color: var(--dhs-color-ink-900); }
.dhs-hero-search .dhs-btn { min-height: 44px; border-radius: var(--dhs-radius-md); }

/* CAPTCHA block (present in the design's hero) */

/* TLD price chips */
.dhs-hero-tlds { display: flex; flex-wrap: wrap; gap: var(--dhs-space-2); margin-top: var(--dhs-space-5); }
/* TLD price chips per the frame's trust-chips (white 15% pills, white hairline, white text). */
.dhs-hero-tld { display: inline-flex; align-items: baseline; gap: 6px; padding: 8px var(--dhs-space-4); border-radius: var(--dhs-radius-pill); background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.65); font-size: var(--dhs-type-body-sm-size); }
.dhs-hero-tld b { color: #fff; font-weight: var(--dhs-font-weight-semibold); }
.dhs-hero-tld span { color: rgba(255,255,255,.85); }

/* .dhs-hero-trust / .dhs-hero-art removed 2026-09-08 with the Static Hero rebuild — the trust
   bullet row and the right-hand carousel card have no matching markup any more (the frame
   dropped them); deleted rather than left as dead CSS. */

/* ---- generic section scaffolding --------------------------------------------------------- */
.dhs-lp-sec { padding: var(--dhs-space-16) 0; }
.dhs-lp-sec--tint { background: var(--dhs-color-surface-050); }
.dhs-lp-sec--green { background: var(--dhs-color-brand-050); }
.dhs-lp-sec h2 { font-family: var(--dhs-font-family-display); font-size: 36px; line-height: 1.2; text-align: center; margin: 0 0 var(--dhs-space-3); }
.dhs-lp-sec .dhs-lp-lede { text-align: center; color: var(--dhs-color-ink-500); max-width: 62ch; margin: 0 auto var(--dhs-space-10); }
.dhs-eyebrow { display: inline-block; padding: 4px var(--dhs-space-3); border-radius: var(--dhs-radius-pill); background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); font-size: var(--dhs-type-eyebrow-size); font-weight: var(--dhs-font-weight-bold); letter-spacing: .06em; text-transform: uppercase; }

/* ---- plan cards --------------------------------------------------------------------------- */
/* 3 across, fixed-width, centered — mirrors .dhs-of-grid (98-cart.css), the Store page's own
   plan grid. A stretchy repeat(N,1fr) left-aligns a trailing incomplete row; fixed-width tracks
   plus justify-content:center let a non-multiple-of-3 catalogue (6 plans today) center instead. */
.dhs-plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 320px)); justify-content: center; gap: var(--dhs-space-6); }
@media (max-width: 1199.98px) { .dhs-plan-grid { grid-template-columns: repeat(2, minmax(0, 320px)); } }
@media (max-width: 767.98px)  { .dhs-plan-grid { grid-template-columns: minmax(0, 320px); } }
.dhs-plan { position: relative; background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-6); box-shadow: var(--dhs-shadow-sm); display: flex; flex-direction: column; }
.dhs-plan--featured { border-color: var(--dhs-color-brand-900); box-shadow: var(--dhs-shadow-md); }
.dhs-plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--dhs-color-brand-accent); color: var(--dhs-color-ink-900); font-size: var(--dhs-type-caption-size); font-weight: var(--dhs-font-weight-bold); padding: 4px var(--dhs-space-3); border-radius: var(--dhs-radius-pill); white-space: nowrap; }
.dhs-plan__name { font-size: var(--dhs-type-h3-size); font-weight: var(--dhs-font-weight-bold); }
.dhs-plan__price { font-size: 30px; font-weight: var(--dhs-font-weight-bold); margin: var(--dhs-space-2) 0 var(--dhs-space-4); }
.dhs-plan__price span { font-size: var(--dhs-type-body-size); font-weight: 400; color: var(--dhs-color-ink-500); }
.dhs-plan ul { list-style: none; margin: 0 0 var(--dhs-space-6); padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-plan li { display: flex; gap: var(--dhs-space-2); align-items: flex-start; font-size: var(--dhs-type-body-size); color: var(--dhs-color-ink-700); }
.dhs-plan li svg { width: 16px; height: 16px; color: var(--dhs-color-brand-900); flex: none; margin-top: 3px; }
.dhs-plan .dhs-btn { margin-top: auto; width: 100%; }

/* ---- quick links / trust / stats ---------------------------------------------------------- */
.dhs-quick { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--dhs-space-4); background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-8) var(--dhs-space-6); box-shadow: var(--dhs-shadow-sm); }
.dhs-quick a { display: grid; justify-items: center; gap: var(--dhs-space-3); color: var(--dhs-color-ink-800); font-weight: var(--dhs-font-weight-semibold); font-size: var(--dhs-type-body-size); text-align: center; }
.dhs-quick a:hover { color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-quick__ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); }
.dhs-quick__ico svg { width: 24px; height: 24px; }

.dhs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dhs-space-6); text-align: center; }
.dhs-stats__n { font-size: 38px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-derived-brand-action-hover); }
.dhs-stats__l { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-size); }

/* dark trust strip (#082A12) */
.dhs-truststrip { background: #082A12; color: #fff; padding: var(--dhs-space-8) 0; }
.dhs-truststrip ul { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--dhs-space-10); list-style: none; margin: 0; padding: 0; }
.dhs-truststrip li { display: flex; align-items: center; gap: var(--dhs-space-2); font-weight: var(--dhs-font-weight-semibold); font-size: var(--dhs-type-body-size); }
.dhs-truststrip svg { width: 18px; height: 18px; color: var(--dhs-color-brand-500); }

/* ---- closing CTA + footer (#13161B) ------------------------------------------------------- */
.dhs-closing { background: linear-gradient(160deg, #0B0F0C 0%, #08210F 100%); color: #fff; padding: var(--dhs-space-16) 0; text-align: center; }
.dhs-closing h2 { font-family: var(--dhs-font-family-display); font-size: 34px; margin: 0 0 var(--dhs-space-3); color: #fff; }
.dhs-closing p { color: #D7DEDA; margin: 0 0 var(--dhs-space-6); }

.dhs-lp-foot { background: #13161B; color: #C7CBD1; padding: var(--dhs-space-12) 0 var(--dhs-space-8); }
.dhs-lp-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: var(--dhs-space-8); }
.dhs-lp-foot h3 { color: #fff; font-size: var(--dhs-type-body-size); margin: 0 0 var(--dhs-space-4); }
.dhs-lp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-lp-foot a { color: #C7CBD1; font-size: var(--dhs-type-body-sm-size); }
.dhs-lp-foot a:hover { color: #fff; }
.dhs-lp-foot-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: var(--dhs-space-10); padding-top: var(--dhs-space-6); display: flex; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap; font-size: var(--dhs-type-body-sm-size); }

/* ---- responsive ---------------------------------------------------------------------------- */
@media (max-width: 1199.98px) {
    /* Hero rules gone 2026-09-08: the Static Hero is single-column at every width (the old
       two-column grid + image-first ordering had nothing left to act on). */
    /* .dhs-plan-grid deliberately NOT repeated here (KD-84): the base ladder at the top of this
       file already sets 2 cols ≤1199.98 and 1 col ≤767.98 — a duplicate 2-col rule HERE came
       later in source and beat the 1-col rule for the whole 576-767px range, pushing two 291px
       cards 15px past both viewport edges. */
    .dhs-quick { grid-template-columns: repeat(3, 1fr); }
    .dhs-lp-foot-grid { grid-template-columns: repeat(2, 1fr); }
    /* `.dhs-lp-nav { display: none }` deliberately REMOVED (KD-58). It lived here while the
       burger that replaces it was revealed at 900px in 97-public.css, and since this file is
       concatenated first, 901-1100px ended up with neither. The hide and the reveal now sit
       together in 97-public.css's drawer block so they cannot drift apart again. */
}
@media (max-width: 767.98px) {
    /* Static Hero on phones (mobile-homepage 5150:21704): same full-bleed treatment, the smaller
       encode of the same photo, a steeper top-down scrim so the white copy stays readable where
       the photo is brightest, and a band that fits the phone's own viewport (svh where supported;
       the base rule's vh clamp still bounds browsers without it). Top-anchored like the desktop
       rule so the subject is never the part that gets cropped. The admin override var still wins. */
    .dhs-hero { background-image: linear-gradient(180deg, rgba(15,20,18,.82) 0%, rgba(15,20,18,.55) 55%, rgba(15,20,18,.30) 100%), var(--dhs-hero-photo, url("../images/hero-farm-sm.webp")); background-position: center top; min-height: min(560px, calc(100svh - 120px)); }
}
@media (max-width: 575.98px) {
    .dhs-hero { padding: var(--dhs-space-10) 0; }
    .dhs-hero h1, .dhs-hero .dhs-hero-headline { font-size: 34px; }
    .dhs-hero-search { flex-wrap: wrap; }
    /* Icon + input share the first row (the icon is flex:none, the input flexes beside it);
       the TLD select and the button each take a full row below, per the mobile frame. */
    .dhs-hero-search input[type="text"] { width: auto; flex: 1 1 0; }
    .dhs-hero-search select, .dhs-hero-search .dhs-btn { width: 100%; flex: 1 1 100%; }
    .dhs-plan-grid, .dhs-quick, .dhs-stats { grid-template-columns: 1fr; }
    .dhs-lp-sec h2 { font-size: 26px; }
    .dhs-truststrip ul { gap: var(--dhs-space-4); }
    .dhs-lp-foot-grid { grid-template-columns: 1fr; }
}

/* Sits on the photo now (was the dark gradient): white text with an underline for the link so
   it stays legible over the image's brighter mid-tones. */
.dhs-hero-alt { margin: var(--dhs-space-3) 0 0; font-size: var(--dhs-type-body-sm-size); color: rgba(255,255,255,.8); }
.dhs-hero-alt a { color: #fff; font-weight: var(--dhs-font-weight-semibold); text-decoration: underline; text-underline-offset: 3px; }
.dhs-hero-alt a:hover { color: var(--dhs-color-brand-300); }

/* ---- Bands (mixed light/dark since the 2026-08-19 drop) -----------------------------------
   The design alternates light and dark-green sections. The hosting-plans band went LIGHT in the
   4805:48785 frame; the trust band stays dark per the earlier 4043:2758 frame. */

/* §5 hosting plans — LIGHT band since the 2026-08-19 drop (frame 4805:48785 §Hosting Plans:
   light surface, white cards, green-tinted featured card). The dark-gradient treatment this
   block used to carry came from the earlier 4043:2758 frame and is superseded. */
.dhs-lp-sec--plans { background: var(--dhs-color-surface-050); }
/* §6 trust / quick-support (still dark per the earlier frame; the 08-19 drop drops this band
   entirely — kept pending designer confirmation, see docs/Design_Diff_2026-08-19.md) */
.dhs-lp-sec--trust { background: linear-gradient(160deg, #0B0F0C 0%, #0F1A14 100%); }

.dhs-lp-sec--trust h2 { color: #fff; }
.dhs-lp-sec--trust .dhs-lp-lede { color: #C3D2C8; }

.dhs-lp-sec--plans .dhs-plan { background: var(--dhs-color-surface-white); }
.dhs-lp-sec--plans .dhs-plan--featured { background: var(--dhs-green-tint-2); border-color: var(--dhs-green); }

/* §7 social proof — white band, boxed stat tiles + certification chips (08-19 frame) */
.dhs-proof-tiles { display: grid; grid-template-columns: 2fr 1fr; gap: var(--dhs-space-6); margin-top: var(--dhs-space-8); }
.dhs-proof-row { display: grid; grid-template-columns: 2fr 1fr; gap: var(--dhs-space-6); margin-top: var(--dhs-space-6); align-items: stretch; }
.dhs-proof-tile { background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); box-shadow: var(--dhs-shadow-sm); padding: var(--dhs-space-8); text-align: center; display: grid; place-content: center; gap: var(--dhs-space-2); }
.dhs-proof-tile .n { font-size: 56px; line-height: 1.05; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-proof-tile .l { color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); letter-spacing: .06em; text-transform: uppercase; }
.dhs-certs { display: grid; grid-template-columns: repeat(5, 1fr); gap: var(--dhs-space-4); list-style: none; margin: 0; padding: 0; }
.dhs-certs li { background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-4); display: grid; justify-items: center; gap: var(--dhs-space-1); text-align: center; }
.dhs-certs li svg { width: 22px; height: 22px; color: var(--dhs-color-derived-brand-action-hover); }
.dhs-certs .t { font-weight: var(--dhs-font-weight-semibold); font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-800); }
.dhs-certs .s { color: var(--dhs-color-ink-500); font-size: 12px; }
@media (max-width: 900px) {
    .dhs-proof-tiles, .dhs-proof-row { grid-template-columns: 1fr; }
    .dhs-certs { grid-template-columns: repeat(2, 1fr); }
}

/* Quick-support tiles on the dark band */
.dhs-lp-sec--trust .dhs-quick { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.14); box-shadow: none; }
.dhs-lp-sec--trust .dhs-quick a { color: #E6EDE8; }
.dhs-lp-sec--trust .dhs-quick a:hover { color: var(--dhs-color-brand-500); }
.dhs-lp-sec--trust .dhs-quick__ico { background: rgba(44,179,74,.16); color: var(--dhs-color-brand-500); }

/* §12 closing CTA — corrected gradient stops */
.dhs-closing { background: linear-gradient(160deg, #0B3E1C 0%, #06220E 100%); }

/* ---- Website-Builder-Spotlight (design §4, 723px) ------------------------------------------ */
.dhs-wb { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--dhs-space-12); align-items: center; }
.dhs-wb h2 { text-align: left; margin-top: var(--dhs-space-4); }
.dhs-wb__lede { color: var(--dhs-color-ink-500); margin-bottom: var(--dhs-space-6); }
.dhs-wb__feats { list-style: none; margin: 0 0 var(--dhs-space-8); padding: 0; display: grid; gap: var(--dhs-space-5); }
.dhs-wb__feats li { display: flex; gap: var(--dhs-space-3); }
.dhs-wb__ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--dhs-radius-md); background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); }
.dhs-wb__ico svg { width: 20px; height: 20px; }
.dhs-wb__ft { font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); display: block; }
.dhs-wb__fd { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }

/* Browser mock showing the built site */
.dhs-browser { border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-xl); overflow: hidden; box-shadow: var(--dhs-shadow-lg); background: #fff; }
.dhs-browser__bar { display: flex; align-items: center; gap: var(--dhs-space-3); padding: var(--dhs-space-3) var(--dhs-space-4); background: var(--dhs-color-surface-100); border-bottom: 1px solid var(--dhs-color-line-200); }
.dhs-browser__dots { display: flex; gap: 6px; }
.dhs-browser__dots i { width: 10px; height: 10px; border-radius: 50%; display: block; }
.dhs-browser__url { flex: 1; background: #fff; border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-pill); padding: 4px var(--dhs-space-3); font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-500); text-align: center; }
.dhs-browser__body { padding: var(--dhs-space-5); }
.dhs-shop__nav { display: flex; gap: var(--dhs-space-4); align-items: center; border-bottom: 1px solid var(--dhs-color-line-200); padding-bottom: var(--dhs-space-3); margin-bottom: var(--dhs-space-4); font-size: var(--dhs-type-body-sm-size); }
.dhs-shop__brand { font-weight: var(--dhs-font-weight-bold); letter-spacing: .08em; font-size: var(--dhs-type-caption-size); }
.dhs-shop__nav a { color: var(--dhs-color-ink-500); }
.dhs-shop__hero { font-family: var(--dhs-font-family-display); font-size: 20px; line-height: 1.25; margin: 0 0 var(--dhs-space-2); }
.dhs-shop__sub { font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-500); margin: 0 0 var(--dhs-space-4); }
/* template-hero: image beside the text on desktop, stacked banner on mobile — the design's own
   HORIZONTAL(gap 24, centred) vs VERTICAL(gap ~11) split. Ratios differ per width (180x148 vs
   328x67), so object-fit does the framing from one 640x467 source. */
/* The sub-heading's own margin-bottom used to be the gap before the card grid. Wrapping the text
   in this row moved that margin inside the flex box, so the banner sat flush against the first
   card on mobile — the row has to carry the separation now. */
.dhs-shop__hero-row { display: flex; align-items: center; gap: var(--dhs-space-6); margin-bottom: var(--dhs-space-4); }
.dhs-shop__hero-row .dhs-shop__sub { margin-bottom: 0; }
.dhs-shop__hero-text { flex: 1 1 auto; min-width: 0; }
.dhs-shop__hero-img {
    flex: none; width: 180px; height: 148px; object-fit: cover; object-position: center;
    border-radius: var(--dhs-radius-md); background: var(--dhs-color-surface-100);
}
.dhs-shop__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--dhs-space-3); }
.dhs-shop__card { border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-md); overflow: hidden; }
/* Was an empty gradient block; now the design's own product shot. object-fit keeps the 2.29:1
   source correctly framed in a 62px-tall slot at every width, and the brand tint stays as the
   background so a failed/slow image degrades to what was there before rather than to white. */
.dhs-shop__ph {
    display: block; width: 100%; height: 62px;
    object-fit: cover; object-position: center;
    background: linear-gradient(135deg, var(--dhs-color-brand-050), #DCEEE0);
}
.dhs-shop__meta { padding: var(--dhs-space-2); font-size: 11px; }
.dhs-shop__meta b { display: block; color: var(--dhs-color-ink-900); }
.dhs-shop__meta span { color: var(--dhs-color-brand-900); font-weight: var(--dhs-font-weight-semibold); }

/* ---- Services grid (design §7, #FAFAFA) ---------------------------------------------------- */
.dhs-svcgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--dhs-space-5); }
.dhs-svccard { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-5); box-shadow: var(--dhs-shadow-xs); }
.dhs-svccard__ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--dhs-radius-md); background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); margin-bottom: var(--dhs-space-3); }
.dhs-svccard__ico svg { width: 22px; height: 22px; }
.dhs-svccard b { display: block; color: var(--dhs-color-ink-900); }
.dhs-svccard span { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }

/* domain feature panel beside the grid */
.dhs-domlead { display: grid; grid-template-columns: 1fr .85fr; gap: var(--dhs-space-10); align-items: center; margin-top: var(--dhs-space-10); }
.dhs-domlead__panel { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-8); box-shadow: var(--dhs-shadow-sm); }
.dhs-domlead__name { font-family: var(--dhs-font-family-display); font-size: 26px; color: var(--dhs-color-brand-900); margin: var(--dhs-space-2) 0 var(--dhs-space-3); }
.dhs-domlead ul { list-style: none; margin: var(--dhs-space-4) 0; padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-domlead li { display: flex; gap: var(--dhs-space-2); align-items: center; font-size: var(--dhs-type-body-size); color: var(--dhs-color-ink-700); }
.dhs-domlead li svg { width: 16px; height: 16px; color: var(--dhs-color-brand-900); flex: none; }
.dhs-domlead__price { font-size: 32px; font-weight: var(--dhs-font-weight-bold); }
.dhs-domlead__price span { font-size: var(--dhs-type-body-size); font-weight: 400; color: var(--dhs-color-ink-500); }

/* ---- Category list + detail (29AUG 5056:33436, audit B02) --------------------------------- *
 * Replaces the six-card .dhs-svcgrid + standalone .dhs-domlead on desktop: list rows left
 * (real store links; JS swaps the right panel instead of navigating), detail panel right.
 * The mobile accordion below is untouched and takes over at the phone breakpoint. */
.dhs-catsplit { display: grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.2fr); gap: var(--dhs-space-6); align-items: start; }
.dhs-catlist { display: flex; flex-direction: column; gap: var(--dhs-space-2); }
.dhs-catrow {
    display: flex; align-items: center; gap: var(--dhs-space-3);
    background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    padding: 12px 16px; text-decoration: none; color: inherit;
}
.dhs-catrow:hover { border-color: var(--dhs-color-brand-300); text-decoration: none; }
.dhs-catrow.is-active { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-600); }
.dhs-catrow .dhs-svccard__ico { margin-bottom: 0; flex: none; width: 40px; height: 40px; }
.dhs-catrow__meta { flex: 1 1 auto; min-width: 0; }
.dhs-catrow__meta b { display: block; color: var(--dhs-color-ink-900); }
.dhs-catrow__meta span { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }
.dhs-catrow__chev { width: 18px; height: 18px; flex: none; color: var(--dhs-color-ink-400); }
.dhs-catpanel {
    background: #fff; border: 1px solid var(--dhs-color-brand-300); border-radius: var(--dhs-radius-2xl);
    padding: var(--dhs-space-8); box-shadow: var(--dhs-shadow-sm);
}
.dhs-catpanel__name { font-family: var(--dhs-font-family-display); font-size: 26px; color: var(--dhs-color-brand-900); margin: var(--dhs-space-2) 0 var(--dhs-space-3); }
.dhs-catpanel ul { list-style: none; margin: var(--dhs-space-4) 0; padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-catpanel li { display: flex; gap: var(--dhs-space-2); align-items: center; font-size: var(--dhs-type-body-size); color: var(--dhs-color-ink-700); }
.dhs-catpanel li svg { width: 16px; height: 16px; color: var(--dhs-color-brand-900); flex: none; }
.dhs-catpanel__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap; }
.dhs-catpanel__price { font-size: 28px; font-weight: var(--dhs-font-weight-bold); margin: 0; }
.dhs-catpanel__price span { font-size: var(--dhs-type-body-size); font-weight: 400; color: var(--dhs-color-ink-500); }
@media (max-width: 991.98px) { .dhs-catsplit { grid-template-columns: 1fr; } }
@media (max-width: 575.98px) { .dhs-catsplit { display: none; } } /* the accordion takes over */

/* ---- Plans band tile variant (29AUG 5056:33436, audit B02) -------------------------------- */
.dhs-plan__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--dhs-space-2); margin: var(--dhs-space-3) 0; padding: var(--dhs-space-3) 0; border-top: 1px solid var(--dhs-color-line-100); border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-plan__stats span { display: flex; flex-direction: column; }
.dhs-plan__stats b { color: var(--dhs-color-ink-900); font-size: var(--dhs-type-body-strong-size); }
.dhs-plan__stats small { color: var(--dhs-color-ink-400); font-size: 11.5px; }
.dhs-plan__cta { width: 100%; justify-content: center; text-align: center; margin-top: auto; }
.dhs-plan-grid--tiles.is-collapsed .dhs-plan--extra { display: none; }
.dhs-plan-more { text-align: center; margin-top: var(--dhs-space-5); }
.dhs-plan-more a { color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-semibold); text-decoration: none; }
.dhs-plan-more a:hover { text-decoration: underline; }

/* ---- Add-ons (design §10) ------------------------------------------------------------------- */
.dhs-addons { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--dhs-space-5); }
.dhs-addon { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-5); display: flex; flex-direction: column; box-shadow: var(--dhs-shadow-xs); }
.dhs-addon b { color: var(--dhs-color-ink-900); }
.dhs-addon p { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); margin: var(--dhs-space-2) 0 var(--dhs-space-4); }
.dhs-addon__price { font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-4); }
.dhs-addon__price span { font-weight: var(--dhs-font-weight-regular, 400); color: var(--dhs-color-ink-500); font-size: var(--dhs-type-body-sm-size); }
.dhs-addon .dhs-btn { margin-top: auto; align-self: flex-start; }

/* ---- How-to videos (design §11) -------------------------------------------------------------- */
.dhs-vids { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--dhs-space-5); }
/* display:block is load-bearing: .dhs-vid is an ANCHOR, and an inline box's height is its line
   box — the 128px thumb and the meta block overflowed it (12px caption clip + 14px sibling
   overlap at every width, caught by widthcheck --layout; KD-84). */
.dhs-vid { display: block; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); overflow: hidden; background: #fff; box-shadow: var(--dhs-shadow-xs); }
.dhs-vid { text-decoration: none; color: inherit; transition: box-shadow .15s, border-color .15s; }
.dhs-vid:hover, .dhs-vid:focus-visible { border-color: var(--dhs-color-brand-300); box-shadow: var(--dhs-shadow-sm, 0 2px 8px rgba(0,0,0,.08)); text-decoration: none; }
/* 16:9 to match the 1280x720 clips; the poster (the clip's own title card) fills it. The gradient
   stays as the backdrop while the poster loads, or when a card has none. */
/* Play button bottom-left, duration bottom-right: the poster IS the clip's title card, so its
   centre carries the title text and must stay readable. */
.dhs-vid__thumb { position: relative; display: grid; place-items: end start; padding: 10px; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, #0B0F0C, #1C5C31); }
.dhs-howto .dhs-lp-in > .dhs-eyebrow { display: table; margin: 0 auto var(--dhs-space-3); }
.dhs-vid__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dhs-vid__play { position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.92); display: grid; place-items: center; color: #08210F; box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.dhs-vid:hover .dhs-vid__play { background: #fff; transform: scale(1.06); }
.dhs-vid__dur { position: absolute; right: 8px; bottom: 8px; padding: 1px 6px; border-radius: 4px; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; font-weight: var(--dhs-font-weight-bold); }
/* The player dialog (homepage.tpl, opened by dhs-widgets.js). Native <dialog>: focus trap, Esc and
   inert background come from the browser. */
.dhs-vid-dialog { width: min(960px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: var(--dhs-radius-xl); overflow: auto; }
.dhs-vid-dialog::backdrop { background: rgba(8, 33, 15, .72); }
.dhs-vid-dialog__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3); padding: var(--dhs-space-4) var(--dhs-space-5); }
.dhs-vid-dialog__head h3 { margin: 0; font-size: 18px; line-height: 26px; color: var(--dhs-color-ink-900); }
.dhs-vid-dialog__close { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--dhs-color-surface-050); font-size: 22px; line-height: 1; cursor: pointer; }
.dhs-vid-dialog__body video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0B0F0C; }
.dhs-vid-dialog__desc { margin: 0; padding: var(--dhs-space-4) var(--dhs-space-5) 0; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-vid-dialog__foot { padding: var(--dhs-space-4) var(--dhs-space-5) var(--dhs-space-5); }
@media (prefers-reduced-motion: reduce) { .dhs-vid, .dhs-vid__play { transition: none; } .dhs-vid:hover .dhs-vid__play { transform: none; } }
.dhs-vid__play svg { width: 18px; height: 18px; margin-left: 2px; }
.dhs-vid__meta { display: block; padding: var(--dhs-space-4); } /* span → block, same KD-84 reason */
.dhs-vid__meta b { display: block; color: var(--dhs-color-ink-900); margin-bottom: 4px; }
.dhs-vid__meta span { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }

/* ---- Mobile features accordion (Figma 4342:14821) ------------------------------------------ *
 * The 390px variant of the services grid: same six services, one expandable row each. Desktop
 * keeps .dhs-svcgrid; at the phone breakpoint CSS swaps which of the two renders. Built on
 * native <details> so it works with JS disabled. Frame spec: row card radius 12, border
 * #E9EAEB (line-100), pad 14 16; expanded panel on the brand tint (#EBF6EB ~ brand-050) with a
 * #2D8F30 (brand-700) border; pill CTA. */
.dhs-svcacc { display: none; }
.dhs-svcacc__item { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); overflow: hidden; }
.dhs-svcacc__item summary { display: flex; align-items: center; gap: var(--dhs-space-3); padding: 14px 16px; cursor: pointer; list-style: none; }
.dhs-svcacc__item summary::-webkit-details-marker { display: none; }
.dhs-svcacc__item summary .dhs-svccard__ico { margin-bottom: 0; flex: none; }
.dhs-svcacc__meta { flex: 1 1 auto; min-width: 0; }
.dhs-svcacc__meta b { display: block; color: var(--dhs-color-ink-900); }
.dhs-svcacc__meta span { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }
.dhs-svcacc__chev { width: 20px; height: 20px; flex: none; color: var(--dhs-color-ink-400); transition: transform .2s ease; }
.dhs-svcacc__item[open] { border-color: var(--dhs-color-brand-700); }
.dhs-svcacc__item[open] > summary .dhs-svcacc__chev { transform: rotate(180deg); }
.dhs-svcacc__panel { padding: 4px 16px 16px; background: var(--dhs-color-brand-050); border-top: 1px solid var(--dhs-color-line-100); }
.dhs-svcacc__panel > .dhs-eyebrow { margin-top: var(--dhs-space-4); }
.dhs-svcacc__name { font-family: var(--dhs-font-family-display); font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-900); margin: var(--dhs-space-2) 0 var(--dhs-space-2); overflow-wrap: break-word; }
.dhs-svcacc__panel ul { list-style: none; margin: var(--dhs-space-3) 0; padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-svcacc__panel li { display: flex; gap: var(--dhs-space-2); align-items: center; font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-700); }
.dhs-svcacc__panel li svg { width: 16px; height: 16px; color: var(--dhs-color-brand-900); flex: none; }
.dhs-svcacc__price { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: var(--dhs-space-2) 0 var(--dhs-space-3); }
.dhs-svcacc__price span { font-size: var(--dhs-type-body-sm-size); font-weight: 400; color: var(--dhs-color-ink-500); }
.dhs-svcacc__panel .dhs-btn { width: 100%; justify-content: center; }

@media (max-width: 1199.98px) {
    .dhs-wb, .dhs-domlead { grid-template-columns: 1fr; }
    .dhs-svcgrid, .dhs-addons { grid-template-columns: repeat(2, 1fr); }
    .dhs-vids { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 575.98px) {
    .dhs-svcgrid, .dhs-addons, .dhs-vids, .dhs-shop__grid { grid-template-columns: 1fr; }
    /* The frame replaces the flat card grid with the accordion at phone widths. */
    .dhs-svcgrid { display: none; }
    .dhs-svcacc { display: grid; gap: var(--dhs-space-3); margin-top: var(--dhs-space-6); }
}

/* ---- Hero carousel ------------------------------------------------------------------------- */
/* Hero carousel rules (.dhs-hero-slides/-slide/-artset/-art__slide/-dots, incl. the mobile
   44px dot-tap-target media block that history note P-WID-17 forced after them) removed
   2026-09-08: the Static Hero (5056:33436) has no sliding banner and no matching markup
   remains — deleted rather than left as dead CSS. */

@media (prefers-reduced-motion: reduce) { .dhs-hero-slide, .dhs-hero-art__slide { transition: none; } }

/* Plan card: inline domain capture + cart view ---------------------------------------------- */
.dhs-plan__tagline { font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-ink-500); }
.dhs-plan__order { margin-top: auto; display: grid; gap: var(--dhs-space-3); }
.dhs-plan__domain { display: flex; gap: 6px; }
.dhs-plan__domain input { flex: 1; min-width: 0; min-height: 40px; padding: 0 var(--dhs-space-3); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); font-size: var(--dhs-type-body-sm-size); }
.dhs-plan__domain select { min-height: 40px; border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); background: #fff; font-size: var(--dhs-type-body-sm-size); }
.dhs-plan__domain-set { margin: 0; font-size: var(--dhs-type-body-sm-size); color: var(--dhs-color-brand-900); display: flex; align-items: center; gap: 6px; }
.dhs-plan__domain-set svg { width: 14px; height: 14px; flex: none; }
.dhs-plan__order .dhs-btn { width: 100%; }
.dhs-lp-sec--plans .dhs-plan__tagline { color: #9AA6A0; }
.dhs-lp-sec--plans .dhs-plan__domain input, .dhs-lp-sec--plans .dhs-plan__domain select { background: rgba(255,255,255,.94); border-color: rgba(255,255,255,.3); }
.dhs-lp-sec--plans .dhs-plan__domain-set { color: var(--dhs-color-brand-500); }

.dhs-cart-warn { display: grid; gap: var(--dhs-space-2); background: #FFF6DB; border: 1px solid #E8D9A0; border-left: 4px solid var(--dhs-color-status-warning); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-4); margin-bottom: var(--dhs-space-4); color: #5C4600; }
.dhs-cart-warn__actions { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; margin-top: var(--dhs-space-2); }
.dhs-cart-total { display: flex; justify-content: space-between; align-items: center; padding: var(--dhs-space-4); border-top: 2px solid var(--dhs-color-line-200); font-size: var(--dhs-type-h3-size); }
.dhs-cart-actions { display: flex; gap: var(--dhs-space-3); justify-content: flex-end; flex-wrap: wrap; margin-top: var(--dhs-space-4); }
.dhs-cart-actions [aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* Website-builder mock: the design stacks the template hero on mobile and turns the preview into
   a full-width 328x67 banner. Same breakpoint the mock's own card grid collapses at. */
@media (max-width: 767.98px) {
    .dhs-shop__hero-row { flex-direction: column; align-items: stretch; gap: var(--dhs-space-3); }
    .dhs-shop__hero-img { width: 100%; height: 67px; }
}

/* Service cards became anchors (KD-84 — they now route to real store categories). */
a.dhs-svccard { display: block; color: inherit; text-decoration: none; }
a.dhs-svccard:hover { border-color: var(--dhs-color-brand-500); box-shadow: var(--dhs-shadow-sm); color: inherit; text-decoration: none; }

/* ==== 97-public.css ======================================================= */
/* ============================================================================================
 * 97-public.css — shared page components for the design-built public pages.
 *
 * WHY THIS LAYER EXISTS
 * ---------------------
 * Until now only homepage.tpl was built to the design; every other page inherited the tokens
 * (so it was brand-correct) but kept the simulator's original composition. The result read as
 * "right palette, wrong layout" — see docs/Design_Coverage_Audit.md.
 *
 * The design reuses a small set of primitives across ~30 frames: a page strip, a card table with
 * alternating rows, pill badges, a segmented tab row, a two-column "content + summary sidebar",
 * a 4-step wizard header, and an auth card. Building those ONCE here makes each remaining page
 * mostly markup.
 *
 * Every value is taken from design/figma/raw/file.json via tools/figma/extract.mjs, not eyeballed.
 * Frame ids are cited above each block so any of it can be re-checked without an API call.
 * ========================================================================================== */

:root {
    /* Design containers: page body 1312 (1440 frame - 64px gutters), footer content 1216. */
    --dhs-container: 1312px;
    --dhs-gutter: 64px;
}

/* ---- footer additions (Footer component, 1440x420 #13161B) -------------------------------- */
.dhs-lp-foot-brand p { color: #94979C; font-size: 16px; line-height: 24px; margin: 0 0 var(--dhs-space-6); max-width: 320px; }
.dhs-lp-foot-logo { height: 22px; width: auto; display: block; margin-bottom: var(--dhs-space-6); filter: brightness(0) invert(1); }
.dhs-lp-certs { display: flex; flex-wrap: wrap; gap: var(--dhs-space-3); }
.dhs-lp-cert {
    background: #0C0E12; border: 1px solid #22262F; border-radius: var(--dhs-radius-xs);
    padding: var(--dhs-space-1) var(--dhs-space-2);
    color: #F7F7F7; font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-bold);
}
.dhs-lp-foot h3 { font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: #94979C; text-transform: uppercase; letter-spacing: .02em; }
.dhs-lp-foot ul { gap: var(--dhs-space-3); }
.dhs-lp-foot li { display: flex; align-items: center; gap: var(--dhs-space-2); }
.dhs-lp-foot a { font-size: 14px; line-height: 24px; }
.dhs-lp-foot-badge { background: #fff; color: var(--dhs-color-brand-700); border-radius: var(--dhs-radius-sm); padding: 2px 6px; font-size: 12px; font-weight: var(--dhs-font-weight-bold); margin-left: var(--dhs-space-1); }
.dhs-lp-foot-contact svg { width: 16px; height: 16px; flex: none; color: #94979C; }
.dhs-lp-foot-contact a { color: #fff; }
.dhs-lp-foot-legal { display: flex; gap: var(--dhs-space-8); }
.dhs-lp-foot-legal a { color: #CECFD2; }

/* ---- header additions -------------------------------------------------------------------- */
/* No-JS nav fallback (inside <noscript> in pubheader.tpl, so it only exists when scripting is
   off). Above the drawer breakpoint the real link row is visible and this would duplicate it, so
   it is hidden there — see the rule in the mobile block at the end of this file. */
.dhs-nojs-nav {
    display: none; order: 4; flex-basis: 100%; flex-wrap: wrap;
    gap: var(--dhs-space-2) var(--dhs-space-4);
    padding: var(--dhs-space-3) 0 var(--dhs-space-1);
    border-top: 1px solid var(--dhs-color-line-100);
}
.dhs-nojs-nav a { font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-800); }
.dhs-nojs-nav a:hover { color: var(--dhs-color-brand-900); }

.dhs-lp-burger { display: none; background: none; border: 0; padding: var(--dhs-space-2); color: var(--dhs-color-ink-900); cursor: pointer; }
.dhs-lp-burger svg { width: 24px; height: 24px; display: block; }
.dhs-lp-nav a.is-active { color: var(--dhs-color-brand-700); }

/* ---- mobile drawer (Figma mobile-nav-expanded 4453:29624) ---------------------------------- *
 * ONE breakpoint governs the whole swap. It used to be two: 96-storefront.css hid .dhs-lp-nav at
 * 1100px while the burger only appeared at 900px, and since 96-storefront is concatenated first,
 * 901-1100px got neither -- no navigation at all. Keep the hide and the reveal in this one block
 * so they cannot drift apart again (KD-58). tools/css/build.mjs lints the value.          */
@media (max-width: 1199.98px) {
    .dhs-lp-nav { display: none; }
    .dhs-lp-burger { display: block; order: 3; margin-left: var(--dhs-space-2); }
    .dhs-lp-head-in { gap: var(--dhs-space-3); }
    .dhs-lp-head-actions { order: 2; margin-left: auto; }
    /* The design's collapsed bar (mobile-nav, 390x64) is logo + cart + burger only. The search
       icon and the Client Area button move into the drawer's bottom bar. Both carry their own
       modifier class rather than being selected by attribute or by the shared .dhs-lp-iconbtn /
       .dhs-btn names -- tools/css/classcheck.mjs treats a later layer restyling an earlier
       layer's class as a cross-file collision, and it is right to. */
    .dhs-lp-iconbtn--search,
    .dhs-lp-head-cta { display: none; }
}

.dhs-navdrawer[hidden] { display: none; }
.dhs-navdrawer {
    position: fixed; inset: 0; z-index: 1080;
    background: rgba(5, 51, 33, .45);
    opacity: 0; transition: opacity .18s ease;
}
.dhs-navdrawer.is-open { opacity: 1; }

/* JS-blocked fallback (KD-58's uncovered case): #dhsNavCk is a visually-hidden checkbox
   rendered before the header in pubheader.tpl; its burger/close <label>s open and close the
   drawer with no script at all. The id selector outranks .dhs-navdrawer[hidden] above. When
   the drawer script runs it preventDefault's the labels and keeps the box unchecked, so
   these rules are inert alongside JS. Not display:none — the box stays focusable so no-JS
   keyboard users can toggle it with Space. */
.dhs-lp-navck {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    border: 0; clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
/* !important is load-bearing: the drawer keeps its hidden attribute until JS removes it, and
   Bootstrap 4 (loaded by the twenty-one parent) ships `[hidden] { display: none !important }` —
   a plain display:block loses to that no matter the specificity. Verified live 2026-08-18:
   without !important the checked rule matched and still computed display:none. */
#dhsNavCk:checked ~ .dhs-navdrawer { display: block !important; opacity: 1; }
#dhsNavCk:checked ~ .dhs-navdrawer .dhs-navdrawer__panel { transform: none; }
.dhs-navdrawer__panel {
    background: var(--dhs-color-surface-drawer);
    padding: var(--dhs-space-6) var(--dhs-space-6) 34px;
    display: flex; flex-direction: column; gap: var(--dhs-space-5);
    max-height: 100%; overflow-y: auto;
    transform: translateY(-8px); transition: transform .18s ease;
}
.dhs-navdrawer.is-open .dhs-navdrawer__panel { transform: none; }

.dhs-navdrawer__head { display: flex; align-items: center; justify-content: space-between; }
.dhs-navdrawer__logo img { height: 32px; width: auto; display: block; }
/* 44x44 hit area, not the frame's 40x40. The design draws a 40px control and the 24px glyph is
   unchanged, so this is 4px of invisible padding rather than a visual deviation — but the repo's
   own standard (docs/UAT_Test_Cases_Public.md P-WID-17) is >=44px at 390, and the 2026-08-10
   mobile UAT measured this one at 40 while every other drawer control passed. The negative margin
   keeps the glyph optically aligned with the logo despite the larger box. */
.dhs-navdrawer__close {
    width: 44px; height: 44px; margin: -2px -2px -2px 0;
    flex: none; display: grid; place-items: center;
    background: none; border: 0; padding: 0; cursor: pointer; color: #fff;
}
.dhs-navdrawer__close svg { width: 24px; height: 24px; }

.dhs-navdrawer__nav { display: flex; flex-direction: column; }
.dhs-navdrawer__nav > a,
.dhs-navdrawer__group > summary {
    display: flex; align-items: center; min-height: 48px;
    color: #fff; font-size: var(--dhs-type-body-lg-size); line-height: var(--dhs-type-body-lg-line);
    font-weight: var(--dhs-font-weight-semibold);
    text-decoration: none;
}
.dhs-navdrawer__nav > a:hover, .dhs-navdrawer__nav > a.is-active,
.dhs-navdrawer__group > summary.is-active { color: var(--dhs-color-brand-500); text-decoration: none; }
.dhs-navdrawer__nav a:focus-visible, .dhs-navdrawer__close:focus-visible,
.dhs-navdrawer__group > summary:focus-visible, .dhs-navdrawer__util:focus-visible,
.dhs-navdrawer__account:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: var(--dhs-radius-xs); }

/* "Resources" — the design's taller 56px row, standing in for Knowledgebase + Network Status. */
.dhs-navdrawer__group > summary { justify-content: space-between; min-height: 56px; cursor: pointer; list-style: none; }
.dhs-navdrawer__group > summary::-webkit-details-marker { display: none; }
.dhs-navdrawer__chev { width: 20px; height: 20px; transition: transform .15s ease; }
.dhs-navdrawer__group[open] > summary .dhs-navdrawer__chev { transform: rotate(180deg); }
.dhs-navdrawer__group > a {
    display: flex; align-items: center; min-height: 44px; padding-left: var(--dhs-space-4);
    color: #CECFD2; font-size: var(--dhs-type-body-size); line-height: var(--dhs-type-body-line);
    font-weight: var(--dhs-font-weight-semibold); text-decoration: none;
}
.dhs-navdrawer__group > a:hover, .dhs-navdrawer__group > a.is-active { color: #fff; text-decoration: none; }

.dhs-navdrawer__foot {
    display: flex; align-items: center; gap: var(--dhs-space-3);
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding-top: var(--dhs-space-5); margin-top: auto;
}
.dhs-navdrawer__util {
    width: 44px; height: 44px; flex: none; display: grid; place-items: center; position: relative;
    border-radius: var(--dhs-radius-pill); border: 1px solid #373A41; color: #fff;
}
.dhs-navdrawer__util:hover { border-color: var(--dhs-color-brand-500); color: var(--dhs-color-brand-500); text-decoration: none; }
.dhs-navdrawer__util svg { width: 24px; height: 24px; }
.dhs-navdrawer__account {
    margin-left: auto; min-height: 44px; display: inline-flex; align-items: center;
    padding: 0 var(--dhs-space-4); border-radius: var(--dhs-radius-pill);
    background: var(--dhs-color-brand-900); color: #fff;
    font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold);
}
.dhs-navdrawer__account:hover { background: var(--dhs-color-derived-brand-action-hover); color: #fff; text-decoration: none; }

/* Stop the page behind the drawer from scrolling under it. */
.dhs-navdrawer-lock, .dhs-navdrawer-lock body { overflow: hidden; }

@media (prefers-reduced-motion: reduce) {
    .dhs-navdrawer, .dhs-navdrawer__panel { transition: none; }
}

/* ---- page strip: the pale band under the header on every inner page ----------------------- *
 * Header Search Strip 1440x332 #FAFAFA, pad 48 64; title 36/44 700 #181D27; sub 16/24 #414651.
 * Frames: 4163:5799, 4158:5349, 4158:5961, 4158:6567, 4158:6868, 4163:6493.                    */
.dhs-strip { background: var(--dhs-color-surface-050); border-bottom: 1px solid var(--dhs-color-line-100); position: relative; overflow: hidden; }
.dhs-strip--white { background: #fff; }
.dhs-strip-in { max-width: var(--dhs-container); margin: 0 auto; padding: var(--dhs-space-12) var(--dhs-gutter); position: relative; z-index: 1; }
.dhs-strip h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-strip .dhs-strip-sub { font-size: 16px; line-height: 24px; color: var(--dhs-color-ink-700); margin: var(--dhs-space-2) 0 0; max-width: 780px; }
/* The two blurred #00B53F "glow" ellipses behind the strip in 4163:5799. */
.dhs-strip::before, .dhs-strip::after {
    content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%;
    background: #00B53F; opacity: .07; filter: blur(60px); pointer-events: none;
}
.dhs-strip::before { top: -120px; left: -60px; }
.dhs-strip::after { bottom: -160px; right: 4%; }

.dhs-page { max-width: var(--dhs-container); margin: 0 auto; padding: var(--dhs-space-12) var(--dhs-gutter) var(--dhs-space-16); }
.dhs-page--tight { padding-top: var(--dhs-space-8); }


/* The mobile hero flatten used to live HERE and never applied — see the rule that now sits
   directly after `.dhs-kb-hero`'s base declaration further down this file. */
.dhs-section { background: var(--dhs-color-surface-050); }
.dhs-section--white { background: #fff; }

/* ---- segmented tabs (Tabs 1312x44, active = 1px bottom rule #2D8F30) ---------------------- */
.dhs-tabs { display: flex; gap: var(--dhs-space-8); border-bottom: 1px solid var(--dhs-color-line-100); margin-top: var(--dhs-space-6); flex-wrap: wrap; }
.dhs-tabs a {
    padding: var(--dhs-space-2-5) 0; font-size: 14px; line-height: 20px;
    font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900);
    border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none;
}
.dhs-tabs a:hover { color: var(--dhs-color-brand-700); }
.dhs-tabs a.is-active { color: var(--dhs-color-brand-700); border-bottom-color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-semibold); }
/* count pill inside a tab (frame 4651:13743 Tab-Bar: grey pill, green tint when active) */
.dhs-tabs__n {
    display: inline-block; min-width: 22px; text-align: center; margin-left: 6px;
    padding: 1px 7px; border-radius: var(--dhs-radius-pill);
    font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-semibold);
    background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-700);
}
.dhs-tabs a.is-active .dhs-tabs__n { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); }

/* ---- domain search bar (Domain Search Bar 1312x68, radius 14, brand glow) ----------------- */
.dhs-dsearch {
    display: flex; align-items: center; gap: var(--dhs-space-3);
    background: #fff; border: 1px solid #80C882; border-radius: 14px;
    padding: var(--dhs-space-3); box-shadow: var(--dhs-shadow-brand-glow);
    margin-top: var(--dhs-space-6);
}
.dhs-dsearch-field { flex: 1 1 auto; display: flex; align-items: center; gap: var(--dhs-space-3); padding-left: var(--dhs-space-3); min-width: 0; }
.dhs-dsearch-field svg { width: 24px; height: 24px; flex: none; color: var(--dhs-color-ink-400); }
.dhs-dsearch input[type="text"] {
    flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent;
    font-size: 18px; line-height: 28px; color: var(--dhs-color-ink-900); font-family: inherit;
}
.dhs-dsearch input::placeholder { color: var(--dhs-color-ink-500); }
.dhs-dsearch select {
    background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-md); padding: var(--dhs-space-2-5) var(--dhs-space-4);
    font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900); font-family: inherit; cursor: pointer;
}
.dhs-dsearch .dhs-btn { min-height: 44px; white-space: nowrap; }

/* ---- badges (Badge, radius 9999, 14/20 600) ---------------------------------------------- */
.dhs-badge {
    display: inline-flex; align-items: center; gap: var(--dhs-space-1);
    border-radius: var(--dhs-radius-pill); padding: 2px 10px;
    font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold);
    border: 1px solid transparent; white-space: nowrap;
}
.dhs-badge svg { width: 12px; height: 12px; flex: none; }
.dhs-badge--ok { background: #ECFDF3; border-color: #ABEFC6; color: #067647; }
.dhs-badge--muted { background: var(--dhs-color-surface-050); border-color: var(--dhs-color-line-100); color: var(--dhs-color-ink-700); }
.dhs-badge--warn { background: #FFFAEB; border-color: #FEDF89; color: #B54708; }
.dhs-badge--danger { background: #FEF3F2; border-color: #FECDCA; color: #B42318; }
.dhs-badge--info { background: #EFF8FF; border-color: #B2DDFF; color: #175CD3; }
.dhs-badge--brand { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-300); color: var(--dhs-color-brand-900); }
.dhs-badge--purple { background: var(--dhs-color-accent-purple-tint); border-color: #D9D6FE; color: #5925DC; }
.dhs-badge__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }

/* ---- card table: bordered container, rows alternate #FFF / #FAFAFA ----------------------- *
 * Alternatives Table 1312 wide, border #E9EAEB, radius 16; Domain Row pad 16 24.              */
.dhs-ctable { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); overflow: hidden; }
.dhs-ctable__row {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-6);
    padding: var(--dhs-space-4) var(--dhs-space-6);
    border-bottom: 1px solid var(--dhs-color-line-100);
}
.dhs-ctable__row:last-child { border-bottom: 0; }
.dhs-ctable__row:nth-child(even) { background: var(--dhs-color-surface-050); }
/* KD-73: native base.js reveals suggestion/spotlight rows with jQuery .show() (base.js:1323,
   :500). Those rows keep their .w-hidden class, so jQuery cannot reveal them with display:''
   and falls back to writing an INLINE `display: block` — which beats this file's `display: flex`
   and flattens the row into a stacked block, losing the whole two-column layout.
   Fixed by matching ONLY that exact inline state. Do NOT "simplify" this to a plain
   `.dhs-ctable__row { display: flex !important }`: base.js hides these same rows by writing an
   inline `display: none`, and an unconditional !important would beat that too and make them
   impossible to hide — the KD-67 trap in reverse. This attribute selector cannot do that, because
   it stops matching the moment the inline value is anything other than block.
   The !important is REQUIRED (an inline style outranks any selector without it) and is safe only
   because the selector itself is gated on the shown state — keep the two together. */
.dhs-ctable__row[style*="display: block"] { display: flex !important; }
.dhs-ctable__row--head { background: var(--dhs-color-surface-050) !important; font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-500); text-transform: uppercase; letter-spacing: .04em; }
.dhs-ctable__l { display: flex; align-items: center; gap: var(--dhs-space-4); min-width: 0; flex-wrap: wrap; }
.dhs-ctable__r { display: flex; align-items: center; gap: var(--dhs-space-6); flex: none; }
.dhs-ctable__empty { padding: var(--dhs-space-12) var(--dhs-space-6); text-align: center; color: var(--dhs-color-ink-500); }

/* ---- domain result rows (4163:5799) ------------------------------------------------------- */
.dhs-dprimary {
    background: #fff; border: 2px solid #80C882; border-radius: 20px;
    padding: var(--dhs-space-8); box-shadow: 0 8px 24px rgba(53,168,57,.06);
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-8);
    flex-wrap: wrap;
}
.dhs-dprimary--taken { border-color: var(--dhs-color-line-300); box-shadow: none; }
.dhs-dname { display: flex; align-items: baseline; gap: var(--dhs-space-1); font-size: 48px; line-height: 60px; letter-spacing: -0.02em; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); word-break: break-word; }
.dhs-dname .tld { color: var(--dhs-color-brand-600); }
.dhs-dprimary--taken .dhs-dname, .dhs-dprimary--taken .dhs-dname .tld { color: var(--dhs-color-ink-500); }
.dhs-dbadges { display: flex; gap: var(--dhs-space-3); flex-wrap: wrap; margin-top: var(--dhs-space-2); }
.dhs-dprice { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.dhs-dprice__big { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-600); }
.dhs-dprice__note { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-dprice__renew { font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-dact { display: flex; align-items: center; gap: var(--dhs-space-8); flex-wrap: wrap; }

.dhs-drow__name { display: flex; align-items: baseline; gap: var(--dhs-space-1); font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-drow__name .tld { color: var(--dhs-color-brand-600); }
.dhs-drow--taken .dhs-drow__name, .dhs-drow--taken .dhs-drow__name .tld { color: var(--dhs-color-ink-500); }
/* Flex column, not text-align alone: base.js reveals the spotlight price span with jQuery
   .show(), which writes an inline `display: inline` — as a flex ITEM that still lays out as a
   block, so the two-line stack (price / "first year" / "Renews at …") survives the reveal. */
.dhs-drow__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.dhs-drow__price b, .dhs-drow__price .price { display: block; font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-drow__price span { display: block; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
/* Meta lines under a row price ("first year", "Renews at KSh …"). Hidden until the row is proven
   available (.dhs-drow--avail, set by paintAltRows() in domainregister.tpl) so they never show
   beside a spinner or on a taken row. */
.dhs-drow__meta { display: none; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-drow--avail .dhs-drow__meta { display: block; }
/* After a successful add, base.js swaps the button's state span to "Checkout" and adds .checkout —
   Figma draws that state solid green ("Added to Cart"), vs the outline resting state. */
.dhs-ctable__row .btn-add-to-cart.checkout { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); color: #fff; }
.dhs-ctable__row .btn-add-to-cart.checkout:hover { background: var(--dhs-color-derived-brand-action-hover); border-color: var(--dhs-color-derived-brand-action-hover); color: #fff; }

/* The alternate-TLD and suggestion tables live inside ONE form (so the bulk bar can submit both
   at once), which means the page-level .dhs-stack gap does not reach between them — the form is
   a single stack child. Without this they render flush against each other. */
#dhs-bulk { display: grid; gap: var(--dhs-space-10); }
.dhs-alt-section, .dhs-sug-section { display: grid; gap: var(--dhs-space-5); }

/* Native checkbox, restyled to the design's 16px #2D8F30 tick. */
.dhs-check { width: 16px; height: 16px; flex: none; accent-color: var(--dhs-color-brand-700); cursor: pointer; }

/* ---- CAPTCHA verify state (domainregister.tpl) --------------------------------------------- *
 * The domain-search CAPTCHA is kept ON for guests by decision. Left as native markup it rendered
 * as a bare image and an empty box floating under the search bar with no result anywhere on the
 * page, which is what made a working search read as "blank page" (KD-71). This gives it a card of
 * its own directly under the search bar, echoing the term the customer typed, so the step reads as
 * one deliberate gate rather than a failure. Removed from the DOM by WHMCS itself on success
 * (base.js validate_captcha()), which is what the template listens for. */
.dhs-dverify {
    background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl);
    padding: var(--dhs-space-6); margin-top: var(--dhs-space-6); max-width: 640px;
    box-shadow: var(--dhs-shadow-sm);
}
.dhs-dverify[hidden] { display: none; }
.dhs-dverify__term { font-size: 16px; line-height: 24px; color: var(--dhs-color-ink-700); margin: 0 0 var(--dhs-space-4); }
.dhs-dverify__term b { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-bold); }
.dhs-dverify .default-captcha p { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); margin: 0 0 var(--dhs-space-3); }
.dhs-dverify__row { display: flex; align-items: center; gap: var(--dhs-space-3); flex-wrap: wrap; }
.dhs-dverify__row img { border-radius: var(--dhs-radius-md); flex: none; }
.dhs-dverify__row input[type="text"] {
    width: 120px; flex: none; min-height: 44px;
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    padding: 0 var(--dhs-space-3); font-size: 16px; font-family: inherit; color: var(--dhs-color-ink-900);
}
.dhs-dverify__row input[type="text"]:focus { outline: 2px solid var(--dhs-color-brand-600); outline-offset: 1px; }
.dhs-dverify__error { margin: var(--dhs-space-3) 0 0; font-size: 14px; line-height: 20px; color: #B42318; }

/* ---- bulk action bar (Bulk Action Bar 1440x86 #1E6020) ----------------------------------- */
.dhs-bulkbar {
    position: sticky; bottom: 0; z-index: 20; background: var(--dhs-color-brand-900);
    padding: var(--dhs-space-5) var(--dhs-gutter);
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-6);
    flex-wrap: wrap;
}
.dhs-bulkbar[hidden] { display: none; }
.dhs-bulkbar__l { display: flex; align-items: center; gap: var(--dhs-space-4); color: #fff; flex-wrap: wrap; }
.dhs-bulkbar__n { background: #fff; color: var(--dhs-color-brand-700); border-radius: var(--dhs-radius-pill); padding: 6px 12px; font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-bold); }
.dhs-bulkbar__lbl { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); }
.dhs-bulkbar__names { font-size: 14px; line-height: 20px; color: var(--dhs-color-line-400); }
.dhs-bulkbar__r { display: flex; align-items: center; gap: var(--dhs-space-8); flex-wrap: wrap; }
.dhs-bulkbar__total { display: flex; align-items: baseline; gap: var(--dhs-space-2); }
.dhs-bulkbar__total span { font-size: 16px; line-height: 24px; color: var(--dhs-color-line-400); }
.dhs-bulkbar__total b { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-surface-100); }

/* ---- two-column: content + sticky order summary (cart / checkout frames) ------------------ */
.dhs-two { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--dhs-space-8); align-items: start; }
.dhs-summary { position: sticky; top: var(--dhs-space-6); background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-6); box-shadow: var(--dhs-shadow-sm); }
.dhs-summary h2 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); margin: 0 0 var(--dhs-space-4); color: var(--dhs-color-ink-900); }
.dhs-summary__line { display: flex; justify-content: space-between; gap: var(--dhs-space-4); padding: var(--dhs-space-2) 0; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-summary__line b { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-semibold); }
.dhs-summary__rule { border: 0; border-top: 1px solid var(--dhs-color-line-100); margin: var(--dhs-space-4) 0; }
.dhs-summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--dhs-space-4); }
.dhs-summary__total span { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
.dhs-summary__total b { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-600); }
.dhs-summary .dhs-btn { width: 100%; margin-top: var(--dhs-space-4); }
.dhs-coupon { display: flex; gap: var(--dhs-space-2); margin: var(--dhs-space-4) 0; }
.dhs-coupon input { flex: 1 1 auto; min-width: 0; }

/* ---- 4-step wizard header (register-checkout 4083:2744) ---------------------------------- */
.dhs-steps { display: flex; align-items: center; gap: var(--dhs-space-3); flex-wrap: wrap; margin-top: var(--dhs-space-6); }
.dhs-steps__i { display: flex; align-items: center; gap: var(--dhs-space-2); font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-500); }
.dhs-steps__n { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--dhs-color-line-100); color: var(--dhs-color-ink-500); font-weight: var(--dhs-font-weight-bold); flex: none; }
.dhs-steps__i.is-done { color: var(--dhs-color-brand-700); }
.dhs-steps__i.is-done .dhs-steps__n { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); }
.dhs-steps__i.is-current { color: var(--dhs-color-ink-900); }
.dhs-steps__i.is-current .dhs-steps__n { background: var(--dhs-color-brand-600); color: #fff; }
.dhs-steps__bar { flex: 1 1 24px; min-width: 16px; height: 2px; background: var(--dhs-color-line-100); }

/* ---- forms ------------------------------------------------------------------------------- */
.dhs-field { display: block; margin-bottom: var(--dhs-space-4); }
.dhs-field > label { display: block; font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-700); margin-bottom: var(--dhs-space-1-5); }
.dhs-input, .dhs-field input[type="text"], .dhs-field input[type="email"], .dhs-field input[type="password"],
.dhs-field input[type="tel"], .dhs-field select, .dhs-field textarea {
    width: 100%; background: #fff; border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md); padding: var(--dhs-space-2-5) var(--dhs-space-3-5, 14px);
    font-size: 16px; line-height: 24px; color: var(--dhs-color-ink-900); font-family: inherit;
    box-shadow: var(--dhs-shadow-xs);
}
.dhs-input:focus, .dhs-field input:focus, .dhs-field select:focus, .dhs-field textarea:focus {
    outline: 0; border-color: var(--dhs-color-brand-600); box-shadow: var(--dhs-shadow-focus-ring);
}
.dhs-field__hint { font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); margin-top: var(--dhs-space-1-5); }
.dhs-field__err { font-size: 12px; line-height: 18px; color: var(--dhs-color-status-danger); margin-top: var(--dhs-space-1-5); }
.dhs-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 var(--dhs-space-4); }

/* ---- auth card (login 4150:4644, register 4150:4748 — 1440x1024 #FAFAFA, centred card) ---- */
.dhs-auth { background: var(--dhs-color-surface-050); min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: var(--dhs-space-12) var(--dhs-space-4); position: relative; overflow: hidden; }
.dhs-auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-8); box-shadow: var(--dhs-shadow-md); }
.dhs-auth-card--wide { max-width: 640px; }
/* clientregister.tpl (2026-08-20): a lighter centering wrapper than .dhs-auth-card — the form's
   own .dhs-panel sections already carry their own border/shadow, so this only narrows and
   centers the column (no second border/shadow around the whole page, which would nest awkwardly
   with those panels) now that the native sidebar column ($dhsGuestNoSidebar) is gone. */
.dhs-register-wrap { max-width: 640px; margin: var(--dhs-space-10) auto; }
.dhs-auth-card h1 { font-size: 30px; line-height: 38px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-2); }
.dhs-auth-card > p { font-size: 16px; line-height: 24px; color: var(--dhs-color-ink-500); margin: 0 0 var(--dhs-space-6); }
.dhs-auth-card .dhs-btn { width: 100%; }
.dhs-auth-alt { text-align: center; margin-top: var(--dhs-space-6); font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); }
.dhs-auth-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--dhs-space-5); }
.dhs-auth-icon svg { width: 28px; height: 28px; }
.dhs-auth--center { text-align: center; }
.dhs-auth-row { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); margin-bottom: var(--dhs-space-5); font-size: 14px; }

/* ---- listing cards (announcements / kb / downloads) -------------------------------------- */
.dhs-cards { display: grid; gap: var(--dhs-space-6); }
.dhs-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dhs-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.dhs-card { background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-6); box-shadow: var(--dhs-shadow-sm); display: flex; flex-direction: column; gap: var(--dhs-space-3); }
.dhs-card--link { transition: box-shadow .15s ease, border-color .15s ease, transform .15s ease; }
.dhs-card--link:hover { box-shadow: var(--dhs-shadow-md); border-color: var(--dhs-color-brand-300); transform: translateY(-2px); }
.dhs-card h3 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-card h3 a { color: inherit; text-decoration: none; }
.dhs-card h3 a:hover { color: var(--dhs-color-brand-700); }
.dhs-card p { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); margin: 0; }
.dhs-card__meta { display: flex; align-items: center; gap: var(--dhs-space-3); font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-400); flex-wrap: wrap; }
.dhs-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3); }
.dhs-card__icon { width: 48px; height: 48px; border-radius: var(--dhs-radius-md); background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); font-size: 20px; display: flex; align-items: center; justify-content: center; flex: none; }
.dhs-card__icon svg { width: 20px; height: 20px; }
/* Bottom-anchored "read more" line on a linked card (homepage guides band). margin-top:auto is
   what pins it to the card foot — .dhs-card is already flex-column. */
.dhs-card__cta { margin-top: auto; padding-top: var(--dhs-space-2); font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-700); }
.dhs-card--link:hover .dhs-card__cta { text-decoration: underline; }

/* ---- KB hero (Figma frame 4158:5995) -----------------------------------------------------
   This page is reached pre-login and shares the public storefront's chrome/nav — per
   docs/Client_Area_Design_System.md §2 it belongs to the "marketing richness" bucket, not the
   authenticated-dashboard bucket that governs .dhs-welcomeband's boxed, toned-down treatment.
   header.tpl sets $dhsFullBleed for templatefile=='knowledgebase' so this renders truly
   edge-to-edge (no Bootstrap .container, no client-area sidebar) — same mechanism homepage.tpl
   uses, NOT a rounded card dropped inside the parent's boxed layout. .dhs-kb-hero is the
   full-width band; .dhs-kb-hero__in centers content at the design's 1312px content width
   (--dhs-container, defined above) the same way .dhs-page does for the grid section below it. */
.dhs-kb-hero { background: linear-gradient(180deg, #053321 0%, #114c25 100%); width: 100%; }
.dhs-kb-hero__in {
    max-width: var(--dhs-container); margin: 0 auto; padding: var(--dhs-space-16) var(--dhs-gutter);
    text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: var(--dhs-space-4);
}
.dhs-kb-hero h1, .dhs-kb-hero h2 {
    margin: 0; font-size: 48px; line-height: 60px; letter-spacing: -0.02em;
    font-weight: var(--dhs-font-weight-bold); color: #fff;
}
.dhs-kb-hero p { margin: 0; max-width: 620px; font-size: 18px; line-height: 28px; color: var(--dhs-color-brand-300); }
.dhs-kb-hero__search-wrap { position: relative; width: 100%; max-width: 640px; }
.dhs-kb-hero__search { width: 100%; display: flex; gap: var(--dhs-space-3); padding: var(--dhs-space-2) var(--dhs-space-2) var(--dhs-space-2) var(--dhs-space-5);
    background: rgba(255, 255, 255, .04); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-xl); align-items: center; }
.dhs-kb-hero__search input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: #fff; font-size: 16px; padding: var(--dhs-space-2) 0; }
.dhs-kb-hero__search input:focus { outline: none; }
.dhs-kb-hero__search input::placeholder { color: var(--dhs-color-line-400); }
.dhs-kb-hero__search .dhs-btn { flex: none; }
/* ---- KB hero live search results (dhs_portal's kb_search JSON endpoint, no page reload) ---- */
.dhs-kb-live { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); box-shadow: var(--dhs-shadow-md); max-height: 360px; overflow-y: auto; text-align: left; z-index: 20; }
.dhs-kb-live__row { display: flex; gap: var(--dhs-space-3); align-items: flex-start; padding: var(--dhs-space-3) var(--dhs-space-4); text-decoration: none; color: inherit; border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-kb-live__row:last-child { border-bottom: 0; }
.dhs-kb-live__row:hover, .dhs-kb-live__row:focus { background: var(--dhs-color-brand-050); }
.dhs-kb-live__row i { color: var(--dhs-color-brand-700); margin-top: 3px; flex: none; }
.dhs-kb-live__row strong { display: block; font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
.dhs-kb-live__cat { display: inline-block; margin-left: var(--dhs-space-2); font-size: 11px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-700); background: var(--dhs-color-brand-050); border-radius: var(--dhs-radius-pill); padding: 1px 8px; }
.dhs-kb-live__snippet { display: block; font-size: 13px; color: var(--dhs-color-ink-500); margin-top: 2px; }
.dhs-kb-live__empty { padding: var(--dhs-space-4); font-size: 14px; color: var(--dhs-color-ink-500); text-align: center; }
/* The "no exact match, closest guides:" header above fallback results (knowledgebase.tpl's live
   search JS). Recovered into src 2026-09-21: it existed ONLY in the generated custom.css, so the
   next `node tools/css/build.mjs` would have silently dropped it and the note would have rendered
   unstyled. classcheck.mjs flags it as undefined whenever that drift reappears. */
.dhs-kb-live__note { padding: var(--dhs-space-3) var(--dhs-space-4); font-size: 13px; color: var(--dhs-color-ink-500); border-bottom: 1px solid var(--dhs-color-ink-100, #e8e8e8); }
@media (max-width: 575.98px) {
    .dhs-kb-hero__in { padding: var(--dhs-space-8) var(--dhs-gutter); }
    .dhs-kb-hero h1, .dhs-kb-hero h2 { font-size: 32px; line-height: 40px; }
    .dhs-kb-hero__search { flex-direction: column; align-items: stretch; padding: var(--dhs-space-4); }
}

/* ---- compact auth footer (partials/authfooter.tpl) ------------------------------------------
   Solid brand.900 #1E6020 with white text on BOTH widths — read off the frames, not assumed;
   desktop 1440x100 (4150:4644) sets its copy at 14/20, mobile 390x94 padding 16/20 at 12/18 with
   the accreditation line at 10/18. White on #1E6020 is the pair the AA gate already covers for
   the primary button. */
.dhs-authfoot { background: var(--dhs-color-brand-900); color: #fff; }
.dhs-authfoot__in {
    max-width: var(--dhs-container); margin: 0 auto;
    padding: var(--dhs-space-4) var(--dhs-gutter);
    text-align: center;
    font-size: var(--dhs-type-body-size); line-height: var(--dhs-type-body-line);
}
.dhs-authfoot__copy { margin: 0; }
.dhs-authfoot__accred { margin: var(--dhs-space-1) 0 0; }
@media (max-width: 575.98px) {
    .dhs-authfoot__in {
        padding: var(--dhs-space-4) var(--dhs-space-5);
        font-size: var(--dhs-type-caption-size); line-height: var(--dhs-type-caption-line);
    }
    /* 10/18 in the frame. Below the 12px body floor deliberately — it is a secondary
       accreditation line, and it is white on #1E6020 at 6.4:1, well clear of AA. */
    .dhs-authfoot__accred { font-size: 10px; line-height: 18px; }
}

/* Contact Us stacks cards-then-form on mobile, the reverse of every other .dhs-two page.
   From contact-us-mobile (4456:11288): hero, then the three contact-info cards, then "Send us a
   message". Only applies once the grid has already collapsed to one column at 991.98px. */
@media (max-width: 991.98px) {
    .dhs-two--contact .dhs-summary { order: -1; }
}

/* Downloads search row. Was three inline `style=` attributes on the form; moved here so it can
   stack at phone widths, which an inline style cannot do. */
.dhs-dl-search { display: flex; gap: var(--dhs-space-3); margin-bottom: var(--dhs-space-6); }
.dhs-dl-search input { flex: 1; min-width: 0; }
@media (max-width: 575.98px) {
    .dhs-dl-search { flex-direction: column; }
    .dhs-dl-search .dhs-btn { width: 100%; }
}

/* ---- guest network status (Figma frame 4158:6567) ------------------------------------------
   Per-service row + status pill, and the dark "Sign In to View Detailed Status" CTA card. Same
   dark gradient as .dhs-kb-hero but rounded (this sits INSIDE the page as a card, not edge to
   edge), so it's its own small component rather than reusing .dhs-kb-hero verbatim. */
.dhs-status-row { display: flex; align-items: center; justify-content: space-between; padding: var(--dhs-space-4); background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); margin-bottom: var(--dhs-space-3); }
.dhs-status-row:last-child { margin-bottom: 0; }
.dhs-status-pill { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-700); }
.dhs-status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dhs-color-brand-600); flex: none; }
.dhs-status-pill.is-issue { color: var(--dhs-color-status-warning-deep); }
.dhs-status-pill.is-issue::before { background: var(--dhs-color-status-warning-deep); }
.dhs-status-cta { background: linear-gradient(180deg, #053321 0%, #114c25 100%); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-10) var(--dhs-space-6); text-align: center; margin-top: var(--dhs-space-6); }
.dhs-status-cta__icon { width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.12); color: #fff; display: flex; align-items: center; justify-content: center; margin: 0 auto var(--dhs-space-4); }
.dhs-status-cta h2 { color: #fff; margin: 0 0 var(--dhs-space-2); font-size: 24px; }
.dhs-status-cta p { color: var(--dhs-color-brand-300); max-width: 480px; margin: 0 auto var(--dhs-space-5); font-size: 14px; line-height: 20px; }
.dhs-status-cta__actions { display: flex; gap: var(--dhs-space-4); align-items: center; justify-content: center; flex-wrap: wrap; }
.dhs-status-cta__actions a.dhs-btn-fill { background: #fff; color: var(--dhs-color-brand-900); }
.dhs-status-cta__actions .dhs-status-cta__register { color: #fff; font-size: 14px; }
.dhs-status-cta__actions .dhs-status-cta__register a { color: #fff; text-decoration: underline; }

/* ---- article body (announcement detail / kb article) -------------------------------------- */
.dhs-article { max-width: 760px; }
.dhs-article h1 { font-size: 36px; line-height: 44px; letter-spacing: -0.02em; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-3); }
.dhs-article__meta { display: flex; gap: var(--dhs-space-4); font-size: 14px; color: var(--dhs-color-ink-500); margin-bottom: var(--dhs-space-8); flex-wrap: wrap; }
.dhs-article__body { font-size: 16px; line-height: 26px; color: var(--dhs-color-ink-700); }
.dhs-article__body h2 { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: var(--dhs-space-8) 0 var(--dhs-space-3); }
.dhs-article__body p { margin: 0 0 var(--dhs-space-4); }
.dhs-article__body ul { margin: 0 0 var(--dhs-space-4) var(--dhs-space-5); }
.dhs-article__body li { margin-bottom: var(--dhs-space-2); }
/* Numbered steps (Figma frame 4158:6273 "How to..." articles) — applies automatically to any
   <ol> a KB article's rich-text body contains, no special authoring markup required. */
.dhs-article__body ol { list-style: none; margin: 0 0 var(--dhs-space-6); padding: 0; display: flex; flex-direction: column; gap: var(--dhs-space-5); counter-reset: dhs-step; }
/* Block + absolutely placed badge, NOT display:flex (fixed 2026-10-07): as a flex container every
   inline child of the <li> — each <strong>, <code>, <a> — became its own flex item, so a step like
   "Open <strong>My Domains</strong>." broke into columns on a phone. */
.dhs-article__body ol > li { counter-increment: dhs-step; position: relative; padding-left: 40px; min-height: 28px; margin-bottom: 0; }
.dhs-article__body ol > li::before {
    position: absolute; left: 0; top: 0;
    content: counter(dhs-step); width: 28px; height: 28px; border-radius: 50%;
    background: var(--dhs-color-brand-900); color: #fff; font-weight: var(--dhs-font-weight-bold);
    font-size: 14px; line-height: 28px; text-align: center;
}
/* Optional content-authoring convention: an article can wrap a callout in
   <div class="dhs-kb-tip"> for the design's tip box. Purely presentational, opt-in. */
.dhs-kb-tip { display: flex; gap: var(--dhs-space-3); background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-300); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-4) var(--dhs-space-5); margin: var(--dhs-space-6) 0; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-kb-tip strong { display: block; color: var(--dhs-color-brand-900); margin-bottom: 2px; }
/* Rich-media KB articles: keep an authored <img> from overflowing its container at any viewport
   (mobile-first convention — checked at 390px). Two selectors: the full article page
   (.dhs-article__body, knowledgebasearticle.tpl) and the Help drawer's own inline reader
   (.dhs-kb-article-body, includes/hooks/dhs_clientarea_widgets.php) render the same sanitized
   article HTML into two differently-named containers. */
.dhs-article__body img, .dhs-kb-article-body img { max-width: 100%; height: auto; display: block; border-radius: var(--dhs-radius-lg); margin: var(--dhs-space-6) 0; }
/* Help media (2026-10-07, docs/Help_Media_Authoring.md). <figure class="dhs-kb-video"> holds a
   silent how-to clip (native controls, never autoplay) with its required "What the video shows"
   text; <figure class="dhs-kb-shot"> a screenshot whose numbered markers are drawn INTO the image
   by tools/help-capture, explained in words by the <ol class="dhs-kb-legend"> under it (so the
   legend inherits the article's numbered-step badges above). Same two containers as the img rule. */
/* Stored as <div class="dhs-kb-video|dhs-kb-shot"> (WHMCS strips <figure>/<video> when it renders
   an article); dhs-widgets.js / the drawer turn a video block into <figure><video>. Both shapes
   are styled here: the div form is what a reader without JS sees — poster linking to the MP4. */
.dhs-article__body figure, .dhs-kb-article-body figure,
.dhs-article__body .dhs-kb-shot, .dhs-kb-article-body .dhs-kb-shot,
.dhs-article__body div.dhs-kb-video, .dhs-kb-article-body div.dhs-kb-video { margin: var(--dhs-space-6) 0; }
.dhs-article__body .dhs-kb-shot img, .dhs-kb-article-body .dhs-kb-shot img,
.dhs-article__body div.dhs-kb-video img, .dhs-kb-article-body div.dhs-kb-video img { margin: 0; border: 1px solid var(--dhs-color-line-100); }
.dhs-kb-video__meta, .dhs-kb-video__desc { margin: var(--dhs-space-3) 0 0; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-kb-video__desc strong { color: var(--dhs-color-ink-900); }
/* Shown in place of a player whose file cannot be loaded (dhs-widgets.js, section 3). */
.dhs-kb-video-unavailable { margin: 0; padding: var(--dhs-space-4) var(--dhs-space-5); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); background: var(--dhs-color-surface-050); font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-kb-video-unavailable strong { color: var(--dhs-color-ink-900); }
.dhs-vid-dialog__body .dhs-kb-video-unavailable { margin: var(--dhs-space-4) var(--dhs-space-5) 0; }
/* A media placeholder whose capture has not been packed yet renders nothing (tools/help-capture/pack.mjs). */
.dhs-kb-video:empty, .dhs-kb-shot:empty { display: none; }
.dhs-kb-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0B0F0C; border-radius: var(--dhs-radius-lg); }
.dhs-kb-video figcaption, .dhs-kb-shot figcaption { margin-top: var(--dhs-space-3); font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-kb-video figcaption strong { color: var(--dhs-color-ink-900); }
.dhs-article__body .dhs-kb-legend, .dhs-kb-article-body .dhs-kb-legend { margin: var(--dhs-space-3) 0 0; font-size: 14px; line-height: 20px; }
.dhs-article__body .dhs-kb-legend > li { padding-left: 32px; min-height: 22px; }
.dhs-article__body .dhs-kb-legend > li::before { width: 22px; height: 22px; line-height: 22px; font-size: 12px; background: var(--dhs-color-brand-700); }
.dhs-kb-badge-video { display: inline-block; margin: 2px 0 0 var(--dhs-space-2); padding: 0 6px; border-radius: var(--dhs-radius-pill); background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-900); font-size: 11.5px; font-weight: var(--dhs-font-weight-bold); }
@media (max-width: 575.98px) {
    /* Phones: the clip runs edge to edge of the article card for the biggest possible picture. */
    .dhs-article__body .dhs-kb-video { margin-left: calc(-1 * var(--dhs-space-4)); margin-right: calc(-1 * var(--dhs-space-4)); }
    .dhs-article__body .dhs-kb-video video { border-radius: 0; }
    .dhs-article__body .dhs-kb-video figcaption { padding: 0 var(--dhs-space-4); }
}

/* ---- breadcrumb -------------------------------------------------------------------------- */
.dhs-crumb { display: flex; align-items: center; gap: var(--dhs-space-2); font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); flex-wrap: wrap; margin-bottom: var(--dhs-space-4); }
.dhs-crumb a { color: var(--dhs-color-ink-500); text-decoration: none; }
.dhs-crumb a:hover { color: var(--dhs-color-brand-700); }
.dhs-crumb span[aria-current] { color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-semibold); }
/* Icon treatment (Client Area Design System §5) for WHMCS's native breadcrumb.tpl
   (<ol class="breadcrumb"><li class="breadcrumb-item">) when it renders inside .dhs-crumb. */
.dhs-crumb .breadcrumb { display: flex; align-items: center; flex-wrap: wrap; gap: var(--dhs-space-2); margin: 0; padding: 0; list-style: none; }
.dhs-crumb .breadcrumb-item { display: flex; align-items: center; gap: var(--dhs-space-2); }
.dhs-crumb .breadcrumb-item:first-child::before {
    content: ""; width: 14px; height: 14px; flex: none;
    background-color: var(--dhs-color-ink-400);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 9l9-7 9 7v11a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z'/%3E%3Cpath d='M9 22V12h6v10'/%3E%3C/svg%3E") center / contain no-repeat;
}
.dhs-crumb .breadcrumb-item + .breadcrumb-item::before { content: "\203A"; color: var(--dhs-color-line-400); padding: 0; float: none; }

/* ---- misc -------------------------------------------------------------------------------- */
.dhs-h2 { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-5); }
.dhs-stack { display: grid; gap: var(--dhs-space-10); }
/* KD-73, same mechanism as .dhs-ctable__row above: #DomainSearchResults carries .dhs-stack AND
   starts with .w-hidden, so base.js:1120's .fadeIn() ends by writing an inline `display: block`,
   which beats the grid and drops the designed inter-band gap. Gated on the shown state so
   base.js can still hide it — see the full rationale on .dhs-ctable__row. */
.dhs-stack[style*="display: block"] { display: grid !important; }
.dhs-muted { color: var(--dhs-color-ink-500); }
.dhs-linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-500); cursor: pointer; text-decoration: none; }
.dhs-linkbtn:hover { color: var(--dhs-color-brand-700); }
.dhs-empty { background: #fff; border: 1px dashed var(--dhs-color-line-300); border-radius: var(--dhs-radius-2xl); padding: var(--dhs-space-16) var(--dhs-space-6); text-align: center; color: var(--dhs-color-ink-500); }
.dhs-empty h3 { font-size: 18px; line-height: 28px; color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-2); }
.dhs-btn-ghost { background: transparent; border: 1px solid transparent; color: var(--dhs-color-ink-500); }
.dhs-btn-ghost:hover { color: var(--dhs-color-brand-700); background: var(--dhs-color-brand-050); }
.dhs-btn[disabled], .dhs-btn.is-disabled { opacity: .55; pointer-events: none; }

/* ---- responsive: the design is 1440; everything must survive 390 ------------------------- */
@media (max-width: 1199.98px) {
    :root { --dhs-gutter: 32px; }
    .dhs-two { grid-template-columns: minmax(0, 1fr); }
    .dhs-summary { position: static; }
    .dhs-cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767.98px) {
    :root { --dhs-gutter: 16px; }
    .dhs-strip-in { padding: var(--dhs-space-8) var(--dhs-gutter); }
    .dhs-strip h1 { font-size: 28px; line-height: 36px; }
    .dhs-page { padding: var(--dhs-space-8) var(--dhs-gutter) var(--dhs-space-12); }
    .dhs-cards--2, .dhs-cards--3 { grid-template-columns: minmax(0, 1fr); }
    .dhs-grid2 { grid-template-columns: minmax(0, 1fr); }

    /* Search bar stacks so the button is never squeezed off-screen. */
    .dhs-dsearch { flex-wrap: wrap; }
    .dhs-dsearch-field { flex-basis: 100%; padding-left: 0; }
    .dhs-dsearch select, .dhs-dsearch .dhs-btn { flex: 1 1 auto; }

    /* Result rows stack: name block over price/action. */
    .dhs-dprimary { flex-direction: column; align-items: stretch; gap: var(--dhs-space-5); padding: var(--dhs-space-5); }
    .dhs-dname { font-size: 32px; line-height: 40px; }
    .dhs-dprice, .dhs-dprice__big { text-align: left; }
    .dhs-dprice { align-items: flex-start; }
    .dhs-dact { gap: var(--dhs-space-4); }
    .dhs-dact .dhs-btn { flex: 1 1 100%; }
    .dhs-ctable__row { flex-direction: column; align-items: stretch; gap: var(--dhs-space-3); }
    .dhs-ctable__r { justify-content: flex-start; gap: var(--dhs-space-3); flex-wrap: wrap; }
    /* Row cells carry an inline min-width so the desktop columns line up. On a phone the row is
       stacked, and four or five of those min-widths side by side is exactly what pushes a page
       into horizontal scroll — so they are neutralised here rather than removed from the markup,
       which would cost the desktop alignment. */
    .dhs-ctable__r > span[style] { min-width: 0 !important; }
    .dhs-drow__price { text-align: left; align-items: flex-start; }
    .dhs-ctable__row--head { display: none; }

    .dhs-bulkbar { padding: var(--dhs-space-4) var(--dhs-gutter); gap: var(--dhs-space-3); }
    .dhs-bulkbar__r { width: 100%; justify-content: space-between; gap: var(--dhs-space-4); }
    .dhs-bulkbar__names { display: none; }

    .dhs-lp-foot-legal { gap: var(--dhs-space-4); }
    .dhs-article h1 { font-size: 28px; line-height: 36px; }
    .dhs-steps { gap: var(--dhs-space-2); }
    .dhs-steps__i span:not(.dhs-steps__n) { display: none; }
    .dhs-steps__i.is-current span:not(.dhs-steps__n) { display: inline; }
}

/* ============================================================================================
 * STORE (Figma 4163:6493 store-shared-hosting, and the ssl / redemption / offers / addons
 * siblings 4163:6718 / 6922 / 7058 / 7215).
 *
 * Store-Workspace  row gap40 pad 40 80 80 80
 *   Sidebar        240 wide, 1px #E9EAEB right rule, Categories + Actions groups
 *   Content-Area   1000 wide: domain widget (#FAFAFA r12) -> showcase grid -> cart bar
 * ========================================================================================== */
.dhs-store { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: var(--dhs-space-10); max-width: var(--dhs-container); margin: 0 auto; padding: var(--dhs-space-10) var(--dhs-gutter) var(--dhs-space-16); align-items: start; }
.dhs-store-side { border-right: 1px solid var(--dhs-color-line-100); padding: var(--dhs-space-8) var(--dhs-space-4) var(--dhs-space-8) 0; display: grid; gap: var(--dhs-space-8); position: sticky; top: var(--dhs-space-6); }
.dhs-store-side h2 { font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-400); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 var(--dhs-space-2); }
.dhs-store-side nav { display: grid; gap: var(--dhs-space-1); }
.dhs-store-side nav a {
    display: flex; align-items: center; gap: var(--dhs-space-2);
    padding: var(--dhs-space-2-5) var(--dhs-space-3); border-radius: var(--dhs-radius-md);
    font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900); text-decoration: none;
}
.dhs-store-side nav a:hover { background: var(--dhs-color-surface-050); }
.dhs-store-side nav a.is-active { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-900); }
.dhs-store-side nav svg { width: 16px; height: 16px; flex: none; }
.dhs-store-main { display: grid; gap: var(--dhs-space-8); min-width: 0; }

/* Domain-Search-Widget 1000x154 #FAFAFA border #E9EAEB r12 pad 24 */
.dhs-dwidget { background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6); display: grid; gap: var(--dhs-space-4); }
.dhs-dwidget__head { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap; }
.dhs-dwidget__head h2 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-switch { display: inline-flex; gap: var(--dhs-space-1); background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-1); }
.dhs-switch a { padding: var(--dhs-space-1) var(--dhs-space-3); border-radius: var(--dhs-radius-sm); font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-500); text-decoration: none; }
.dhs-switch a.is-active { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); }
.dhs-dwidget form { display: flex; align-items: center; gap: var(--dhs-space-3); background: #fff; border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-2); }
.dhs-dwidget form svg { width: 20px; height: 20px; flex: none; color: var(--dhs-color-ink-400); margin-left: var(--dhs-space-2); }
.dhs-dwidget input[type="text"] { flex: 1 1 auto; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 14px; line-height: 20px; font-family: inherit; color: var(--dhs-color-ink-900); }
.dhs-dwidget select { border: 0; background: transparent; font: inherit; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); cursor: pointer; }

/* Section-Title: 30/38 700 + 14/20 sub */
.dhs-showcase > h2 { font-size: 30px; line-height: 38px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-showcase > p { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); margin: var(--dhs-space-2) 0 var(--dhs-space-6); }

/* PlanCard 320x400 r12 border #E9EAEB; featured = #009A44 border + glow + RECOMMENDED ribbon */
.dhs-plangrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dhs-space-5); }
.dhs-plancard { position: relative; background: #fff; border: 1.5px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: 18px; display: flex; flex-direction: column; }
.dhs-plancard--featured { border-color: #009A44; box-shadow: 0 3px 5px rgba(0,154,68,.10); }
.dhs-plancard__ribbon { position: absolute; top: -11px; right: 18px; background: #009A44; color: #fff; border-radius: var(--dhs-radius-xs); padding: 2px 8px; font-size: 11px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); letter-spacing: .06em; }
.dhs-plancard h3 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-3); }
.dhs-plancard__price { font-size: 24px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-plancard__blurb { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); border-top: 1px solid var(--dhs-color-line-100); border-bottom: 1px solid var(--dhs-color-line-100); padding: var(--dhs-space-3) 0; margin: var(--dhs-space-3) 0; }
.dhs-plancard ul { list-style: none; margin: 0 0 var(--dhs-space-4); padding: 0; display: grid; gap: var(--dhs-space-2); }
.dhs-plancard li { display: flex; align-items: flex-start; gap: var(--dhs-space-2); font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); }
.dhs-plancard li svg { width: 15px; height: 15px; flex: none; margin-top: 3px; color: var(--dhs-color-brand-700); }
.dhs-plancard .dhs-btn { margin-top: auto; width: 100%; }

/* Cart-Summary-Widget 1000x80 #EBF6EB border #2D8F30 r12 */
.dhs-cartbar { background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-700); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-5); display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-6); flex-wrap: wrap; }
.dhs-cartbar__l { display: flex; align-items: center; gap: var(--dhs-space-3); }
.dhs-cartbar__icon { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--dhs-color-brand-700); display: flex; align-items: center; justify-content: center; flex: none; }
.dhs-cartbar__icon svg { width: 20px; height: 20px; }
.dhs-cartbar__l b { display: block; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-900); }
.dhs-cartbar__l span { display: block; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-cartbar__r { display: flex; align-items: center; gap: var(--dhs-space-6); flex-wrap: wrap; }
.dhs-cartbar__total { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }

@media (max-width: 1199.98px) { .dhs-plangrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 991.98px) {
    .dhs-store { grid-template-columns: minmax(0, 1fr); gap: var(--dhs-space-6); padding-top: var(--dhs-space-6); }
    .dhs-store-side { position: static; border-right: 0; border-bottom: 1px solid var(--dhs-color-line-100); padding: 0 0 var(--dhs-space-6); }
    .dhs-store-side nav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; padding-bottom: var(--dhs-space-2); }
    .dhs-store-side nav a { white-space: nowrap; }
}
@media (max-width: 575.98px) { .dhs-plangrid { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================================================
 * CHECKOUT FUNNEL (Figma 4117:4884 Cart Review, 4117:5126 Details, 4117:5386 Payment).
 * Checkout Steps 1440x124 #FFFFFF pad 24: three labelled steps joined by 336x2 rules,
 * done = #2D8F30, pending = #E9EAEB.
 * ========================================================================================== */
.dhs-flow { background: #fff; border-bottom: 1px solid var(--dhs-color-line-100); padding: var(--dhs-space-6) var(--dhs-gutter); }
.dhs-flow-in { max-width: 992px; margin: 0 auto; display: flex; align-items: flex-start; gap: var(--dhs-space-4); }
.dhs-flow__step { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: var(--dhs-space-3); text-align: center; min-width: 0; }
.dhs-flow__dot { width: 24px; height: 24px; border-radius: 50%; background: var(--dhs-color-surface-050); border: 1.5px solid var(--dhs-color-line-100); display: flex; align-items: center; justify-content: center; flex: none; }
.dhs-flow__dot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: transparent; }
.dhs-flow__step.is-done .dhs-flow__dot, .dhs-flow__step.is-current .dhs-flow__dot { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-700); box-shadow: 0 0 0 4px rgba(53,168,57,.12); }
.dhs-flow__step.is-done .dhs-flow__dot::after, .dhs-flow__step.is-current .dhs-flow__dot::after { background: var(--dhs-color-brand-700); }
.dhs-flow__step b { display: block; font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-700); }
.dhs-flow__step span { display: block; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); }
.dhs-flow__step.is-done b, .dhs-flow__step.is-current b { color: #267728; }
.dhs-flow__step.is-done span, .dhs-flow__step.is-current span { color: var(--dhs-color-brand-700); }
.dhs-flow__rule { flex: 0 0 auto; width: 100%; max-width: 336px; height: 2px; background: var(--dhs-color-line-100); margin-top: 11px; }
.dhs-flow__rule.is-done { background: var(--dhs-color-brand-700); }

/* Items panel: reuses the single canonical .dhs-panel definition in 20-components.css
   (background/border/radius/padding/shadow + the > h2 / + .dhs-panel rules all live there now —
   see docs/Client_Area_Design_System.md §4). Nothing cart-specific to override here. */

.dhs-items { width: 100%; border-collapse: collapse; }
.dhs-items th { font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-500); text-transform: uppercase; letter-spacing: .04em; text-align: left; padding-bottom: var(--dhs-space-3); border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-items th:last-child, .dhs-items td:last-child { text-align: right; }
.dhs-items td { padding: var(--dhs-space-4) 0; border-bottom: 1px solid var(--dhs-color-line-100); vertical-align: top; }
.dhs-items tr:last-child td { border-bottom: 0; }
.dhs-items b { display: block; font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
.dhs-items small { display: block; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-items .price { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); white-space: nowrap; }

/* Upsell strip on the cart page: compact plan chips, 6 across */
.dhs-upsell { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dhs-space-3); }
.dhs-upsell__i { border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-3); display: flex; flex-direction: column; gap: var(--dhs-space-1); text-decoration: none; }
.dhs-upsell__i:hover { border-color: var(--dhs-color-brand-300); background: var(--dhs-color-brand-050); }
.dhs-upsell__i.is-selected { border-color: var(--dhs-color-brand-700); background: var(--dhs-color-brand-050); }
.dhs-upsell__i b { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-900); }
.dhs-upsell__i .p { font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }
.dhs-upsell__i .f { font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }

/* Trust block under the summary */
.dhs-trust { margin-top: var(--dhs-space-5); display: grid; gap: var(--dhs-space-2); font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-trust b { display: block; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-color-ink-400); }

/* NOTE: a `.dhs-pay` block for the per-method payment screens (4117:5386) was written here and
   REMOVED. Those screens were deliberately not built (see docs/Design_Coverage_Audit.md), so the
   rules were dead — and worse, `.dhs-pay` is a LIVE class owned by 90-legacy.css for the invoice
   payment grid. Redeclaring `display:grid` without its `grid-template-columns` silently changed
   the real payment panel's gap. Dead CSS that shares a name with live CSS is not harmless. */

@media (max-width: 991.98px) {
    .dhs-flow-in { flex-wrap: wrap; }
    .dhs-flow__rule { display: none; }
    .dhs-flow__step span { display: none; }
    .dhs-upsell { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .dhs-upsell { grid-template-columns: minmax(0, 1fr); }
    .dhs-items th:nth-child(2), .dhs-items td:nth-child(2) { display: none; }
}

/* ============================================================================================
 * CLIENT DASHBOARD (Figma 1224:2931).
 *   4 stat cards   362x125, white, 1px accent border, radius 10, 40px icon chip, count 24/32
 *   panels         764 wide, header band #F7F7F7 radius 10 10 0 0, green 18px title
 *   domain band    TLD price chips + search
 *   order band     Service / Action table with "Shop Now"
 * ========================================================================================== */
/* NAME COLLISION, learned the hard way: `.dhs-dash` is already owned by 90-legacy.css as the
   client-area PAGE layout (`grid-template-columns: 224px 1fr`). Declaring `display:grid` here
   without resetting the columns left every dashboard section laid into that 2-column grid — the
   stat cards collapsed to ~48px strips and the panels wrapped one word per line. The class
   existed, so the class-resolution check passed; only looking at the page caught it. Hence
   `.dhs-dashgrid`, and hence the collision check now in tools/css/classcheck.mjs. */
.dhs-dashgrid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--dhs-space-6); }
.dhs-statcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--dhs-space-5); }
.dhs-statcard {
    background: #fff; border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-5); display: flex; align-items: center; gap: var(--dhs-space-4);
    text-decoration: none; transition: box-shadow .15s ease, transform .15s ease;
}
.dhs-statcard:hover { box-shadow: var(--dhs-shadow-md); transform: translateY(-2px); }
.dhs-statcard__chip { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex: none; color: #fff; }
.dhs-statcard__chip svg { width: 20px; height: 20px; }
.dhs-statcard__n { display: block; font-size: 24px; line-height: 32px; letter-spacing: -0.02em; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-statcard__lbl { display: block; font-size: 14px; line-height: 24px; color: var(--dhs-color-ink-800); }
/* Four distinct accents, one per card — the design's own assignment. */
.dhs-statcard--services { border-color: var(--dhs-color-brand-600); }
.dhs-statcard--services .dhs-statcard__chip { background: var(--dhs-color-brand-600); }
.dhs-statcard--domains { border-color: var(--dhs-color-accent-stat-red); }
.dhs-statcard--domains .dhs-statcard__chip { background: var(--dhs-color-accent-stat-red); }
.dhs-statcard--tickets { border-color: var(--dhs-color-status-warning); }
/* The design puts a WHITE glyph here. White on #FFC700 is 1.57:1 and near-invisible, so the
   glyph is dark ink instead — gated in tools/tokens/build.mjs. */
.dhs-statcard--tickets .dhs-statcard__chip { background: var(--dhs-color-status-warning); color: var(--dhs-color-ink-900); }
.dhs-statcard--invoices { border-color: var(--dhs-color-accent-purple); }
.dhs-statcard--invoices .dhs-statcard__chip { background: var(--dhs-color-accent-purple); }

/* Panel with a tinted header band */
.dhs-dashpanel { background: #fff; border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-lg); overflow: hidden; }
.dhs-dashpanel__hd {
    background: var(--dhs-color-surface-100); padding: var(--dhs-space-3) var(--dhs-space-5);
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4); flex-wrap: wrap;
}
.dhs-dashpanel__hd h2 { font-size: 18px; line-height: 32px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-600); margin: 0; }
.dhs-dashpanel__bd { padding: 0; }
.dhs-dashrow {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4);
    padding: var(--dhs-space-4) var(--dhs-space-5); border-bottom: 1px solid var(--dhs-color-line-200);
}
.dhs-dashrow:last-child { border-bottom: 0; }
.dhs-dashrow b { display: block; font-size: 14px; line-height: 24px; color: var(--dhs-color-ink-900); }
.dhs-dashrow small { display: block; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }
.dhs-dash-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dhs-space-6); align-items: start; }

/* Online / Offline dot */
.dhs-dot { display: inline-flex; align-items: center; gap: var(--dhs-space-2); font-size: 14px; color: var(--dhs-color-ink-900); white-space: nowrap; }
.dhs-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--dhs-color-brand-600); flex: none; }
.dhs-dot--off::before { background: var(--dhs-color-ink-400); }

/* Buy Another Domain band */
.dhs-tldchips { display: flex; gap: var(--dhs-space-3); flex-wrap: wrap; margin-bottom: var(--dhs-space-4); }
.dhs-tldchip {
    display: inline-flex; align-items: baseline; gap: var(--dhs-space-2);
    border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-2) var(--dhs-space-3); background: #fff; text-decoration: none;
}
.dhs-tldchip:hover { border-color: var(--dhs-color-brand-300); background: var(--dhs-color-brand-050); }
.dhs-tldchip b { font-size: 14px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-tldchip span { font-size: 12px; color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-semibold); }

@media (max-width: 1199.98px) { .dhs-statcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dhs-dash-two { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 575.98px) {
    .dhs-statcards { grid-template-columns: minmax(0, 1fr); }
    .dhs-dashrow { flex-direction: column; align-items: flex-start; gap: var(--dhs-space-2); }
}

/* ============================================================================================
 * WHMCS PARENT-THEME BRIDGE
 *
 * Twenty-One wraps every page body in Bootstrap's .container and a .row/.col grid. The design's
 * storefront is full-bleed at 1440 with its own bands, so on real WHMCS it rendered boxed, with
 * white gutters down both sides. header.tpl marks the storefront body .dhs-fullbleed; these
 * rules let it span the viewport while every other page keeps the parent's grid untouched.
 * ========================================================================================== */
.dhs-fullbleed { width: 100%; max-width: none; flex: 0 0 100%; padding-left: 0; padding-right: 0; }
.dhs-body--storefront #main-body > .container { max-width: none; padding-left: 0; padding-right: 0; }
/* Twenty-One puts vertical padding on #main-body; the storefront's first band supplies its own. */
.dhs-body--storefront #main-body { padding-top: 0; }

/* ---- shared public primitives at phone widths ---------------------------------------------- *
 * Built from the 2026-08-10 mobile drop, measured across all 42 frames rather than eyeballed:
 * the type ramp is UNCHANGED from desktop (14/20, 12/18, 16/24, 18/28, 24/32, 36/44 are the same
 * six roles already in 00-tokens.css), spacing stays on the 4px base, and the dominant container
 * padding is 16px. So this block is about container width and flow direction, not a second type
 * scale -- there deliberately isn't one.
 *
 * THIS BLOCK MUST STAY AT THE END OF THE FILE. It originally sat near the top, above the base
 * declarations it overrides, and a media query adds NO specificity -- so `.dhs-kb-hero`,
 * `.dhs-tabs`, `.dhs-dsearch` and `.dhs-two` were all silently losing to their own base rules
 * further down, and most of this block did nothing at all on a phone. Found by the 2026-08-10
 * mobile UAT (M-CONT-01/02/04/05) and a follow-up audit of the whole stylesheet.
 * tools/css/build.mjs now fails the build on this pattern -- do not move this back up.        */
@media (max-width: 767.98px) {
    /* The dark page hero is a GRADIENT on every desktop frame (#053321 -> #114C25) and a FLAT
       #053321 on every mobile frame -- checked on announcements, knowledgebase, network-status,
       contact and downloads at both widths, so it is a deliberate simplification rather than one
       frame's inconsistency. `background` is a shorthand, so this also clears background-image. */
    .dhs-kb-hero { background: var(--dhs-color-surface-drawer); }
}

@media (max-width: 575.98px) {
    /* Promo bar: the design's mobile announcement-bar is 390x32, padding 8/16, text 12/18 700 —
       and its copy is shortened for the width ("LIMITED OFFER - 20% off registrations. Use
       CLOUD20") rather than wrapped. We cannot shorten it here: the text is admin-configured
       (dhs_portal's promoBannerText, rendered by includes/hooks/dhs_promo_banner.php from a real
       live tblpromotions row), and hardcoding copy in the theme is exactly what that hook exists
       to prevent. So it wraps instead of overflowing — the 36px fixed line-height made a two-line
       banner 72px tall with the text vertically adrift, which is what actually looked broken. */
    .dhs-annbar {
        font-size: var(--dhs-type-caption-size); font-weight: var(--dhs-font-weight-bold);
        line-height: var(--dhs-type-caption-line); min-height: 32px;
        padding: var(--dhs-space-2) var(--dhs-space-4);
    }

    /* The design's page-header band is 190px tall with 24px side padding and a 36/44 title that
       wraps to two lines at 390px. 36/44 is the design's own value at BOTH widths -- it is not
       stepped down on mobile, so it is not stepped down here either. */
    .dhs-strip-in { padding: var(--dhs-space-8) var(--dhs-gutter); }
    .dhs-strip .dhs-strip-sub { font-size: var(--dhs-type-body-size); line-height: var(--dhs-type-body-line); }
    .dhs-page { padding-top: var(--dhs-space-8); padding-bottom: var(--dhs-space-10); }

    /* Tabs become a single scrolling row, never a wrapped stack. The design's own
       `filter-chips-outer` band (390x68 on announcements-listing-mobile) is one row that runs off
       the right edge, which is the affordance that says "there are more". Wrapping would push
       page content down by a whole row per overflow. The parent must not scroll instead, so the
       row owns the scroll and the page does not (Design_QA_Test_Cases A9). */
    .dhs-tabs {
        flex-wrap: nowrap; overflow-x: auto; gap: var(--dhs-space-5);
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
        margin-left: calc(var(--dhs-gutter) * -1); margin-right: calc(var(--dhs-gutter) * -1);
        padding-left: var(--dhs-gutter); padding-right: var(--dhs-gutter);
    }
    .dhs-tabs::-webkit-scrollbar { display: none; }
    .dhs-tabs a { white-space: nowrap; flex: none; }

    /* Domain search: the design stacks the field, the TLD select and the button full-width and
       drops the pill framing, because a 44px-tall row of three controls cannot fit 390px.
       align-items must be restated — the base rule centres them, which shrink-wraps the field. */
    .dhs-dsearch {
        flex-direction: column; align-items: stretch; gap: var(--dhs-space-2);
        border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-3);
    }
    .dhs-dsearch-field { padding-left: 0; }
    .dhs-dsearch select, .dhs-dsearch .dhs-btn { width: 100%; }

    /* .dhs-two / .dhs-summary already collapse to one column and unstick at 991.98px further up;
       only the tighter mobile gap is set here. */
    .dhs-two { gap: var(--dhs-space-6); }
}

/* No-JS nav shows only where the real link row is hidden — same breakpoint as the burger, so the
   two are never both absent (the KD-58 failure mode) and never both present. */
@media (max-width: 1199.98px) {
    .dhs-nojs-nav { display: flex; }
}

/* The hamburger is the single most important control on a phone and measured 40x40 — below the
   >=44px this repo requires at 390 (P-WID-17), and below what the drawer's own close and utility
   buttons now are. Padding, not a bigger glyph: the 24px icon is unchanged. */
@media (max-width: 1199.98px) {
    .dhs-lp-burger { width: 44px; height: 44px; display: grid; place-items: center; padding: 0; }
}

/* ============================================================================================
   TERMS OF SERVICE (/terms.php -> templates/dhs_child/terms.tpl, restored 2026-08-29).
   Long-form legal prose: measure-capped column, calm heading rhythm, list indentation doing
   the work the source page faked with runs of &nbsp;. Tokens only — no new colors.
   ============================================================================================ */
.dhs-terms { max-width: 860px; margin: 0 auto; padding: var(--dhs-space-6) var(--dhs-space-4) var(--dhs-space-10); }
.dhs-terms__head { margin-bottom: var(--dhs-space-6); padding-bottom: var(--dhs-space-4); border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-terms__head h1 { font-size: 28px; line-height: 34px; margin: 0 0 6px; color: var(--dhs-color-ink-900); }
.dhs-terms__body { font-size: 14.5px; line-height: 24px; color: var(--dhs-color-ink-700); }
.dhs-terms__body p { margin: 0 0 12px; }
.dhs-terms__body strong { color: var(--dhs-color-ink-900); }
.dhs-terms__body a { color: var(--dhs-color-brand-700); text-decoration: underline; }
.dhs-terms__body ol, .dhs-terms__body ul { margin: 0 0 14px; padding-left: 26px; }
.dhs-terms__body li { margin-bottom: 8px; }
/* The source numbers top-level clauses via per-clause <ol start=N> whose single <li> holds the
   clause TITLE — give those the weight of headings without touching the markup/numbering. */
.dhs-terms__body > ol > li > strong { font-size: 15.5px; }
.dhs-terms__body > ol { margin-top: 20px; }

/* ==== 98-cart.css ========================================================= */
/* ============================================================================================
   98-cart.css — the forked order form (templates/orderforms/dhs_cart/)

   Built to Figma `store-shared-hosting` 4163:6493.
     spec     design/figma/screens/4163-6493.md
     baseline design/figma/renders/4163-6493@1x.png
     audit    docs/Design_Audit_Real_WHMCS.md §2

   WHY A SEPARATE LAYER, AND WHY `dhs-of-*`
     The order form's own css/all.min.css is emitted AFTER custom.css, so it wins the cascade on
     any shared selector (audit §3.2). Every class here is one standard_cart's stylesheet never
     targets, so load order stops mattering. Do not restyle `.product`/`.cart-body` here — that
     is the fight this namespace exists to avoid.

   Token-driven throughout: no raw hex. The design's own greens (#2CB34A / #2D8F30) fail WCAG AA
   under white text (2.74:1 and 4.13:1), so CTAs use brand-900 — the accessible green the token
   gate enforces. See docs/Design_Adoption_Status.md.
   ============================================================================================ */

/* ---- Column layout fix — LEGACY, still needed by files not yet converted to store-chrome.tpl
   (Stage 2c-2g). Once every orderforms/dhs_cart/*.tpl that includes sidebar-categories.tpl is
   converted to store-chrome.tpl (single column), this whole block can be deleted. Do not delete
   early — several files still use the old two-column `.row > .cart-sidebar / .cart-body` shape.

   standard_cart's all.css lays the two columns out as FLOATS with percentage widths. Their parent
   is Bootstrap 4's `.row`, which is `display: flex` -- so the floats are ignored, the elements
   become flex items, and flex-shrink lets them collapse to content width. With a CSS-grid child
   using minmax(0, 1fr) the body's min-content width is 0, so BOTH columns collapsed to a few
   characters wide and the sidebar rendered as vertical text. Restated as explicit flex sizing. */
#order-standard_cart.dhs-of {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
}
#order-standard_cart.dhs-of > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
#order-standard_cart.dhs-of > .row > .cart-sidebar {
    flex: 0 0 25%;
    max-width: 25%;
    float: none;
}
#order-standard_cart.dhs-of > .row > .cart-body {
    flex: 1 1 0;
    min-width: 0;
    max-width: 75%;
    float: none;
}
@media only screen and (max-width: 1199.98px) {
    /* all.css hides the sidebar here and gives the body the full width; keep that behaviour. */
    #order-standard_cart.dhs-of > .row > .cart-body { max-width: 100%; }
}

/* ---- Store Chrome (Stage 2a) — the single-column replacement for the old sidebar layout.
   design/renders/Store Chrome.dc.html, 1440x534: dark title band + "Get a domain" panel +
   horizontal category tabs. `.dhs-of-body` is the single content column below it — pages using
   store-chrome.tpl need NO `.row`/`.cart-sidebar`/`.cart-body` at all. */
.dhs-of-chrome__hero {
    background: #053321;
    padding: var(--dhs-space-10) var(--dhs-space-16);
    display: flex;
    flex-direction: column;
    gap: var(--dhs-space-3);
}
.dhs-of-chrome__title {
    margin: 0;
    font-family: var(--dhs-font-family-display);
    font-size: 48px;
    line-height: 60px;
    font-weight: var(--dhs-font-weight-bold);
    letter-spacing: -0.02em;
    color: var(--dhs-color-surface-white);
}
.dhs-of-chrome__sub {
    margin: 0;
    font-size: 18px;
    line-height: 28px;
    color: var(--dhs-color-brand-300);
}
.dhs-of-tabs {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-1);
    flex-wrap: wrap;
    padding: var(--dhs-space-8) var(--dhs-space-16) var(--dhs-space-4);
    background: var(--dhs-color-surface-white);
}
.dhs-of-tabs__link {
    padding: var(--dhs-space-2) var(--dhs-space-3);
    border-radius: var(--dhs-radius-md);
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-500);
    text-decoration: none;
    background: transparent;
}
/* REMOVED 2026-08-10: a rotating 3px accent top-stripe per tab position (purple / stat-red /
   info-blue on a 3n cycle), added as "category variety". The design has no such stripe at either
   width — Category_Tabs_Scrollable (4377:9798) and the desktop store frames draw plain tab
   buttons with no stroke at all, and the only state difference is the active tab's #EBF6EB fill,
   which is already what .is-active renders below. In practice the stripes read as stray Bootstrap
   tab colouring sitting in the middle of the storefront, which is what got them reported.
   The tokens themselves stay in core.tokens.json; they are simply not used here. */
.dhs-of-tabs__link:hover { color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-of-tabs__link.is-active {
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-900);
}
.dhs-of-tabs__currency { margin-left: auto; font-size: 13px; }
.dhs-of-chrome__extra {
    padding: 0 var(--dhs-space-16);
    background: var(--dhs-color-surface-white);
}
.dhs-of-chrome__extra summary {
    padding: var(--dhs-space-2) 0;
    font-size: 13px;
    color: var(--dhs-color-ink-500);
    cursor: pointer;
}
/* Branded replacement for Bootstrap's .list-group in this fallback. The old markup used
   `.list-group-item.active`, which paints the current entry stock Bootstrap primary blue — the
   exact thing Design_QA_Test_Cases A1 looks for, sitting in the middle of the storefront. This
   only ever renders for a panel we have no designed slot for, so it stays deliberately plain. */
.dhs-of-chrome__extralist { display: flex; flex-direction: column; padding-bottom: var(--dhs-space-3); }
.dhs-of-chrome__extralist a {
    padding: var(--dhs-space-2) var(--dhs-space-3);
    border-radius: var(--dhs-radius-sm);
    font-size: var(--dhs-type-body-size);
    color: var(--dhs-color-ink-700);
    text-decoration: none;
}
.dhs-of-chrome__extralist a:hover { background: var(--dhs-color-surface-100); color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-of-chrome__extralist a.is-active { background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-900); font-weight: var(--dhs-font-weight-semibold); }
@media (max-width: 767.98px) {
    .dhs-of-chrome__extra { padding: 0 var(--dhs-space-5); }
}

/* Single content column under Store Chrome. */
.dhs-of-body {
    max-width: 1312px;
    margin: 0 auto;
    padding: var(--dhs-space-8) var(--dhs-space-16) var(--dhs-space-16);
}
@media (max-width: 767.98px) {
    .dhs-of-chrome__hero { padding: var(--dhs-space-8) var(--dhs-space-5); }
    .dhs-of-chrome__title { font-size: 32px; line-height: 40px; }
    .dhs-of-tabs { padding: var(--dhs-space-5) var(--dhs-space-5) var(--dhs-space-3); }
    .dhs-of-body { padding: var(--dhs-space-6) var(--dhs-space-5) var(--dhs-space-10); }
}

/* ---- "Get a domain" panel ---------------------------------------------------------------- */
.dhs-of-domain {
    background: var(--dhs-color-surface-050);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-6);
    margin-bottom: var(--dhs-space-8);
}
.dhs-of-domain__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dhs-space-4);
    margin-bottom: var(--dhs-space-4);
    flex-wrap: wrap;
}
.dhs-of-domain__title {
    font-family: var(--dhs-font-family-display);
    font-size: 20px;
    line-height: 28px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
    margin: 0;
}
.dhs-of-domain__modes {
    display: inline-flex;
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-pill);
    padding: 3px;
}
.dhs-of-domain__mode {
    padding: var(--dhs-space-1-5) var(--dhs-space-4);
    border-radius: var(--dhs-radius-pill);
    font-size: 14px;
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-600);
    text-decoration: none;
}
.dhs-of-domain__mode:hover { color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-of-domain__mode.is-active {
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-brand-900);
}
.dhs-of-domain__form { display: flex; gap: var(--dhs-space-2); }
.dhs-of-domain__input {
    flex: 1 1 auto;
    min-width: 0;
    height: 48px;
    padding: 0 var(--dhs-space-4);
    border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-surface-white);
    color: var(--dhs-color-ink-900);
    font-size: 15px;
}
.dhs-of-domain__input::placeholder { color: var(--dhs-color-ink-400); }
.dhs-of-domain__submit {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 var(--dhs-space-6);
    border: 0;
    border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
    font-weight: var(--dhs-font-weight-semibold);
    font-size: 15px;
}
.dhs-of-domain__submit:hover { background: var(--dhs-color-derived-brand-action-hover); }

/* ---- Page heading ------------------------------------------------------------------------ */
.dhs-of-head { margin-bottom: var(--dhs-space-6); }
.dhs-of-head__title {
    font-family: var(--dhs-font-family-display);
    font-size: 36px;
    line-height: 44px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
    margin: 0 0 var(--dhs-space-2);
}
.dhs-of-head__tagline {
    font-size: 16px;
    line-height: 24px;
    color: var(--dhs-color-ink-500);
    margin: 0;
}

/* Honest empty-category note (M5.4) — live publishes some categories with no products yet. */
.dhs-of-empty {
    border: 1px dashed var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-6);
    color: var(--dhs-color-ink-500);
    text-align: center;
    margin: 0 0 var(--dhs-space-6);
}

/* ---- Plan grid: 3 across, per the design (WHMCS's own markup was col-md-6 / 2 across) ----- */
.dhs-of-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--dhs-space-6);
    align-items: stretch;
}
@media (max-width: 1199.98px) { .dhs-of-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 767.98px)  { .dhs-of-grid { grid-template-columns: 1fr; } }

/* Store category tabs scroll rather than wrap on phones.
   Category_Tabs_Scrollable in mobile-store-shared-hosting (4377:9798) is a single 390x68 row that
   runs off the right edge. Ours wrapped to 200px on a 390px viewport — three rows of chips above
   the plans, pushing the first price below the fold. Same treatment .dhs-tabs got in
   97-public.css, but this is the order-form fork's own class, which that rule does not match.

   The negative margins let the row bleed to the viewport edges while its first and last chips
   still align with the page gutter — without them a scrolling row looks cut off mid-chip at both
   ends. The row owns the scroll so the page never does (Design_QA_Test_Cases A9). */
@media (max-width: 767.98px) {
    .dhs-of-tabs {
        flex-wrap: nowrap; overflow-x: auto;
        -webkit-overflow-scrolling: touch; scrollbar-width: none;
    }
    .dhs-of-tabs::-webkit-scrollbar { display: none; }
    .dhs-of-tabs__link { white-space: nowrap; flex: none; }
}

.dhs-of-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-6);
}
.dhs-of-card--recommended {
    background: var(--dhs-color-brand-050);
    border-color: var(--dhs-color-brand-500);
    box-shadow: 0 0 0 1px var(--dhs-color-brand-500);
}
.dhs-of-card__badge {
    position: absolute;
    top: calc(var(--dhs-space-3) * -1);
    right: var(--dhs-space-6);
    background: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
    border-radius: var(--dhs-radius-pill);
    padding: var(--dhs-space-1) var(--dhs-space-3);
    font-size: 11px;
    line-height: 15px;
    font-weight: var(--dhs-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
}
.dhs-of-card__name {
    font-size: 18px;
    line-height: 28px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
    margin: 0 0 var(--dhs-space-1);
}
.dhs-of-card__price { margin: 0 0 var(--dhs-space-3); }
.dhs-of-card__from,
.dhs-of-card__setup {
    display: block;
    font-size: 12px;
    line-height: 18px;
    color: var(--dhs-color-ink-400);
}
.dhs-of-card__amount {
    font-family: var(--dhs-font-family-display);
    font-size: 30px;
    line-height: 38px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}
.dhs-of-card__cycle { font-size: 14px; color: var(--dhs-color-ink-500); }
.dhs-of-card__desc {
    font-size: 14px;
    line-height: 20px;
    color: var(--dhs-color-ink-500);
    margin: 0 0 var(--dhs-space-4);
    padding-bottom: var(--dhs-space-4);
    border-bottom: 1px solid var(--dhs-color-line-100);
}

.dhs-of-card__features { list-style: none; margin: 0 0 var(--dhs-space-5); padding: 0; }
.dhs-of-card__features li {
    position: relative;
    padding-left: var(--dhs-space-6);
    font-size: 14px;
    line-height: 20px;
    color: var(--dhs-color-ink-700);
    margin-bottom: var(--dhs-space-2);
}
/* Checkmark drawn in CSS: the design uses a tick glyph, and this avoids depending on a Font
   Awesome class the order form may or may not have loaded. */
.dhs-of-card__tick {
    position: absolute;
    left: 0;
    top: 4px;
    width: 12px;
    height: 7px;
    border-left: 2px solid var(--dhs-color-brand-900);
    border-bottom: 2px solid var(--dhs-color-brand-900);
    transform: rotate(-45deg);
}
.dhs-of-card__stock { font-size: 12px; color: var(--dhs-color-ink-400); margin: 0 0 var(--dhs-space-3); }

/* Pushed to the bottom so CTAs line up across cards of unequal feature-list length. */
.dhs-of-card__cta {
    margin-top: auto;
    display: block;
    text-align: center;
    padding: var(--dhs-space-3) var(--dhs-space-4);
    border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
    font-weight: var(--dhs-font-weight-semibold);
    font-size: 15px;
    text-decoration: none;
}
.dhs-of-card__cta:hover,
.dhs-of-card__cta:focus {
    background: var(--dhs-color-derived-brand-action-hover);
    color: var(--dhs-color-surface-white);
    text-decoration: none;
}

/* ---- Cart summary bar -------------------------------------------------------------------- */
.dhs-of-cartbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--dhs-space-4);
    flex-wrap: wrap;
    margin-top: var(--dhs-space-8);
    padding: var(--dhs-space-4) var(--dhs-space-6);
    background: var(--dhs-color-brand-050);
    border: 1px solid var(--dhs-color-brand-300);
    border-radius: var(--dhs-radius-lg);
}
.dhs-of-cartbar__text { display: flex; flex-direction: column; }
.dhs-of-cartbar__text strong { color: var(--dhs-color-ink-900); font-size: 15px; }
.dhs-of-cartbar__text span { color: var(--dhs-color-ink-500); font-size: 13px; }
.dhs-of-cartbar__cta {
    padding: var(--dhs-space-3) var(--dhs-space-6);
    border-radius: var(--dhs-radius-md);
    background: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
    font-weight: var(--dhs-font-weight-semibold);
    text-decoration: none;
}
.dhs-of-cartbar__cta:hover,
.dhs-of-cartbar__cta:focus {
    background: var(--dhs-color-derived-brand-action-hover);
    color: var(--dhs-color-surface-white);
    text-decoration: none;
}

/* ---- 390px: CLAUDE.md requires no horizontal page overflow ------------------------------- */
@media (max-width: 575.98px) {
    .dhs-of-domain { padding: var(--dhs-space-4); }
    .dhs-of-domain__form { flex-direction: column; }
    .dhs-of-domain__submit { width: 100%; }
    .dhs-of-head__title { font-size: 28px; line-height: 36px; }
    .dhs-of-cartbar { flex-direction: column; align-items: stretch; }
    .dhs-of-cartbar__cta { text-align: center; }
}

/* ============================================================================================
   VIEW CART & CHECKOUT — native-class restyle of viewcart.tpl / checkout.tpl.

   These two are the most JS/AJAX-coupled templates in the theme (quantity-update AJAX,
   remove-item/empty-cart confirm modals, promo-code validation, tax-rate calculator,
   account-switcher, existing-login AJAX, PasswordStrength.js) so — same call as 98-tickets.css
   for viewticket.tpl — this targets WHMCS's own native classes directly, no markup changes.

   EXTRA CASCADE HAZARD, specific to these two pages (98-tickets.css's page doesn't have it):
   `templates/orderforms/dhs_cart/css/all.min.css` loads AFTER custom.css. Confirmed live —
   common.tpl's own <link> tags land after the theme's, and the actual request order on a
   rendered cart.php page is twenty-one/all.min.css -> twenty-one/theme.min.css -> custom.css ->
   orderforms/dhs_cart/css/all.min.css (see docs/Design_Audit_Real_WHMCS.md §3.2). That last
   file is where the stock blue "Product/Options | Price/Cycle" header bar (`#058`) and most of
   the other undesired native colours below come from.

   Every rule in that native file is scoped `#order-standard_cart .foo` — 1 ID + N classes, with
   NOTHING extra on the ID element itself (checked by fetching the live file from the dev
   container and extracting all 225 `#order-standard_cart` rules). So every selector below is
   prefixed `#order-standard_cart.dhs-of` — the same ID, plus the `.dhs-of` class already sat on
   that element (see the legacy column-fix block at the top of this file, which established the
   same trick). That one extra class outguns the native rule's specificity at any matching
   nesting depth, so the override wins regardless of link order, with no `!important` needed.
   Example, checked against the real file:
     native  #order-standard_cart .btn-checkout                     (1,1,0)
     here    #order-standard_cart.dhs-of .btn-checkout               (1,2,0)  — always wins
   The same prefix also scopes every rule to just these two pages, which matters because a few
   of these class names (`.item`, `.account`, `.field`) are generic enough to otherwise leak into
   unrelated templates that reuse them.
   ============================================================================================ */

/* ---- Bootstrap alerts (promo/error/bundle messages, gateway errors, security notice) ------ */
#order-standard_cart.dhs-of .alert { border-radius: var(--dhs-radius-md); }

/* ---- View-cart: items list card ------------------------------------------------------------
   Native: dark teal-blue (#058) header bar + 2px #058 rule under the list + zebra-striped rows.
   That header bar is the "stock blue Product/Options bar" from the live screenshot. */
#order-standard_cart.dhs-of .view-cart-items-header {
    background: var(--dhs-color-surface-050);
    color: var(--dhs-color-ink-500);
    border: 1px solid var(--dhs-color-line-100);
    border-bottom: 0;
    border-radius: var(--dhs-radius-lg) var(--dhs-radius-lg) 0 0;
    font-size: 12px;
    font-weight: var(--dhs-font-weight-bold);
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: var(--dhs-space-3) var(--dhs-space-4);
}
#order-standard_cart.dhs-of .view-cart-items {
    border: 1px solid var(--dhs-color-line-100);
    border-top: 0;
    border-bottom: 0;
    border-radius: 0 0 var(--dhs-radius-lg) var(--dhs-radius-lg);
    margin-bottom: var(--dhs-space-6);
    overflow: hidden;
}
#order-standard_cart.dhs-of .view-cart-items .item {
    background: var(--dhs-color-surface-white);
    border: 0;
    border-bottom: 1px solid var(--dhs-color-line-100);
    padding: var(--dhs-space-4);
}
#order-standard_cart.dhs-of .view-cart-items .item:nth-child(even) { background: var(--dhs-color-surface-white); }
#order-standard_cart.dhs-of .view-cart-items .item:last-child { border-bottom: 0; }
#order-standard_cart.dhs-of .view-cart-items .item-title {
    font-size: 16px;
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-of .view-cart-items .item-group {
    font-size: 13px;
    color: var(--dhs-color-ink-500);
}
#order-standard_cart.dhs-of .view-cart-items .item-domain {
    color: var(--dhs-color-brand-700);
    font-weight: var(--dhs-font-weight-semibold);
    font-size: 13px;
}
#order-standard_cart.dhs-of .view-cart-items .item-price { color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .view-cart-items .item-price span {
    font-size: 16px;
    font-weight: var(--dhs-font-weight-bold);
}
#order-standard_cart.dhs-of .view-cart-items .item-price .cycle {
    font-size: 12px;
    font-weight: var(--dhs-font-weight-regular);
    color: var(--dhs-color-ink-500);
}
#order-standard_cart.dhs-of .view-cart-items .item-qty input {
    border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md);
}
#order-standard_cart.dhs-of .btn-remove-from-cart { color: var(--dhs-color-ink-400); }
#order-standard_cart.dhs-of .btn-remove-from-cart:hover { color: var(--dhs-color-status-danger); }
#order-standard_cart.dhs-of .view-cart-empty {
    color: var(--dhs-color-ink-500);
    font-size: 15px;
    padding: var(--dhs-space-16) var(--dhs-space-6);
}
#order-standard_cart.dhs-of .empty-cart .btn {
    background: transparent;
    color: var(--dhs-color-ink-500);
    border-radius: 0;
    padding: var(--dhs-space-1) 0;
}
#order-standard_cart.dhs-of .empty-cart .btn:hover { color: var(--dhs-color-status-danger); }
#order-standard_cart.dhs-of .view-cart-gateway-checkout {
    background: var(--dhs-color-surface-050);
    border-radius: var(--dhs-radius-lg);
}

/* ---- View-cart: content/summary two-column split -------------------------------------------
   Same collapse risk as the legacy `.cart-sidebar`/`.cart-body` block above: `.row` is Bootstrap
   4 flex, but `.secondary-cart-body`/`.secondary-cart-sidebar` are native FLOATS with percentage
   widths, not flex-basis. Restated as explicit flex sizing so it can't collapse regardless of
   what either column's content happens to do. `>` throughout so this never reaches the unrelated
   `.row`s nested inside `.item`/form field grids further down the page. */
#order-standard_cart.dhs-of .dhs-of-body > .row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: var(--dhs-space-8);
}
#order-standard_cart.dhs-of .dhs-of-body > .row > .secondary-cart-body {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
    width: auto;
    float: none;
    padding-left: 0;
    padding-right: 0;
}
#order-standard_cart.dhs-of .dhs-of-body > .row > .secondary-cart-sidebar {
    flex: 0 0 380px;
    max-width: 380px;
    width: auto;
    float: none;
    padding-left: 0;
    padding-right: 0;
    margin: 0;
}
@media (max-width: 991.98px) {
    #order-standard_cart.dhs-of .dhs-of-body > .row > .secondary-cart-sidebar {
        flex: 1 1 100%;
        max-width: 100%;
        margin-top: var(--dhs-space-6);
    }
}

/* ---- Order summary card --------------------------------------------------------------------
   Native: dark grey (#666) header block with a centred white h2 — the "plain grey header" from
   the live screenshot. Restyled to the same white-card language as .dhs-summary/.dhs-of-domain. */
#order-standard_cart.dhs-of .order-summary {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-2xl);
    box-shadow: var(--dhs-shadow-sm);
    padding: var(--dhs-space-6);
}
#order-standard_cart.dhs-of .order-summary h2 {
    color: var(--dhs-color-ink-900);
    text-align: left;
    font-weight: var(--dhs-font-weight-bold);
    padding: 0 0 var(--dhs-space-4);
    margin: 0 0 var(--dhs-space-4);
    border-bottom: 1px solid var(--dhs-color-line-100);
}
#order-standard_cart.dhs-of .summary-container {
    background: transparent;
    padding: 0;
    border-radius: 0;
}
#order-standard_cart.dhs-of .subtotal {
    color: var(--dhs-color-ink-700);
    font-size: 14px;
    border-bottom: 1px solid var(--dhs-color-line-100);
    padding-bottom: var(--dhs-space-3);
    margin-bottom: var(--dhs-space-3);
}
#order-standard_cart.dhs-of .bordered-totals {
    border-top: 0;
    border-bottom: 1px solid var(--dhs-color-line-100);
    padding: 0 0 var(--dhs-space-3);
    margin: 0 0 var(--dhs-space-3);
    font-size: 14px;
    color: var(--dhs-color-ink-700);
}
#order-standard_cart.dhs-of .recurring-totals { font-size: 14px; color: var(--dhs-color-ink-700); }
#order-standard_cart.dhs-of .recurring-charges { color: var(--dhs-color-ink-500); font-style: normal; }
#order-standard_cart.dhs-of .total-due-today { padding: var(--dhs-space-4) 0 0; }
#order-standard_cart.dhs-of .total-due-today .amt {
    font-family: var(--dhs-font-family-display);
    font-size: 30px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-brand-700);
}
#order-standard_cart.dhs-of .total-due-today-padded { margin: var(--dhs-space-2) 0 var(--dhs-space-5); }
#order-standard_cart.dhs-of .express-checkout-buttons .separator {
    color: var(--dhs-color-ink-400);
    font-size: 12px;
    font-weight: var(--dhs-font-weight-semibold);
    letter-spacing: .04em;
}

/* ---- Checkout CTA — the button named in the live screenshot as stock Bootstrap lime -------- *
 * `.btn-checkout` carries `.btn.btn-success.btn-lg` natively. Twenty-One's own theme.min.css
 * defines `.btn-success{background-color:#28a745}` (Bootstrap's stock green) and the order-form
 * bundle never redeclares `.btn-success` at all — so nothing in the cascade reliably lands the
 * brand colour here except a rule scoped to this exact class, which is what this is. */
#order-standard_cart.dhs-of .btn-checkout {
    display: block;
    width: 100%;
    background: var(--dhs-color-brand-900);
    border-color: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
    border-radius: var(--dhs-radius-pill);
    font-weight: var(--dhs-font-weight-semibold);
    text-align: center;
    padding: var(--dhs-space-4) var(--dhs-space-6);
}
#order-standard_cart.dhs-of .btn-checkout:hover,
#order-standard_cart.dhs-of .btn-checkout:focus {
    background: var(--dhs-color-derived-brand-action-hover);
    border-color: var(--dhs-color-derived-brand-action-hover);
    color: var(--dhs-color-surface-white);
}



/* The way forward offered next to the disabled CTA (ME-06). */
#order-standard_cart.dhs-of .dhs-cart-empty-hint {
    margin: var(--dhs-space-3) 0 0;
    font-size: 13px;
    color: var(--dhs-color-ink-500);
    text-align: center;
}
#order-standard_cart.dhs-of .btn-continue-shopping {
    display: block;
    text-align: center;
    color: var(--dhs-color-ink-500);
    font-weight: var(--dhs-font-weight-semibold);
    margin-top: var(--dhs-space-3);
}
#order-standard_cart.dhs-of .btn-continue-shopping:hover { color: var(--dhs-color-brand-700); }

/* ---- Promo code / tax estimate cards ----------------------------------------------------------
   Figma (register-domain-cart-review.json / transfer-cart-review.json) draws this as one plain
   standalone "Promo Code" card, not Bootstrap nav-tabs chrome - de-tabified 2026-08-03, the
   guest-only tax-estimate form moved into its own second .dhs-co-card below instead of a 2nd tab.
   .dhs-co-card already supplies the box/border/padding every other checkout-wizard card uses. */
#order-standard_cart.dhs-of .dhs-co-promo__title { margin: 0 0 var(--dhs-space-1); font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-promo__sub { margin: 0 0 var(--dhs-space-3); font-size: 14px; }
#order-standard_cart.dhs-of .dhs-co-promo__form { display: flex; gap: var(--dhs-space-3); align-items: flex-start; flex-wrap: wrap; }
#order-standard_cart.dhs-of .dhs-co-promo__form .form-group { flex: 1 1 240px; margin: 0; }
#order-standard_cart.dhs-of .dhs-co-promo__form button { flex: 0 0 auto; width: auto; }
#order-standard_cart.dhs-of .view-cart-promotion-code {
    background: var(--dhs-color-brand-050);
    border: 1px dashed var(--dhs-color-brand-300);
    border-radius: var(--dhs-radius-md);
    color: var(--dhs-color-brand-900);
    font-weight: var(--dhs-font-weight-semibold);
}

/* ---- Remove-item / empty-cart confirmation modals -------------------------------------------- */
#order-standard_cart.dhs-of .modal-remove-item .modal-content {
    border: 0;
    border-radius: var(--dhs-radius-2xl);
    box-shadow: var(--dhs-shadow-lg);
}
#order-standard_cart.dhs-of .modal-remove-item .modal-title i { color: var(--dhs-color-status-danger); }
#order-standard_cart.dhs-of .modal-remove-item .btn-default {
    border-radius: var(--dhs-radius-pill);
    border-color: var(--dhs-color-line-300);
    color: var(--dhs-color-ink-700);
}

/* ---- Checkout: "already registered / create account" toggle bar ------------------------------ */
#order-standard_cart.dhs-of .already-registered {
    background: var(--dhs-color-surface-050);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4) var(--dhs-space-5);
    margin-bottom: var(--dhs-space-6);
}
#order-standard_cart.dhs-of .already-registered p { color: var(--dhs-color-ink-700); margin: 0; }

/* ---- Checkout: section labels ("Personal Information", "Billing Address", ...) ---------------
   Native mechanism: `.sub-heading` is a zero-height rule (`border-top`) and `.sub-heading span`
   (real class `.primary-bg-color` — despite an earlier note here claiming otherwise, it DOES set
   a real background: `.primary-bg-color { background-color: #f1f1f1; }` lives unscoped in the
   Twenty-One PARENT theme's own templates/twenty-one/css/theme.css, loaded globally on every
   client-area page including order-form ones - confirmed by grepping the licensed core directly,
   not assumed. That's the flat grey rectangle behind "Configurable Options"/"Additional
   Information" etc - zeroed below) is absolutely-positioned to float centred on top of it,
   coloured `#058` — the same stock blue as the cart's header bar. Text-align is a CSS property,
   not markup, so this drops the centred-floating-label trick for a plain left-aligned section
   header with a bottom rule — same `<div><span></span></div>` markup, no HTML change. */
#order-standard_cart.dhs-of .sub-heading,
#order-standard_cart.dhs-of .sub-heading-borderless {
    height: auto;
    border-top: 0;
    border-bottom: 1px solid var(--dhs-color-line-100);
    text-align: left;
    margin: var(--dhs-space-8) 0 var(--dhs-space-5);
    padding-bottom: var(--dhs-space-2);
}
#order-standard_cart.dhs-of .sub-heading .primary-bg-color,
#order-standard_cart.dhs-of .sub-heading-borderless .primary-bg-color {
    position: static;
    top: auto;
    display: block;
    padding: 0;
    font-size: 16px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
    background-color: transparent;
}

/* ---- Checkout: existing-account switcher cards ------------------------------------------------ */
#order-standard_cart.dhs-of .account-select-container { border-right: 0; margin: 0 0 var(--dhs-space-5); }
#order-standard_cart.dhs-of .account-select-container .account {
    background: var(--dhs-color-surface-050);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4);
    margin-bottom: var(--dhs-space-3);
}
#order-standard_cart.dhs-of .account-select-container .account.active {
    background: var(--dhs-color-brand-050);
    border-color: var(--dhs-color-brand-500);
}
#order-standard_cart.dhs-of .account-select-container .address strong { color: var(--dhs-color-ink-900); }

/* ---- Checkout: form fields (existing-login + new-account + domain-contact) --------------------
   `.form-control`/`.field` already get a baseline brand restyle site-wide from 90-legacy.css,
   but that rule loses the cascade here for the same reason the button above did, so it is
   restated with the new token set for the exact same border/focus treatment as .dhs-field. */
#order-standard_cart.dhs-of .field,
#order-standard_cart.dhs-of .form-control {
    border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-md);
    color: var(--dhs-color-ink-900);
    font-size: 15px;
    box-shadow: var(--dhs-shadow-xs);
}
#order-standard_cart.dhs-of .form-control:focus {
    border-color: var(--dhs-color-brand-600);
    box-shadow: var(--dhs-shadow-focus-ring);
}
#order-standard_cart.dhs-of .field-icon i { color: var(--dhs-color-ink-400); }
#order-standard_cart.dhs-of .field-help-text { color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of input[type="radio"],
#order-standard_cart.dhs-of input[type="checkbox"] { accent-color: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .radio-inline,
#order-standard_cart.dhs-of .checkbox-inline { color: var(--dhs-color-ink-700); font-size: 14px; }

/* ---- Checkout: primary buttons (login, create account, place order) --------------------------- */
#order-standard_cart.dhs-of .btn-primary,
#order-standard_cart.dhs-of .btn-info,
#order-standard_cart.dhs-of .btn-warning { border-radius: var(--dhs-radius-pill); }
#order-standard_cart.dhs-of .btn-primary,
#order-standard_cart.dhs-of .btn-info { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); }
#order-standard_cart.dhs-of .btn-primary:hover,
#order-standard_cart.dhs-of .btn-primary:focus,
#order-standard_cart.dhs-of .btn-info:hover,
#order-standard_cart.dhs-of .btn-info:focus {
    background: var(--dhs-color-derived-brand-action-hover);
    border-color: var(--dhs-color-derived-brand-action-hover);
}
#order-standard_cart.dhs-of #btnCompleteOrder {
    width: 100%;
    padding: var(--dhs-space-4) var(--dhs-space-6);
    font-weight: var(--dhs-font-weight-semibold);
}

/* ---- Checkout: credit / saved-card / new-card panels ------------------------------------------ */
#order-standard_cart.dhs-of .apply-credit-container {
    background: var(--dhs-color-brand-050);
    border: 1px solid var(--dhs-color-brand-300);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4) var(--dhs-space-5);
}
#order-standard_cart.dhs-of .apply-credit-container span { color: var(--dhs-color-brand-900); }
#order-standard_cart.dhs-of .cc-input-container {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-5);
}
#order-standard_cart.dhs-of .existing-cc-grid { color: var(--dhs-color-ink-700); }
#order-standard_cart.dhs-of .checkout-security-msg { border-radius: var(--dhs-radius-md); }
#order-standard_cart.dhs-of .marketing-email-optin {
    background: var(--dhs-color-surface-050);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4) var(--dhs-space-5);
}
/* `#totalDueToday` is reused (harmlessly) as a different element on each page: a `span.amt`
   inside the view-cart order-summary (styled above via `.total-due-today .amt`, not by ID), and
   this `div.alert.large-text` banner on checkout. `.large-text` disambiguates so this rule can't
   bleed onto the view-cart span. */
#order-standard_cart.dhs-of #totalDueToday.large-text {
    background: var(--dhs-color-brand-050);
    border-color: var(--dhs-color-brand-300);
    color: var(--dhs-color-brand-900);
    border-radius: var(--dhs-radius-lg);
}
#order-standard_cart.dhs-of #totalDueToday.large-text strong { font-size: 20px; }

/* ---- 390px ---------------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    #order-standard_cart.dhs-of .order-summary { padding: var(--dhs-space-5); }
    #order-standard_cart.dhs-of .total-due-today .amt { font-size: 26px; }
    #order-standard_cart.dhs-of .view-cart-items .item-title { font-size: 15px; }
}

/* ============================================================================================
   Domain checker / TLD pricing table / promo boxes — NATIVE class restyle
   (templates/orderforms/dhs_cart/domainregister.tpl; .default-captcha/.captcha-container are
   shared with domaintransfer.tpl, so this section covers both).

   WHY NATIVE CLASSES, NOT A dhs-of-* NAMESPACE
     Same rationale as 98-tickets.css's header comment: the domain-availability AJAX check, the
     TLD category filter, and the captcha wiring are real, working JS keyed to WHMCS's own class
     names and DOM structure. Hand-porting that markup into a dhs-of-* component risks a silent
     typo breaking one of those, which is worse than a page that inherits this file's palette and
     spacing while keeping 100% of the original, tested markup. So — exactly like the ticket
     pages — every selector below targets WHMCS's OWN classes directly.

   WHY EVERY SELECTOR IS PREFIXED #order-standard_cart.dhs-of
     This file's own top-of-file note says css/all.css (WHMCS's stock order-form stylesheet)
     loads AFTER custom.css, so it wins any same-specificity collision regardless of source
     order. Several of the native rules being overridden here are themselves id-scoped
     (#order-standard_cart .domain-checker-result-headline, #order-standard_cart
     .captcha-container ...), and .tld-pricing-header alone carries competing declarations from
     a base-cell rule AND a `div:nth-child(odd)` stripe rule. Anchoring every selector below to
     #order-standard_cart (the page wrapper's own id — see the top of this file) plus this
     fork's own .dhs-of class guarantees a win on specificity, never a bet on load order.

   THE BUG THIS FIXES
     .domain-checker-container/-bg rendered WHMCS's own stock yellow/orange gradient
     (#ffb201 -> #ffd960, plus a background globe photo) directly under Store Chrome's branded
     green hero — never restyled when store-chrome.tpl was introduced. Below it, the TLD pricing
     table (.tld-pricing-header/.tld-row) and the two footer promo cards (.domain-promo-box) had
     zero custom.css coverage at all: a 6px steel-blue header rule and alternating grey column
     stripes left over from a decade-old default WHMCS skin, and plain grey Bootstrap cards.
     Confirmed via grep across templates/dhs_child/css/src: none of the classes below were
     referenced anywhere before this change.
   ============================================================================================ */

/* ---- Featured TLD cards (pre-search "spotlight" band, user-flagged 2026-08-16) ------------
   Native .featured-tld rendered its price as WHMCS's stock BLUE pill button directly under the
   branded hero — the one block of this page's idle state the earlier skin pass missed. Skinned
   to the same card/price language the landing page's TLD panels use: white card, logo, price
   in brand green with the cycle muted. Markup untouched (the .price.<tld> class pair is what
   base.js/native CSS key on). */
#order-standard_cart.dhs-of .featured-tld {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-xl);
    padding: var(--dhs-space-5);
    box-shadow: var(--dhs-shadow-sm);
    text-align: center;
    margin-bottom: var(--dhs-space-4);
}
#order-standard_cart.dhs-of .featured-tld .img-container { margin-bottom: var(--dhs-space-3); }
#order-standard_cart.dhs-of .featured-tld .img-container img { max-height: 34px; width: auto; }
#order-standard_cart.dhs-of .featured-tld .price {
    background: none;
    border: 0;
    border-radius: 0;
    padding: 0;
    color: var(--dhs-color-brand-700, #1E6020);
    font-size: 20px;
    line-height: 28px;
    font-weight: var(--dhs-font-weight-bold);
    font-variant-numeric: tabular-nums;
}

/* ---- Domain checker hero (was the stock yellow/orange gradient) --------------------------- */
/* Same literal gradient as .dhs-hero / .dhs-closing in 96-storefront.css — reused verbatim, not
   reinvented, per that file's own "not eyeballed" rule. */
#order-standard_cart.dhs-of .domain-checker-container {
    margin: var(--dhs-space-6) 0;
    background: linear-gradient(160deg, #0B0F0C 0%, #08210F 100%);
    border-radius: var(--dhs-radius-2xl);
}
#order-standard_cart.dhs-of .domain-checker-bg {
    padding: var(--dhs-space-10) var(--dhs-space-6);
    background-image: none; /* drop the stock globe.png watermark */
}
#order-standard_cart.dhs-of .domain-checker-container .input-group-box {
    max-width: 720px;
    padding: var(--dhs-space-3);
    border-radius: var(--dhs-radius-lg);
    box-shadow: var(--dhs-shadow-md);
}

/* ---- Captcha (shared with domaintransfer.tpl's transfer form) ----------------------------- */
#order-standard_cart.dhs-of .default-captcha {
    max-width: 360px;
    padding: var(--dhs-space-4);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    box-shadow: var(--dhs-shadow-sm);
    color: var(--dhs-color-ink-500);
}

/* ---- Search result headline + primary result card ------------------------------------------ */
#order-standard_cart.dhs-of .domain-checker-result-headline {
    margin: var(--dhs-space-6) 0 0;
    font-family: var(--dhs-font-family-display);
    font-size: 20px;
    color: var(--dhs-color-ink-900);
}
/* The primary result's card chrome is .dhs-dprimary (97-public.css, Figma 4094:4443 — full-width,
   green border, 36px price). Older rules here that boxed #primaryLookupResult at max-width:640px
   and forced .price to 24px fought that design at higher specificity and were removed — the id
   wrapper stays a plain show/hide target for base.js, nothing more. */
#order-standard_cart.dhs-of .domain-checker-unavailable,
#order-standard_cart.dhs-of .domain-checker-invalid { color: var(--dhs-color-derived-danger); }

/* UAT BL-01 (KD-74) — "Also available with other extensions" rows overlapped and clipped.
   The results-page rebuild gives each spotlight TLD BOTH the native .spotlight-tld class AND our
   .dhs-ctable__row. Native style.css:1114 styles .spotlight-tld as a fixed **112px, overflow:hidden,
   centre-aligned TILE** — geometry from WHMCS's old 4-across grid. Our row's content needs ~151px,
   so it was crammed into a 112px clipping box: rows pitched 112px apart overlapped by 39px, the
   checkbox was sliced in half into the row above, and "Includes free WHOIS privacy" was cut through
   the middle of its glyphs.
   Spotlight TLDs are a wanted capability, so this makes the two COEXIST rather than dropping either:
   the native tile geometry is neutralised only where our row class is also present.
   Scoped deliberately to `.spotlight-tld.dhs-ctable__row` (BOTH classes): configureproductdomain.tpl
   also renders .spotlight-tld but WITHOUT .dhs-ctable__row, so its native tiles keep their original
   look untouched. .dhs-ctable__row itself appears only in domainregister.tpl (verified by grep), so
   this cannot leak anywhere else. */
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row {
    height: auto;
    overflow: visible;
    padding: var(--dhs-space-4) var(--dhs-space-6);
    text-align: left;
    font-weight: var(--dhs-font-weight-regular);
    color: var(--dhs-color-ink-900);
    /* Native style.css:1114 also gives the tile its own #fff bg, #ddd border and 5px radius —
       inside .dhs-ctable the row chrome is the table's (bottom hairline only, zebra from
       .dhs-ctable__row:nth-child(even)), so the per-tile card look is neutralised here too. */
    background-color: transparent;
    border: 0;
    border-bottom: 1px solid var(--dhs-color-line-100);
    border-radius: 0;
    box-shadow: none;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row:last-child { border-bottom: 0; }

/* Same root cause as KD-74, the LAYOUT half (UAT 2026-08-13 — the "~185px stacked blocks" report).
   Native style.css:1127 `.spotlight-tld span { display:block; padding:5px 0; font-weight:normal }`
   is (0,1,1) and all.min.css loads AFTER custom.css (confirmed live, see the audit note at the
   "beating all.min.css" comment above), so it beats every (0,1,0) theme rule on these rows:
   .dhs-ctable__l/.dhs-ctable__r/.dhs-drow__name lost their flex, .dhs-badge lost inline-flex —
   checkbox, name, TLD and badges each became a full-width block line — and it even outguns
   .w-hidden (0,1,0), leaking the server-rendered price before lookup. The suggestions rows are
   identical markup but escape because they don't carry .spotlight-tld.
   Repair strategy: blanket-reset only the box/type pollution (deliberately NO display here — every
   span that matters is either a flex item, blockified regardless, or explicitly re-asserted below),
   then re-assert each component at this (1,4,0) scope. NO !important anywhere: base.js's inline
   show()/hide() styles must keep winning (KD-67). */
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row span {
    padding: 0;
    margin: 0;
    font-weight: inherit;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row span.w-hidden { display: none; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-ctable__l {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-4);
    min-width: 0;
    flex-wrap: wrap;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-ctable__r {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-6);
    flex: none;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__name {
    display: flex;
    align-items: baseline;
    gap: var(--dhs-space-1);
    font-weight: var(--dhs-font-weight-bold);
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--dhs-space-1);
    padding: 2px 10px;
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--dhs-font-weight-semibold);
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__price {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__price .price {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}

/* Row availability states, applied by paintAltRows() in domainregister.tpl from the same inline
   display base.js writes (the purchasable() test). Inert until JS runs — meta lines and the
   "Taken" badge stay hidden pre-lookup. Figma 4094:4443: an available row shows the price stack
   ("first year" / "Renews at …") and its badges; a taken row greys the name (.dhs-drow--taken,
   97-public.css), swaps WHOIS/SALE badges for a single "Taken" badge, and shows "— / Registered
   elsewhere" instead of a button. */
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__meta { display: none; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-drow--avail .dhs-drow__meta { display: block; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__badge--taken { display: none; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-drow--taken .dhs-drow__badge--taken { display: inline-flex; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-drow--taken .dhs-badge--muted:not(.dhs-drow__badge--taken),
#order-standard_cart.dhs-of .spotlight-tld.dhs-drow--taken [class*="spotlight-tld-"] { display: none; }

/* Taken/invalid results as the design's quiet text stack ("—" over "Registered elsewhere"), not a
   button. Native style.css:1159 gives these `margin:32px 0; background:#eee; color:#bbb` — the
   grey slab in the UAT screenshots. base.js show()s the button itself (inline-block — fine); it
   never touches these buttons' inner spans (only .btn-add-to-cart's state spans, base.js:1113),
   so the block stack on the spans is safe. */
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.unavailable,
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.invalid {
    margin: 0;
    padding: 0;
    width: auto;
    min-width: 0;
    min-height: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
    font-size: 12px;
    line-height: 18px;
    color: var(--dhs-color-ink-500);
    text-align: right;
    cursor: default;
    opacity: 1;
}
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.unavailable span,
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.invalid span { display: block; }
#order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__dash {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-700);
}

/* Mobile mirror: the (1,4,0) re-asserts above outrank 97-public.css's (0,1,0) mobile stacking
   rules, so the spotlight rows need their own copies of the phone adjustments. */
@media (max-width: 767.98px) {
    #order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-ctable__r {
        gap: var(--dhs-space-3);
        flex-wrap: wrap;
    }
    #order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row .dhs-drow__price { align-items: flex-start; }
    #order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.unavailable,
    #order-standard_cart.dhs-of .spotlight-tld.dhs-ctable__row button.invalid { text-align: left; }
}

/* Same root cause, the "Sale" ribbon half of it. The group tag is emitted with both .dhs-badge and
   the native .spotlight-tld-{group} class, and native style.css:1176-1220 styles that as a corner
   RIBBON (position:absolute; top:3px; right:-18px; width:60px; rotate(45deg); yellow #f7d458;
   white x-small text) — which only ever looked right clipped inside the old tile.
   CORRECTED 2026-08-13: an earlier version of this comment claimed custom.css loads AFTER
   all.min.css so .dhs-badge--brand's colours would win the specificity tie. That was backwards —
   custom.css is linked in <head> (parent theme head.tpl) and orderforms/dhs_cart/css/all.min.css
   is emitted in the <body> (common.tpl), so the NATIVE sheet wins every equal-specificity tie on
   these pages. That is exactly why the chip stayed a full-width yellow bar with tiny white text
   through one whole UAT round: this rule neutralised only the geometry and trusted the colours to
   a tie it was losing. The .dhs-badge--brand tokens are therefore restated here at (1,3,0).
   NOTE: the .tld-sale-group-hot/-new/-sale rules further down this file have never matched anything;
   the template emits .spotlight-tld-hot/-new/-sale. Left in place rather than deleted blind, but
   they are the reason this ribbon looked unstyled despite an override appearing to exist. */
#order-standard_cart.dhs-of .dhs-ctable__row [class*="spotlight-tld-"] {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    transform: none;
    letter-spacing: normal;
    background: var(--dhs-color-brand-050);
    border: 1px solid var(--dhs-color-brand-300);
    color: var(--dhs-color-brand-900);
    font-size: 14px;
    line-height: 20px;
    font-weight: var(--dhs-font-weight-semibold);
    text-transform: none;
}
/* The section wrappers need no card chrome of their own: the inner .dhs-ctable owns the bordered
   table (Figma places the "You might also like" h2 OUTSIDE the table, not in a card header). An
   older rule here boxed the whole .suggested-domains wrapper — heading included — and was removed. */

/* ---- TLD category filter pills (shape/colour already come from the global .badge rule in
   90-legacy.css; this adds layout + hover/active only) --------------------------------------- */
#order-standard_cart.dhs-of .tld-filters {
    display: flex;
    flex-wrap: wrap;
    gap: var(--dhs-space-2);
    margin: var(--dhs-space-4) 0 var(--dhs-space-5);
}
#order-standard_cart.dhs-of .tld-filters a.badge {
    cursor: pointer;
    transition: background-color .15s ease, color .15s ease;
}
#order-standard_cart.dhs-of .tld-filters a.badge:hover {
    background: var(--dhs-color-brand-050);
    color: var(--dhs-color-derived-brand-action-hover);
}
/* Defensive: the click handler that filters .tld-row by data-category is core WHMCS JS, not
   vendored in this repo (see CLAUDE.md — untouched by design), so the exact state class it
   toggles on the clicked pill can't be confirmed by reading source. Both common WHMCS naming
   conventions are covered; whichever it uses works, and the other rule simply never matches. */
#order-standard_cart.dhs-of .tld-filters a.badge.active,
#order-standard_cart.dhs-of .tld-filters a.badge.is-active {
    background: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
}

/* ---- TLD pricing table (was: 6px steel-blue header rule + alternating grey column stripes) -- */
#order-standard_cart.dhs-of .domain-pricing .bg-white {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    box-shadow: var(--dhs-shadow-sm);
    overflow: hidden;
}
#order-standard_cart.dhs-of .tld-pricing-header {
    background: var(--dhs-color-surface-050);
    border-bottom: 1px solid var(--dhs-color-line-100);
}
#order-standard_cart.dhs-of .tld-pricing-header .tld-column,
#order-standard_cart.dhs-of .tld-pricing-header .col-xs-4,
#order-standard_cart.dhs-of .tld-pricing-header .col-sm-4 {
    height: auto;
    padding: var(--dhs-space-3) var(--dhs-space-2);
    background: transparent;
    border-bottom: 0;
    border-radius: 0;
    font-size: var(--dhs-type-caption-size);
    font-weight: var(--dhs-font-weight-semibold);
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--dhs-color-ink-500);
}
#order-standard_cart.dhs-of .tld-row {
    padding: 0;
    border-bottom: 1px solid var(--dhs-color-line-200);
    transition: background-color .15s ease;
}
#order-standard_cart.dhs-of .tld-row:hover { background: var(--dhs-color-surface-050); }
#order-standard_cart.dhs-of .tld-row.highlighted { background: var(--dhs-color-brand-050); }
#order-standard_cart.dhs-of .tld-row.no-tlds { border-bottom: 0; }
#order-standard_cart.dhs-of .tld-row .two-row-center {
    border-right: 1px solid var(--dhs-color-line-100);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-of .tld-row .col-xs-4 { color: var(--dhs-color-ink-800); }
#order-standard_cart.dhs-of .tld-row .col-xs-4 small { color: var(--dhs-color-ink-400); }
#order-standard_cart.dhs-of .tld-sale-group {
    display: inline-block;
    margin-left: var(--dhs-space-2);
    padding: 2px var(--dhs-space-2);
    border-radius: var(--dhs-radius-pill);
    font-size: 11px;
    font-weight: var(--dhs-font-weight-semibold);
    text-transform: uppercase;
    vertical-align: middle;
}
/* Tones matched to .dhs-chip--danger/--success/--warning (20-components.css) rather than the
   native spotlight-tld reds/yellows, so a "HOT"/"NEW"/"SALE" tag reads the same wherever it
   appears on the page. */
#order-standard_cart.dhs-of .tld-sale-group-hot  { background: #FDECEE; color: #B3242A; }
#order-standard_cart.dhs-of .tld-sale-group-new  { background: var(--dhs-color-brand-050); color: var(--dhs-color-derived-brand-action-hover); }
#order-standard_cart.dhs-of .tld-sale-group-sale { background: #FFF6DB; color: #7A5A00; }

/* ---- Transfer-page hosting upsell cards (UAT ME-11) ----------------------------------------
   The three "Select Plan" buttons landed at three different heights (y ~596 / 582 / 624). The card
   is the generic .dhs-panel (20-components.css:65) — no flex, no height:100% — so with each tier
   rendering a different number of conditional feature <li>s the CTA simply followed its own content,
   and the featured tier's in-flow "Most Popular" badge added ~28px more on top.
   Scoped to .dhs-upsell-card, a class that exists only on this block, so every other .dhs-panel on
   the site (prerequisites, EPP, order summaries, portal pages) is untouched. */
#order-standard_cart.dhs-of .dhs-upsell-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    margin-bottom: 0;
}
/* Pushes the CTA to the card's floor, which is what actually aligns the three buttons. */
#order-standard_cart.dhs-of .dhs-upsell-card__cta { margin-top: auto; }
/* Out of flow, so the featured card is no taller than its siblings. */
#order-standard_cart.dhs-of .dhs-upsell-card__tag {
    position: absolute;
    top: calc(-1 * var(--dhs-space-3));
    left: var(--dhs-space-5);
}
/* Bootstrap 4 .row is already flex; stretching the columns lets height:100% above resolve. */
#order-standard_cart.dhs-of .dhs-upsell-grid { align-items: stretch; }

/* ---- Featured TLDs grid (was: bare Bootstrap columns, no styling at all) -------------------- */
#order-standard_cart.dhs-of .featured-tld {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    box-shadow: var(--dhs-shadow-xs);
    padding: var(--dhs-space-5);
    margin-bottom: var(--dhs-space-6);
    text-align: center;
    transition: box-shadow .15s ease, border-color .15s ease;
}
#order-standard_cart.dhs-of .featured-tld:hover {
    border-color: var(--dhs-color-brand-300);
    box-shadow: var(--dhs-shadow-sm);
}
#order-standard_cart.dhs-of .featured-tld .img-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 56px;
    margin-bottom: var(--dhs-space-3);
}
#order-standard_cart.dhs-of .featured-tld .img-container img { max-height: 100%; max-width: 120px; width: auto; }
#order-standard_cart.dhs-of .featured-tld .price {
    font-size: var(--dhs-type-body-lg-size);
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-brand-900);
}

/* ---- Domain promo boxes ("Add Web Hosting" / "Transfer your domain to us") ----------------- */
#order-standard_cart.dhs-of .domain-promo-box {
    height: 100%;
    padding: var(--dhs-space-6);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    box-shadow: var(--dhs-shadow-sm);
    color: var(--dhs-color-ink-700);
    text-align: center;
}
#order-standard_cart.dhs-of .domain-promo-box i {
    float: none;
    display: block;
    margin: 0 auto var(--dhs-space-4);
    color: var(--dhs-color-brand-900);
}

/* ---- Idle-state consistency pass (user compare-with-landing, 2026-08-16) ------------------
   The user put the register page's idle state next to the landing page and the native leftovers
   stood out: Bootstrap's grey .badge-secondary category chips, an amber .text-warning promo
   subtitle, zebra striping the design nowhere uses, and price cells without the design's
   numeric emphasis. Markup untouched throughout — these override earlier/legacy rules by
   source order within this same generated sheet. */
#order-standard_cart.dhs-of .tld-filters a.badge {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-300);
    color: var(--dhs-color-ink-700);
    border-radius: var(--dhs-radius-pill);
    padding: 6px 14px;
    font-size: var(--dhs-type-body-sm-size);
    font-weight: var(--dhs-font-weight-semibold);
}
#order-standard_cart.dhs-of .tld-filters a.badge:hover {
    background: var(--dhs-color-surface-white);
    border-color: var(--dhs-color-brand-900);
    color: var(--dhs-color-brand-900);
}
#order-standard_cart.dhs-of .tld-filters a.badge.active,
#order-standard_cart.dhs-of .tld-filters a.badge.is-active {
    background: var(--dhs-color-brand-900);
    border-color: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
}
/* No zebra anywhere in the design system — rows separate by border, highlight on hover only. */
#order-standard_cart.dhs-of .tld-row:nth-child(odd),
#order-standard_cart.dhs-of .tld-row:nth-child(even) { background: var(--dhs-color-surface-white); }
#order-standard_cart.dhs-of .tld-row:hover { background: var(--dhs-color-surface-050); }
#order-standard_cart.dhs-of .tld-row .col-xs-4 {
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900);
    font-variant-numeric: tabular-nums;
}
#order-standard_cart.dhs-of .tld-row .col-xs-4 small {
    font-weight: var(--dhs-font-weight-regular);
    color: var(--dhs-color-ink-400);
}

/* ---- Idle extensions list reuses the POPULATED results-list design (user, 2026-08-16) ------
   "The extension list design should be similar in design to the one that is there when the
   domain has been populated" — i.e. the dhs-ctable rows: bold TLD in brand green on the left,
   right-aligned price stacks with quiet meta lines, row-border separation, no column-header
   band. CSS-only over the native .tld-row markup so base.js's category filter keeps working.
   The native header row is hidden and each price gains a small caption via ::before —
   English literals, matching this install's single-language deployment (the native {lang}
   header was the i18n carrier; revisit if a second language ever ships). */
#order-standard_cart.dhs-of .tld-pricing-header { display: none; }
#order-standard_cart.dhs-of .tld-row {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-6);
    padding: var(--dhs-space-4) var(--dhs-space-5);
}
#order-standard_cart.dhs-of .tld-row.no-tlds { display: block; }
#order-standard_cart.dhs-of .tld-row .two-row-center {
    border-right: 0;
    flex: 1 1 auto;
    width: auto;
    max-width: none;
    padding: 0;
    font-size: 17px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-brand-700, #1E6020);
}
#order-standard_cart.dhs-of .tld-row > .col-md-8 {
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}
#order-standard_cart.dhs-of .tld-row > .col-md-8 > .row {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--dhs-space-8);
}
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4 {
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    min-width: 110px;
    text-align: right;
}
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4::before {
    display: block;
    font-size: 11px;
    font-weight: var(--dhs-font-weight-semibold);
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--dhs-color-ink-400);
    margin-bottom: 2px;
}
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4:nth-child(1)::before { content: 'Register'; }
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4:nth-child(2)::before { content: 'Transfer'; }
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4:nth-child(3)::before { content: 'Renewal'; }
#order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4 small { display: block; margin-top: 1px; }
@media (max-width: 767.98px) {
    #order-standard_cart.dhs-of .tld-row { flex-wrap: wrap; gap: var(--dhs-space-3); }
    #order-standard_cart.dhs-of .tld-row .two-row-center { flex: 1 1 100%; }
    #order-standard_cart.dhs-of .tld-row > .col-md-8 > .row { gap: var(--dhs-space-5); }
    #order-standard_cart.dhs-of .tld-row > .col-md-8 .col-xs-4 { text-align: left; min-width: 0; }
}
/* Featured band: centre the card(s) so a single featured TLD reads as deliberate, not stray. */
#order-standard_cart.dhs-of .featured-tlds-container .row { justify-content: center; }
#order-standard_cart.dhs-of .featured-tlds-container .col-lg-4 { max-width: 320px; }
/* The promo subtitles carried Bootstrap's amber .text-warning — nothing in the palette.
   !important because Bootstrap's own text-color utilities are !important. */
#order-standard_cart.dhs-of .domain-promo-box .text-warning { color: var(--dhs-color-ink-500) !important; }
#order-standard_cart.dhs-of .domain-promo-box h3 {
    font-family: var(--dhs-font-family-display);
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-of .domain-promo-box p { color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .domain-promo-box .small { color: var(--dhs-color-ink-400); }
#order-standard_cart.dhs-of .domain-promo-box .btn {
    display: inline-block;
    margin-top: var(--dhs-space-2);
    border-radius: var(--dhs-radius-pill);
}
/* Stock Bootstrap .btn-warning (amber) on the hosting card is the one primary CTA this fork's
   global .btn-primary pill rule (90-legacy.css) doesn't already reach. Matched to the same
   brand-900 fill as every other primary CTA instead of left amber. */
#order-standard_cart.dhs-of .domain-promo-box .btn-warning {
    background: var(--dhs-color-brand-900);
    border-color: var(--dhs-color-brand-900);
    color: var(--dhs-color-surface-white);
}
#order-standard_cart.dhs-of .domain-promo-box .btn-warning:hover {
    background: var(--dhs-color-derived-brand-action-hover);
    border-color: var(--dhs-color-derived-brand-action-hover);
}

/* ---- 767px: native's own .input-group-box media query already stacks the input+button; only
   the surrounding padding needs to shrink to match. -------------------------------------------- */
@media (max-width: 767.98px) {
    #order-standard_cart.dhs-of .domain-checker-bg { padding: var(--dhs-space-8) var(--dhs-space-4); }
    #order-standard_cart.dhs-of .domain-promo-box { margin-bottom: var(--dhs-space-4); }
}

/* ============================================================================================
   configureproduct.tpl / configureproductdomain.tpl (Stage 2e) — CSS-only, no template markup
   renamed. Neither file has a Figma frame (confirmed via exhaustive search, same verdict
   docs/Design_Audit_Real_WHMCS.md already gives Stage-2g's five undesigned completion steps) so
   this generic-modernizes onto the tokens already established above, matching what every other
   undesigned page in this theme does.

   WHY CSS-ONLY, NOT A MARKUP REWRITE (unlike products.tpl/clientareadomaindetails.tpl etc.):
   configureproductdomain.tpl's radios are enhanced by the iCheck plugin AND its domain-option
   panel ids/field ids are built by runtime string concatenation in js/scripts.js — not literal
   selectors a grep for the id text will find:
     jQuery("#domain" + domainoption).show()              -> #domainregister / #domainincart / ...
     jQuery("#" + domainoption + "sld")                    -> #registersld / #transfersld / ...
     jQuery("#" + domainoption + "tld")                    -> #registertld / #transfertld / ...
   Renaming any of `id="domain{option}"` / `id="{option}sld"` / `id="{option}tld"` breaks the
   domain-option switcher silently (no JS error — the concatenated selector just matches nothing).
   `.option` / `.domain-selection-options` / `.domain-input-group` are real delegation targets too
   (scripts.js ~2691-2757). So: reskin the native classes in place via the same
   `#order-standard_cart.dhs-of <native-class>` cascade-boost already used everywhere in this file,
   never touch the template's ids, names or classes.

   HISTORY, CORRECTED (KD-78, 2026-08-14). An earlier version of this comment claimed the results
   area below the domain-option block "is the exact same shared markup domainregister.tpl already
   uses" and was styled for free by that page's rules. That stopped being true when
   domainregister.tpl was rebuilt onto .dhs-dprimary/.dhs-ctable__row (this template keeps WHMCS's
   stock TILE variant — its JS handler force-hides every <div> inside #primaryLookupResult, so the
   row rebuild's wrappers are impossible here), and the KD-77 cleanup then deleted the shared-name
   rules as stale against domainregister's new markup — silently reverting THIS page's results
   area to stock WHMCS. The results-area rules now live in their own section below, scoped to the
   template's .dhs-cpd marker class so neither page's styling can reach the other again.
   Also stale: the "no seeded product drags in the domain step" note — the dev catalogue's hosting
   products now carry showdomainoptions=1 and this page renders live at
   /index.php?rp=/store/web-hosting/bronze (verified 2026-08-14, screenshots in the KD-78 entry).
   ============================================================================================ */

/* The page h1 is .dhs-co-h1 (template line 11) — an older .header-lined/.font-size-36 pair here
   styled markup this template no longer emits and was removed (KD-78 dead-rule sweep). */

/* ---- Configure: selected-plan summary box ----------------------------------------------------
   Native .product-info/.product-title carry no box treatment at all today — this is the
   "plain text against the grey page background" gap the live screenshot shows. */
#order-standard_cart.dhs-of .product-info {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-5) var(--dhs-space-6);
    margin-bottom: var(--dhs-space-6);
}
#order-standard_cart.dhs-of .product-info .product-title {
    font-size: 20px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
    margin: 0 0 var(--dhs-space-2);
}
#order-standard_cart.dhs-of .product-info > p:last-child { color: var(--dhs-color-ink-500); margin: 0; }

/* ---- Configure: form fields (billing cycle, server config, custom fields) ---------------------
   `.form-control`/`.field` already get the border/focus-ring treatment site-wide (above); this
   adds the label weight + spacing .dhs-field uses elsewhere, on the native wrapper, same recipe
   as the checkout form-field rule already in this file. */
#order-standard_cart.dhs-of .field-container .form-group,
#order-standard_cart.dhs-of #productConfigurableOptions .form-group {
    margin-bottom: var(--dhs-space-4);
}
#order-standard_cart.dhs-of .field-container .form-group > label,
#order-standard_cart.dhs-of #productConfigurableOptions .form-group > label {
    display: block;
    font-size: 14px;
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-700);
    margin-bottom: var(--dhs-space-1-5);
}
#order-standard_cart.dhs-of .field-help-text {
    display: block;
    font-size: 12px;
    color: var(--dhs-color-ink-500);
    margin-top: var(--dhs-space-1-5);
}
#order-standard_cart.dhs-of .form-control-static-inline { color: var(--dhs-color-ink-700); margin-left: var(--dhs-space-2); }

/* ---- Configure: add-on selection cards ---------------------------------------------------------
   `.panel-addon`/`.panel-addon-selected`/`.panel-add` are real jQuery delegation targets
   (scripts.js ~2663-2683) — every class below is additive/overriding CSS only, none renamed. */
#order-standard_cart.dhs-of .panel-addon {
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
    box-shadow: var(--dhs-shadow-xs);
    overflow: hidden;
    transition: border-color .15s ease, background-color .15s ease;
}
#order-standard_cart.dhs-of .panel-addon .panel-body {
    padding: var(--dhs-space-4) var(--dhs-space-5);
    border: 0;
}
#order-standard_cart.dhs-of .panel-addon-selected {
    border-color: var(--dhs-color-brand-500);
    background: var(--dhs-color-brand-050);
}
#order-standard_cart.dhs-of .panel-price {
    padding: 0 var(--dhs-space-5) var(--dhs-space-3);
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-of .panel-add {
    padding: var(--dhs-space-3) var(--dhs-space-5);
    color: var(--dhs-color-brand-900);
    font-weight: var(--dhs-font-weight-semibold);
    font-size: 14px;
    border-top: 1px solid var(--dhs-color-line-100);
    background: var(--dhs-color-surface-050);
    cursor: pointer;
}

/* ---- Configure: order-summary loading spinner (matches the brand green, was default grey) ----- */
#order-standard_cart.dhs-of #orderSummaryLoader { color: var(--dhs-color-brand-700); }

/* ---- Configure: wrap each native section (Billing Cycle / Metrics / Server / Configurable
   Options / Custom Fields / Addons) in a dhs-co-card so configureproduct.tpl reads as the same
   boxed-card wizard as viewcart.tpl/checkout.tpl instead of plain stacked sections - only wrapper
   divs were added in the template, every .sub-heading/.field-container/.panel-addon id/class
   below stays native (see that CSS above) and this is purely additive on top of it. `.sub-heading`
   was designed as a divider BETWEEN stacked page sections (space-8 top margin) - zero that when
   it opens a card instead. */
#order-standard_cart.dhs-of .dhs-co-form-card > .sub-heading:first-child,
#order-standard_cart.dhs-of .dhs-co-form-card > .sub-heading-borderless:first-child {
    margin-top: 0;
}
#order-standard_cart.dhs-of .dhs-co-form-card > .field-container > .form-group:last-child {
    margin-bottom: 0;
}

/* ---- configureproductdomain.tpl: the 5 domain-option choice rows ------------------------------
   Each `.option` is a full-width selectable row (radio + label), revealing its own
   `.domain-input-group` when chosen. `.option-selected` is toggled by JS on click
   (scripts.js:2699/2706ish) — style it as the active state, do not rename it. */
#order-standard_cart.dhs-of .domain-selection-options .option {
    display: block;
    padding: var(--dhs-space-4) var(--dhs-space-5);
    margin-bottom: var(--dhs-space-3);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-lg);
    transition: border-color .15s ease, background-color .15s ease;
}
#order-standard_cart.dhs-of .domain-selection-options .option-selected {
    border-color: var(--dhs-color-brand-500);
    background: var(--dhs-color-brand-050);
}
#order-standard_cart.dhs-of .domain-selection-options .option > label {
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-800);
    margin: 0;
}
#order-standard_cart.dhs-of .domain-input-group {
    margin-top: var(--dhs-space-4);
}
#order-standard_cart.dhs-of .domain-input-group .input-group-addon,
#order-standard_cart.dhs-of .domain-input-group .input-group-text {
    background: var(--dhs-color-surface-050);
    border: 1px solid var(--dhs-color-line-300);
    border-right: 0;
    color: var(--dhs-color-ink-500);
}
#order-standard_cart.dhs-of .domain-input-group .form-control { border-radius: 0; }

/* ---- configureproductdomain.tpl RESULTS AREA (KD-78) — scoped to the template's .dhs-cpd marker.
   This page keeps WHMCS's stock markup for the primary result, spotlight TILES and suggestions
   list (its base.js handler force-hides every <div> inside #primaryLookupResult per search, so
   domainregister.tpl's row rebuild is structurally impossible here). These rules restore the
   theme treatment KD-77's cleanup removed — under .dhs-cpd so they can never leak back onto
   domainregister.tpl, whose #primaryLookupResult/#spotlightTlds now carry a different design.
   Config-agnostic by construction: native class/id hooks only, any radio subset, any tile count
   (the native .spotlight-tld-container-{n} percent widths still size the cells). ------------- */

/* Primary "your search" result — centred card. Chrome sits ON #primaryLookupResult itself:
   adding a wrapper <div> inside it is forbidden (base.js:258 hides every descendant div). */
#order-standard_cart.dhs-cpd #primaryLookupResult {
    max-width: 640px;
    margin: var(--dhs-space-4) auto 0;
    padding: var(--dhs-space-6);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    box-shadow: var(--dhs-shadow-sm);
}
#order-standard_cart.dhs-cpd .domain-checker-available { color: var(--dhs-color-derived-brand-action-hover); }
#order-standard_cart.dhs-cpd #primaryLookupResult .domain-price { margin: var(--dhs-space-4) 0 0; }
#order-standard_cart.dhs-cpd #primaryLookupResult .price {
    font-family: var(--dhs-font-family-display);
    font-size: 24px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-cpd #primaryLookupResult .domain-contact-support { cursor: pointer; }

/* Spotlight strip + tiles. Native floats the percent-width cells (style.css:1064-1091), which
   staggers unequal heights — flex keeps the native width classes but stretches cells equal. */
#order-standard_cart.dhs-cpd #spotlightTlds {
    margin: var(--dhs-space-6) 0 0;
    padding: var(--dhs-space-4);
    background: var(--dhs-color-surface-050);
    border-radius: var(--dhs-radius-lg);
}
#order-standard_cart.dhs-cpd .spotlight-tlds-container {
    display: flex;
    flex-wrap: wrap;
}
/* Native tile is height:112px + overflow:hidden (style.css:1114) — sized for its own 2px-padding
   .btn, which the theme's taller .dhs-btn overflows. height:auto + a min-height keeps the tile
   shape without clipping; overflow stays hidden because the corner ribbon below depends on it. */
#order-standard_cart.dhs-cpd .spotlight-tld {
    height: 100%;
    min-height: 128px;
    padding: var(--dhs-space-4) var(--dhs-space-2);
    background: var(--dhs-color-surface-white);
    border-color: var(--dhs-color-line-200);
    border-radius: var(--dhs-radius-md);
    box-shadow: var(--dhs-shadow-xs);
    color: var(--dhs-color-ink-900);
    font-size: 16px;
}
/* Native .spotlight-tld span { display:block; padding:5px 0 } (0,1,1) is CORRECT for the tile's
   stacked TLD/price lines but wrong inside buttons: the counter-rule that fixed that natively
   (.spotlight-tld .btn span { padding:0 }) died when the theme renamed btn -> dhs-btn (KD-78).
   Restore it for the theme class — button state spans are inline, unpadded. */
#order-standard_cart.dhs-cpd .spotlight-tld .dhs-btn span {
    display: inline;
    padding: 0;
}
#order-standard_cart.dhs-cpd .spotlight-tld span.available {
    font-size: 16px;
    line-height: 24px;
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-cpd .spotlight-tld .dhs-btn {
    width: 85%;
    margin: var(--dhs-space-2) auto 0;
    padding: 6px 10px;
    font-size: 13px;
    line-height: 18px;
    min-height: 0;
}
/* Native style.css:1159 still matches these (class-only selector survived the btn rename) and
   painted a #eee/#bbb slab with a 32px margin inside the tile. Quiet theme-muted state instead. */
#order-standard_cart.dhs-cpd .spotlight-tld button.unavailable,
#order-standard_cart.dhs-cpd .spotlight-tld button.invalid {
    margin: var(--dhs-space-2) auto 0;
    background: var(--dhs-color-surface-050);
    border-color: var(--dhs-color-line-200);
    color: var(--dhs-color-ink-500);
    opacity: 1;
}
#order-standard_cart.dhs-cpd .spotlight-tld .domain-contact-support { margin: var(--dhs-space-2) auto 0; }
/* The group ribbon: native geometry (rotated corner chip, clipped by the tile's overflow:hidden)
   fits the tile design and is kept — only the vendor colours (#f7d458 yellow / #2ad588 / #f9615a,
   white x-small text) go brand. Scoped under .spotlight-tld so the ancestor
   .spotlight-tld-container-{n} width classes, which also match [class*=], are untouched. */
#order-standard_cart.dhs-cpd .spotlight-tld [class*="spotlight-tld-"] {
    background: var(--dhs-color-brand-600);
    color: #fff;
}

/* Suggestions panel — carded, with the native lime (#62cb31) header border re-toned. */
#order-standard_cart.dhs-cpd .suggested-domains {
    margin-top: var(--dhs-space-6);
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl);
    overflow: hidden;
    box-shadow: var(--dhs-shadow-sm);
}
#order-standard_cart.dhs-cpd .suggested-domains .card-header {
    background: var(--dhs-color-surface-050);
    border-bottom: 2px solid var(--dhs-color-brand-500);
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-900);
}
#order-standard_cart.dhs-cpd .domain-suggestion { padding: var(--dhs-space-3) var(--dhs-space-5); }
#order-standard_cart.dhs-cpd .suggested-domains .actions .price {
    font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900);
}

#order-standard_cart.dhs-cpd #btnDomainContinue {
    margin: var(--dhs-space-6) auto;
    min-width: 220px;
}

@media (max-width: 767.98px) {
    #order-standard_cart.dhs-cpd #primaryLookupResult { padding: var(--dhs-space-4); }
}

/* ============================================================================================
   CHECKOUT WIZARD (viewcart.tpl / checkout.tpl / complete.tpl) — Figma "Optimized Checkout Flow"
   frame 4111:4232, screens 4117:4884 (Cart Review) / 4117:5126 (Details) / 4117:5386 (Payment),
   plus the parallel Transfer trio 4117:5765/5898/6053. design/figma/screens/4117-*.md.

   ARCHITECTURE NOTE: real WHMCS gives 3 native pages (viewcart -> checkout -> complete), but
   fuses "Your Details" and "Complete Payment" into ONE page/ONE <form id="frmCheckout"> — there
   is no second native route between them. The stepper's Details/Payment split is therefore a
   client-side panel toggle within that single form (see .dhs-co-panel/dhs-co-panel-toggle JS in
   checkout.tpl), not a real page change - confirmed by reading the real checkout.tpl off the
   licensed core (every field name/id/class inside it must stay exactly as native WHMCS emits it,
   see that file's own header comment).

   PAYMENT STEP SCOPE NOTE: the Figma mock shows an M-Pesa phone-number field inline on the
   Payment step. Real WHMCS's $gateways loop is method SELECTION only (radio buttons) - actual
   phone/card collection happens on the invoice page after the order exists, via each gateway's
   own _link() output (dhs_mpesa_link()/dhs_bankcard_link(), already built - see the
   .dhs-of-pay/.dhs-mpesa-panel/.dhs-card-panel rules far below, which is where THAT UI actually
   lives). So here the Payment step is a styled gateway PICKER, not a duplicate payment form.
   ============================================================================================ */

/* ---- shared page shell -------------------------------------------------------------------- */
#order-standard_cart.dhs-of .dhs-co-h1 {
    font-family: var(--dhs-font-family-display);
    font-size: 36px; line-height: 44px; font-weight: var(--dhs-font-weight-bold);
    color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-6);
}
/* Flex, not grid: `.dhs-co-grid` sits on the same element as the native `.row`, and on
   configureproduct.tpl (unlike viewcart.tpl) that `.row` is nested inside <form
   id="frmConfigureProduct"> rather than a direct child of `.dhs-of-body` - the existing
   `.dhs-of-body > .row` flex fix above (this file, ~line 489) only matches the direct-child case,
   so on this page it never fires and `display:grid` was left standing on top of the native
   `.secondary-cart-body`/`.secondary-cart-sidebar` percentage widths (65%/35% of the grid TRACK,
   not the page) - producing a narrow, squeezed sidebar. Scoping the fix to the `.dhs-co-grid`
   class itself, not DOM position, makes it work regardless of what wraps the row. */
#order-standard_cart.dhs-of .dhs-co-grid {
    display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--dhs-space-8);
}
#order-standard_cart.dhs-of .dhs-co-grid > .dhs-co-main {
    display: flex; flex-direction: column; gap: var(--dhs-space-6);
    flex: 1 1 0; min-width: 0; max-width: 100%; width: auto; float: none;
    padding-left: 0; padding-right: 0;
}
#order-standard_cart.dhs-of .dhs-co-grid > .dhs-co-side {
    display: flex; flex-direction: column; gap: var(--dhs-space-6); position: sticky; top: var(--dhs-space-6);
    flex: 0 0 420px; max-width: 420px; width: auto; float: none; margin: 0;
    padding-left: 0; padding-right: 0;
}
@media (max-width: 991.98px) {
    #order-standard_cart.dhs-of .dhs-co-grid > .dhs-co-side {
        flex: 1 1 100%; max-width: 100%; position: static; margin-top: var(--dhs-space-6);
    }
}
#order-standard_cart.dhs-of .dhs-co-card {
    background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-8);
}
@media (max-width: 1199.98px) {
    /* 2026-08-16: this block used to also set grid-template-columns — a NO-OP since
       .dhs-co-grid became display:flex (see the architecture note above). Removed rather
       than "fixed": making a real ≤1199.98 collapse here would CHANGE guest rendering,
       which nobody has decided. The shell's funnel rail has its own scoped collapse in
       21-clientshell.css. The un-stick below is the only live effect and stays. */
    #order-standard_cart.dhs-of .dhs-co-side { position: static; }
}

/* ---- Checkout Steps stepper (identical component on all 3 pages, Status prop differs) ----- */
#order-standard_cart.dhs-of .dhs-co-steps {
    display: flex; align-items: flex-start; justify-content: center; gap: var(--dhs-space-4);
    max-width: 992px; margin: 0 auto var(--dhs-space-10); padding: var(--dhs-space-6) 0; position: relative;
}
#order-standard_cart.dhs-of .dhs-co-steps__line {
    position: absolute; top: 12px; left: 15%; right: 15%; height: 2px; background: var(--dhs-color-line-100); z-index: 0;
}
#order-standard_cart.dhs-of .dhs-co-steps__line-fill { display: block; height: 100%; background: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .dhs-co-step {
    position: relative; z-index: 1; flex: 1 1 0; max-width: 320px; display: flex; flex-direction: column;
    align-items: center; text-align: center; gap: var(--dhs-space-2);
}
#order-standard_cart.dhs-of .dhs-co-step__icon {
    width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: var(--dhs-color-brand-050);
}
#order-standard_cart.dhs-of .dhs-co-step__icon-inner { width: 16px; height: 16px; border-radius: 50%; background: var(--dhs-color-brand-700); display: flex; align-items: center; justify-content: center; color: #fff; }
#order-standard_cart.dhs-of .dhs-co-step.is-incomplete .dhs-co-step__icon { background: var(--dhs-color-surface-050); border: 1.5px solid var(--dhs-color-line-100); }
#order-standard_cart.dhs-of .dhs-co-step.is-incomplete .dhs-co-step__icon-inner { width: 8px; height: 8px; background: var(--dhs-color-line-400); }
#order-standard_cart.dhs-of .dhs-co-step__icon svg { width: 12px; height: 12px; }
#order-standard_cart.dhs-of .dhs-co-step__label { font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-700); }
#order-standard_cart.dhs-of .dhs-co-step.is-current .dhs-co-step__label { color: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .dhs-co-step__sub { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-step.is-current .dhs-co-step__sub { color: var(--dhs-color-brand-700); }
@media (max-width: 767.98px) {
    #order-standard_cart.dhs-of .dhs-co-steps { flex-wrap: wrap; }
    #order-standard_cart.dhs-of .dhs-co-steps__line { display: none; }
}

/* ---- Cart line item row — restyles the EXISTING .item/.row/.item-title/.item-price markup,
   scoped so no id/name/onclick anywhere in viewcart.tpl's foreach loops changes. ------------- */
#order-standard_cart.dhs-of .dhs-co-items .item {
    padding: var(--dhs-space-4) 0; border-bottom: 1px solid var(--dhs-color-line-100);
}
#order-standard_cart.dhs-of .dhs-co-items .item:last-child { border-bottom: 0; }
#order-standard_cart.dhs-of .dhs-co-items .item .row { align-items: center; }
#order-standard_cart.dhs-of .dhs-co-items .item-title { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); display: block; }
#order-standard_cart.dhs-of .dhs-co-items .item-group,
#order-standard_cart.dhs-of .dhs-co-items .item-domain { font-size: 13px; line-height: 16px; color: var(--dhs-color-ink-500); display: block; }
#order-standard_cart.dhs-of .dhs-co-items .item-price { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-items .item-price .cycle { display: block; font-size: 13px; font-weight: var(--dhs-font-weight-regular); color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-items .view-cart-items-header { font-size: 12px; font-weight: var(--dhs-font-weight-bold); letter-spacing: .04em; text-transform: uppercase; color: var(--dhs-color-ink-500); padding-bottom: var(--dhs-space-3); border-bottom: 1px solid var(--dhs-color-line-100); margin-bottom: var(--dhs-space-2); }
#order-standard_cart.dhs-of .dhs-co-items .btn-remove-from-cart { color: var(--dhs-color-status-danger); }

/* ---- Hosting upsell (Register: card grid; Transfer: comparison table) ---------------------- */
#order-standard_cart.dhs-of .dhs-co-hosting__head { margin-bottom: var(--dhs-space-4); }
#order-standard_cart.dhs-of .dhs-co-hosting__head h3 { margin: 0 0 var(--dhs-space-1); font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-hosting__head p { margin: 0; font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-hosting__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--dhs-space-3); margin-bottom: var(--dhs-space-4); }
#order-standard_cart.dhs-of .dhs-co-hosting__tile {
    display: block; text-decoration: none; background: var(--dhs-color-surface-050);
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    padding: var(--dhs-space-3); transition: border-color .15s ease, box-shadow .15s ease;
}
#order-standard_cart.dhs-of .dhs-co-hosting__tile:hover { border-color: var(--dhs-color-brand-500); box-shadow: var(--dhs-shadow-sm); }
#order-standard_cart.dhs-of .dhs-co-hosting__tile.is-selected { border: 2px solid var(--dhs-color-brand-700); padding: calc(var(--dhs-space-3) - 1px); }
#order-standard_cart.dhs-of .dhs-co-hosting__tile-top { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-2); margin-bottom: var(--dhs-space-1); }
#order-standard_cart.dhs-of .dhs-co-hosting__name { font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-badge { font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); background: var(--dhs-color-brand-050); border-radius: var(--dhs-radius-pill); padding: 1px 8px; white-space: nowrap; }
#order-standard_cart.dhs-of .dhs-co-hosting__price { font-size: 14px; line-height: 20px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin-bottom: var(--dhs-space-1); }
#order-standard_cart.dhs-of .dhs-co-hosting__features { font-size: 13px; line-height: 18px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-hosting__selected { display: flex; align-items: center; gap: 6px; margin-top: var(--dhs-space-2); font-size: 12px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .dhs-co-hosting__skip { display: inline-block; font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-700); text-decoration: none; }
#order-standard_cart.dhs-of .dhs-co-hosting__skip:hover { text-decoration: underline; }
@media (max-width: 991.98px) { #order-standard_cart.dhs-of .dhs-co-hosting__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { #order-standard_cart.dhs-of .dhs-co-hosting__grid { grid-template-columns: minmax(0, 1fr); } }

/* Transfer variant: radio-button comparison table (Figma "plan-grid-table-alt", 4201:18780) */
#order-standard_cart.dhs-of .dhs-co-hosting-table { width: 100%; border-collapse: collapse; }
#order-standard_cart.dhs-of .dhs-co-hosting-table th {
    text-align: left; font-size: 12px; font-weight: var(--dhs-font-weight-bold); text-transform: uppercase; letter-spacing: .04em;
    color: var(--dhs-color-ink-500); background: var(--dhs-color-surface-050); padding: var(--dhs-space-3) var(--dhs-space-4);
    border: 1px solid var(--dhs-color-line-100);
}
#order-standard_cart.dhs-of .dhs-co-hosting-table td { padding: var(--dhs-space-3) var(--dhs-space-4); border: 1px solid var(--dhs-color-line-100); font-size: 14px; color: var(--dhs-color-ink-700); vertical-align: middle; }
#order-standard_cart.dhs-of .dhs-co-hosting-table tr.is-selected td { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-500); }
#order-standard_cart.dhs-of .dhs-co-hosting-table .dhs-co-hosting-table__radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--dhs-color-line-300); display: inline-block; }
#order-standard_cart.dhs-of .dhs-co-hosting-table tr.is-selected .dhs-co-hosting-table__radio { border: 2px solid var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .dhs-co-hosting-table__name { font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }

/* ---- configuredomains.tpl domain row card (Cart Configure Page) ----------------------------- */
#order-standard_cart.dhs-of .dhs-co-domainrow { margin-bottom: var(--dhs-space-4); }
#order-standard_cart.dhs-of .dhs-co-domainrow__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--dhs-space-3); flex-wrap: wrap; margin-bottom: var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-domainrow__name { font-size: 20px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-domainrow__price { font-size: 16px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); text-align: right; }
#order-standard_cart.dhs-of .dhs-co-domainrow__price .dhs-muted { font-weight: var(--dhs-font-weight-normal); font-size: 13px; }
/* KD-79 / Figma 4077:2216: price stack's renewal line + the per-row period selector + the
   "Domain Registration (n)" subtotal row in the sidebar. */
#order-standard_cart.dhs-of .dhs-co-domainrow__price b { color: var(--dhs-color-brand-600); font-size: 18px; line-height: 28px; }
#order-standard_cart.dhs-of .dhs-co-domainrow__renew { display: block; font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-normal); color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-period { max-width: 160px; display: inline-block; }
#order-standard_cart.dhs-of .dhs-co-sumrow { border-top: 1px solid var(--dhs-color-line-100); padding-top: var(--dhs-space-3); margin-top: var(--dhs-space-2); }
#order-standard_cart.dhs-of .dhs-co-sumrow b { font-size: 16px; color: var(--dhs-color-brand-600); }

/* ---- Promo code box + trust badges row ----------------------------------------------------- */
#order-standard_cart.dhs-of .dhs-co-promo { display: flex; align-items: center; gap: var(--dhs-space-4); flex-wrap: wrap; }
#order-standard_cart.dhs-of .dhs-co-promo__label { flex: 1 1 220px; min-width: 0; }
#order-standard_cart.dhs-of .dhs-co-promo__label strong { display: block; font-size: 14px; color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-promo__label span { font-size: 12px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-promo form { display: flex; gap: var(--dhs-space-3); flex: 2 1 320px; }
#order-standard_cart.dhs-of .dhs-co-promo .form-group { flex: 1 1 auto; margin: 0; }
#order-standard_cart.dhs-of .dhs-co-trust { display: flex; align-items: center; gap: var(--dhs-space-6); flex-wrap: wrap; }
#order-standard_cart.dhs-of .dhs-co-trust__item { display: flex; align-items: center; gap: var(--dhs-space-2); font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-trust__item svg { width: 20px; height: 20px; color: var(--dhs-color-ink-900); flex: none; }
/* Support-availability reassurance line, right under the trust badges (viewcart.tpl/checkout.tpl). */
#order-standard_cart.dhs-of .dhs-co-trust__support { font-size: 13px; margin: var(--dhs-space-3) 0 0; }
#order-standard_cart.dhs-of .dhs-co-trust__support a { color: inherit; text-decoration: underline; }

/* ---- Order Summary sidebar (viewcart.tpl's #orderSummary, re-themed - real ids untouched) -- */
#order-standard_cart.dhs-of .secondary-cart-sidebar .order-summary,
#order-standard_cart.dhs-of .dhs-co-summary {
    background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6);
}
#order-standard_cart.dhs-of .order-summary h2,
#order-standard_cart.dhs-of .dhs-co-summary h2 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-4); }
#order-standard_cart.dhs-of .order-summary .subtotal,
#order-standard_cart.dhs-of .order-summary .bordered-totals > div { font-size: 14px; color: var(--dhs-color-ink-500); padding: var(--dhs-space-2) 0; }
#order-standard_cart.dhs-of .order-summary .subtotal span:last-child,
#order-standard_cart.dhs-of .order-summary .bordered-totals span:last-child { font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .order-summary .bordered-totals { border-top: 1px solid var(--dhs-color-line-100); margin-top: var(--dhs-space-2); padding-top: var(--dhs-space-2); }
#order-standard_cart.dhs-of .order-summary .total-due-today {
    display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--dhs-color-line-100);
    margin-top: var(--dhs-space-3); padding-top: var(--dhs-space-4);
}
#order-standard_cart.dhs-of .order-summary .total-due-today .amt { order: 2; font-size: 28px; line-height: 34px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .order-summary .total-due-today > span:last-child { order: 1; font-size: 16px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .order-summary .btn-checkout { width: 100%; background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); border-radius: var(--dhs-radius-lg); font-weight: var(--dhs-font-weight-semibold); margin-top: var(--dhs-space-4); }
#order-standard_cart.dhs-of .order-summary .btn-continue-shopping { display: block; text-align: center; color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-semibold); margin-top: var(--dhs-space-2); }

/* "What happens next?" tinted box (Details/Payment sidebar) */
#order-standard_cart.dhs-of .dhs-co-next {
    background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-500);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6);
}
#order-standard_cart.dhs-of .dhs-co-next h3 { margin: 0 0 var(--dhs-space-3); font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }
#order-standard_cart.dhs-of .dhs-co-next ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--dhs-space-2); }
#order-standard_cart.dhs-of .dhs-co-next li { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-900); padding-left: var(--dhs-space-5); position: relative; }
#order-standard_cart.dhs-of .dhs-co-next li::before { content: "\2713"; position: absolute; left: 0; color: var(--dhs-color-brand-700); font-weight: var(--dhs-font-weight-bold); }

/* ---- checkout.tpl: Details/Payment two-panel toggle (one real <form>, no navigation) ------- */
#order-standard_cart.dhs-of .dhs-co-panel[hidden] { display: none; }
#order-standard_cart.dhs-of .dhs-co-panel-nav { display: flex; justify-content: flex-end; margin-top: var(--dhs-space-2); }

/* Registrant / billing / domain-contact form sections - restyles WHMCS's native form-group rows
   without touching any input name/id. */
#order-standard_cart.dhs-of .dhs-co-form-card { display: flex; flex-direction: column; gap: var(--dhs-space-5); }
#order-standard_cart.dhs-of .dhs-co-form-card .header-lined { display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-3); border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
#order-standard_cart.dhs-of .dhs-co-form-card .header-lined h2 { font-size: 18px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
#order-standard_cart.dhs-of .dhs-co-form-card .form-group label { font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-form-card .form-control { border-radius: var(--dhs-radius-md); border-color: var(--dhs-color-line-300); height: 44px; }
#order-standard_cart.dhs-of .dhs-co-form-card textarea.form-control { height: auto; }
#order-standard_cart.dhs-of .dhs-co-subheading { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); border-top: 1px solid var(--dhs-color-line-100); padding-top: var(--dhs-space-5); margin: 0; }

/* Billing-same-as-registrant toggle + collapsed preview card */
#order-standard_cart.dhs-of .dhs-co-billing-toggle { display: flex; align-items: flex-start; gap: var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-billing-toggle strong { display: block; font-size: 14px; color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-billing-toggle span { font-size: 12px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-billing-preview {
    display: flex; align-items: center; justify-content: space-between; gap: var(--dhs-space-4);
    background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-5);
}
#order-standard_cart.dhs-of .dhs-co-billing-preview__icon { width: 24px; height: 24px; border-radius: 50%; background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); display: flex; align-items: center; justify-content: center; flex: none; }
#order-standard_cart.dhs-of .dhs-co-billing-preview strong { display: block; font-size: 14px; color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-billing-preview span { font-size: 13px; color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-billing-preview a { font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-700); }

/* ---- Payment method picker ------------------------------------------------------------------ */
/* The 2-col .dhs-co-pay-option card grid that lived here (with its minmax(200px) calibration
   note) was replaced 2026-08-16 by the design/payments single-column accordion — see
   99-checkout-payment.css (.dhs-payacc*). The old M-Pesa Ratiba informational note rule went with
   it (Ratiba is an opt-in checkbox inside the M-Pesa panel now). */

/* Real WHMCS CC fields (#creditCardInputFields) reusing .dhs-co-form-card typography, ids untouched */
#order-standard_cart.dhs-of #creditCardInputFields.dhs-co-form-card { margin-top: var(--dhs-space-5); }

/* ---- Terms & Agreements card ---------------------------------------------------------------- */
#order-standard_cart.dhs-of .dhs-co-terms { display: flex; flex-direction: column; gap: var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-terms h2 { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
#order-standard_cart.dhs-of .dhs-co-terms .checkbox { margin: 0; }
#order-standard_cart.dhs-of .dhs-co-terms label { font-size: 14px; color: var(--dhs-color-ink-900); font-weight: var(--dhs-font-weight-regular); }
#order-standard_cart.dhs-of .dhs-co-terms__note { font-size: 12px; color: var(--dhs-color-ink-500); margin: 0; }

/* ---- Submit CTA ------------------------------------------------------------------------------ */
#order-standard_cart.dhs-of #btnCompleteOrder { width: 100%; background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-4); font-size: 16px; font-weight: var(--dhs-font-weight-semibold); }

/* ---- complete.tpl confirmation ---------------------------------------------------------------- */
#order-standard_cart.dhs-of .dhs-co-complete { max-width: 680px; margin: 0 auto; text-align: center; padding: var(--dhs-space-12) 0; }
#order-standard_cart.dhs-of .dhs-co-complete__icon { width: 64px; height: 64px; border-radius: 50%; background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); display: flex; align-items: center; justify-content: center; margin: 0 auto var(--dhs-space-5); }
#order-standard_cart.dhs-of .dhs-co-complete__icon svg { width: 32px; height: 32px; }
#order-standard_cart.dhs-of .dhs-co-complete h1 { font-size: 30px; line-height: 38px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-complete__ordernum { display: inline-block; background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-lg); padding: var(--dhs-space-3) var(--dhs-space-6); font-size: 16px; margin: var(--dhs-space-4) 0; }
#order-standard_cart.dhs-of .dhs-co-complete__ordernum span { font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }

/* ---- complete.tpl order-type post-purchase content (KD-48, register/transfer branching) ------ */
#order-standard_cart.dhs-of .dhs-co-complete__info { text-align: left; margin: var(--dhs-space-6) 0; }
#order-standard_cart.dhs-of .dhs-co-complete__info h3 { margin: 0 0 var(--dhs-space-3); font-size: 16px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-complete__info-row { display: flex; justify-content: space-between; gap: var(--dhs-space-3); padding: var(--dhs-space-2) 0; border-top: 1px solid var(--dhs-color-line-100); font-size: 14px; }
#order-standard_cart.dhs-of .dhs-co-complete__info-row:first-of-type { border-top: 0; }
#order-standard_cart.dhs-of .dhs-co-complete__info-row span { color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-complete__renewal-note { font-size: 13px; margin: var(--dhs-space-3) 0 0; text-align: left; }
#order-standard_cart.dhs-of .dhs-co-complete__info-row strong { color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-complete__timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-complete__timeline li { position: relative; padding-left: var(--dhs-space-6); font-size: 14px; }
#order-standard_cart.dhs-of .dhs-co-complete__timeline li::before {
    content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%;
    border: 2px solid var(--dhs-color-line-300); background: var(--dhs-color-surface-white);
}
#order-standard_cart.dhs-of .dhs-co-complete__timeline li.is-done::before { border-color: var(--dhs-color-brand-600); background: var(--dhs-color-brand-600); }
#order-standard_cart.dhs-of .dhs-co-complete__timeline li strong { display: block; color: var(--dhs-color-ink-900); }
#order-standard_cart.dhs-of .dhs-co-complete__timeline li span { color: var(--dhs-color-ink-500); }
#order-standard_cart.dhs-of .dhs-co-complete__next { text-align: left; margin: var(--dhs-space-6) 0 0; }
#order-standard_cart.dhs-of .dhs-co-complete__next h3 { margin: 0 0 var(--dhs-space-3); font-size: 16px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); text-align: center; }
#order-standard_cart.dhs-of .dhs-co-complete__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--dhs-space-3); }
#order-standard_cart.dhs-of .dhs-co-complete__tile {
    display: block; padding: var(--dhs-space-4); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-lg);
    text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease;
}
#order-standard_cart.dhs-of .dhs-co-complete__tile:hover { border-color: var(--dhs-color-brand-500); box-shadow: var(--dhs-shadow-sm); }
#order-standard_cart.dhs-of .dhs-co-complete__tile i { color: var(--dhs-color-brand-700); font-size: 18px; margin-bottom: var(--dhs-space-2); display: block; }
#order-standard_cart.dhs-of .dhs-co-complete__tile strong { display: block; color: var(--dhs-color-ink-900); font-size: 14px; margin-bottom: var(--dhs-space-1); }
#order-standard_cart.dhs-of .dhs-co-complete__tile span { display: block; color: var(--dhs-color-ink-500); font-size: 13px; line-height: 18px; }
@media (max-width: 575.98px) { #order-standard_cart.dhs-of .dhs-co-complete__tiles { grid-template-columns: minmax(0, 1fr); } }

/* ============================================================================================
   INVOICE PAYMENT PANEL (dhs_mpesa_link() / dhs_bankcard_link() output rendered via
   {$paymentbutton} in viewinvoice.tpl). Their own PHP comments cite Figma component 1369:4285
   "M-pesa-STK-Push" as the design source and describe themselves as "visually restyled" -
   confirmed by grep that NO CSS for .dhs-of-pay/.dhs-mpesa-panel/.dhs-card-panel/
   .dhs-ratiba-upsell existed anywhere before this block, so that panel was rendering completely
   unstyled. Using current design tokens rather than 1369:4285's own stale hex/font values
   (Futura Lt BT, #00B202) - that component predates the Figma token pipeline
   Client_Area_Design_System.md §1 says supersedes old literal design values.
   ============================================================================================ */
.dhs-of-pay {
    background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-300);
    border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-6); max-width: 480px;
    display: flex; flex-direction: column; gap: var(--dhs-space-4);
}
.dhs-of-pay__head { display: flex; align-items: baseline; justify-content: space-between; padding-bottom: var(--dhs-space-3); border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-of-pay__label { font-size: 13px; color: var(--dhs-color-ink-500); }
.dhs-of-pay__amount { font-size: 22px; line-height: 28px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-700); }
.dhs-of-pay__fieldlabel { font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); margin-bottom: var(--dhs-space-1); display: block; }
.dhs-of-pay__input { width: 100%; height: 44px; border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); padding: 0 var(--dhs-space-4); font-size: 14px; color: var(--dhs-color-ink-900); box-sizing: border-box; }
.dhs-of-pay__input:focus { outline: none; border-color: var(--dhs-color-brand-500); box-shadow: var(--dhs-shadow-focus-ring); }
.dhs-of-pay__row2 { display: flex; gap: var(--dhs-space-3); }
.dhs-of-pay__row2 .dhs-of-pay__input { flex: 1 1 0; }
.dhs-of-pay__btn { width: 100%; }
.dhs-of-pay__status { min-height: 20px; font-size: 13px; color: var(--dhs-color-ink-700); margin: 0; }
/* Payment-state modifiers (D2 pattern-styling 2026-08-22 — the design drew no client-area
   payment-state frames, so the states get the token vocabulary: waiting = neutral + spinner,
   success = green, error = red, timeout = amber "taking longer than usual"). Every gateway
   _link() writes the same #...-status element, so this one classname contract covers all
   rails. The spinner is pure CSS and sits down under prefers-reduced-motion. */
.dhs-of-pay__status--waiting,
.dhs-of-pay__status--success,
.dhs-of-pay__status--error,
.dhs-of-pay__status--timeout {
    display: flex; align-items: flex-start; gap: 8px;
    border-radius: var(--dhs-radius-md); padding: 10px 12px; margin-top: 10px;
    font-weight: 600;
}
.dhs-of-pay__status--waiting { background: var(--dhs-color-surface-050); color: var(--dhs-color-ink-700); }
.dhs-of-pay__status--success { background: #ECFDF3; color: #067647; }
.dhs-of-pay__status--error   { background: #FEF3F2; color: #B42318; }
.dhs-of-pay__status--timeout { background: #FFFAEB; color: #B54708; }
.dhs-of-pay__status--waiting::before {
    content: ""; flex: none; width: 14px; height: 14px; margin-top: 2px;
    border: 2px solid var(--dhs-color-line-300); border-top-color: var(--dhs-color-brand-600);
    border-radius: 50%; animation: dhs-of-pay-spin .8s linear infinite;
}
@keyframes dhs-of-pay-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .dhs-of-pay__status--waiting::before { animation: none; border-top-color: var(--dhs-color-line-300); }
}
/* CyberSource card panel additions (dhs_cybersource_link()): the saved-card chooser the wallet
   renders above the hosted widget, and the widget container itself. The mock widget reuses the
   __input/__btn contract above; the real Unified Checkout library brings its own (iframe)
   internals, so the container styles only the frame, never the innards. */
.dhs-of-pay__wallet { display: flex; flex-direction: column; gap: var(--dhs-space-2); }
.dhs-of-pay__cardrow {
    display: flex; align-items: center; gap: var(--dhs-space-3); margin: 0;
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    padding: 10px 12px; font-size: 14px; color: var(--dhs-color-ink-900); cursor: pointer;
}
.dhs-of-pay__cardrow:has(input:checked) { border-color: var(--dhs-color-brand-500); box-shadow: var(--dhs-shadow-focus-ring); }
.dhs-of-pay__cardrow input { accent-color: var(--dhs-color-brand-600); }
.dhs-of-pay__cardexp { margin-left: auto; font-size: 12px; color: var(--dhs-color-ink-500); }
.dhs-of-pay__widget:empty { display: none; }
.dhs-of-pay__widget { display: flex; flex-direction: column; gap: var(--dhs-space-3); }
/* Unified Checkout hosts opt OUT of the :empty collapse: the real CyberSource client library
   mounts into a still-empty container and sizes its iframe from the container's computed box,
   so a display:none 0x0 host yields a silently blank card panel (the bundled mock never hit
   this — it fills innerHTML synchronously). Block flow: the widget owns its internal layout. */
.dhs-of-pay__widget--uc, .dhs-of-pay__widget--uc:empty { display: block; }
.dhs-of-pay__save { display: flex; align-items: center; gap: var(--dhs-space-2); font-size: 13px; color: var(--dhs-color-ink-700); margin: 0; cursor: pointer; }
.dhs-of-pay__save input { accent-color: var(--dhs-color-brand-600); }
/* Saved-card security code (Microform). The card networks forbid storing a CVN with a token, so
   it is re-asked at payment time; the field itself is CyberSource's own iframe, which sizes to
   this box — hence an explicit height rather than letting an empty container collapse (the same
   trap .dhs-of-pay__widget--uc documents above). Narrow by intent: 3–4 digits. */
.dhs-of-pay__cvn { display: flex; flex-direction: column; gap: var(--dhs-space-2); }
.dhs-of-pay__cvnlabel { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0; }
.dhs-of-pay__cvnhint { font-size: 12px; font-weight: var(--dhs-font-weight-regular); color: var(--dhs-color-ink-500); }
.dhs-of-pay__cvnfield {
    display: block; width: 100%; max-width: 140px; min-height: 44px;
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    padding: 0 12px; background: #fff;
}
.dhs-of-pay__cvnfield input {
    width: 100%; height: 42px; border: 0; outline: 0; background: transparent;
    font-size: 15px; letter-spacing: 2px; color: var(--dhs-color-ink-900);
}
/* Standalone Paybill gateway panel (dhs_mpesa_paybill_link(), 2026-08-16 split). Figma
   "Paybill-Form-Card" 4428:11596 (desktop) / 4428:11762 (mobile), token-mapped: 32px radius-16
   brand chip; read-only value boxes on surface-050/line-100; the Account Number box highlighted
   with a 2px brand border — it is the reconciliation key the customer must copy. Single-column
   inside .dhs-of-pay's flex gap, so nothing can overflow a 390px viewport.
   (.dhs-of-pay__paybill removed here — the STK panel's embedded block it styled moved into the
   standalone gateway; the class no longer renders anywhere.) */
.dhs-paybill-panel__head { display: flex; align-items: center; gap: var(--dhs-space-3); padding-bottom: var(--dhs-space-3); border-bottom: 1px solid var(--dhs-color-line-100); }
.dhs-paybill-panel__chip { width: 32px; height: 32px; border-radius: 16px; background: var(--dhs-color-brand-700); color: #fff; font-weight: var(--dhs-font-weight-bold); font-size: 16px; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.dhs-paybill-panel__title { font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-of-pay__intro { margin: 0; font-size: 13px; line-height: 20px; color: var(--dhs-color-ink-500); }
.dhs-of-pay__intro strong { color: var(--dhs-color-ink-900); }
.dhs-of-pay__kv { display: flex; flex-direction: column; gap: var(--dhs-space-1); }
.dhs-of-pay__kvlabel { font-size: 11px; line-height: 13px; font-weight: var(--dhs-font-weight-semibold); letter-spacing: .06em; text-transform: uppercase; color: var(--dhs-color-ink-500); }
.dhs-of-pay__kvvalue { min-height: 44px; display: flex; align-items: center; padding: 0 var(--dhs-space-4); border-radius: var(--dhs-radius-md); font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); box-sizing: border-box; }
.dhs-of-pay__kv--ro .dhs-of-pay__kvvalue { background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100); }
.dhs-of-pay__kv--hl .dhs-of-pay__kvvalue { background: var(--dhs-color-surface-white); border: 2px solid var(--dhs-color-brand-700); color: var(--dhs-color-brand-700); font-size: 16px; letter-spacing: .02em; }
.dhs-of-pay__foot { margin: 0; font-size: 12px; line-height: 18px; color: var(--dhs-color-ink-500); }

.dhs-ratiba-upsell { border-top: 1px solid var(--dhs-color-line-100); padding-top: var(--dhs-space-4); }
.dhs-ratiba-upsell__toggle { display: flex; align-items: flex-start; gap: var(--dhs-space-2); font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); cursor: pointer; }
.dhs-ratiba-upsell__review { margin-top: var(--dhs-space-3); background: var(--dhs-color-brand-050); border: 1px solid var(--dhs-color-brand-500); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-4); display: flex; flex-direction: column; gap: var(--dhs-space-2); }
.dhs-ratiba-upsell__line { margin: 0; font-size: 13px; color: var(--dhs-color-ink-700); }
.dhs-ratiba-upsell__consent { display: flex; align-items: flex-start; gap: var(--dhs-space-2); font-size: 13px; color: var(--dhs-color-ink-900); margin-top: var(--dhs-space-2); }
.dhs-ratiba-upsell__warning { font-size: 12px; color: var(--dhs-color-status-warning-deep); background: #fffaeb; border-radius: var(--dhs-radius-sm); padding: var(--dhs-space-2) var(--dhs-space-3); }
/* (A .domain-input-group .btn-block rule sat here — dead since the theme replaced btn-block with
   an inline width on those buttons; removed in the KD-78 dead-rule sweep.) */

/* UAT ME-06 — the empty-cart "Continue to Details" CTA looked and behaved fully enabled.
   viewcart.tpl:696 DOES add `disabled` when $cartitems == 0, so the intent was already right; the
   problem was that nothing anywhere implemented it. Three things stacked up:
     1. no rule for `.disabled` existed in this theme at all (grep of the served custom.css: 0 hits),
        so the button rendered at full opacity, indistinguishable from an enabled primary CTA;
     2. Bootstrap's own `a.btn.disabled { pointer-events: none }` never matched, because the class
        list is `dhs-btn dhs-btn-fill btn-checkout disabled` with no plain `.btn`;
     3. nothing binds #checkout / .btn-checkout in js/scripts.js or js/base.js, so no JS blocked it.
   On an <a>, `disabled` is a styling convention only — not a real attribute — so the click went
   through to cart.php?a=checkout&e=false, which 200s onto a form-less "Cart is Empty" page with no
   explanation. That is what read as "does nothing".
   Declared AFTER the :hover/:focus rule above so it wins on source order without needing
   !important. Matches both spellings: native WHMCS templates use the class, and viewcart.tpl now
   also emits aria-disabled for assistive tech.
   NOTE: pointer-events:none stops the MOUSE only — a focused link still fires on Enter. The
   keyboard half is handled by tabindex="-1" in the template; the two go together, don't split them.
   Scoped to #order-standard_cart.dhs-of, never a bare global `.disabled`: KD-67 is the standing
   lesson about unscoped utility classes leaking into this order form's vendor markup. */
#order-standard_cart.dhs-of .dhs-btn.disabled,
#order-standard_cart.dhs-of .dhs-btn[aria-disabled="true"],
#order-standard_cart.dhs-of .dhs-btn.disabled:hover,
#order-standard_cart.dhs-of .dhs-btn.disabled:focus,
#order-standard_cart.dhs-of .dhs-btn[aria-disabled="true"]:hover,
#order-standard_cart.dhs-of .dhs-btn[aria-disabled="true"]:focus {
    background: var(--dhs-color-line-300);
    border-color: var(--dhs-color-line-300);
    color: var(--dhs-color-ink-500);
    opacity: .65;
    cursor: not-allowed;
    pointer-events: none;
    box-shadow: none;
}

/* UAT BL-02 — the inline Details-step error. Native validation bubbles alone were why the gate
   could fire and still measure banners=0: they are transient, die on blur or any re-render, and are
   not reliably announced. This element is what makes the refusal persist and be readable.
   role="alert" is on the element itself (checkout.tpl), so it announces on appearance. */
#order-standard_cart.dhs-of .dhs-co-details-error {
    margin: 0 0 var(--dhs-space-3);
    padding: var(--dhs-space-3) var(--dhs-space-4);
    border-radius: var(--dhs-radius-md);
    background: #FDECEE;
    border: 1px solid var(--dhs-color-derived-danger);
    color: #8f2033;
    font-size: 13px;
}

/* ---- forwardpage.tpl (KD-82): pay-in-place after checkout ---------------------------------- *
 * Renders inside the client-area layout (NOT #order-standard_cart) when Auto Redirect on
 * Checkout is set to "gateway" — the page that used to yank customers to the invoice after 5s. */
.dhs-fwd { max-width: 560px; margin: var(--dhs-space-8) auto; }
.dhs-fwd__head { text-align: center; margin-bottom: var(--dhs-space-6); }
.dhs-fwd__head svg { width: 44px; height: 44px; color: var(--dhs-color-brand-600); margin-bottom: var(--dhs-space-3); }
.dhs-fwd__head h1 { font-family: var(--dhs-font-family-display); font-size: 26px; line-height: 34px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); margin: 0 0 var(--dhs-space-2); }
.dhs-fwd__head p { font-size: 14px; line-height: 20px; color: var(--dhs-color-ink-700); margin: 0; }
.dhs-fwd__panel { background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-5); box-shadow: var(--dhs-shadow-sm); }
.dhs-fwd__alt { text-align: center; font-size: 13px; line-height: 18px; color: var(--dhs-color-ink-500); margin: var(--dhs-space-4) 0 0; }
/* KD-105: the Domain Information card now also renders on forwardpage (the surface customers
   actually see under AutoRedirectoInvoice='gateway'). Same classes as complete.tpl's card, but
   that card's rules are scoped #order-standard_cart.dhs-of, which this page doesn't have —
   re-scope the needed subset under .dhs-fwd rather than widening the cart-wide selectors. */
.dhs-fwd .dhs-co-card { background: var(--dhs-color-surface-white); border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-xl); padding: var(--dhs-space-5); }
.dhs-fwd .dhs-co-complete__info { text-align: left; margin: var(--dhs-space-5) 0 0; }
.dhs-fwd .dhs-co-complete__info h3 { margin: 0 0 var(--dhs-space-3); font-size: 16px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-fwd .dhs-co-complete__info-row { display: flex; justify-content: space-between; gap: var(--dhs-space-3); padding: var(--dhs-space-2) 0; border-top: 1px solid var(--dhs-color-line-100); font-size: 14px; }
.dhs-fwd .dhs-co-complete__info-row:first-of-type { border-top: 0; }
.dhs-fwd .dhs-co-complete__info-row span { color: var(--dhs-color-ink-500); }
.dhs-fwd .dhs-co-complete__info-row strong { color: var(--dhs-color-ink-900); }
.dhs-fwd .dhs-co-complete__renewal-note { font-size: 13px; line-height: 18px; color: var(--dhs-color-ink-500); margin: var(--dhs-space-3) 0 0; text-align: left; }

/* ---- configureproduct sidebar: "Also in your cart" context (KD-83) ------------------------- */
#order-standard_cart.dhs-of .dhs-co-alsoin { border-top: 1px solid var(--dhs-color-line-100); margin-top: var(--dhs-space-4); padding-top: var(--dhs-space-4); }
#order-standard_cart.dhs-of .dhs-co-alsoin__title { font-size: 13px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-700); margin-bottom: var(--dhs-space-2); }

/* ==== 99-checkout-payment.css ============================================= */
/* ==============================================================================================
   PAYMENT ACCORDION + payment-step furniture — design/payments/ (CLAUDE-CODE-BRIEF.md + SPEC.md,
   2026-08-16). ONE component, two surfaces: the checkout Payment step (#order-standard_cart) and
   the client-area invoice payment section (viewinvoice.tpl, .dhs-invoice-payacc wrapper). All
   selectors carry the unique .dhs-payacc/.dhs-paynotes/.dhs-payagree prefixes, so nothing leaks;
   checkout-only overrides that must outrank the cart fork's all.min.css keep the
   #order-standard_cart.dhs-of scope per convention (KD-77).
   Colour rule (brief): #1E6020 == var(--dhs-color-brand-900) for text/icons on coloured surfaces
   and the primary button — #35A839 fails AA on white; #35A839/#EBF6EB stay decorative-fill-only.
   SPEC's neutrals (#F7FBF7 #E4E7E4 #F0F1F0 #C9CFC9 #F2F4F7) are literals by design.
   ============================================================================================== */

/* ---- Accordion card -------------------------------------------------------------------------- */
.dhs-payacc { border-radius: 14px; background: var(--dhs-color-surface-white); border: 1px solid #E9EAEB; overflow: hidden; }
.dhs-payacc__hd { padding: 20px 24px; border-bottom: 1px solid #F0F1F0; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.dhs-payacc__title { margin: 0; font-size: 16px; line-height: 24px; font-weight: var(--dhs-font-weight-bold); color: #181D27; }
.dhs-payacc__sub { font-size: 13px; line-height: 18px; color: #717680; }
.dhs-payacc__list { padding: 8px; display: flex; flex-direction: column; gap: 4px; }

/* ---- Rows ------------------------------------------------------------------------------------ */
.dhs-payacc__row { border-radius: 10px; border: 1.5px solid #E9EAEB; background: var(--dhs-color-surface-white); overflow: hidden; transition: border-color .15s ease, background-color .15s ease; }
.dhs-payacc__row:hover { border-color: #D5D7DA; background: #FAFAFA; }
.dhs-payacc__row.is-active { border-color: var(--dhs-color-brand-900); background: #F7FBF7; }
.dhs-payacc__row.is-active:hover { border-color: var(--dhs-color-brand-900); background: #F7FBF7; }
.dhs-payacc__head { margin: 0; padding: 16px; display: flex; align-items: center; gap: 14px; cursor: pointer; font-weight: inherit; }
/* The REAL radio: alive for iCheck + keyboard, invisible to the eye. Never display:none. */
.dhs-payacc__head input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.dhs-payacc__radio { width: 20px; height: 20px; flex: none; border-radius: 50%; border: 2px solid #D5D7DA; background: #fff; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.dhs-payacc__radio > span { width: 7px; height: 7px; border-radius: 50%; background: transparent; }
.dhs-payacc__row.is-active .dhs-payacc__radio { border-color: var(--dhs-color-brand-900); background: var(--dhs-color-brand-900); }
.dhs-payacc__row.is-active .dhs-payacc__radio > span { background: #fff; }
.dhs-payacc__head input[type="radio"]:focus-visible ~ .dhs-payacc__radio { outline: 2px solid var(--dhs-color-brand-900); outline-offset: 2px; }
/* KD-93: the cart's bundled js/scripts.js runs iCheck over input.payment-methods, and iCheck
   WRAPS the input in its own visible skinned proxy (div.iradio_square-blue + ins.iCheck-helper)
   — which rendered a SECOND radio beside the custom indicator on every row (seen live on the
   UAT checkout, 2026-08-17). Collapse the proxy to an invisible zero-footprint box. NOT
   display:none — the real input lives INSIDE the wrapper, and display:none would kill iCheck's
   event plumbing (HI-03, checkout.tpl) and keyboard focus, same reason as the raw-input rule
   above. Attribute-prefix selectors so every iCheck skin/name variant is covered. */
.dhs-payacc__head [class^="iradio_"],
.dhs-payacc__head [class*=" iradio_"],
.dhs-payacc__head [class^="icheckbox_"],
.dhs-payacc__head [class*=" icheckbox_"] {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: none !important;
    opacity: 0 !important;
    overflow: hidden !important;
}
/* Focus ring for the iCheck-wrapped DOM shape: once wrapped, the input is no longer
   .dhs-payacc__radio's sibling, so the :focus-visible ~ rule above cannot match. Kept as its
   own rule on purpose — a browser without :has() drops only this rule, nothing else. */
.dhs-payacc__head:has(input[type="radio"]:focus-visible) .dhs-payacc__radio { outline: 2px solid var(--dhs-color-brand-900); outline-offset: 2px; }
.dhs-payacc__tile { width: 36px; height: 36px; flex: none; border-radius: 9px; background: #EBF6EB; color: var(--dhs-color-brand-900); display: flex; align-items: center; justify-content: center; }
.dhs-payacc__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.dhs-payacc__name { font-size: 15px; line-height: 22px; font-weight: var(--dhs-font-weight-bold); color: #181D27; }
.dhs-payacc__desc { font-size: 13px; line-height: 18px; color: #717680; }
.dhs-payacc__pill { flex: none; padding: 3px 9px; border-radius: 999px; background: #EBF6EB; font-size: 11px; line-height: 16px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-900); letter-spacing: .3px; }
.dhs-payacc__chips { flex: none; display: flex; align-items: center; gap: 6px; }
.dhs-payacc__chips > span { padding: 3px 7px; border-radius: 4px; background: #F2F4F7; font-size: 10px; line-height: 14px; font-weight: var(--dhs-font-weight-bold); color: #535862; }

/* ---- Expanded panel (70px inset = 16 + 20 + 14 + 36 - 16, aligns with the row title) --------- */
.dhs-payacc__panel { display: none; padding: 4px 16px 18px 70px; flex-direction: column; gap: 14px; }
.dhs-payacc__panel.is-open { display: flex; }
.dhs-payacc__field { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.dhs-payacc__label { font-size: 13px; line-height: 18px; font-weight: var(--dhs-font-weight-semibold); color: #414651; }
.dhs-payacc__input { height: 44px; padding: 0 14px; box-sizing: border-box; border-radius: var(--dhs-radius-md); background: #fff; border: 1px solid #D5D7DA; outline: 0; font-size: 15px; line-height: 22px; color: #181D27; width: 100%; }
.dhs-payacc__input:focus { border-color: var(--dhs-color-brand-900); box-shadow: var(--dhs-shadow-focus-ring); }
.dhs-payacc__select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23414651' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.dhs-payacc__inset { padding: 14px 16px; border-radius: 10px; background: #fff; border: 1px solid #E4E7E4; }
.dhs-payacc__inset--icon { display: flex; gap: 12px; align-items: flex-start; }
.dhs-payacc__inseticon { flex: none; margin-top: 2px; color: var(--dhs-color-brand-900); }
.dhs-payacc__insettxt { display: flex; flex-direction: column; gap: 3px; }
.dhs-payacc__insethead { font-size: 14px; line-height: 21px; font-weight: var(--dhs-font-weight-semibold); color: #181D27; }
.dhs-payacc__insetmeta { font-size: 13px; line-height: 19px; color: #717680; }
.dhs-payacc__schemes { display: flex; flex-wrap: wrap; gap: 8px; }
.dhs-payacc__schemes > span { padding: 5px 10px; border-radius: 6px; background: #F2F4F7; font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-semibold); color: #414651; }

/* Custom-skinned checkboxes (Ratiba opt-in, save-card, terms). Real input stays live — and
   FOCUSABLE: it overlays the visual 20px box (never zero-size). A zero-area `required` control
   makes the browser refuse to submit with only a console "not focusable" error — the Complete
   Order CTA read as dead (found live 2026-08-16). The overlay gives native validation a real
   anchor, so the bubble points at the visible checkbox. */
.dhs-payacc__check { position: relative; display: flex; align-items: flex-start; gap: 12px; cursor: pointer; margin: 0; font-weight: inherit; }
.dhs-payacc__check input[type="checkbox"] { position: absolute; left: 0; top: 1px; width: 20px; height: 20px; margin: 0; opacity: 0; cursor: pointer; }
.dhs-payacc__checkbox { width: 20px; height: 20px; flex: none; margin-top: 1px; border-radius: 5px; background: #fff; border: 1.5px solid #D5D7DA; box-sizing: border-box; display: flex; align-items: center; justify-content: center; }
.dhs-payacc__checkbox svg { visibility: hidden; }
.dhs-payacc__check input[type="checkbox"]:checked ~ .dhs-payacc__checkbox { background: var(--dhs-color-brand-900); border-color: var(--dhs-color-brand-900); }
.dhs-payacc__check input[type="checkbox"]:checked ~ .dhs-payacc__checkbox svg { visibility: visible; }
.dhs-payacc__check input[type="checkbox"]:focus-visible ~ .dhs-payacc__checkbox { outline: 2px solid var(--dhs-color-brand-900); outline-offset: 2px; }
.dhs-payacc__checktxt { display: flex; flex-direction: column; gap: 3px; }
.dhs-payacc__checkhead { font-size: 14px; line-height: 21px; font-weight: var(--dhs-font-weight-semibold); color: #181D27; }
.dhs-payacc__checkmeta { font-size: 13px; line-height: 19px; color: #717680; }

/* Paybill value tiles + numbered steps */
.dhs-payacc__tiles { display: flex; gap: 10px; }
.dhs-payacc__valtile { flex: 1; padding: 12px 14px; border-radius: var(--dhs-radius-md); background: #fff; border: 1px solid #E4E7E4; display: flex; flex-direction: column; gap: 2px; }
.dhs-payacc__valtile--dashed { border: 1px dashed #C9CFC9; }
.dhs-payacc__valcap { font-size: 11px; line-height: 16px; font-weight: var(--dhs-font-weight-bold); color: #717680; letter-spacing: .4px; }
.dhs-payacc__valnum { font-size: 18px; line-height: 26px; font-weight: var(--dhs-font-weight-bold); color: #181D27; }
.dhs-payacc__valmuted { font-size: 14px; line-height: 26px; font-weight: var(--dhs-font-weight-semibold); color: #717680; }
.dhs-payacc__steps { display: flex; flex-direction: column; gap: 8px; }
.dhs-payacc__step { display: flex; gap: 10px; font-size: 13px; line-height: 19px; color: #535862; }
.dhs-payacc__stepno { width: 18px; height: 18px; flex: none; border-radius: 9px; background: #EBF6EB; color: var(--dhs-color-brand-900); font-size: 11px; line-height: 18px; font-weight: var(--dhs-font-weight-bold); text-align: center; }
.dhs-payacc__note { font-size: 13px; line-height: 19px; color: #717680; }

/* Gateway errors surface inside the accordion card (brief: inline, not a page banner) */
.dhs-payacc .gateway-errors { margin: 0 8px 8px; border-radius: var(--dhs-radius-md); text-align: left; }

/* ---- Order notes disclosure ------------------------------------------------------------------ */
.dhs-paynotes { border-radius: 14px; background: var(--dhs-color-surface-white); border: 1px solid #E9EAEB; }
.dhs-paynotes__head { padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; cursor: pointer; list-style: none; }
.dhs-paynotes__head::-webkit-details-marker { display: none; }
.dhs-paynotes__txt { display: flex; flex-direction: column; gap: 2px; }
.dhs-paynotes__title { font-size: 15px; line-height: 22px; font-weight: var(--dhs-font-weight-bold); color: #181D27; }
.dhs-paynotes__meta { font-size: 13px; line-height: 18px; color: #717680; }
.dhs-paynotes__toggle { font-size: 13px; line-height: 18px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-900); white-space: nowrap; }
.dhs-paynotes__hide { display: none; }
.dhs-paynotes[open] .dhs-paynotes__add { display: none; }
.dhs-paynotes[open] .dhs-paynotes__hide { display: inline; }
.dhs-paynotes__body { padding: 0 24px 20px; }
.dhs-paynotes__area { width: 100%; height: 96px; padding: 12px 14px; box-sizing: border-box; border-radius: var(--dhs-radius-md); background: #fff; border: 1px solid #D5D7DA; outline: 0; resize: vertical; font-size: 14px; line-height: 21px; color: #181D27; }
.dhs-paynotes__area:focus { border-color: var(--dhs-color-brand-900); box-shadow: var(--dhs-shadow-focus-ring); }

/* ---- Agreements card (terms + mailing switch) ------------------------------------------------ */
.dhs-payagree { padding: 20px 24px; border-radius: 14px; border: 1px solid #E9EAEB; gap: 18px; }
.dhs-payagree__tostxt { font-size: 14px; line-height: 21px; color: #414651; }
.dhs-payagree__tostxt a { font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-brand-900); text-decoration: none; }
.dhs-payagree__rule { height: 1px; background: #F0F1F0; display: block; }
.dhs-payagree__mail { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.dhs-payagree__mailtxt { display: flex; flex-direction: column; gap: 2px; }
.dhs-payagree__mailhead { font-size: 14px; line-height: 21px; font-weight: var(--dhs-font-weight-semibold); color: #181D27; }
.dhs-payagree__mailmeta { font-size: 13px; line-height: 18px; color: #717680; }
.dhs-payagree__switch { position: relative; flex: none; margin: 0; cursor: pointer; display: inline-flex; }
/* Same focusable-overlay rule as .dhs-payacc__check — sized to the 44x26 track. */
.dhs-payagree__switch input[type="checkbox"] { position: absolute; left: 0; top: 0; width: 44px; height: 26px; margin: 0; opacity: 0; cursor: pointer; }
/* Inline validation message for the Agreements card (native bubbles die on blur; BL-02 pattern) */
.dhs-payagree__error { margin: 0; font-size: 13px; line-height: 18px; color: var(--dhs-color-status-danger, #b42318); }
.dhs-payagree__track { width: 44px; height: 26px; padding: 3px; border-radius: 13px; background: #D5D7DA; box-sizing: border-box; display: flex; justify-content: flex-start; transition: background-color .15s ease; }
.dhs-payagree__knob { width: 20px; height: 20px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s ease; }
.dhs-payagree__switch input[type="checkbox"]:checked ~ .dhs-payagree__track { background: var(--dhs-color-brand-900); }
.dhs-payagree__switch input[type="checkbox"]:checked ~ .dhs-payagree__track .dhs-payagree__knob { transform: translateX(18px); }
.dhs-payagree__switch input[type="checkbox"]:focus-visible ~ .dhs-payagree__track { outline: 2px solid var(--dhs-color-brand-900); outline-offset: 2px; }

/* ---- Sidebar: CTA + SSL line + collapsed trust row ------------------------------------------- */
#order-standard_cart.dhs-of .dhs-payacc__cta { height: 50px; border-radius: 10px; font-size: 15px; line-height: 22px; font-weight: var(--dhs-font-weight-bold); background: var(--dhs-color-brand-900); }
#order-standard_cart.dhs-of .dhs-payacc__ssl { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: var(--dhs-space-3); font-size: 12px; line-height: 18px; color: #717680; }
#order-standard_cart.dhs-of .dhs-co-trust--row { flex-direction: row; flex-wrap: wrap; gap: 10px 16px; padding: 18px 24px; }
#order-standard_cart.dhs-of .dhs-co-trust--row .dhs-co-trust__mark { display: flex; align-items: center; gap: 7px; font-size: 12px; line-height: 18px; font-weight: var(--dhs-font-weight-semibold); color: #414651; }
#order-standard_cart.dhs-of .dhs-co-trust--row .dhs-co-trust__mark svg { width: 14px; height: 14px; color: var(--dhs-color-brand-900); }
/* The in-form native submit is visually hidden (the sidebar CTA is the visible affordance) but
   stays live for Enter-to-submit, the KD-80 flag, and invisible reCAPTCHA's button binding. */
#order-standard_cart.dhs-of .dhs-payacc__submitwrap { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Sidebar total per SPEC: label left, 26px brand figure right */
#order-standard_cart.dhs-of .order-summary .total-due-today { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
#order-standard_cart.dhs-of .order-summary .total-due-today .amt { order: 2; font-size: 26px; line-height: 32px; letter-spacing: -.3px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-brand-900); white-space: nowrap; }

/* ---- Invoice surface (viewinvoice.tpl) ------------------------------------------------------- */
/* On the invoice the row head is a <button> driving the tokenized gateway-switch POST (no client
   radio — the server owns the selected gateway). Reset the button chrome to match the label rows. */
.dhs-payacc__headbtn { width: 100%; text-align: left; background: none; border: 0; font-family: inherit; }
.dhs-payacc__headbtn:disabled { cursor: default; }
.dhs-payacc__headbtn:focus-visible { outline: 2px solid var(--dhs-color-brand-900); outline-offset: -2px; border-radius: 10px; }
/* Same component; the expanded panel hosts the selected gateway module's own _link() output —
   styled by DESCENDANT selectors only (brief: never edit modules for styling). The dhs-of-pay
   panel sheds its own card chrome inside the accordion so it reads as the row's inset body. */
.dhs-invoice-payacc .dhs-payacc__panel .dhs-of-pay { border: 0; border-radius: 0; padding: 0; max-width: 560px; background: transparent; }
.dhs-invoice-payacc .dhs-payacc__panel .dhs-of-pay__head { border-bottom: 1px solid #F0F1F0; }

/* ---- Mobile ---------------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
    .dhs-payacc__hd { flex-direction: column; gap: 2px; }
    .dhs-payacc__panel { padding-left: 16px; }   /* 70px inset would starve a 375px viewport */
    .dhs-payacc__tiles { flex-direction: column; }
    .dhs-payacc__pill, .dhs-payacc__chips { display: none; }  /* keep rows one-line on phones */
}

/* ==== 99-onboarding.css =================================================== */
/* ============================================================================================
   99-onboarding.css — modules/addons/dhs_portal/templates/onboarding.tpl

   Built to Figma "welcome-onboarding" 4150:5117. A persistent checklist hub, not a wizard —
   see OnboardingController.php's header comment. Namespace `dhs-onb-*` is grep-confirmed unused
   elsewhere in the repo (checked against 90-legacy through 98-cart before creating this file).
   ============================================================================================ */

.dhs-onb-hero {
    background: linear-gradient(135deg, #0B3E1C, #06220E);
    color: #fff;
    border-radius: var(--dhs-radius-2xl);
    padding: var(--dhs-space-10);
    margin-bottom: var(--dhs-space-8);
}
.dhs-onb-hero__title {
    margin: 0 0 var(--dhs-space-2);
    font-family: var(--dhs-font-family-display);
    font-size: 32px;
    line-height: 40px;
    font-weight: var(--dhs-font-weight-bold);
    /* Explicit, not inherited: a global heading color rule targets the h1 directly and beats
       the hero's inherited #fff — the title rendered dark-on-dark (caught on the M4.1 390
       capture, 2026-09-03). */
    color: #fff;
}
.dhs-onb-hero__sub { margin: 0 0 var(--dhs-space-6); color: var(--dhs-color-brand-300); max-width: 640px; }
.dhs-onb-statgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--dhs-space-4); }
.dhs-onb-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-4);
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dhs-onb-stat__label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--dhs-color-brand-300); }
.dhs-onb-stat__name { font-size: 16px; font-weight: var(--dhs-font-weight-bold); }
.dhs-onb-stat__desc { font-size: 13px; color: #D7DEDA; margin-bottom: var(--dhs-space-2); }

.dhs-onb-section__title { margin: 0 0 var(--dhs-space-1); font-size: 22px; font-weight: var(--dhs-font-weight-bold); color: var(--dhs-color-ink-900); }
.dhs-onb-section__sub { margin: 0; font-size: 14px; color: var(--dhs-color-ink-500); }

.dhs-onb-quicklinks { margin-bottom: var(--dhs-space-8); }
.dhs-onb-quicklinks__row { display: flex; flex-wrap: wrap; gap: var(--dhs-space-3); margin-top: var(--dhs-space-4); }
.dhs-onb-quicklinks__row a {
    padding: var(--dhs-space-3) var(--dhs-space-4);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-md);
    font-size: 14px;
    font-weight: var(--dhs-font-weight-semibold);
    color: var(--dhs-color-ink-700);
    text-decoration: none;
}
.dhs-onb-quicklinks__row a:hover { border-color: var(--dhs-color-brand-500); color: var(--dhs-color-brand-900); text-decoration: none; }

.dhs-onb-checklist {
    background: var(--dhs-color-surface-white);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
    padding: var(--dhs-space-6);
}

.dhs-onb-checklist__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--dhs-space-6); flex-wrap: wrap; margin-bottom: var(--dhs-space-6); }
.dhs-onb-progress { min-width: 240px; }
.dhs-onb-progress__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--dhs-color-ink-400); }
.dhs-onb-progress__count { display: block; font-size: 14px; font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-900); margin: 2px 0 var(--dhs-space-2); }
.dhs-onb-progress__track { height: 8px; border-radius: var(--dhs-radius-pill); background: var(--dhs-color-line-100); overflow: hidden; }
.dhs-onb-progress__fill { height: 100%; background: var(--dhs-color-brand-700); border-radius: var(--dhs-radius-pill); }
.dhs-onb-progress__pct { display: block; margin-top: var(--dhs-space-1); font-size: 12px; color: var(--dhs-color-ink-500); }

.dhs-onb-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--dhs-space-3); }
.dhs-onb-step {
    display: flex;
    align-items: center;
    gap: var(--dhs-space-4);
    padding: var(--dhs-space-4);
    border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
}
.dhs-onb-step.is-done { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-300); }
.dhs-onb-step__num {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--dhs-color-surface-050);
    color: var(--dhs-color-ink-500);
    font-weight: var(--dhs-font-weight-bold);
}
.dhs-onb-step.is-done .dhs-onb-step__num { background: var(--dhs-color-brand-900); color: #fff; }
.dhs-onb-step.is-done .dhs-onb-step__num svg { width: 18px; height: 18px; }
.dhs-onb-step__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dhs-onb-step__body b { font-size: 15px; color: var(--dhs-color-ink-900); }
.dhs-onb-step__body span:last-child { font-size: 13px; color: var(--dhs-color-ink-500); }
.dhs-onb-step__cta { flex: none; }

@media (max-width: 767.98px) {
    .dhs-onb-hero { padding: var(--dhs-space-6); }
    .dhs-onb-hero__title { font-size: 24px; line-height: 32px; }
    .dhs-onb-checklist__head { flex-direction: column; }
    .dhs-onb-step { flex-wrap: wrap; }
    .dhs-onb-step__cta { width: 100%; text-align: center; }
}

/* ==== 99-portal-legacy.css ================================================ */
/* Stage 9: markup migration for the six dhs_portal pages that have no Figma frame anywhere in the
   design file (confirmed by an exhaustive search across all 17 Figma pages) — alerts, sitebuilder,
   cancel, cpanel, emailquick, jnps. They move off the ad-hoc 90-legacy.css classes + Bootstrap
   utility classes onto the 20-components.css vocabulary (.dhs-panel/.dhs-table/.dhs-chip/.dhs-btn/
   .dhs-empty/.dhs-svc-*) for visual consistency with the rest of the portal. There is no design
   frame to match here — the target is the sibling pages already on this system (ar_aging.tpl,
   portal_dashboard.tpl), not a Figma node.

   Everything below fills a gap 20-components.css doesn't cover. Icon sizing stays scoped to a
   class this file owns (never a bare `.dhs-btn svg` / `.dhs-tile svg`) — see 98-content.css's own
   note on why a generic descendant selector silently wins fights it has no business being in. */

/* ---------- Icon-tile grid: cPanel's 8 SSO shortcuts, Email Quick's 3, sitebuilder's gallery --- */
.dhs-tilegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: var(--dhs-space-4); }
.dhs-tilegrid--wide { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dhs-tile {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--dhs-space-2); padding: var(--dhs-space-5) var(--dhs-space-3); text-align: center;
    text-decoration: none; background: #fff; border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-xl); box-shadow: var(--dhs-shadow-xs);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.dhs-tile:hover { border-color: var(--dhs-color-brand-900); box-shadow: var(--dhs-shadow-md); transform: translateY(-2px); text-decoration: none; }
/* Reuses .dhs-svc-ico/.dhs-svc-name (20-components.css) — the same icon+label pairing already
   used inline in the dashboard's service table — then enlarges them for a standalone tile. Same
   specificity as the base rule, later source order: this wins (mirrors 95-legacy-bridge.css's own
   "loaded after so it wins the cascade" approach). */
.dhs-tile__ico { width: 44px; height: 44px; margin-right: 0; }
.dhs-tile__ico svg { width: 22px; height: 22px; }
.dhs-tile__label { font-size: var(--dhs-type-body-sm-size); }
.dhs-tile__thumb {
    display: flex; align-items: center; justify-content: center; width: 100%; height: 64px;
    border-radius: var(--dhs-radius-md); background: var(--dhs-color-brand-050);
    color: var(--dhs-color-derived-brand-action-hover); font-weight: var(--dhs-font-weight-semibold);
    font-size: var(--dhs-type-body-sm-size);
}
@media (max-width: 575.98px) { .dhs-tilegrid, .dhs-tilegrid--wide { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Icon inside a filled hero CTA (Open cPanel / Open Webmail) ------------------------- */
.dhs-portal-icon-20 { display: inline-flex; flex: none; }
.dhs-portal-icon-20 svg { width: 20px; height: 20px; }

/* ---------- Outline-danger button: de-emphasised but still a destructive action. cancel.tpl's
   "No thanks, cancel my service" was Bootstrap btn-outline-danger; 20-components.css only ships
   .dhs-btn-danger (solid fill) and .dhs-btn-outline (brand green) — nothing in between. --------- */
.dhs-btn-outline-danger { background: #fff; color: var(--dhs-color-derived-danger); border-color: var(--dhs-color-derived-danger); }
.dhs-btn-outline-danger:hover { background: #FDECEE; }

/* ---------- Retention-offer callout (cancel.tpl) — a genuine promo moment (CVM discount before a
   cancellation), so it earns the scarce brand-accent badge (.dhs-badge--offer) that other panels
   deliberately don't get. --------------------------------------------------------------------- */
.dhs-cancel-offer { border-color: var(--dhs-color-brand-900); margin-bottom: var(--dhs-space-4); }
.dhs-cancel-offer .dhs-badge--offer { margin-bottom: var(--dhs-space-3); }

/* ---------- Tinted notice panel (cancel.tpl outcome message; generic for any panel that carries
   a one-line status). Info tint by default, --ok for the success/positive branch. ------------- */
.dhs-notice { background: var(--dhs-color-status-info-tint); border-color: #B2DDFF; }
.dhs-notice--ok { background: var(--dhs-color-brand-050); border-color: var(--dhs-color-brand-300); }

/* ---------- Proactive alerts: each finding is its own row-card (was a standalone Bootstrap
   .alert per finding — kept that "independent box per finding" shape, just modernised it, rather
   than merging N findings into one table). -------------------------------------------------------*/
.dhs-alertlist { display: flex; flex-direction: column; gap: var(--dhs-space-3); }
.dhs-alertlist__row {
    display: flex; align-items: center; gap: var(--dhs-space-3); flex-wrap: wrap;
    padding: var(--dhs-space-4); background: #fff; border: 1px solid var(--dhs-color-line-100);
    border-radius: var(--dhs-radius-lg);
}
.dhs-alertlist__msg { flex: 1 1 260px; color: var(--dhs-color-ink-800); }

/* ---------- jNPS 0-10 score picker — the least-styled page in the addon pre-migration. The row
   of 11 number buttons IS the submit control: each one posts `score` on click, there is no
   separate submit button (JnpsController::handle() gates on isset($_POST['score'])) — do not add
   one. --------------------------------------------------------------------------------------- */
.dhs-nps-scale { display: flex; gap: var(--dhs-space-2); flex-wrap: wrap; max-width: 420px; margin-bottom: var(--dhs-space-2); }
.dhs-nps-scale__btn {
    min-width: 42px; min-height: 44px; padding: 0 var(--dhs-space-2);
    border-radius: var(--dhs-radius-md); border: 1px solid var(--dhs-color-line-300);
    background: #fff; color: var(--dhs-color-ink-700); font-family: var(--dhs-font-family-ui);
    font-size: var(--dhs-type-body-size); font-weight: var(--dhs-font-weight-semibold); cursor: pointer;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.dhs-nps-scale__btn:hover, .dhs-nps-scale__btn:focus { border-color: var(--dhs-color-brand-900); color: var(--dhs-color-brand-900); background: var(--dhs-color-brand-050); }
.dhs-nps-scale__labels { display: flex; justify-content: space-between; max-width: 420px; margin-bottom: var(--dhs-space-5); font-size: var(--dhs-type-caption-size); color: var(--dhs-color-ink-500); }
.dhs-nps-comment__label { display: block; margin-bottom: var(--dhs-space-2); font-weight: var(--dhs-font-weight-semibold); color: var(--dhs-color-ink-800); }
.dhs-nps-comment {
    display: block; width: 100%; max-width: 420px; min-height: 90px; padding: var(--dhs-space-3);
    border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md);
    font-family: var(--dhs-font-family-ui); font-size: var(--dhs-type-body-size);
    color: var(--dhs-color-ink-800); resize: vertical;
}
.dhs-nps-comment:focus { outline: none; border-color: var(--dhs-color-brand-900); box-shadow: var(--dhs-shadow-focus-ring); }

/* ---- Report a Dispute (dispute.tpl / DisputeController.php) — Figma 1369:4601/4627/1528:16141 */
/* Full-width card with the 2-col field grid (29AUG frame 4881:22833, audit A37 — the old
   560px clamp squeezed the frame's side-by-side Select Invoice / Category row into one
   narrow column). The field grid itself is in dispute.tpl. */
.dhs-dispute-form { max-width: none; }
.dhs-dispute-context { margin-bottom: var(--dhs-space-5); padding: var(--dhs-space-3) var(--dhs-space-4); background: var(--dhs-color-surface-050); border: 1px solid var(--dhs-color-line-100); border-radius: var(--dhs-radius-md); font-size: 14px; color: var(--dhs-color-ink-700); }
.dhs-dispute-form__actions { display: flex; gap: var(--dhs-space-3); margin-top: var(--dhs-space-6); justify-content: flex-end; }
.dhs-dispute-success { max-width: 480px; text-align: center; padding: var(--dhs-space-8); }
.dhs-dispute-success h2 { margin: 0 0 var(--dhs-space-2); font-size: 22px; }
.dhs-dispute-success__actions { display: flex; gap: var(--dhs-space-3); justify-content: center; margin-top: var(--dhs-space-6); }

/* ---- Open a New Ticket — step 1 department picker (supportticketsubmit-stepone.tpl) ---- */
.dhs-dept-row { display: flex; align-items: center; gap: var(--dhs-space-4); padding: var(--dhs-space-4); border-radius: var(--dhs-radius-md); text-decoration: none; color: inherit; border-bottom: 1px solid var(--dhs-color-line-100); transition: background .12s ease; }
.dhs-dept-row:last-child { border-bottom: 0; }
.dhs-dept-row:hover { background: var(--dhs-color-surface-050); text-decoration: none; }
.dhs-dept-row__ico { flex: 0 0 40px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--dhs-color-brand-050); color: var(--dhs-color-brand-700); }
.dhs-dept-row__ico svg { width: 20px; height: 20px; }
.dhs-dept-row__body { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.dhs-dept-row__body strong { font-size: 16px; color: var(--dhs-color-ink-900); }
.dhs-dept-row__body span { font-size: 13.5px; color: var(--dhs-color-ink-500); }
.dhs-dept-row__chev { flex: 0 0 20px; width: 20px; height: 20px; color: var(--dhs-color-ink-300, var(--dhs-color-ink-500)); }
.dhs-dept-row.is-disabled { opacity: .55; cursor: not-allowed; }
button.dhs-dept-row { background: none; border: 0; border-bottom: 1px solid var(--dhs-color-line-100); width: 100%; text-align: left; cursor: pointer; font: inherit; }
.dhs-dept-row.is-active { background: var(--dhs-color-brand-050); border-left: 3px solid var(--dhs-color-brand-600); padding-left: calc(var(--dhs-space-4) - 3px); }
.dhs-dept-row[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
.dhs-contact-list { margin: 0 calc(-1 * var(--dhs-space-4)); }

/* ---- Open a New Ticket — step 2 form (supportticketsubmit-steptwo.tpl): the real WHMCS wizard
   keeps its native `form-control`/`custom-file-input` classes for JS compatibility (see that
   file's header comment) — themed here rather than swapped out for .dhs-input. ---- */
.dhs-panel .form-control { border: 1px solid var(--dhs-color-line-300); border-radius: var(--dhs-radius-md); padding: var(--dhs-space-2-5) var(--dhs-space-3-5, 14px); font-size: 15px; box-shadow: var(--dhs-shadow-xs); }
.dhs-panel .form-control:focus { outline: 0; border-color: var(--dhs-color-brand-600); box-shadow: var(--dhs-shadow-focus-ring); }
.dhs-panel textarea.form-control { min-height: 160px; }

/* ---- User Management (account-user-management.tpl / account-user-permissions.tpl) — the
   permission-checkbox list shown on both the invite form and the per-user permissions editor. ---- */
.dhs-permissions-well { border: 1px solid var(--dhs-color-line-200); border-radius: var(--dhs-radius-md); padding: 0 var(--dhs-space-4); background: var(--dhs-color-surface-050); margin-bottom: var(--dhs-space-4); }
.dhs-permission-row { display: flex; align-items: flex-start; gap: var(--dhs-space-3); padding: var(--dhs-space-3) 0; border-bottom: 1px solid var(--dhs-color-line-100); cursor: pointer; }
.dhs-permission-row:last-child { border-bottom: 0; }
.dhs-permission-row input[type=checkbox] { margin-top: 4px; flex: 0 0 auto; }
.dhs-permission-row strong { display: block; font-size: 14.5px; color: var(--dhs-color-ink-900); }
.dhs-permission-row .dhs-muted { font-size: 13px; }

/* ---- Native Bootstrap modals (account-contacts-manage.tpl's #modalDeleteContact,
   account-user-management.tpl's #modalRemoveUser/#modalCancelInvite) — CSS-only re-theme, every
   data-toggle="modal"/data-dismiss="modal" JS hook and the .modal.fade show/hide behaviour stays
   Bootstrap's own, untouched. Scoped to the generic Bootstrap classes so it applies to any native
   modal across the client area, not just these three. ---- */
.modal-content { border-radius: var(--dhs-radius-lg); border: 1px solid var(--dhs-color-line-100); overflow: hidden; box-shadow: 0 12px 32px rgba(16, 24, 32, .16); }
.modal-header { background: #fff; border-bottom: 1px solid var(--dhs-color-line-100); padding: var(--dhs-space-4) var(--dhs-space-5); align-items: center; }
.modal-header .modal-title { font: 700 17px var(--dhs-font-family-ui); color: var(--dhs-color-ink-900); margin: 0; }
.modal-body { padding: var(--dhs-space-5); color: var(--dhs-color-ink-700); }
.modal-footer { border-top: 1px solid var(--dhs-color-line-100); padding: var(--dhs-space-4) var(--dhs-space-5); }

