/* =========================================================================
   exui.css — eXact Digital client area · design-system foundation
   "exact.gg, continued": the brand site's header, Satoshi + JetBrains Mono,
   hairlines and red punctuation. Source of truth: design/final/DESIGN.md.
   Seeded from proto/styles.css §00-12 and §14-16; §17 bridges Bootstrap 4.6
   and Blesta markup we cannot change (core partials, plugins, modules).

   Load order (both shells): application.min.css → (rtl.css) → font-awesome
   + shims → exui.css → pages/{dashboard,services,billing,account,auth,
   plugins,system}.css → exui-order.css → $custom_css. Plugin and module CSS
   is injected later still, so bridge selectors carry the body.exui prefix.

   Contents
     00 Fonts ............ metric-matched fallback faces (webfonts load in <head>)
     01 Tokens ........... --ex-* (palette, alpha tiers, light, motion, type, shape, layout, z)
     02 Aliases .......... legacy names read by exui-order.css, plugin + module
                           CSS (DESIGN §2.3); never remove one blindly
     03 Base ............. document, scoped ex-* reset, links, focus, icons, utilities
     04 Layout ........... wrap, page, main, layout grids, sticky aside
     05 Shell ............ atmosphere, staff strip, header, nav, popover, account pill,
                           menu button, sheet, dock, footer
     06 Page head ........ kicker, title, lede, meta, ident, page tabs, stepper
     07 Buttons + links .. .ex-btn (primary/secondary/ghost/danger, sizes), icon
                           buttons, .ex-go, .ex-link
     08 Surfaces ......... card, label, count, open section, window + blade, pane
     09 Data ............. money, ids, dates, pills, dots, strip, ticker, k/v, facts,
                           table, identity, meters, rails, timeline, terminal, prose
     10 Forms ............ fields, inputs, input group, search, checks, choices,
                           switch, settings row, dropzone, form bar
     11 Feedback ......... alerts, empty state, skeletons, modal parts, toast,
                           tooltip, loading veil, card glow, spinner
     12 Navigation bits .. pagination, segmented, list toolbar, filters, action
                           list, sub-nav
     14 Motion ........... keyframes, page-load rise, view transitions, reduced motion
     15 Responsive ....... ≤1179 · ≤1023 (sheet) · ≤767 (phone) · ≤479
     16 Forced colours, print
     17 Bootstrap 4.6 / Blesta bridge (DESIGN §12)
        17.0 co-class guards (.btn.ex-btn, .alert.ex-alert, .table.ex-table …)
        17.1 typography + content links   17.10 dropdowns
        17.2 grid + containers            17.11 modals (#global_modal clones)
        17.3 cards, WidgetClient chrome   17.12 pagination, breadcrumb, progress
        17.4 tables                       17.13 tooltip, popover
        17.5 buttons                      17.14 colour utilities
        17.6 badges                       17.15 Blesta loading, nprogress, icons
        17.7 alerts                       17.16 datepicker, dropzone, Toast UI, slider
        17.8 forms                        17.16b prose in plugin markup (tickets, KB)
        17.9 nav tabs/pills, list groups  17.17 Bootstrap 5 / Bootstrap 3 leftovers
                                          17.18 responsive bridge
        17.99 !important answers to application.min.css (marked block)
   Section 13 (page compositions) lives in css/pages/*.css.

   Specificity contract
     · ex-* component rules are single-class (0,1,0) like the prototype.
     · The scoped reset (03) is (0,0,2): it beats Bootstrap element rules and
       loses to every ex-* class rule.
     · Bridge rules are "body.exui .bootstrap-class" (0,1,1)+ and skip elements
       that also carry the matching ex-* class (:where(:not(.ex-btn)) etc.), so
       <span class="badge ex-pill ex-pill--act"> or <div class="card ex-card">
       get the ex-* recipe untouched.
   ========================================================================= */

/* ---------- 00 Fonts ----------------------------------------------------
   Satoshi (variable 300-900, family "Satoshi") comes from
   api.fontshare.com/v2/css?f[]=satoshi@1 and JetBrains Mono 400-700 from
   Google Fonts; both are linked by structure.pdt / guest.pdt. These faces
   keep layout steady while they load (exact.gg's own fallbacks, BR §3.1). */
@font-face {
  font-family: "Satoshi Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 92.36%; descent-override: 21.95%; line-gap-override: 9.14%; size-adjust: 109.35%;
}
@font-face {
  font-family: "JetBrains Mono Fallback";
  src: local("Arial"), local("ArialMT");
  ascent-override: 75.79%; descent-override: 22.29%; line-gap-override: 0%; size-adjust: 134.59%;
}

/* ---------- 01 Tokens -------------------------------------------------- */
:root {
  /* palette — exact.gg literals, nothing else */
  --ex-bg: #0d0f12;
  --ex-fg: #ffffff;
  --ex-surface: #17191c;
  --ex-raised: #232426;
  --ex-accent: #ed1c24;          /* OPEN DECISION D1: #e81b23 passes AA for white 14px labels */
  --ex-accent-strong: #c40d14;
  --ex-muted: #898a8c;
  --ex-line: rgba(255,255,255,.078);
  --ex-line-strong: #37393c;

  /* white alpha tiers (text + fills) */
  --ex-fg-90: rgba(255,255,255,.90);  --ex-fg-88: rgba(255,255,255,.88);
  --ex-fg-82: rgba(255,255,255,.82);  --ex-fg-78: rgba(255,255,255,.78);
  --ex-fg-72: rgba(255,255,255,.72);  --ex-fg-70: rgba(255,255,255,.70);
  --ex-fg-62: rgba(255,255,255,.62);  --ex-fg-58: rgba(255,255,255,.58);
  --ex-fg-22: rgba(255,255,255,.22);  --ex-fg-20: rgba(255,255,255,.20);
  --ex-fg-06: rgba(255,255,255,.06);  --ex-fg-05: rgba(255,255,255,.05);
  --ex-tint: rgba(255,255,255,.04);       /* secondary button fill */
  --ex-row-hover: rgba(255,255,255,.02);
  --ex-well: rgba(13,15,18,.40);          /* table head band, recessed wells */
  --ex-scrim: rgba(13,15,18,.80);         /* scrolled header, modal backdrop */

  /* accent alpha ladder */
  --ex-a-06: rgba(237,28,36,.06);  --ex-a-08: rgba(237,28,36,.08);  --ex-a-10: rgba(237,28,36,.10);
  --ex-a-12: rgba(237,28,36,.12);  --ex-a-15: rgba(237,28,36,.15);  --ex-a-35: rgba(237,28,36,.35);
  --ex-a-45: rgba(237,28,36,.45);  --ex-a-50: rgba(237,28,36,.50);  --ex-a-60: rgba(237,28,36,.60);

  /* light + depth */
  --ex-glow: 0 0 18px rgba(237,28,36,.18);
  --ex-glow-strong: 0 0 28px rgba(237,28,36,.35);
  --ex-led: 0 0 8px var(--ex-accent);
  --ex-shadow-console: 0 50px 70px rgba(0,0,0,.65);
  --ex-shadow-pop: 0 24px 48px rgba(0,0,0,.55);
  --ex-inset-hi: inset 0 1px 0 rgba(255,255,255,.16);
  --ex-ring: 0 0 0 4px rgba(237,28,36,.12);

  /* motion */
  --ex-ease: cubic-bezier(.16,1,.3,1);
  --ex-ease-std: cubic-bezier(.4,0,.2,1);
  --ex-dur-1: .15s;  --ex-dur-2: .2s;  --ex-dur-3: .3s;  --ex-dur-5: .5s;  --ex-dur-8: .8s;

  /* type */
  --ex-font: "Satoshi", "Satoshi Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ex-mono: "JetBrains Mono", "JetBrains Mono Fallback", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ex-fs-title: clamp(32px, 2.3vw + 8px, 44px);
  --ex-fs-auth: 48px;  --ex-fs-h3: 20px;  --ex-fs-lede: 16px;  --ex-fs-body: 15px;
  --ex-fs-ui: 14px;    --ex-fs-small: 13px;  --ex-fs-label: 11px;

  /* shape */
  --ex-r-pill: 9999px; --ex-r-card: 16px; --ex-r-field: 12px; --ex-r-item: 8px; --ex-r-sm: 6px;

  /* layout */
  /* px, not rem: Blesta's application.css sets html{font-size:.95rem} (15.2px root) */
  --ex-header-h: 68px;  --ex-wrap: 1280px;  --ex-gutter: 40px;  --ex-aside: 368px;
  --ex-gap: 24px;       --ex-dock-h: 76px;

  /* stacking */
  --ex-z-dock: 30; --ex-z-sheet: 40; --ex-z-header: 50; --ex-z-pop: 60; --ex-z-modal: 1050; --ex-z-toast: 1080;
}
@media screen and (max-width: 1023.98px) { :root { --ex-gutter: 32px; } }
@media screen and (max-width: 639.98px)  { :root { --ex-gutter: 20px; } }

/* ---------- 02 Compatibility aliases ---------------------------------
   Every name below is read by a stylesheet we do not own or have not yet
   migrated (inventory: DESIGN §2.3, re-grepped for this file). A missing
   variable inside exui-order.css's !important declarations computes to
   `unset`: CTA fills go transparent and hairlines vanish. Keep them all.
   Never define here: --exact-package-columns, --exact-order-steps,
   --exact-ladder-rung, --exact-pointer-x/-y (set inline by exact-theme.js). */
:root {
  /* base names (exui-order.css, plugin CSS) */
  --void: var(--ex-bg); --chassis: var(--ex-bg); --panel: var(--ex-surface); --panel-2: var(--ex-surface);
  --raised: var(--ex-raised); --raised-2: var(--ex-raised);
  --line: var(--ex-line); --line-2: rgba(255,255,255,.11); --line-3: rgba(255,255,255,.17); --line-strong: var(--ex-line-strong);
  --ink: var(--ex-fg); --ink-2: var(--ex-fg-82); --ink-3: var(--ex-fg-72); --mute: var(--ex-muted); --faint: var(--ex-muted);
  --signal: var(--ex-accent); --signal-hi: var(--ex-accent); --signal-deep: var(--ex-accent-strong);
  --signal-ink: var(--ex-fg-82); --signal-wash: var(--ex-a-10); --signal-ring: var(--ex-a-35);
  --led-online: var(--ex-accent); --led-attention: var(--ex-fg-82); --led-fault: var(--ex-accent); --led-info: var(--ex-muted); --led-idle: var(--ex-line-strong);
  --font: var(--ex-font); --mono: var(--ex-mono);
  --r-xs: var(--ex-r-sm); --r-sm: var(--ex-r-item); --r-md: var(--ex-r-field); --r-lg: var(--ex-r-card); --r-xl: var(--ex-r-card); --r-pill: var(--ex-r-pill);
  --ease: var(--ex-ease); --ease-out: cubic-bezier(0,0,.2,1);
  --topbar-h: var(--ex-header-h); --content-max: var(--ex-wrap);
  --shadow-pop: var(--ex-shadow-pop);

  /* exui-order.css alias layer (--exact-*, --op-*, --accent-active) */
  --exact-bg: var(--ex-bg); --exact-surface: var(--ex-surface); --exact-surface-raised: var(--ex-raised);
  --exact-surface-soft: rgba(255,255,255,.03); --exact-surface-hover: var(--ex-fg-05);
  --exact-line: var(--ex-line); --exact-line-strong: var(--ex-line-strong);
  --exact-text: var(--ex-fg); --exact-muted: var(--ex-muted); --exact-muted-strong: var(--ex-fg-72);
  --exact-accent: var(--ex-accent); --exact-accent-action: var(--ex-accent); --exact-accent-strong: var(--ex-accent-strong);
  --exact-accent-soft: var(--ex-a-10); --exact-accent-glow: rgba(237,28,36,.22);
  --exact-success: var(--ex-fg); --exact-warning: var(--ex-fg-82); --exact-info: var(--ex-muted); --exact-danger: var(--ex-accent);
  --exact-card-radius: var(--ex-r-card); --exact-control-radius: var(--ex-r-field); --exact-pill-radius: var(--ex-r-pill);
  --exact-shadow: var(--ex-shadow-pop); --exact-shadow-soft: 0 12px 34px rgba(0,0,0,.22); --exact-focus-ring: var(--ex-ring);
  --exact-ease: var(--ex-ease); --exact-font: var(--ex-font); --exact-mono: var(--ex-mono);
  --accent-active: var(--ex-accent);
  --op-accent: var(--ex-accent); --op-accent-hi: var(--ex-accent-strong); --op-accent-glow: rgba(237,28,36,.22);
  --op-text: var(--ex-fg); --op-text-sub: var(--ex-fg-72); --op-text-muted: var(--ex-muted);
  --op-card: rgba(23,25,28,.96); --op-card-mid: rgba(23,25,28,.92); --op-sep: var(--ex-line); --op-border: var(--ex-line); --op-radius: var(--ex-r-card);

  /* plugin-facing (download_manager styles.css, order default order.css,
     domains.css, module styles; DM reads --danger/--success-color) */
  --text-primary: var(--ex-fg); --text-secondary: var(--ex-fg-72); --text-muted: var(--ex-muted);
  --bg-primary: var(--ex-bg); --bg-secondary: rgba(255,255,255,.03); --bg-tertiary: var(--ex-fg-06); --bg-card: var(--ex-surface);
  --border-color: var(--ex-line); --primary-color: var(--ex-accent); --accent-color: var(--ex-accent);
  --success-color: var(--ex-fg); --warning-color: var(--ex-fg-82); --danger-color: var(--ex-accent);
  --link-color: var(--ex-fg-82);

  /* Bootstrap 5 custom properties read with light fallbacks by module CSS
     (gogetssl, proxmox, pterodactyl, solusvm, vpsdotnet, domains, rs-admin) */
  --bs-body-bg: var(--ex-bg); --bs-body-color: var(--ex-fg-88); --bs-emphasis-color: var(--ex-fg);
  --bs-secondary-bg: var(--ex-raised); --bs-tertiary-bg: var(--ex-fg-05); --bs-secondary-color: var(--ex-muted);
  --bs-border-color: var(--ex-line-strong); --bs-border-color-translucent: var(--ex-line);
  --bs-border-width: 1px; --bs-border-radius: var(--ex-r-field); --bs-border-radius-sm: var(--ex-r-item);
  --bs-primary: var(--ex-accent); --bs-dark: var(--ex-raised); --bs-link-color: var(--ex-fg-82);
}
/* Bootstrap 4 :root colours repainted for kb.css (--light/--dark) and the
   wizard order.css slider (--secondary/--info). BS4 components never read them. */
body.exui {
  --light: rgba(255,255,255,.03); --dark: #ffffff;
  --primary: var(--ex-accent); --secondary: var(--ex-muted); --info: var(--ex-accent);
  --success: var(--ex-fg); --warning: var(--ex-fg-82); --danger: var(--ex-accent);
}

/* ---------- 03 Base ---------------------------------------------------- */
html {
  min-width: 320px;
  color-scheme: dark; accent-color: var(--ex-accent);
  background: var(--ex-bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  scrollbar-color: rgba(237,28,36,.55) #181a1c; scrollbar-width: thin;
  scroll-padding-top: calc(var(--ex-header-h) + 20px);
  scrollbar-gutter: stable;   /* short and long pages keep the same centre line */
}
/* html paints the page colour (it becomes the canvas); body stays transparent
   so z-index:-1 layers that sit in the root stacking context (.ex-atmos, card
   glows) paint above it. .ex-page is deliberately not a stacking context (§04).
   body stays display:block: jQuery reads an element's default display from a
   probe appended to <body>, and a flex body blockifies it, so Blesta's
   .toggle()/.show() wrote display:block on table rows (expanded details rows
   collapsed into the first column) and on inline elements. The sticky
   footer lives on .ex-page instead. */
body.exui {
  margin: 0; min-height: 100vh;
  background: transparent; color: var(--ex-fg);
  font: 400 var(--ex-fs-body)/1.5 var(--ex-font); letter-spacing: -.003em; text-rendering: optimizeLegibility;
  overflow-x: hidden;
  text-align: start;   /* answers Bootstrap's body{text-align:left}: right-to-left pages start on the right */
}
/* Blesta's admin "Custom CSS" ships stock light-theme rules and prints them
   after this file: body{#f0f0f0}, body.client-client_login-index{#fff},
   body[class^="plugin-order"]{#fff}, body.plugin-orderclient-orders-index{…}.
   html > body.exui (0,1,2) out-ranks all of them (0,1,1) without !important. */
html > body.exui { background-color: transparent; }
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--ex-accent); color: #fff; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #181a1c; }
::-webkit-scrollbar-thumb { background: rgba(237,28,36,.55); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--ex-accent-strong); }
[hidden] { display: none !important; }

/* Scoped reset. The prototype resets h*, p, lists, dl and buttons globally;
   Blesta content still relies on Bootstrap's margins, so the reset applies
   only to elements that carry an ex-* class and to the direct children of
   ex-* components (bare <p> in .ex-empty, <ul> in .ex-pop__panel, <dt>/<dd>
   in .ex-kv). Specificity (0,0,2): above Bootstrap's element rules, below
   every ex-* class rule. */
body :is(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,figure,blockquote,label,fieldset):where([class^="ex-"],[class*=" ex-"]),
body :where([class^="ex-"],[class*=" ex-"]) > :is(h1,h2,h3,h4,h5,h6,p,ul,ol,dl,figure,blockquote,label),
body :where([class^="ex-"],[class*=" ex-"]) :is(dt,dd) { margin: 0; }
body :is(ul,ol):where([class^="ex-"],[class*=" ex-"]),
body :where([class^="ex-"],[class*=" ex-"]) > :is(ul,ol) { padding: 0; list-style: none; }
body :where([class^="ex-"],[class*=" ex-"]) dt { font-weight: inherit; }
body :is(h1,h2,h3,h4,h5,h6):where([class^="ex-"],[class*=" ex-"]),
body :where([class^="ex-"],[class*=" ex-"]) > :is(h1,h2,h3,h4,h5,h6) { font-weight: 700; letter-spacing: -.02em; color: #fff; }
body button:where([class^="ex-"],[class*=" ex-"]) {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit;
  letter-spacing: inherit; text-align: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
}
body :is(input,select,textarea):where([class^="ex-"],[class*=" ex-"]) { font: inherit; color: inherit; margin: 0; }
body table:where([class^="ex-"],[class*=" ex-"]) { border: 0; border-collapse: collapse; border-spacing: 0; }

/* Links. Bootstrap paints every <a> blue and a:hover (0,1,1) blue +
   underline. Base links inherit; on hover every link turns white with no
   underline unless its component says otherwise at (0,1,1) or above.
   Content links in Blesta markup get the .ex-link recipe in §17.1. */
:where(body.exui) a { color: inherit; text-decoration: none; background-color: transparent; }
:where(body.exui) a:hover { color: #fff; text-decoration: none; }
:where(body.exui) img { max-width: 100%; }
:where(body.exui) table { border: 0; }

/* focus: 2px red ring, 3px offset; never outline:none without a replacement */
:where(body.exui) :focus { outline: none; }
:where(body.exui) :focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }

.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; }
.mono { font-family: var(--ex-mono); letter-spacing: -.01em; }
.num { font-family: var(--ex-mono); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.muted { color: var(--ex-muted); }
.fg { color: #fff; }
.nowrap { white-space: nowrap; }

/* icons: Lucide, 24 viewBox, stroke = currentColor. exui_icon() prints
   width/height/stroke-width attributes; the defaults below only apply when
   they are absent (sprite <use> markup), and .i-NN classes always win. */
.i { display: inline-block; flex: none; vertical-align: middle; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; }
.i:not([width]) { width: 16px; height: 16px; }
.i:not([stroke-width]) { stroke-width: 2; }
.i-12 { width: 12px; height: 12px; }
.i-14 { width: 14px; height: 14px; }
.i-16 { width: 16px; height: 16px; }
.i-18 { width: 18px; height: 18px; stroke-width: 1.75; }
.i-20 { width: 20px; height: 20px; stroke-width: 1.75; }

.ex-skip {
  position: fixed; top: 12px; left: 16px; z-index: 1100; transform: translateY(-80px);
  padding: 10px 20px; border-radius: var(--ex-r-pill); background: var(--ex-accent-strong);
  font-size: 14px; font-weight: 600; color: #fff; transition: transform var(--ex-dur-2);
}
.ex-skip:focus { transform: none; outline: 2px solid #fff; outline-offset: 2px; color: #fff; }

/* specular top edge (exact.gg .highlight-top) */
.hl { position: relative; }
.hl::after {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}

/* ---------- 04 Layout primitives -------------------------------------- */
.ex-wrap { width: 100%; max-width: var(--ex-wrap); margin-inline: auto; padding-inline: var(--ex-gutter); }
.ex-wrap .ex-wrap { max-width: none; padding-inline: 0; }      /* nested wraps never double the gutter */
/* No isolation / z-index here: a stacking context around the content traps a
   Bootstrap .modal printed inside a view (module client tabs: vultr backups,
   solusvm IPs, polarismail) under the .modal-backdrop Bootstrap appends to
   <body>, and every click then dismisses the modal. Layers inside the page
   (atmosphere −1, sheet 40, header 50) share the root context with the dock
   (30), modals (1040/1050) and the toast (1080). */
.ex-page { position: relative; min-height: 100vh; display: flex; flex-direction: column; }
.ex-main { flex: 1 0 auto; padding-bottom: 104px; }
.ex-main:focus { outline: none; }
.ex-section { margin-top: 32px; }
.ex-layout { display: grid; grid-template-columns: minmax(0,1fr) var(--ex-aside); gap: var(--ex-gap); align-items: start; margin-top: var(--ex-gap); }
.ex-layout--even { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.ex-layout--narrow { grid-template-columns: minmax(0, 880px); justify-content: start; }
.ex-col { display: grid; gap: var(--ex-gap); min-width: 0; align-content: start; }
.ex-sticky { position: sticky; top: calc(var(--ex-header-h) + 24px); }
.ex-stack > * + * { margin-top: var(--ex-gap); }
.ex-row { display: flex; align-items: center; gap: 12px; }
.ex-spacer { flex: 1; }

/* ---------- 05 Shell --------------------------------------------------- */

/* 05.1 atmosphere: support-portal band behind the page head, scrolls away */
.ex-atmos { position: absolute; inset: 0 0 auto; height: 600px; z-index: -1; overflow: hidden; pointer-events: none; }
.ex-atmos::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 90% at 50% -12%, rgba(237,28,36,.13), transparent 68%);
}
.ex-atmos::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: linear-gradient(to right, var(--ex-line) 1px, transparent 1px), linear-gradient(to bottom, var(--ex-line) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
          mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000, transparent 75%);
}

/* 05.2 staff-as-client strip (above the header, not sticky) */
.ex-staff {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 36px; padding: 6px var(--ex-gutter); background: var(--ex-a-06); border-bottom: 1px solid var(--ex-a-35);
  font: 500 11px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-fg-82);
}
.ex-staff::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-staff a { color: #fff; text-decoration: underline; text-decoration-color: var(--ex-a-60); text-underline-offset: 3px; }
.ex-staff a:hover { text-decoration: underline; text-decoration-color: #fff; }

/* 05.3 header: exact.gg's 68px bar, transparent until scrolled */
.ex-header { position: sticky; top: 0; z-index: var(--ex-z-header); }
.ex-header::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-bottom: 1px solid transparent; pointer-events: none;
  transition: background-color var(--ex-dur-3) ease-out, border-color var(--ex-dur-3) ease-out, backdrop-filter var(--ex-dur-3) ease-out;
}
.ex-header.is-scrolled::before, body.is-menu-open .ex-header::before {
  background: var(--ex-scrim); border-bottom-color: var(--ex-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
}
.ex-header__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--ex-header-h); }

.ex-brand { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; min-width: 0; border-radius: var(--ex-r-sm); }
.ex-brand:focus-visible { outline-offset: 4px; }
.ex-brand__mark { display: block; height: 26px; width: auto; flex: none; }
img.ex-brand__mark { max-width: 160px; object-fit: contain; }
.ex-brand__text { min-width: 0; }
.ex-brand__name { display: block; font-size: 19px; line-height: 1; font-weight: 700; letter-spacing: -.02em; color: #fff; white-space: nowrap; }
.ex-brand__sub { display: block; margin-top: 5px; font: 500 9.5px/1 var(--ex-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--ex-muted); white-space: nowrap; }

.ex-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 34px; }
.ex-nav__item { position: relative; display: flex; align-items: center; gap: 2px; }
.ex-nav__link {
  position: relative; display: inline-flex; align-items: center; height: 40px; border-radius: var(--ex-r-sm);
  font-size: 14px; font-weight: 500; color: var(--ex-fg-78); white-space: nowrap; transition: color var(--ex-dur-2);
}
.ex-nav__link:hover, .ex-nav__link[aria-current="page"], .ex-nav__item.is-open > .ex-nav__link { color: #fff; }
.ex-nav__link::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 14px; height: 3px; background: var(--ex-accent);
  transform: translateX(-50%) skewX(35deg); opacity: 0; transition: opacity var(--ex-dur-2);
}
.ex-nav__link[aria-current="page"]::after, .ex-nav__link.is-active::after { opacity: 1; }
.ex-nav__caret { display: inline-grid; place-items: center; width: 24px; height: 40px; border-radius: var(--ex-r-sm); color: var(--ex-muted); transition: color var(--ex-dur-2); }
.ex-nav__caret:hover, .ex-nav__caret[aria-expanded="true"] { color: #fff; }
.ex-nav__caret .i { transition: transform var(--ex-dur-3) var(--ex-ease); }
.ex-nav__caret[aria-expanded="true"] .i { transform: rotate(180deg); }

.ex-header__actions { position: relative; z-index: 2; display: flex; align-items: center; gap: 10px; }

/* account pill — sits exactly where exact.gg shows "Login" */
.ex-acct {
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px 0 5px;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint);
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: #fff; white-space: nowrap;
  transition: border-color var(--ex-dur-2) var(--ex-ease-std), background-color var(--ex-dur-2) var(--ex-ease-std), box-shadow var(--ex-dur-2) var(--ex-ease-std);
}
.ex-acct:hover, .ex-acct[aria-expanded="true"] { border-color: var(--ex-a-50); background: var(--ex-a-08); box-shadow: var(--ex-glow); color: #fff; }
.ex-acct > .i { color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease); }
.ex-acct[aria-expanded="true"] > .i { transform: rotate(180deg); }

.ex-avatar {
  display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--ex-line-strong); background: var(--ex-raised); overflow: hidden;
  font: 500 11px/1 var(--ex-mono); letter-spacing: .02em; text-transform: uppercase; color: var(--ex-fg-82);
}
.ex-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ex-avatar--lg { width: 36px; height: 36px; font-size: 12px; }
.ex-avatar--xl { width: 48px; height: 48px; font-size: 14px; }

/* 05.4 popover panel (support-portal dropdown) — nav groups, the account
   pill, row overflow menus; Bootstrap .dropdown-menu gets the same look (§17.10) */
.ex-pop {
  position: absolute; top: 100%; left: -12px; z-index: var(--ex-z-pop); width: 264px; padding-top: 12px;
  opacity: 0; visibility: hidden; transform: translateY(-4px); pointer-events: none;
  transition: opacity var(--ex-dur-2) ease-out, transform var(--ex-dur-2) ease-out, visibility var(--ex-dur-2);
}
.ex-pop--right { left: auto; right: 0; width: 296px; }
.is-open > .ex-pop { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.ex-pop__panel {
  position: relative; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: rgba(23,25,28,.95);
  padding: 8px; box-shadow: var(--ex-shadow-console); color: var(--ex-fg-82);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.ex-pop__label { padding: 4px 10px 8px; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-muted); }
.ex-pop__item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 40px; padding: 0 10px;
  border-radius: var(--ex-r-item); font-size: 14px; font-weight: 500; color: var(--ex-fg-82); text-align: left;
  transition: color var(--ex-dur-2), background-color var(--ex-dur-2);
}
.ex-pop__item:hover, .ex-pop__item:focus-visible { background: var(--ex-fg-05); color: #fff; }
.ex-pop__item:focus-visible { outline-offset: -2px; }
.ex-pop__item[aria-current="page"] { color: #fff; background: var(--ex-fg-05); }
.ex-pop__item .i { color: var(--ex-muted); transition: color var(--ex-dur-2); }
.ex-pop__item:hover .i { color: #fff; }
.ex-pop__item--danger:hover { color: #fff; background: var(--ex-a-10); }
.ex-pop__meta { font: 400 12px/1 var(--ex-mono); color: var(--ex-muted); white-space: nowrap; }
.ex-pop__meta--act { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.ex-pop__meta--act::before { content: ""; width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }
.ex-pop__sep { height: 1px; margin: 6px 4px; background: var(--ex-line); }
.ex-pop__who { display: flex; align-items: center; gap: 12px; padding: 10px 10px 14px; margin-bottom: 6px; border-bottom: 1px solid var(--ex-line); }
.ex-pop__who > div { min-width: 0; }
.ex-pop__who b { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.ex-pop__who span:not(.ex-avatar) { display: block; margin-top: 3px; font: 400 12px/1.3 var(--ex-mono); color: var(--ex-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-pop__langs { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; }
.ex-pop__langs [aria-current="true"] { border-color: var(--ex-a-45); background: var(--ex-a-10); }   /* current language */
/* In-view language switcher (exui_lang_switcher(): sign-in card, guest pages) */
.ex-langswitch { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ex-langswitch__label { display: inline-flex; align-items: center; gap: 6px; margin-right: 4px; font: 500 11px/1 var(--ex-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ex-muted); }
.ex-langswitch [aria-current="true"] { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
/* priority+ "More" (exui.js moves overflowing nav items into it) */
.ex-nav__more > .ex-nav__link { gap: 4px; }
.ex-nav__more > .ex-nav__link .i { color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease); }
.ex-nav__more > .ex-nav__link[aria-expanded="true"] .i { transform: rotate(180deg); }

/* 05.5 mobile menu button (40px secondary circle, 3 bars → X) */
.ex-menubtn {
  position: relative; display: none; width: 40px; height: 40px; flex: none; border-radius: 50%;
  border: 1px solid var(--ex-line-strong); background: var(--ex-tint);
}
.ex-menubtn span { position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px; margin: -.75px 0 0 -8px; border-radius: 9999px; background: #fff; transition: transform var(--ex-dur-3) var(--ex-ease), opacity var(--ex-dur-2); }
.ex-menubtn span:nth-child(1) { transform: translateY(-5px); }
.ex-menubtn span:nth-child(3) { transform: translateY(5px); }
body.is-menu-open .ex-menubtn span:nth-child(1) { transform: rotate(45deg); }
body.is-menu-open .ex-menubtn span:nth-child(2) { opacity: 0; }
body.is-menu-open .ex-menubtn span:nth-child(3) { transform: rotate(-45deg); }

/* 05.6 full-screen sheet (exact.gg #mobile-menu) */
.ex-sheet {
  position: fixed; inset: var(--ex-header-h) 0 0; z-index: var(--ex-z-sheet); overflow-y: auto; overscroll-behavior: contain;
  background: var(--ex-bg); opacity: 0; visibility: hidden; transition: opacity var(--ex-dur-3) var(--ex-ease), visibility var(--ex-dur-3);
}
.ex-sheet:focus { outline: none; }
body.is-menu-open { overflow: hidden; }
body.is-menu-open .ex-sheet { opacity: 1; visibility: visible; }
.ex-sheet__nav { padding-top: 8px; }
.ex-sheet__row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 4px;
  border-bottom: 1px solid var(--ex-line); font-size: 18px; font-weight: 600; letter-spacing: -.02em; color: var(--ex-fg-82);
}
.ex-sheet__row:hover, .ex-sheet__row[aria-current="page"] { color: #fff; }
.ex-sheet__row:focus-visible { outline-offset: -2px; }
.ex-sheet__end { display: inline-flex; align-items: center; gap: 14px; }
.ex-sheet__meta { font: 500 11px/1 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted); }
.ex-sheet__meta--act { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.ex-sheet__meta--act::before { content: ""; width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }   /* needs you: the dash the popover meta carries */
.ex-sheet__row[aria-current="page"] .ex-sheet__end::after { content: ""; width: 14px; height: 5px; background: var(--ex-accent); transform: skewX(35deg); }
.ex-sheet__group { margin-top: 28px; }
.ex-sheet__sub { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 12px; }
.ex-sheet__acct { margin-top: 28px; padding: 16px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface); }
.ex-sheet__who { display: flex; align-items: center; gap: 12px; }
.ex-sheet__who > div { min-width: 0; }
.ex-sheet__who b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.ex-sheet__who div span { display: block; margin-top: 2px; font: 400 12px/1.3 var(--ex-mono); color: var(--ex-muted); overflow-wrap: anywhere; }
.ex-sheet__links { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.ex-sheet__links .ex-btn { width: 100%; min-width: 0; height: auto; min-height: 40px; padding-top: 6px; padding-bottom: 6px; white-space: normal; text-align: center; line-height: 1.2; }   /* touch target ≥ 40px (§9); a long label wraps inside its pill */
.ex-sheet__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 24px 0 16px; }
.ex-sheet__btns > :only-child { grid-column: 1 / -1; }
.ex-sheet__foot { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 8px 0 40px; }
.ex-sheet__foot a, .ex-sheet__foot button { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font: 400 13px var(--ex-mono); color: var(--ex-fg-70); }

/* 05.7 mobile action dock — phones only, appears while the page's inline
   primary is off-screen (never two primaries on screen at once) */
.ex-dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: var(--ex-z-dock); display: none;
  padding: 12px var(--ex-gutter) calc(12px + env(safe-area-inset-bottom));
  background: rgba(13,15,18,.92); border-top: 1px solid var(--ex-line);
  -webkit-backdrop-filter: blur(12px) saturate(1.5); backdrop-filter: blur(12px) saturate(1.5);
  transform: translateY(105%); transition: transform var(--ex-dur-3) var(--ex-ease);
}
.ex-dock__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ex-dock__sum { min-width: 0; }
.ex-dock__label { display: block; font: 500 10px/1.3 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
.ex-dock__amt { display: block; margin-top: 3px; font: 700 20px/1 var(--ex-mono); letter-spacing: -.04em; color: #fff; }
.ex-dock__text { display: block; font: 500 12.5px/1.3 var(--ex-mono); color: var(--ex-fg-82); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.has-dock .ex-dock { transform: none; }

/* 05.8 footer (compact exact.gg footer) */
.ex-footer { position: relative; border-top: 1px solid var(--ex-line); background: var(--ex-bg); }
.ex-footer__inner { position: relative; }
.ex-footer__seg { position: absolute; top: -1px; left: var(--ex-gutter); width: 64px; height: 1px; background: var(--ex-accent); }
.ex-footer__row { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; padding: 30px 0 22px; flex-wrap: wrap; }
.ex-footer__brand { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; letter-spacing: -.02em; color: #fff; border-radius: var(--ex-r-sm); }
.ex-footer__brand svg, .ex-footer__brand img { display: block; height: 20px; width: auto; }
.ex-footer__links { display: flex; flex-wrap: wrap; gap: 0 28px; }
.ex-footer__links a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; border-radius: 4px; font: 400 13.5px var(--ex-mono); color: var(--ex-fg-70); transition: color var(--ex-dur-2); }
.ex-footer__links a:hover { color: #fff; }
.ex-footer__links .i { color: var(--ex-muted); }
.ex-footer__legal { display: flex; justify-content: space-between; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding: 20px 0 36px; border-top: 1px solid var(--ex-line); font: 400 12px var(--ex-mono); color: var(--ex-muted); }
.ex-footer__legal .sep { color: var(--ex-line-strong); }
.ex-footer__nw { white-space: nowrap; }   /* the line breaks only at its " · " */
.ex-lang { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; color: var(--ex-fg-70); border-radius: 4px; font: inherit; }
.ex-lang:hover { color: #fff; }
/* footer language menu opens upward */
.ex-footer__lang > .ex-pop { top: auto; bottom: 100%; padding: 0 0 12px; transform: translateY(4px); }
.ex-footer__lang.is-open > .ex-pop { transform: none; }
/* debug query logger (client_query_logger) above the footer */
.ex-debug { padding-top: 24px; padding-bottom: 24px; overflow-x: auto; font: 400 12px/1.6 var(--ex-mono); color: var(--ex-muted); }

/* ---------- 06 Page head ---------------------------------------------- */
.ex-pagehead { padding-top: 44px; }
/* the shell's head carries the gap to whatever follows it (order progress,
   the group menu, div.row.ex-content): Blesta content has no top margin */
.ex-main > .ex-pagehead { margin-bottom: 32px; }
.ex-pagehead__grid { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 20px 56px; }
.ex-pagehead__text { min-width: 0; }
.ex-pagehead__actions { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 2px; }
.ex-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 14px; font: 500 12px/1.4 var(--ex-mono); letter-spacing: .08em; color: var(--ex-muted); }
.ex-back:hover { color: #fff; }
.ex-back .i { transition: transform var(--ex-dur-3) var(--ex-ease); }
.ex-back:hover .i { transform: translateX(-2px); }

.ex-kicker {
  display: inline-flex; align-items: flex-start; gap: 12px; max-width: 100%;
  font: 500 12px/1.45 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
.ex-kicker::before { content: ""; flex: none; width: 14px; height: 5px; margin-top: calc(.725em - 2.5px); transform: skewX(35deg); background: var(--ex-accent); }
.ex-kicker .sep { color: var(--ex-line-strong); padding: 0 .15em; }
.ex-kicker b { font-weight: 600; color: #fff; }
.ex-kicker a { border-radius: 2px; transition: color var(--ex-dur-2); }
.ex-kicker a:hover { color: #fff; }
.ex-kicker--plain::before { display: none; }

.ex-title { margin-top: 16px; font-size: var(--ex-fs-title); line-height: 1; font-weight: 900; letter-spacing: -.04em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
.ex-title--id { font-family: var(--ex-mono); font-weight: 700; letter-spacing: -.06em; }       /* pure mono IDs: INV-2041 */
.ex-lede { margin-top: 14px; max-width: 64ch; font-size: var(--ex-fs-lede); line-height: 1.55; font-weight: 450; color: var(--ex-fg-72); text-wrap: pretty; }
.ex-lede b, .ex-lede strong { font-weight: 600; color: #fff; }
.ex-lede .num, .ex-lede .mono { font-size: .92em; color: #fff; font-weight: 500; }
.ex-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 16px; font-size: 14px; color: var(--ex-fg-72); }
.ex-meta .mono { font-size: 13px; color: #fff; }
.ex-meta__sep { width: 1px; height: 14px; background: var(--ex-line-strong); }
.ex-ident { display: flex; align-items: center; gap: 18px; margin-top: 16px; }
.ex-ident .ex-chip { width: 52px; height: 52px; border-radius: 12px; }
.ex-ident .ex-chip .i { width: 22px; height: 22px; stroke-width: 1.75; }
.ex-ident .ex-title { margin-top: 0; min-width: 0; }

/* page tabs: underline + red dash (desktop) → 2-col pill grid (phones, §15) */
.ex-tabs { display: flex; flex-wrap: wrap; gap: 0 30px; margin-top: 32px; border-bottom: 1px solid var(--ex-line); }
.ex-tab {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; flex: none;
  font-size: 14px; font-weight: 500; color: var(--ex-fg-78); white-space: nowrap; border-radius: var(--ex-r-sm); transition: color var(--ex-dur-2);
}
.ex-tab:hover, .ex-tab.is-active, .ex-tab[aria-current="page"] { color: #fff; }
.ex-tab:focus-visible { outline-offset: -2px; }
.ex-tab::after {
  content: ""; position: absolute; bottom: -1px; left: 50%; width: 14px; height: 3px; background: var(--ex-accent);
  transform: translateX(-50%) skewX(35deg); opacity: 0; transition: opacity var(--ex-dur-2);
}
.ex-tab.is-active::after, .ex-tab[aria-current="page"]::after { opacity: 1; }
.ex-tab > .i { display: none; }
.ex-tab__count { font: 500 11px/1 var(--ex-mono); color: var(--ex-muted); }
.ex-tab__count--act { display: inline-flex; align-items: center; gap: 6px; color: #fff; }
.ex-tab__count--act::before { content: ""; width: 8px; height: 3px; background: var(--ex-accent); transform: skewX(35deg); }
.ex-tab--ext > .i { display: block; width: 12px; height: 12px; color: var(--ex-muted); }

/* stepper: numbered nodes with captions; line fills red up to the current step */
.ex-stepper { display: grid; grid-template-columns: repeat(var(--steps, 3), minmax(0,1fr)); margin-top: 32px; }
.ex-step-h { position: relative; padding-right: 24px; }
.ex-step-h::before { content: ""; position: absolute; top: 16px; left: 44px; right: 12px; height: 1px; background: var(--ex-line-strong); }
.ex-step-h:last-child::before { display: none; }
.ex-step-h.is-done::before { background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-step-h__node {
  position: relative; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--ex-line-strong); background: var(--ex-bg); font: 600 10.5px/1 var(--ex-mono); color: var(--ex-muted);
}
.ex-step-h__node .i { width: 14px; height: 14px; stroke-width: 2.6; }
.ex-step-h.is-done .ex-step-h__node { border-color: rgba(255,255,255,.55); color: #fff; }
.ex-step-h.is-current .ex-step-h__node { border-color: var(--ex-accent); background: var(--ex-a-10); color: #fff; box-shadow: 0 0 0 4px var(--ex-a-10); }
.ex-step-h__t { display: block; margin-top: 12px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ex-muted); }
.ex-step-h.is-done .ex-step-h__t, .ex-step-h.is-current .ex-step-h__t { color: #fff; }
.ex-step-h__s { display: block; margin-top: 3px; font: 400 12.5px/1.4 var(--ex-mono); color: var(--ex-muted); }
.ex-step-h__s a { color: var(--ex-fg-82); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.ex-step-h__s a:hover { color: #fff; text-decoration: underline; text-decoration-color: var(--ex-accent); }

/* ---------- 07 Buttons and links -------------------------------------- */
.ex-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--ex-r-pill);
  font: 600 14px/1 var(--ex-font); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; vertical-align: middle;
  user-select: none; cursor: pointer;
  transition: color var(--ex-dur-2) var(--ex-ease-std), background-color var(--ex-dur-2) var(--ex-ease-std), border-color var(--ex-dur-2) var(--ex-ease-std), box-shadow var(--ex-dur-2) var(--ex-ease-std);
}
.ex-btn .num { font-weight: 600; letter-spacing: -.03em; }         /* amounts inside labels are mono */
.ex-btn .i { width: 14px; height: 14px; }
.ex-btn--sm { height: 38px; padding: 0 20px; }
.ex-btn--xs { height: 32px; padding: 0 14px; font-size: 13px; gap: 6px; }
.ex-btn--lg { height: 50px; padding: 0 28px; font-size: 15px; }
.ex-btn--block { display: flex; width: 100%; }
.ex-btn--arrow { padding-right: 18px; }
.ex-btn--lg.ex-btn--arrow { padding-right: 24px; }
.ex-btn--icon-first { padding-left: 16px; }
.ex-btn .ex-arrow { width: 16px; height: 16px; transition: transform var(--ex-dur-3) var(--ex-ease); }
.ex-btn:hover .ex-arrow { transform: translateX(2px); }

.ex-btn--primary { isolation: isolate; overflow: hidden; background: var(--ex-accent); color: #fff; box-shadow: var(--ex-inset-hi); }
.ex-btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  transition: background-position var(--ex-dur-8) var(--ex-ease);
}
.ex-btn--primary:hover { background: var(--ex-accent-strong); box-shadow: var(--ex-inset-hi), var(--ex-glow-strong); color: #fff; }
.ex-btn--primary:hover::after { background-position: 0 0; }
.ex-btn--primary:active { background: var(--ex-accent-strong); }
.ex-btn--primary:focus-visible { outline-color: #fff; }

.ex-btn--secondary { background: var(--ex-tint); border-color: var(--ex-line-strong); color: #fff; }
.ex-btn--secondary:hover, .ex-btn--secondary[aria-expanded="true"] { border-color: var(--ex-a-50); background: var(--ex-a-08); box-shadow: var(--ex-glow); color: #fff; }

.ex-btn--ghost { color: var(--ex-fg-82); }
.ex-btn--ghost:hover { color: #fff; background: var(--ex-fg-05); }

/* destructive: tinted outline; solid only for the confirm inside a modal */
.ex-btn--danger { background: var(--ex-a-10); border-color: var(--ex-a-45); color: #fff; }
.ex-btn--danger:hover { background: var(--ex-accent-strong); border-color: var(--ex-accent-strong); box-shadow: var(--ex-glow-strong); color: #fff; }

.ex-btn[aria-disabled="true"], .ex-btn:disabled, .ex-btn.is-disabled, .ex-btn.disabled { opacity: .5; pointer-events: none; }
.ex-btn.is-loading { color: transparent !important; pointer-events: none; }
.ex-btn.is-loading::before { content: ""; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; animation: ex-spin .7s linear infinite; }

.ex-iconbtn {
  display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%;
  color: var(--ex-muted); transition: color var(--ex-dur-2), background-color var(--ex-dur-2), border-color var(--ex-dur-2);
}
.ex-iconbtn:hover { color: #fff; background: var(--ex-fg-06); }
.ex-iconbtn--bordered { border: 1px solid var(--ex-line-strong); background: var(--ex-tint); }
.ex-iconbtn--bordered:hover { border-color: var(--ex-a-50); background: var(--ex-a-08); }
.ex-iconbtn--40 { width: 40px; height: 40px; }
.ex-iconbtn.is-copied { color: #fff; }

/* text link with arrow ("Manage →"); arrow is muted until hover */
.ex-go {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: -.005em; color: #fff; white-space: nowrap;
}
.ex-go .i { color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
.ex-go:hover .i, tr:hover .ex-go .i, a:hover > .ex-go .i { color: var(--ex-accent); transform: translateX(2px); }
.ex-go--sm { font-size: 13px; }

/* inline link inside prose and helper text */
.ex-link { color: var(--ex-fg-82); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; transition: color var(--ex-dur-2), text-decoration-color var(--ex-dur-2); }
.ex-link:hover { color: #fff; text-decoration-line: underline; text-decoration-color: var(--ex-accent); }

/* ---------- 08 Surfaces ------------------------------------------------ */
.ex-card { position: relative; background: var(--ex-surface); border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); min-width: 0; color: var(--ex-fg-82); }
.ex-card--clip { overflow: hidden; }
.ex-card__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 22px; border-bottom: 1px solid var(--ex-line);
}
.ex-card__head--plain { border-bottom: 0; }
.ex-card__title { font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
.ex-card__body { padding: 22px; }
.ex-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--ex-line); }
.ex-card__note { font-size: 13px; line-height: 1.5; color: var(--ex-fg-58); }

/* panel label: mono uppercase, the card-head voice */
.ex-label { display: inline-flex; align-items: center; gap: 10px; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
.ex-label--fg { color: var(--ex-fg-82); }
.ex-label .sep { color: var(--ex-line-strong); }
.ex-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--ex-r-pill); border: 1px solid var(--ex-line-strong); font: 500 10.5px/1 var(--ex-mono); letter-spacing: 0; text-transform: none; color: var(--ex-fg-82); }

/* open (unboxed) section: hairline top + label row — keeps the page to 2-3 framed objects */
.ex-open { border-top: 1px solid var(--ex-line); }
.ex-open__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }

/* window: grey dots, compact mono title, blade corner. ONE per screen. */
.ex-window { position: relative; isolation: isolate; --cut: 20px; }
.ex-window::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: var(--ex-r-card); box-shadow: 0 40px 60px rgba(0,0,0,.55); }
.ex-window__pool { position: absolute; inset: 30% 4% -48px; z-index: -2; background: radial-gradient(55% 55% at 50% 65%, rgba(237,28,36,.16), transparent 75%); filter: blur(40px); pointer-events: none; }
.ex-window__frame {
  position: relative; overflow: hidden; background: var(--ex-surface); color: var(--ex-fg-82);
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); border-top-right-radius: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
.ex-window__frame::after { content: ""; position: absolute; top: 0; left: 12%; right: 20%; height: 1px; z-index: 3; background: linear-gradient(to right, transparent, rgba(255,255,255,.55), transparent); }
.ex-blade {
  position: absolute; top: 0; right: 0; z-index: 4; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(45deg, transparent calc(50% - 1px), var(--ex-accent) calc(50% - .5px), var(--ex-accent) calc(50% + .5px), transparent calc(50% + 1px));
  filter: drop-shadow(0 0 6px rgba(237,28,36,.9));
}
/* "lit blade": red edge only while something needs the customer */
.ex-window.is-calm .ex-blade { background: linear-gradient(45deg, transparent calc(50% - 1px), var(--ex-line-strong) calc(50% - .5px), var(--ex-line-strong) calc(50% + .5px), transparent calc(50% + 1px)); filter: none; }
.ex-window.is-calm .ex-window__pool { display: none; }
.ex-window__bar {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; height: 46px; padding: 0 18px;
  border-bottom: 1px solid var(--ex-line); background: linear-gradient(to bottom, rgba(255,255,255,.03), transparent);
}
.ex-window__bar > :nth-child(3) { justify-self: end; }
/* the side tracks stay equal, so the title is centred on the frame; the right
   slot steps in by --cut to clear the blade */
.ex-window > .ex-window__frame > .ex-window__bar > :nth-child(3) { margin-right: var(--cut); }
.ex-window__title { font: 500 10.5px/1 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); white-space: nowrap; }
.ex-window__bar--compact { height: 38px; padding: 0 14px 0 16px; grid-template-columns: auto 1fr auto; }
.ex-window__bar--compact .ex-window__title { justify-self: start; margin-left: 4px; }
.ex-dots { display: flex; gap: 7px; }
.ex-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--ex-line-strong); }
.ex-window__bar--compact .ex-dots i { width: 8px; height: 8px; }
.ex-window__body { padding: 24px; }
/* compact in-card window (server panel, DNS, email preview): no blade */
.ex-pane { position: relative; overflow: hidden; background: var(--ex-surface); border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); }

/* ---------- 09 Data ---------------------------------------------------- */

/* money: mono, tight; big amounts get exact.gg's superscript currency */
.ex-money { display: inline-block; font-family: var(--ex-mono); font-weight: 700; letter-spacing: -.05em; font-variant-numeric: tabular-nums; white-space: nowrap; color: #fff; }
.ex-money::first-letter { font-size: .44em; vertical-align: .98em; font-weight: 600; letter-spacing: normal; color: var(--ex-fg-72); margin-right: .08em; }
.ex-money--suffix::first-letter { font-size: inherit; vertical-align: baseline; font-weight: inherit; color: inherit; margin: 0; letter-spacing: inherit; }
.ex-amt { font: 600 14px/1.2 var(--ex-mono); letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-amt small { margin-left: .3em; font-size: 11.5px; font-weight: 400; letter-spacing: 0; color: var(--ex-fg-58); }
.ex-amt--neg { color: var(--ex-fg-82); }
.ex-unit { margin-left: 4px; font: 400 .42em/1 var(--ex-mono); letter-spacing: 0; color: var(--ex-muted); vertical-align: baseline; }
.ex-id { font: 500 13.5px/1.2 var(--ex-mono); letter-spacing: -.01em; color: #fff; }
a.ex-id { text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; transition: text-decoration-color var(--ex-dur-2); }
a.ex-id:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); }
.ex-date { font: 400 13px/1.3 var(--ex-mono); color: var(--ex-fg-82); white-space: nowrap; }
.ex-hint { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.35; color: var(--ex-muted); }
.ex-hint--act { color: #fff; }
/* IDs, hostnames and amounts inside sentences: mono, a touch smaller, never split */
:is(.ex-lede, .ex-hint, .ex-strip__desc, .ex-tl__text, .ex-alert__text, .ex-card__note, .ex-consq, .ex-help, .ex-modal__body, .ex-mails__subject, .ex-mails__summary) :is(.num, .mono),
.ex-consq b { font-family: var(--ex-mono); font-size: .92em; letter-spacing: -.01em; white-space: nowrap; }
/* red-slash strike for old values (pricing card) */
.ex-strike { position: relative; display: inline-block; font: 500 14px/20px var(--ex-mono); color: var(--ex-muted); }
.ex-strike::after { content: ""; position: absolute; left: -4px; right: -4px; top: 50%; height: 2px; margin-top: -1px; background: var(--ex-accent); transform: rotate(-9deg); }

/* status pills: shape carries meaning (DESIGN §6; exui_status() prints them) */
.ex-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 10px; flex: none; vertical-align: middle;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: transparent;
  font: 500 10.5px/1 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted); white-space: nowrap;
}
.ex-pill::before { flex: none; }
.ex-pill--live { border-color: var(--ex-fg-22); color: #fff; }
.ex-pill--live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-pill--wait { color: var(--ex-fg-82); }
.ex-pill--wait::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ex-fg-62); animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.ex-pill--act { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
.ex-pill--act::before { content: ""; width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }
.ex-pill--done { border-color: var(--ex-fg-22); color: var(--ex-fg-82); }
.ex-pill--done::before {
  content: ""; width: 11px; height: 11px; background: currentColor;
  -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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%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='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.ex-pill--off { color: var(--ex-muted); }
.ex-pill--off::before { content: ""; width: 10px; height: 1px; background: var(--ex-muted); }
.ex-pill--plain { background: rgba(35,36,38,.6); color: var(--ex-fg-82); }
.ex-pill--role { height: 20px; padding: 0 8px; font-size: 9.5px; letter-spacing: .14em; background: rgba(35,36,38,.6); color: var(--ex-fg-82); }

.ex-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ex-accent); box-shadow: var(--ex-led); flex: none; }
.ex-dot--halo { width: 8px; height: 8px; box-shadow: 0 0 0 4px var(--ex-a-15), 0 0 12px var(--ex-accent); }
.ex-ring { display: inline-block; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ex-fg-62); flex: none; animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }

/* joined strip (price ticker + VPS stat columns); sits on .ex-card.hl */
.ex-strip { display: grid; grid-template-columns: repeat(var(--cols, 4), minmax(0,1fr)); overflow: hidden; }
.ex-strip__cell { position: relative; display: flex; flex-direction: column; min-width: 0; padding: 18px 22px; transition: background-color var(--ex-dur-3); }
.ex-strip__cell + .ex-strip__cell { border-left: 1px solid var(--ex-line); }
a.ex-strip__cell:hover { background: rgba(35,36,38,.55); }
a.ex-strip__cell::before { content: ""; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--ex-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--ex-dur-5) var(--ex-ease); }
a.ex-strip__cell:hover::before, a.ex-strip__cell:focus-visible::before { transform: scaleX(1); }
a.ex-strip__cell:focus-visible { outline-offset: -2px; }
.ex-strip__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ex-strip__top .i { color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
a.ex-strip__cell:hover .ex-strip__top .i { color: var(--ex-accent); transform: translateX(2px); }
.ex-strip__val { margin-top: 12px; font: 600 24px/1 var(--ex-mono); letter-spacing: -.05em; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ex-strip__val--word { font-family: var(--ex-font); font-weight: 700; letter-spacing: -.03em; }
.ex-strip__val small { margin-left: 5px; font: 400 13px var(--ex-mono); letter-spacing: 0; color: var(--ex-muted); }
.ex-strip__desc { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ex-muted); }
.ex-strip--spec .ex-strip__val { margin-top: 14px; font-size: 30px; letter-spacing: -.06em; }
.ex-strip--spec .ex-strip__val small { font-size: 12px; font-weight: 500; letter-spacing: .02em; }

/* ticker footer strip (price ticker with a label cell) */
.ex-ticker { display: grid; grid-template-columns: auto repeat(3, minmax(0,1fr)); align-items: stretch; border: 1px solid var(--ex-line); border-radius: var(--ex-r-card); background: rgba(23,25,28,.6); overflow: hidden; }
.ex-ticker__label { display: flex; align-items: center; padding: 0 28px 0 22px; border-right: 1px solid var(--ex-line); font: 500 11px/1.4 var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-muted); white-space: nowrap; }
.ex-ticker a { position: relative; display: flex; align-items: baseline; justify-content: center; gap: 10px; padding: 18px 16px; font-size: 14px; color: var(--ex-fg-62); transition: background-color var(--ex-dur-3); }
.ex-ticker a + a { border-left: 1px solid var(--ex-line); }
.ex-ticker a::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--ex-accent); transform: scaleX(0); transform-origin: left; transition: transform var(--ex-dur-5) var(--ex-ease); }
.ex-ticker a:hover { background: rgba(35,36,38,.7); color: var(--ex-fg-82); }
.ex-ticker a:hover::before { transform: scaleX(1); }
.ex-ticker b { font: 600 15px/1 var(--ex-mono); letter-spacing: -.02em; color: #fff; }
.ex-ticker b small { font-size: 11.5px; font-weight: 400; color: var(--ex-fg-58); letter-spacing: 0; }
.ex-ticker .i { align-self: center; width: 14px; height: 14px; color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
.ex-ticker a:hover .i { color: var(--ex-accent); transform: translateX(2px); }

/* key / value list (latency-list recipe): code · label · value · action */
.ex-kv { display: grid; grid-template-columns: repeat(var(--kv-cols, 1), minmax(0,1fr)); }
.ex-kv > div { display: grid; grid-template-columns: 44px minmax(0,1fr) auto auto; align-items: center; gap: 12px; min-height: 50px; padding: 8px 22px; border-bottom: 1px solid var(--ex-line); }
.ex-kv--nocode > div { grid-template-columns: minmax(0,1fr) auto auto; }
.ex-kv > div:last-child { border-bottom: 0; }
.ex-kv__code { font: 400 12.5px/1 var(--ex-mono); color: var(--ex-muted); }
.ex-kv dt { font-size: 14.5px; font-weight: 400; color: var(--ex-fg-82); }
.ex-kv dd { min-width: 0; text-align: right; font-size: 14.5px; font-weight: 500; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ex-kv dd.mono { font-size: 13.5px; font-weight: 600; }
.ex-kv dd a { text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; }
.ex-kv dd a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); }
.ex-kv .ex-iconbtn { width: 28px; height: 28px; margin-right: -6px; }
.ex-kv--top { border-top: 1px solid var(--ex-line); }
/* --copy: a fixed copy slot, so values line up whether a row has a copy button or not */
.ex-kv--copy > div { grid-template-columns: 44px minmax(0,1fr) auto 22px; }
.ex-kv--copy.ex-kv--nocode > div { grid-template-columns: minmax(0,1fr) auto 22px; }
.ex-kv--copy > div > .ex-iconbtn { grid-column: -2; }
@media (min-width: 900px) {
  .ex-kv--2 { --kv-cols: 2; }
  .ex-kv--2 > div:nth-child(odd) { border-right: 1px solid var(--ex-line); }
  .ex-kv--2 > div:nth-last-child(2):nth-child(odd) { border-bottom: 0; }
}

/* facts: small dl used in summaries and invoice parties */
.ex-facts { display: grid; gap: 8px; }
.ex-facts > div { display: flex; justify-content: space-between; gap: 16px; font-size: 13.5px; }
.ex-facts dt { color: var(--ex-muted); }
.ex-facts dd { font: 500 13px var(--ex-mono); color: #fff; text-align: right; }

/* one-line terminal under server lists (SSH command) */
.ex-term { display: flex; align-items: center; gap: 10px; height: 44px; margin: 4px 22px 20px; padding: 0 6px 0 14px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-item); background: rgba(13,15,18,.5); font: 400 13px var(--ex-mono); color: var(--ex-fg-90); }
.ex-term__p { color: var(--ex-accent); }
.ex-term code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: inherit; color: inherit; background: none; border: 0; padding: 0; }

/* tables (theme-owned markup; Blesta .table gets the same recipe in §17.4) */
.ex-table { width: 100%; font-size: 14px; color: var(--ex-fg-82); }
.ex-table th {
  padding: 12px 16px; background: var(--ex-well); border-bottom: 1px solid var(--ex-line); text-align: left; white-space: nowrap;
  font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
.ex-table td { padding: 16px; border-top: 1px solid var(--ex-line); vertical-align: middle; }
.ex-table tbody tr:first-child td { border-top: 0; }
.ex-table th:first-child, .ex-table td:first-child { padding-left: 22px; }
.ex-table th:last-child, .ex-table td:last-child { padding-right: 22px; }
.ex-table tbody tr { transition: background-color var(--ex-dur-3); }
.ex-table tbody tr:hover { background: var(--ex-row-hover); }
.ex-table .r { text-align: end; }
.ex-table .shrink { width: 1%; white-space: nowrap; }
.ex-table--bare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
.ex-table th a { display: inline-flex; align-items: center; gap: 6px; border-radius: 2px; transition: color var(--ex-dur-2); }
.ex-table th a:hover, .ex-table th a.is-sorted { color: #fff; }
.ex-table th a.is-sorted::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ex-fg-82); }
.ex-table th a.is-sorted.asc::after { border-top: 0; border-bottom: 5px solid var(--ex-fg-82); }
/* the ONE attention row (plan-table featured row) */
.ex-table tr.is-attn td { background: var(--ex-a-06); }
.ex-table tr.is-attn td:first-child { position: relative; }
.ex-table tr.is-attn td:first-child::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 2px; background: var(--ex-accent); box-shadow: 0 0 14px var(--ex-accent); }
/* consequence line under a row's primary text */
.ex-consq { position: relative; display: block; margin-top: 4px; padding-left: 18px; font-size: 13px; line-height: 1.45; color: var(--ex-muted); }
.ex-consq::before { content: "└"; position: absolute; left: 0; top: 0; font-family: var(--ex-mono); color: var(--ex-line-strong); }
.ex-consq b { font-weight: 500; color: var(--ex-fg-82); }

/* row identity: icon chip + name + mono sub-line */
.ex-obj { display: flex; align-items: center; gap: 14px; min-width: 0; }
.ex-chip { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: var(--ex-r-item); border: 1px solid var(--ex-line-strong); background: var(--ex-raised); color: #fff; }
.ex-chip--sm { width: 32px; height: 32px; }
.ex-chip--brand { width: 44px; height: 30px; border-radius: var(--ex-r-sm); font: 700 10px/1 var(--ex-mono); letter-spacing: .06em; color: var(--ex-fg-82); }
.ex-obj__text { min-width: 0; }
.ex-obj__name { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
a.ex-obj__name:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
.ex-obj__sub { display: block; margin-top: 2px; font: 400 12.5px/1.35 var(--ex-mono); color: var(--ex-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.ex-rowactions { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
/* row expander (exui.js injects button.ex-iconbtn.ex-iconbtn--bordered.ex-expand into the last cell) */
.ex-expand { vertical-align: middle; }
* + .ex-expand { margin-left: 8px; }
.ex-expand .i { transition: transform var(--ex-dur-3) var(--ex-ease); }
tr.is-expanded .ex-expand, tr.expanded .ex-expand { color: #fff; background: var(--ex-fg-06); }
tr.is-expanded .ex-expand .i, tr.expanded .ex-expand .i { transform: rotate(180deg); }
tr.is-expanded > td { background: rgba(255,255,255,.015); }
tr.ex-details > td { padding: 0 !important; border-top: 1px solid var(--ex-line); background: rgba(13,15,18,.35); }
tr.ex-details:hover { background: transparent !important; }
/* expanded detail = hairline rows, never a box inside the card */
.ex-detail { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: end; gap: 16px 32px; padding: 6px 22px 18px 72px; }
.ex-detail .ex-kv > div { padding-left: 0; padding-right: 0; }
@media (min-width: 900px) { .ex-detail .ex-kv--2 > div:nth-child(odd) { padding-right: 24px; } .ex-detail .ex-kv--2 > div:nth-child(even) { padding-left: 24px; } }
.ex-detail__actions { display: flex; gap: 8px; padding-bottom: 6px; }

/* meters: brand row-meter line (accent/0 → /50 → accent) ending in a glowing dot */
.ex-meter { position: relative; height: 1px; margin-top: 14px; background: var(--ex-line-strong); }
.ex-meter > i { position: absolute; top: 0; bottom: 0; left: 0; width: var(--v); background: linear-gradient(to right, rgba(237,28,36,0), rgba(237,28,36,.5) 45%, var(--ex-accent)); transform-origin: left; }
.ex-meter > i::after { content: ""; position: absolute; right: -3px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-meter--calm > i { background: linear-gradient(to right, rgba(255,255,255,0), rgba(255,255,255,.5)); }
.ex-meter--calm > i::after { background: #fff; box-shadow: 0 0 8px rgba(255,255,255,.5); }
.ex-meterrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.ex-meterrow b { font: 600 13.5px/1 var(--ex-mono); letter-spacing: -.02em; color: #fff; }
.ex-meterrow b small { font-weight: 400; color: var(--ex-muted); }
.ex-progress { height: 2px; border-radius: 9999px; overflow: hidden; background: var(--ex-fg-06); }
.ex-progress > i { display: block; height: 100%; width: var(--v); background: var(--ex-accent); box-shadow: 0 0 10px var(--ex-accent); }

/* checklist rail (setup mockup): done ✓ / run ◉ / wait ○ */
.ex-steps { position: relative; }
.ex-step { position: relative; display: flex; align-items: flex-start; gap: 16px; padding: 9px 0; font: 400 13px/20px var(--ex-mono); color: var(--ex-fg-90); }
.ex-step:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 29px; bottom: -9px; width: 1px; background: var(--ex-line-strong); }
.ex-step[data-state="done"]:not(:last-child)::before { background: var(--ex-accent); box-shadow: var(--ex-led); transform-origin: top; }
.ex-step__node { position: relative; z-index: 1; display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--ex-line-strong); background: var(--ex-surface); transition: border-color var(--ex-dur-3); }
.ex-step__node .i { width: 12px; height: 12px; stroke-width: 3; }
.ex-step[data-state="done"] .ex-step__node { border-color: rgba(255,255,255,.55); }
.ex-step[data-state="run"] .ex-step__node { border-color: var(--ex-accent); }
.ex-step[data-state="run"] .ex-step__node::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: var(--ex-accent); animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.ex-step[data-state="wait"] { color: var(--ex-muted); }
.ex-step__body { min-width: 0; flex: 1; }
.ex-step__when { margin-left: auto; padding-left: 12px; font-size: 12px; color: var(--ex-muted); white-space: nowrap; }
.ex-step small { display: block; margin-top: 1px; font: 400 12.5px/1.45 var(--ex-font); color: var(--ex-muted); }
.ex-step a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.ex-step a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); }
.ex-steps__end { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 16px; border-top: 1px dashed var(--ex-line); font: 600 13px/1.4 var(--ex-mono); color: var(--ex-fg-82); overflow-wrap: anywhere; }

/* timeline (coming up): mono date · text · amount on a quiet rail */
.ex-timeline { position: relative; }
.ex-tl { position: relative; display: grid; grid-template-columns: 20px minmax(0,1fr) auto; gap: 4px 14px; padding: 12px 0; }
.ex-tl:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 30px; bottom: -12px; width: 1px; background: var(--ex-line-strong); }
.ex-tl__node { position: relative; z-index: 1; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%; border: 1px solid var(--ex-line-strong); background: var(--ex-bg); display: grid; place-items: center; }
.ex-tl__node::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ex-line-strong); }
.ex-tl.is-next .ex-tl__node { border-color: rgba(255,255,255,.55); }
.ex-tl.is-next .ex-tl__node::after { background: #fff; }
.ex-tl__date { display: block; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted); }
.ex-tl > span:nth-child(2) { min-width: 0; }
.ex-tl__text { display: block; margin-top: 2px; font-size: 14.5px; line-height: 1.4; color: var(--ex-fg-88); overflow-wrap: anywhere; }
.ex-tl__amt { font: 600 14px/1.4 var(--ex-mono); letter-spacing: -.02em; color: #fff; padding-top: 14px; }
@media (min-width: 768px) {
  .ex-timeline--row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ex-timeline--row .ex-tl { padding: 14px 24px 16px 0; }
  .ex-timeline--row .ex-tl + .ex-tl { padding-left: 24px; border-left: 1px solid var(--ex-line); }
  .ex-timeline--row .ex-tl::before { display: none; }
}

/* prose (ticket bodies, KB articles, announcements; DESIGN §5.23) */
.ex-prose { font-size: 15px; line-height: 1.7; color: var(--ex-fg-82); overflow-wrap: break-word; }
.ex-prose > * + * { margin-top: 14px; }
.ex-prose p { margin: 0; }
.ex-prose strong, .ex-prose b { font-weight: 600; color: #fff; }
.ex-prose a:not(.ex-file):not(.ex-btn) { color: #fff; text-decoration: underline; text-decoration-color: var(--ex-a-60); text-underline-offset: .22em; }
.ex-prose a:not(.ex-file):not(.ex-btn):hover { color: var(--ex-accent); text-decoration: underline; }
.ex-prose code { padding: 2px 6px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-sm); background: rgba(13,15,18,.5); font: 400 .86em var(--ex-mono); color: #fff; overflow-wrap: anywhere; }
.ex-prose pre { margin: 0; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: rgba(13,15,18,.6); font: 400 12.5px/1.75 var(--ex-mono); color: var(--ex-fg-90); white-space: pre; }
.ex-prose pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.ex-prose pre .c { color: var(--ex-muted); }
.ex-prose ul { display: grid; gap: 8px; padding: 0; list-style: none; }
.ex-prose ul li { position: relative; padding-left: 22px; }
.ex-prose ul li::before { content: ""; position: absolute; left: 0; top: calc(.85em - 2px); width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }
.ex-prose ol { padding-left: 22px; list-style: decimal; }
.ex-prose ol li::marker { font: 500 .85em var(--ex-mono); color: var(--ex-muted); }
.ex-prose blockquote { position: relative; margin: 0; padding: 4px 0 4px 24px; font-size: 16px; color: var(--ex-fg-90); }
.ex-prose blockquote::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--ex-accent), var(--ex-a-15)); box-shadow: 0 0 12px var(--ex-accent); }
.ex-prose h2 { margin-top: 40px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: #fff; }
.ex-prose h3 { margin-top: 28px; font-size: 19px; line-height: 1.3; font-weight: 700; color: #fff; }
.ex-prose h4 { margin-top: 24px; font-size: 16px; line-height: 1.35; font-weight: 700; color: #fff; }
.ex-prose img { height: auto; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); }
.ex-prose hr { margin: 28px 0; border: 0; border-top: 1px solid var(--ex-line); }
.ex-prose table { width: 100%; font-size: 14px; }
.ex-prose th, .ex-prose td { padding: 10px 12px; border-bottom: 1px solid var(--ex-line); text-align: left; }
.ex-prose th { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
.ex-prose--kb { font-size: 17px; line-height: 1.75; color: var(--ex-fg-72); }
.ex-file { display: inline-flex; align-items: center; gap: 8px; height: 32px; max-width: 100%; padding: 0 12px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint); font: 400 12.5px var(--ex-mono); color: var(--ex-fg-82); transition: border-color var(--ex-dur-2); }
.ex-file:hover { border-color: var(--ex-a-50); color: #fff; }
.ex-file .i { color: var(--ex-muted); }
.ex-file span { color: var(--ex-muted); }

/* ---------- 10 Forms --------------------------------------------------- */
.ex-form { display: grid; gap: 20px; }
.ex-form__grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; }
.ex-form__grid .span2 { grid-column: 1 / -1; }
.ex-field { min-width: 0; }
.ex-flabel { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ex-flabel label, .ex-flabel .ex-flabel__t { display: inline; margin: 0; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-fg-82); }
.ex-flabel .opt { color: var(--ex-muted); letter-spacing: .1em; }
.ex-flabel a { font-size: 13px; }
.ex-input {
  display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field);
  background: var(--ex-raised); color: #fff; font: 400 15px/1.4 var(--ex-font); outline: none; caret-color: var(--ex-accent);
  transition: border-color var(--ex-dur-2), box-shadow var(--ex-dur-2);
}
.ex-input--sm { height: 44px; font-size: 14px; }
.ex-input--mono { font-family: var(--ex-mono); letter-spacing: -.01em; }
.ex-input::placeholder { color: var(--ex-fg-58); opacity: 1; }
.ex-input:hover { border-color: var(--ex-fg-20); }
.ex-input:focus { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
.ex-input:disabled, .ex-input[readonly] { background: rgba(35,36,38,.45); color: var(--ex-fg-72); border-color: var(--ex-line); }
.ex-input.is-invalid { border-color: var(--ex-accent); box-shadow: var(--ex-ring); }
textarea.ex-input { height: auto; min-height: 132px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
select.ex-input {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background: var(--ex-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898a8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 16px center / 14px no-repeat;
}
select.ex-input option, select.ex-input optgroup { background: var(--ex-surface); color: #fff; }
.ex-help { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ex-fg-58); }
.ex-error { display: flex; align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #fff; }
.ex-error::before { content: ""; flex: none; width: 10px; height: 4px; margin-top: calc(.725em - 2px); background: var(--ex-accent); transform: skewX(35deg); }

/* input group: one field, affixes inside (currency, unit) */
.ex-inputgroup { display: flex; align-items: stretch; height: 50px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-raised); transition: border-color var(--ex-dur-2), box-shadow var(--ex-dur-2); }
.ex-inputgroup:hover { border-color: var(--ex-fg-20); }
.ex-inputgroup:focus-within { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
.ex-inputgroup__affix { display: flex; align-items: center; padding: 0 14px; font: 500 13px/1 var(--ex-mono); letter-spacing: .04em; color: var(--ex-muted); }
.ex-inputgroup__affix:first-child { padding-right: 0; }
.ex-inputgroup__affix:last-child { border-left: 1px solid var(--ex-line); }
.ex-inputgroup input { flex: 1; min-width: 0; height: 100%; padding: 0 12px; border: 0; background: transparent; outline: none; font: 500 15px var(--ex-mono); letter-spacing: -.01em; color: #fff; caret-color: var(--ex-accent); }
.ex-inputgroup .ex-btn { align-self: center; margin-right: 5px; }

/* search pill (domain-search recipe, toolbar size) */
.ex-search {
  display: flex; align-items: center; gap: 10px; height: 40px; width: 300px; min-width: 0; padding: 0 14px;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: rgba(35,36,38,.85);
  transition: border-color var(--ex-dur-3), box-shadow var(--ex-dur-3);
}
.ex-search .i { color: var(--ex-muted); transition: color var(--ex-dur-2); }
.ex-search:hover { border-color: var(--ex-fg-20); }
.ex-search:focus-within { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
.ex-search:focus-within .i { color: #fff; }
.ex-search input { flex: 1; width: 0; min-width: 0; height: 100%; border: 0; background: transparent; outline: none; font: 400 13.5px var(--ex-mono); letter-spacing: -.01em; color: #fff; caret-color: var(--ex-accent); text-overflow: ellipsis; }
.ex-search input::placeholder { color: var(--ex-fg-58); }
.ex-search--lg { width: 100%; height: 58px; padding: 6px 6px 6px 20px; }
.ex-search--lg input { font-size: 16px; }

/* check square (Fast-setup checklist marker) and radio */
.ex-checkrow { display: flex; align-items: center; gap: 12px; min-height: 24px; font-size: 14.5px; color: var(--ex-fg-88); cursor: pointer; }
.ex-checkbox {
  -webkit-appearance: none; appearance: none; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 0;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-sm); background: var(--ex-raised); cursor: pointer;
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
.ex-checkbox:hover { border-color: rgba(255,255,255,.25); }
.ex-checkbox:checked {
  border-color: var(--ex-a-35);
  background: var(--ex-a-10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ed1c24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ex-checkbox:indeterminate { border-color: var(--ex-a-35); background: var(--ex-a-10) linear-gradient(var(--ex-accent), var(--ex-accent)) center / 10px 2px no-repeat; }
.ex-checkbox:focus-visible, .ex-radio:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
.ex-radio {
  -webkit-appearance: none; appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 50%;
  border: 1px solid var(--ex-line-strong); background: var(--ex-raised); cursor: pointer; transition: border-color var(--ex-dur-2), box-shadow var(--ex-dur-2);
}
.ex-radio:checked { border-color: var(--ex-accent); background: radial-gradient(circle, var(--ex-accent) 0 4px, transparent 4.6px), var(--ex-raised); box-shadow: 0 0 10px rgba(237,28,36,.3); }

/* choice tile: radio drawn as a selectable row (pay methods, cancel options) */
.ex-choices { display: grid; gap: 10px; }
.ex-choice {
  position: relative; display: grid; grid-template-columns: 20px 44px minmax(0,1fr) auto; align-items: center; gap: 14px;
  padding: 16px 18px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: rgba(255,255,255,.015);
  cursor: pointer; transition: border-color var(--ex-dur-3), background-color var(--ex-dur-3);
}
.ex-choice--nomark { grid-template-columns: 20px minmax(0,1fr) auto; }
.ex-choice:hover { border-color: var(--ex-fg-20); }
.ex-choice:has(.ex-radio:checked), .ex-choice:has(.ex-checkbox:checked), .ex-choice.is-checked { border-color: var(--ex-a-45); background: var(--ex-a-06); }
.ex-choice:has(.ex-radio:focus-visible) { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
.ex-choice .ex-radio:focus-visible { outline: none; }
.ex-choice.is-disabled { cursor: default; background: transparent; border-style: dashed; }
.ex-choice.is-disabled .ex-choice__t, .ex-choice.is-disabled .ex-chip--brand { opacity: .55; }
.ex-choice__body { min-width: 0; }
.ex-choice__t { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
.ex-choice__t .num { font-size: 14px; font-weight: 500; }
.ex-choice__s { display: block; margin-top: 3px; font: 400 12.5px/1.45 var(--ex-mono); color: var(--ex-muted); }
.ex-choice__end { font: 500 10.5px/1 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }

/* switch (large settings toggle) */
.ex-switch { position: relative; display: inline-flex; flex: none; cursor: pointer; }
.ex-switch input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; opacity: 0; margin: 0; cursor: pointer; }
.ex-switch__track { position: relative; width: 36px; height: 20px; border-radius: 9999px; border: 1px solid var(--ex-line-strong); background: var(--ex-raised); transition: background-color var(--ex-dur-3), border-color var(--ex-dur-3); }
.ex-switch__track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(13,15,18,.7); transition: transform var(--ex-dur-5) var(--ex-ease); }
.ex-switch input:checked + .ex-switch__track { border-color: var(--ex-a-60); background: rgba(237,28,36,.85); }
.ex-switch input:checked + .ex-switch__track::after { transform: translateX(16px); }
.ex-switch input:focus-visible + .ex-switch__track { outline: 2px solid var(--ex-accent); outline-offset: 3px; }

/* settings row (portal mockup "every feature unlocked" list) */
.ex-setting { display: flex; align-items: center; gap: 16px; min-height: 64px; padding: 14px 22px; }
.ex-setting + .ex-setting { border-top: 1px solid var(--ex-line); }
.ex-setting__text { flex: 1; min-width: 0; }
.ex-setting__t { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; color: #fff; }
.ex-setting__s { display: block; margin-top: 3px; font-size: 13px; line-height: 1.45; color: var(--ex-muted); }

/* dropzone (ticket attachments; Blesta .drag-drop, §17.16) */
.ex-drop { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 12px 16px; border: 1px dashed var(--ex-line-strong); border-radius: var(--ex-r-field); font-size: 13.5px; color: var(--ex-fg-62); transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2); }
.ex-drop:hover, .ex-drop.is-over { border-color: var(--ex-a-50); background: var(--ex-a-06); }
.ex-drop .i { color: var(--ex-muted); }

/* action bar at the end of long forms (sticky on phones, §15) */
.ex-formbar { display: flex; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 8px; padding-top: 20px; border-top: 1px solid var(--ex-line); }
.ex-formbar__note { margin-right: auto; font-size: 13px; color: var(--ex-fg-58); }

/* ---------- 11 Feedback ------------------------------------------------ */
/* alerts (message.pdt): panel + 2px left bar; no icons-as-colour, no triangles */
.ex-alert {
  position: relative; display: flex; align-items: center; gap: 16px; padding: 14px 16px 14px 22px; overflow: hidden;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-surface);
}
.ex-alert::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ex-line-strong); }
.ex-alert__text { flex: 1; min-width: 0; font-size: 14.5px; line-height: 1.5; color: var(--ex-fg-72); }
.ex-alert__text b, .ex-alert__text strong { font-weight: 600; color: #fff; }
.ex-alert__text a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.ex-alert__text a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); }
.ex-alert__title { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.ex-alert__actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ex-alert__close { margin: -4px -4px -4px 0; }
.ex-alert--attn { border-color: var(--ex-a-35); background: linear-gradient(var(--ex-a-06), var(--ex-a-06)), var(--ex-surface); }
.ex-alert--attn::before { background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-alert--done::before { background: rgba(255,255,255,.55); }
.ex-alert--done .ex-alert__mark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: var(--ex-r-sm); border: 1px solid var(--ex-fg-22); color: #fff; flex: none; }
.ex-alert--done .ex-alert__mark .i { width: 14px; height: 14px; stroke-width: 2.6; }
.ex-alerts { display: grid; gap: 12px; margin-top: var(--ex-gap); }

/* email-confirmation banner (structure.pdt, exui_email_gate_html()): the shell's one
   "needs you" panel, above the page head on every signed-in page while the account
   email is unconfirmed. The attn recipe made louder (3px LED bar, red-tinted wash, icon
   tile); its buttons stay secondary, so the page primary keeps the one solid red. */
.ex-gate {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 22px;
  margin: 32px 0 24px; padding: 24px 24px 24px 28px; overflow: hidden;
  border: 1px solid var(--ex-a-35); border-radius: var(--ex-r-card);
  background: linear-gradient(90deg, var(--ex-a-12), var(--ex-a-06) 60%), var(--ex-surface);
}
.ex-gate::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--ex-accent); box-shadow: var(--ex-led); }
.ex-gate--hold { border-color: var(--ex-a-50); box-shadow: var(--ex-glow); }
.ex-gate__icon { display: grid; place-items: center; align-self: start; width: 52px; height: 52px; border: 1px solid var(--ex-a-45); border-radius: var(--ex-r-field); background: var(--ex-a-12); color: var(--ex-fg); }
.ex-gate__icon .i { width: 24px; height: 24px; }
.ex-gate__body { min-width: 0; }
.ex-gate__kicker { margin: 0 0 8px; color: var(--ex-fg-82); }
.ex-gate__title { margin: 0; font-size: 21px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; color: var(--ex-fg); text-wrap: balance; }
.ex-gate__text { max-width: 78ch; margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: var(--ex-fg-82); }
.ex-gate__text b { font-weight: 600; color: var(--ex-fg); }
.ex-gate__email { font-size: 14px; font-weight: 500; color: var(--ex-fg); overflow-wrap: anywhere; }
.ex-gate__help { max-width: 78ch; margin: 6px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ex-fg-62); }
.ex-gate__actions { display: flex; flex-direction: column; align-items: stretch; gap: 8px; }
.ex-gate + .ex-pagehead { padding-top: 8px; }   /* with the banner's 24px: the page head's 32px */

/* empty state: dot-grid well + kicker + h3 + one action */
.ex-empty { position: relative; display: grid; justify-items: center; gap: 10px; padding: 56px 24px 52px; text-align: center; isolation: isolate; }
.ex-empty::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(circle, var(--ex-line) 1px, transparent 1.5px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 45%, #000, transparent); mask-image: radial-gradient(ellipse 60% 80% at 50% 45%, #000, transparent);
}
.ex-empty .ex-chip { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px; }
.ex-empty .ex-chip .i { width: 20px; height: 20px; stroke-width: 1.75; }
.ex-empty h3 { font-size: var(--ex-fs-h3); line-height: 1.25; letter-spacing: -.02em; }
.ex-empty p:not(.ex-kicker) { max-width: 44ch; font-size: 14.5px; line-height: 1.55; color: var(--ex-muted); }
.ex-empty .ex-btn { margin-top: 12px; }

/* skeleton (exui-loading.js): raised blocks, slow pulse */
.ex-skel { display: block; border-radius: var(--ex-r-sm); background: var(--ex-raised); animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.ex-skel--line { height: .7em; }
.ex-skel--val { height: 24px; width: 60%; }
.ex-skel--pill { height: 22px; width: 72px; border-radius: 9999px; }
.ex-skel--chip { width: 36px; height: 36px; border-radius: var(--ex-r-item); }
.ex-skelrow { display: grid; grid-template-columns: 36px minmax(0,1fr) 72px 64px; align-items: center; gap: 16px; padding: 18px 22px; border-top: 1px solid var(--ex-line); }
.ex-skelrow:first-child { border-top: 0; }

/* modal parts for theme-owned dialog markup inside Bootstrap's .modal-content
   (the frame, backdrop and blade are bridged in §17.11) */
.ex-modal { position: relative; width: min(560px, calc(100vw - 32px)); margin: 0 auto; }
.ex-modal .ex-window__frame { border-radius: var(--ex-r-card); border-top-right-radius: 0; }
.ex-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 24px 24px 0; }
.ex-modal__head h2 { margin-top: 12px; font-size: 24px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: #fff; }
.ex-modal__body { padding: 16px 24px 24px; font-size: 14.5px; line-height: 1.6; color: var(--ex-fg-72); }
.ex-modal__foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--ex-line); background: rgba(13,15,18,.3); }
.ex-backdrop { position: fixed; inset: 0; z-index: calc(var(--ex-z-modal) - 1); background: var(--ex-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

/* toast: one quiet confirmation (copied, saved) bottom-centre */
.ex-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: var(--ex-z-toast); display: inline-flex; align-items: center; gap: 10px;
  height: 40px; padding: 0 16px 0 12px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  background: rgba(23,25,28,.95); box-shadow: var(--ex-shadow-pop); font-size: 13.5px; font-weight: 500; color: #fff; white-space: nowrap;
  transform: translate(-50%, 16px); opacity: 0; pointer-events: none; transition: opacity var(--ex-dur-2) ease-out, transform var(--ex-dur-3) var(--ex-ease);
}
.ex-toast .i { color: var(--ex-accent); stroke-width: 2.6; width: 14px; height: 14px; }
.ex-toast.is-in { opacity: 1; transform: translate(-50%, 0); }
body.has-dock .ex-toast { bottom: calc(var(--ex-dock-h) + 16px); }

/* tooltip (Bootstrap .tooltip-inner gets the same look in §17.13) */
.ex-tooltip { position: absolute; z-index: var(--ex-z-toast); max-width: 260px; padding: 8px 10px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); background: var(--ex-raised); box-shadow: var(--ex-shadow-pop); font-size: 12.5px; line-height: 1.45; color: var(--ex-fg-88); }

/* loading veil (exui-loading.js generic case; root keeps .loading_container) */
.ex-loading { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: rgba(13,15,18,.6); border-radius: inherit; }

/* clickable card: brand .card-glow — red light rises from the bottom-left */
.ex-card--glow { isolation: isolate; transition: border-color var(--ex-dur-3); }
.ex-card--glow::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .4s;
  background: radial-gradient(120% 95% at 0% 100%, rgba(237,28,36,.20) 0%, rgba(237,28,36,.07) 42%, transparent 74%); }
.ex-card--glow:hover, .ex-card--glow:focus-within { border-color: rgba(237,28,36,.40); }
.ex-card--glow:hover::before, .ex-card--glow:focus-within::before { opacity: 1; }

/* 2FA QR (chillerlan PNG is transparent): white plate */
.ex-qr { display: block; width: 200px; max-width: 100%; height: auto; padding: 16px; border-radius: var(--ex-r-field); background: #fff; image-rendering: pixelated; }

/* spinner (route loader peers with nprogress) */
.ex-spinner { display: inline-block; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--ex-line-strong); border-top-color: var(--ex-accent); animation: ex-spin .6s linear infinite; vertical-align: middle; }

/* ---------- 12 Navigation bits ---------------------------------------- */
/* pagination: pill page links; active = tinted, never a solid red disc */
.ex-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ex-pages a, .ex-pages span { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 10px; border-radius: var(--ex-r-pill); border: 1px solid var(--ex-line-strong); background: var(--ex-tint); font: 500 12.5px/1 var(--ex-mono); color: var(--ex-fg-82); transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2), color var(--ex-dur-2); }
.ex-pages a:hover { border-color: var(--ex-a-50); background: var(--ex-a-08); color: #fff; }
.ex-pages [aria-current] { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
.ex-pages .is-gap { border: 0; background: none; min-width: 16px; padding: 0; color: var(--ex-muted); }

/* segmented filter (nested status filter inside a card): neutral active */
.ex-seg { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.ex-seg__item {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border-radius: var(--ex-r-pill);
  border: 1px solid var(--ex-line-strong); font-size: 13px; font-weight: 500; color: var(--ex-muted); white-space: nowrap;
  transition: color var(--ex-dur-2), border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
.ex-seg__item .num { font-size: 11px; }
.ex-seg__item:hover { color: #fff; border-color: rgba(255,255,255,.25); }
.ex-seg__item.is-active, .ex-seg__item[aria-current] { border-color: var(--ex-fg-22); background: var(--ex-raised); color: #fff; }

/* list toolbar: status tabs (left) + search + filter (right), inside the widget card */
.ex-list__bar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 0 22px; border-bottom: 1px solid var(--ex-line); }
.ex-list__bar .ex-tabs { margin: 0; border: 0; gap: 0 28px; }
.ex-list__bar .ex-tab { height: 58px; }
.ex-list__bar--seg { align-items: center; padding-top: 9px; padding-bottom: 9px; min-height: 58px; }
.ex-list__tools { display: flex; align-items: center; gap: 10px; padding: 9px 0; }
.ex-listbar { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-top: 32px; border-bottom: 1px solid var(--ex-line); }
.ex-listbar .ex-tabs { margin-top: 0; border-bottom: 0; }
.ex-listbar__tools { display: flex; align-items: center; gap: 10px; padding-bottom: 8px; }
.ex-listfoot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 22px; border-top: 1px solid var(--ex-line); font: 400 12px/1.4 var(--ex-mono); color: var(--ex-muted); }
.ex-filters { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; align-items: end; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--ex-line); background: var(--ex-well); }

/* action list (list-group recipe): icon · label + hint · chevron */
.ex-actions { border-top: 1px solid var(--ex-line); }
.ex-actions--flush { border-top: 0; }
.ex-action {
  display: flex; align-items: center; gap: 14px; width: 100%; min-height: 56px; padding: 10px 22px; border-bottom: 1px solid var(--ex-line);
  font-size: 15px; color: var(--ex-fg-88); text-align: left; transition: background-color var(--ex-dur-3), color var(--ex-dur-2);
}
.ex-action:last-child { border-bottom: 0; }
.ex-action > .i:first-child { color: var(--ex-muted); }
.ex-action__text { flex: 1; min-width: 0; }
.ex-action__text small { display: block; margin-top: 2px; font: 400 12px/1.4 var(--ex-mono); color: var(--ex-muted); }
.ex-action .ex-chev { color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
a.ex-action:hover, button.ex-action:hover { background: var(--ex-row-hover); color: #fff; }
a.ex-action:hover .ex-chev, button.ex-action:hover .ex-chev { color: var(--ex-accent); transform: translateX(2px); }
.ex-action:focus-visible { outline-offset: -2px; }
.ex-action.is-locked { color: var(--ex-fg-58); cursor: default; }
.ex-action.is-locked > .i:first-child { color: var(--ex-line-strong); }

/* sub-nav (portal mockup sidebar) — secondary navigation inside Account */
.ex-subnav { display: grid; gap: 2px; padding: 16px 12px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: linear-gradient(rgba(13,15,18,.35), rgba(13,15,18,.35)), var(--ex-surface); }
.ex-subnav__label { padding: 6px 10px 8px; font: 500 10px/1.4 var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: rgba(137,138,140,.8); }
.ex-subnav__label:not(:first-child) { margin-top: 12px; }
.ex-subnav__item { position: relative; display: flex; align-items: center; gap: 11px; height: 36px; padding: 0 10px; border-radius: var(--ex-r-item); font-size: 14px; font-weight: 500; color: var(--ex-muted); transition: color var(--ex-dur-2), background-color var(--ex-dur-2); }
.ex-subnav__item:hover { background: var(--ex-tint); color: #fff; }
.ex-subnav__item:is([aria-current="page"], .is-active, .active) { background: var(--ex-raised); color: #fff; }   /* .active: Bootstrap tab toggles */
.ex-subnav__item:is([aria-current="page"], .is-active, .active)::before { content: ""; position: absolute; top: 9px; bottom: 9px; left: -12px; width: 2px; border-radius: 9999px; background: var(--ex-accent); }
.ex-subnav__item .ex-count { margin-left: auto; }

/* ---------- 14 Motion -------------------------------------------------- */
@keyframes ex-pulse { 50% { opacity: .5; } }
@keyframes ex-spin { to { transform: rotate(360deg); } }
@keyframes ex-fade-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ex-grow-x { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ex-grow-y { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ex-ignite { 0%, 20% { opacity: 0; } 30% { opacity: 1; } 38% { opacity: .35; } 52%, 100% { opacity: 1; } }
@view-transition { navigation: auto; }
/* No view-transition-name on .ex-header: a named element is a backdrop root,
   so the scrolled header's and the popovers' backdrop-filter would only see
   the header itself and page text would show through them unblurred. The
   header cross-fades with the page instead. */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }
@media (prefers-reduced-motion: no-preference) {
  .ex-rise { animation: ex-fade-up .6s var(--ex-ease) both; animation-delay: var(--d, 0ms); }
  .ex-meter > i { animation: ex-grow-x 1s var(--ex-ease) .15s both; }
  .ex-step[data-state="done"]:not(:last-child)::before { animation: ex-grow-y 1.1s var(--ex-ease) .3s both; }
  .ex-window:not(.is-calm) .ex-blade { animation: ex-ignite 1.2s ease-out .35s both; }    /* lit blade flickers on once */
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .ex-btn--primary::after { display: none; }
  @view-transition { navigation: none; }
}

/* ---------- 15 Responsive (shell + components) ------------------------- */
@media screen and (max-width: 1179.98px) {
  .ex-nav { gap: 24px; }
  :root { --ex-aside: 336px; }
}
@media screen and (max-width: 1023.98px) {
  .ex-nav, .ex-desk-only { display: none !important; }
  .ex-menubtn { display: block; }
  .ex-layout, .ex-layout--even { grid-template-columns: minmax(0,1fr); }
  .ex-sticky { position: static; }
  .ex-strip { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ex-strip__cell:nth-child(odd) { border-left: 0; }
  .ex-strip__cell:nth-child(n+3) { border-top: 1px solid var(--ex-line); }
  .ex-strip--spec { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ex-strip--spec .ex-strip__cell { border-left: 1px solid var(--ex-line); border-top: 0; }
  .ex-strip--spec .ex-strip__cell:nth-child(3n+1) { border-left: 0; }
  .ex-strip--spec .ex-strip__cell:nth-child(n+4) { border-top: 1px solid var(--ex-line); }
  .ex-ticker { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .ex-ticker__label { grid-column: 1 / -1; padding: 12px 22px; border-right: 0; border-bottom: 1px solid var(--ex-line); }
  .ex-ticker a:nth-child(2) { border-left: 0; }
  .ex-filters { grid-template-columns: repeat(2, minmax(0,1fr)); }
  /* sub-nav → the pill grid above the content (DESIGN §7.8) */
  .ex-subnav { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 8px; padding: 0; border: 0; border-radius: 0; background: none; }
  .ex-subnav__label { display: none; }
  .ex-subnav__item { justify-content: center; gap: 7px; height: 40px; padding: 0 12px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); font-size: 13px; text-align: center; }
  .ex-subnav__item:hover { border-color: rgba(255,255,255,.25); background: transparent; }
  .ex-subnav__item:is([aria-current="page"], .is-active, .active) { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
  .ex-subnav__item:is([aria-current="page"], .is-active, .active)::before { display: none; }
  .ex-subnav__item .ex-count { margin-left: 0; }
}
@media screen and (max-width: 767.98px) {
  .ex-main { padding-bottom: 72px; }
  body.has-dock .ex-main { padding-bottom: calc(var(--ex-dock-h) + 40px); }
  .ex-pagehead { padding-top: 28px; }
  .ex-main > .ex-pagehead { margin-bottom: 24px; }
  .ex-pagehead__grid { grid-template-columns: minmax(0,1fr); }
  .ex-pagehead__actions { padding-bottom: 0; }
  .ex-pagehead__actions .ex-btn { height: 44px; }
  .ex-pagehead__actions .ex-btn--primary { flex: 1 1 auto; height: 50px; font-size: 15px; }
  .ex-pagehead__actions:has(.ex-btn--primary) .ex-btn--secondary { flex: 0 1 auto; height: 50px; }
  .ex-meta__sep { display: none; }
  .ex-kicker { font-size: 11px; gap: 10px; }
  .ex-kicker a { display: inline-block; padding: 13px 0; margin: -13px 0; }   /* 40px tap height, the line does not move */
  .ex-lede { font-size: 15.5px; }
  .ex-ident { gap: 14px; }
  .ex-ident .ex-chip { width: 44px; height: 44px; }
  .ex-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  .ex-action.is-locked { flex-wrap: wrap; }
  .ex-action.is-locked > .ex-go { flex-basis: 100%; padding-left: 30px; }
  .ex-subnav { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ex-subnav__item > .i { display: block; flex: none; width: 14px; height: 14px; }   /* the 2-column pill grid keeps a 14px icon, as .ex-tab does (§4.3) */

  /* second-level nav → the mockup's 2-column pill grid (never a clipped scroller) */
  .ex-tabs { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 24px; border-bottom: 0; }
  .ex-tab { justify-content: center; height: 40px; padding: 0 12px; gap: 7px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); font-size: 13px; color: var(--ex-muted); white-space: normal; text-align: center; line-height: 1.2; }
  .ex-tab:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ex-tab::after { display: none; }
  .ex-tab > .i { display: block; }
  .ex-tab:hover { border-color: rgba(255,255,255,.25); color: #fff; }
  .ex-tab.is-active, .ex-tab[aria-current="page"] { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
  .ex-tab:focus-visible { outline-offset: 2px; }

  .ex-list__bar { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 20px; }
  .ex-list__bar .ex-tabs { margin: 0; gap: 8px; }
  .ex-list__bar .ex-tab { height: 40px; }
  .ex-list__tools { padding: 0; }
  .ex-listbar { flex-direction: column; align-items: stretch; gap: 12px; border-bottom: 0; }
  .ex-search { flex: 1; width: auto; }
  .ex-filters { grid-template-columns: minmax(0,1fr); padding: 16px 20px; }
  .ex-listfoot { flex-wrap: wrap; padding: 12px 20px; }

  .ex-stepper { margin-top: 24px; }
  .ex-step-h { padding-right: 8px; }
  .ex-step-h::before { left: 40px; right: 4px; }
  .ex-step-h__t { font-size: 13px; }
  .ex-step-h__s { display: none; }
  .ex-step-h.is-current .ex-step-h__s, .ex-step-h.is-done .ex-step-h__s { display: block; font-size: 11.5px; }

  .ex-alert { flex-wrap: wrap; padding: 16px 16px 16px 20px; }
  /* the dismiss button stays top-right instead of wrapping onto its own line */
  .ex-alert--closable { padding-right: 48px; }
  .ex-alert--closable > .ex-alert__close { position: absolute; top: 10px; right: 8px; margin: 0; }
  .ex-alert__actions { width: 100%; }
  .ex-alert__actions .ex-btn { flex: 1; height: 44px; }
  .ex-gate { grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; margin: 20px 0; padding: 20px 18px 20px 22px; }
  .ex-gate__icon { width: 40px; height: 40px; }
  .ex-gate__icon .i { width: 20px; height: 20px; }
  .ex-gate__title { font-size: 18px; }
  .ex-gate__text { font-size: 14.5px; }
  .ex-gate__actions { grid-column: 1 / -1; }
  .ex-gate__actions .ex-btn { height: 44px; }
  .ex-gate + .ex-pagehead { padding-top: 4px; }

  /* tables → stacked rows: status, identity, then one data line with the action */
  .ex-table--stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  /* the clipped head comes back as a sort bar while one of its links has focus (WCAG 2.4.7) */
  .ex-table--stack thead:focus-within { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; border-bottom: 1px solid var(--ex-line); background: var(--ex-well); }
  .ex-table--stack thead:focus-within tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 0 20px; }
  .ex-table--stack thead:focus-within th { display: none; padding: 0; border: 0; background: none; }
  .ex-table--stack thead:focus-within th:has(a) { display: block; }
  .ex-table--stack thead:focus-within th a { min-height: 40px; }
  .ex-table--stack, .ex-table--stack tbody { display: block; }
  .ex-table--stack tr:not(.ex-details) { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) auto; align-items: start; gap: 12px 16px; padding: 18px 20px; border-top: 1px solid var(--ex-line); }
  .ex-table--stack tbody tr:first-child { border-top: 0; }
  .ex-table--stack td { display: block; width: auto !important; min-width: 0; padding: 0 !important; border: 0 !important; background: transparent !important; }
  .ex-table--stack td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 5px; font: 500 10px/1.3 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
  .ex-table--stack td.cell-main { grid-column: 1 / -1; order: -2; }
  .ex-table--stack td.cell-status { grid-column: 1 / -1; order: -3; }
  .ex-table--stack td.cell-opt { display: none; }
  .ex-table--stack td.cell-actions { grid-column: 1 / -1; }
  .ex-table--stack td.cell-actions .ex-rowactions { justify-content: flex-start; gap: 8px; }
  .ex-table--stack td.cell-actions .ex-btn--xs { height: 40px; padding: 0 18px; font-size: 14px; flex: 1; }
  .ex-table--stack td.cell-actions .ex-go { min-height: 40px; }
  .ex-table--stack td.cell-actions .ex-iconbtn { width: 40px; height: 40px; }
  .ex-table--stack .r { text-align: start; }
  .ex-table--stack .ex-obj__name, .ex-table--stack .ex-obj__sub { white-space: normal; overflow-wrap: anywhere; }
  .ex-table--stack tr.is-attn { background: var(--ex-a-06); box-shadow: inset 2px 0 0 var(--ex-accent); }
  .ex-table--stack tr.is-attn td:first-child::before { display: none; }
  .ex-table--stack tr.ex-details { display: block; }
  .ex-table--stack tr.ex-details[hidden] { display: none; }
  .ex-table--stack tr.ex-details > td { display: block; }
  /* Blesta's details rows (tr.expand_details) stay hidden until the row
     toggle shows them (jQuery writes display:table-row / none inline); shown,
     the pane is one full-width block under its stacked row */
  .ex-table--stack tr.expand_details { display: none; padding: 0; }
  .ex-table--stack tr.expand_details:is([style*="table-row"], [style*="block"]) { display: block !important; }   /* answers the inline display */
  .ex-table--stack tr.expand_details > td { display: block; width: auto; }

  .ex-detail { grid-template-columns: minmax(0,1fr); padding: 4px 20px 18px; }
  .ex-detail__actions .ex-btn { flex: 1; height: 44px; }
  .ex-kv > div { padding: 8px 20px; gap: 10px; grid-template-columns: 36px minmax(0,1fr) auto; }
  .ex-kv > div > dt { grid-column: 2; }
  .ex-kv > div > dd { grid-column: 2 / 4; grid-row: 2; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .ex-kv > div > .ex-kv__code { grid-row: 1 / 3; align-self: start; padding-top: 3px; }
  .ex-kv > div > .ex-iconbtn { grid-column: 3; grid-row: 1 / 3; align-self: center; }
  .ex-kv--nocode > div { grid-template-columns: minmax(0,1fr) auto; }
  .ex-kv--nocode > div > dt { grid-column: 1; }
  .ex-kv--nocode > div > dd { grid-column: 2; grid-row: 1; text-align: right; }
  /* --copy (DESIGN §5.10): the value drops under its label, the 40px copy button is centred on the pair */
  .ex-kv--copy.ex-kv--nocode > div { grid-template-columns: minmax(0,1fr) 40px; grid-template-rows: auto auto; row-gap: 3px; }
  .ex-kv--copy.ex-kv--nocode > div > dt { grid-column: 1; grid-row: 1; }
  .ex-kv--copy.ex-kv--nocode > div > dd { grid-column: 1; grid-row: 2; text-align: left; white-space: normal; overflow-wrap: anywhere; }
  .ex-kv--copy.ex-kv--nocode > div > .ex-iconbtn { grid-column: 2; grid-row: 1 / 3; align-self: center; width: 40px; height: 40px; margin: 0 -10px 0 0; }
  .ex-detail .ex-kv > div { padding-left: 0; padding-right: 0; }
  .ex-term { margin: 4px 20px 18px; }
  .ex-card__head, .ex-card__foot { padding-left: 20px; padding-right: 20px; }
  .ex-card__foot { flex-wrap: wrap; }
  .ex-card__body { padding: 20px; }
  .ex-window__bar { padding: 0 14px; }
  .ex-strip__cell { padding: 16px 18px; }

  .ex-choice { grid-template-columns: 20px 44px minmax(0,1fr); padding: 14px 16px; }
  .ex-choice--nomark { grid-template-columns: 20px minmax(0,1fr); }
  .ex-choice > :last-child:not(.ex-choice__body) { grid-column: 3; justify-self: start; }
  .ex-choice--nomark > :last-child:not(.ex-choice__body) { grid-column: 2; }
  .ex-choice > span:empty:not(.ex-radio) { display: none; }

  .ex-ticker { grid-template-columns: minmax(0,1fr); }
  .ex-ticker a, .ex-ticker a + a { justify-content: space-between; border-left: 0; border-top: 1px solid var(--ex-line); }
  .ex-ticker a:nth-child(2) { border-top: 0; }

  .ex-dock { display: block; }
  .ex-dock .ex-btn { height: 46px; }

  .ex-footer__brand { min-height: 40px; }
  .ex-footer__row { flex-direction: column; align-items: flex-start; gap: 12px; padding-top: 28px; }
  .ex-footer__links { display: grid; grid-template-columns: repeat(2, max-content); gap: 0 28px; }   /* 2 × 2, never an orphan */
  .ex-form__grid { grid-template-columns: minmax(0,1fr); }
  .ex-formbar { position: sticky; bottom: 0; z-index: 5; margin-inline: -20px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); background: rgba(13,15,18,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .ex-formbar__note { display: none; }
  /* phones stack the foot with the primary on top (DESIGN §5.18); DOM order
     (safe action first) stays the focus order */
  .ex-modal__foot { flex-direction: column-reverse; }
  .ex-modal__foot .ex-btn { width: 100%; height: 48px; }
}
@media screen and (max-width: 479.98px) {
  .ex-strip__val { font-size: 21px; }
  .ex-strip--spec .ex-strip__val { font-size: 24px; }
  .ex-strip--spec { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .ex-strip--spec .ex-strip__cell:nth-child(n) { border-left: 1px solid var(--ex-line); border-top: 1px solid var(--ex-line); }
  .ex-strip--spec .ex-strip__cell:nth-child(odd) { border-left: 0; }
  .ex-strip--spec .ex-strip__cell:nth-child(-n+2) { border-top: 0; }
  .ex-strip--spec .ex-strip__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .ex-brand__name { font-size: 18px; }
}
@media screen and (max-width: 359.98px) {
  .ex-kv > div { grid-template-columns: 32px minmax(0,1fr) auto; }
  .ex-sheet__links { grid-template-columns: minmax(0,1fr); }
}

/* RTL (both shells print <html dir>): mirror the dash skew, arrows and the blade corner */
[dir="rtl"] :is(.ex-kicker, .ex-pill--act, .ex-tab__count--act, .ex-pop__meta--act, .ex-sheet__meta--act, .ex-error)::before,
[dir="rtl"] .ex-sheet__row[aria-current="page"] .ex-sheet__end::after { transform: skewX(-35deg); }
[dir="rtl"] :is(.ex-nav__link, .ex-tab)::after { transform: translateX(50%) skewX(-35deg); left: auto; right: 50%; }
[dir="rtl"] :is(.ex-arrow, .ex-go .i, .ex-chev, .ex-back .i) { scale: -1 1; }
[dir="rtl"] .ex-footer__seg { left: auto; right: var(--ex-gutter); }
[dir="rtl"] :is(.ex-window__frame, body.exui .modal-content) { border-top-right-radius: var(--ex-r-card); border-top-left-radius: 0; clip-path: polygon(var(--cut) 0, 100% 0, 100% 100%, 0 100%, 0 var(--cut)); }
[dir="rtl"] .ex-blade { right: auto; left: 0; transform: scaleX(-1); }
[dir="rtl"] body.exui .modal-content::after { right: auto; left: 0; transform: scaleX(-1); }
[dir="rtl"] .ex-window > .ex-window__frame > .ex-window__bar > :nth-child(3) { margin-right: 0; margin-left: var(--cut); }
[dir="rtl"] :is(.ex-alert, .ex-gate, body.exui .alert)::before { left: auto; right: 0; }
[dir="rtl"] .ex-table tr.is-attn td:first-child::before { left: auto; right: 0; }
/* table cells and headings follow the reading direction (Bootstrap sets th to left) */
[dir="rtl"] body.exui :is(th, td) { text-align: start; }
[dir="rtl"] body.exui .ex-table :is(th, td).r { text-align: end; }
[dir="rtl"] .ex-step__when { margin-left: 0; margin-right: auto; padding-left: 0; padding-right: 12px; }

/* ---------- 16 Forced colours, print ----------------------------------- */
@media (forced-colors: active) {
  .ex-btn--primary::after { display: none; }
  .ex-btn, .ex-pill, .ex-card, .ex-input, .ex-choice, .ex-alert, .ex-gate, .ex-acct, .ex-tab, .ex-seg__item { border: 1px solid CanvasText; }
  .ex-strike { text-decoration: line-through; }
  .ex-strike::after { display: none; }
  .ex-kicker::before, .ex-pill::before, .ex-dot, .ex-nav__link::after, .ex-tab::after, .ex-alert::before, .ex-gate::before { forced-color-adjust: none; }
  .ex-window__frame { clip-path: none; }
  .ex-tab.is-active, .ex-tab[aria-current="page"], .ex-nav__link[aria-current="page"] { text-decoration: underline; }
}
@media print {
  html { color-scheme: light; }   /* system colours (Canvas, CanvasText, form controls) resolve light on paper */
  html, body.exui { background: #fff; color: #000; }
  .ex-header, .ex-sheet, .ex-footer, .ex-dock, .ex-atmos, .ex-staff, .ex-pagehead__actions, .ex-tabs, .ex-skip, .ex-toast, .ex-gate, #nprogress { display: none !important; }
  .ex-card, .ex-window__frame, .ex-pane, .card { background: #fff !important; border-color: #bbb !important; color: #000 !important; box-shadow: none !important; }
  .ex-window__frame { clip-path: none; }
  .ex-title, .ex-amt, .ex-money, .ex-date, .ex-id, .ex-kv dd { color: #000 !important; }
  .ex-layout { grid-template-columns: 1fr; }
  .ex-pill { color: #000; border-color: #888; background: none; }
}

/* =========================================================================
   17 Bootstrap 4.6 / Blesta bridge (DESIGN §12)
   Markup we cannot change — core partials, plugin views, module tabs,
   gateways — gets the ex-* recipes through these selectors. Every rule is
   scoped to body.exui and skips elements that already carry the ex-*
   counterpart, so theme views can mix both without fights.
   ========================================================================= */

/* ---- 17.0 co-class guards ------------------------------------------------
   Theme views keep Bootstrap classes Blesta's JS needs next to the ex-*
   recipe (.alert.ex-alert for data-dismiss, .btn.ex-btn, .card.ex-card for
   WidgetClient, .badge.ex-pill, .form-control.ex-input, .table.ex-table).
   These undo the Bootstrap state rules that outrank single-class recipes. */
.btn.ex-btn:is(:focus, .focus) { box-shadow: none; }
.btn.ex-btn--primary:is(:focus, .focus) { box-shadow: var(--ex-inset-hi); }
.btn.ex-btn--primary:hover { box-shadow: var(--ex-inset-hi), var(--ex-glow-strong); }
.btn.ex-btn--secondary:hover, .btn.ex-btn--secondary[aria-expanded="true"] { box-shadow: var(--ex-glow); }
.btn.ex-btn--danger:hover { box-shadow: var(--ex-glow-strong); }
.btn.ex-btn:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
.btn.ex-btn--primary:focus-visible { outline-color: #fff; }
.alert.ex-alert { margin-bottom: 16px; color: var(--ex-fg-72); }
.ex-alerts > .alert.ex-alert, .alert.ex-alert:last-child { margin-bottom: 0; }
:is(.form-control, .custom-select).ex-input:focus { background-color: var(--ex-raised); color: #fff; }
.table.ex-table { margin-bottom: 0; color: var(--ex-fg-82); }
.table.ex-table th { border-top: 0; }
.table.ex-table thead th { vertical-align: bottom; border-bottom: 1px solid var(--ex-line); }
.table.ex-table tbody tr:hover { color: inherit; }
.card.ex-card { word-wrap: normal; }

/* ---- 17.1 typography and content links ---------------------------------- */
:where(body.exui) :is(h1,h2,h3,h4,h5,h6) { color: #fff; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
:where(body.exui) h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; line-height: 1.1; }
:where(body.exui) h2 { font-size: 24px; letter-spacing: -.03em; line-height: 1.15; }
:where(body.exui) h3 { font-size: 20px; line-height: 1.25; }
:where(body.exui) h4 { font-size: 17px; letter-spacing: -.015em; line-height: 1.3; }
:where(body.exui) h5 { font-size: 15px; letter-spacing: -.01em; line-height: 1.35; }
:where(body.exui) h6 { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .h1 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; }
body.exui .h2 { font-size: 24px; font-weight: 700; }
body.exui .h3 { font-size: 20px; font-weight: 700; }
body.exui .h4 { font-size: 17px; font-weight: 700; }
body.exui .h5 { font-size: 15px; font-weight: 700; }
body.exui .h6 { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui :is(.display-1,.display-2,.display-3,.display-4) { font-size: var(--ex-fs-title); font-weight: 900; line-height: 1; letter-spacing: -.04em; color: #fff; }
body.exui .lead { font-size: var(--ex-fs-lede); font-weight: 450; line-height: 1.55; color: var(--ex-fg-72); }
:where(body.exui) :is(b, strong) { font-weight: 600; }
:where(body.exui) small, body.exui .small { font-size: 85%; }
:where(body.exui) mark, body.exui .mark { padding: 0 .2em; border-radius: 3px; background: var(--ex-a-15); color: #fff; }
:where(body.exui) hr { height: 0; margin: 24px 0; border: 0; border-top: 1px solid var(--ex-line); opacity: 1; }
:where(body.exui) :is(code, kbd, samp) { padding: 2px 6px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-sm); background: rgba(13,15,18,.5); font: 400 .86em var(--ex-mono); color: #fff; overflow-wrap: anywhere; }
:where(body.exui) pre { margin: 0 0 16px; padding: 14px 16px; overflow-x: auto; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: rgba(13,15,18,.6); font: 400 12.5px/1.75 var(--ex-mono); color: var(--ex-fg-90); }
:where(body.exui) pre code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; }
:where(body.exui) blockquote, body.exui .blockquote { position: relative; padding: 4px 0 4px 20px; border-left: 2px solid var(--ex-a-60); color: var(--ex-fg-82); font-size: inherit; }
body.exui .blockquote-footer { color: var(--ex-muted); }
:where(body.exui) dt { font-weight: 600; color: #fff; }
:where(body.exui) :is(legend, caption) { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
:where(body.exui) legend { width: auto; margin-bottom: 14px; padding: 0; }
:where(body.exui) caption { padding: 10px 0; caption-side: top; }
:where(body.exui) ::placeholder { color: var(--ex-fg-58); opacity: 1; }

/* bare links inside Blesta content regions read as links (the .ex-link recipe) */
:where(body.exui) :where(.card-body, .card-footer, .modal-body, .alert, .help-block, .form-text, .tab-pane, .list-group-item, .table td, .well, .jumbotron, .panel-body, .popover-body, .tooltip-inner) a:where(:not([class])),
body.exui .btn-link:where(:not(.ex-btn)), body.exui .alert-link {
  color: var(--ex-fg-82); text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px;
  transition: color var(--ex-dur-2), text-decoration-color var(--ex-dur-2);
}
:where(body.exui) :where(.card-body, .card-footer, .modal-body, .alert, .help-block, .form-text, .tab-pane, .list-group-item, .table td, .well, .jumbotron, .panel-body, .popover-body, .tooltip-inner) a:where(:not([class])):hover,
body.exui .btn-link:where(:not(.ex-btn)):hover, body.exui .alert-link:hover {
  color: #fff; text-decoration: underline; text-decoration-color: var(--ex-accent);
}
body.exui .table td > a:where(:not([class])):first-child:last-child { color: #fff; font-family: var(--ex-mono); font-size: 13.5px; font-weight: 500; letter-spacing: -.01em; }

/* ---- 17.2 grid and containers -------------------------------------------- */
body.exui .row:not(.no-gutters) { margin-right: -12px; margin-left: -12px; }
body.exui .row:not(.no-gutters) > :is(.col, [class*="col-"]) { padding-right: 12px; padding-left: 12px; }
body.exui :is(.container, .container-fluid, .container-sm, .container-md, .container-lg, .container-xl) { padding-right: 12px; padding-left: 12px; }
/* the shell's content row (div.row.ex-content > $content): views that print a
   card, alert or ex-* layout straight into the row (no .col-*) are inset by the
   row's negative gutter so every edge lines up with the page head */
body.exui .ex-content > :not(.col):not([class*="col-"]):not(script):not(style):not(.modal) { flex: 0 0 auto; width: calc(100% - 24px); max-width: calc(100% - 24px); margin-right: 12px; margin-left: 12px; }
body.exui .ex-main .container { max-width: 100%; }
body.exui .col-border { border-right-color: var(--ex-line); }
body.exui .panel-pad { padding: 0; }
body.exui .clearfix:empty { display: block; }
body.exui .jumbotron { padding: 32px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface); color: var(--ex-fg-72); }
body.exui .collapsing { transition: height var(--ex-dur-3) var(--ex-ease); }

/* ---- 17.3 cards, panels, wells, WidgetClient chrome ---------------------- */
body.exui .card:where(:not(.ex-card)) {
  background: var(--ex-surface); border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card);
  color: var(--ex-fg-82); box-shadow: none; min-width: 0;
}
body.exui .card:where(:not(.ex-card)):not(.card .card)::after {
  content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; pointer-events: none; z-index: 2;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
}
body.exui .card + .card, body.exui .content_section + .content_section { margin-top: var(--ex-gap); }
/* nested cards flatten: one card level, hairlines inside (DESIGN §1.7) */
body.exui .card .card:where(:not(.ex-card)) { background: transparent; border-color: var(--ex-line); }
body.exui .card > .card-header,
body.exui .card > .card-header:first-child {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  min-height: 56px; margin: 0; padding: 12px 22px; background: transparent; border-bottom: 1px solid var(--ex-line);
  border-radius: var(--ex-r-card) var(--ex-r-card) 0 0;
  font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
body.exui .card-header::after { display: none; }
/* exui.js #13 marks a card head that only repeats the page title .sr-only;
   application.min.css pins .card-blesta > .card-header to position:relative,
   which kept the clipped head on screen */
body.exui .card > .card-header.sr-only { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.exui .card-header :is(h1,h2,h3,h4,h5,h6,.card-title) { margin: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; }
body.exui .card-header > :is(.float-right, .btn-group, .pull-right) { order: 2; margin-left: auto; }
body.exui .card-header .btn-group { display: inline-flex; gap: 6px; }
body.exui .card-header .btn-group > :is(a, .btn) { margin: 0; }
/* WidgetClient renders header links as bare icon anchors */
body.exui .card-header .btn-group > a:not(.btn) { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--ex-line-strong); border-radius: 50%; background: var(--ex-tint); color: var(--ex-muted); }
body.exui .card-header .btn-group > a:not(.btn):hover { border-color: var(--ex-a-50); background: var(--ex-a-08); color: #fff; }
body.exui .card-body { padding: 22px; color: inherit; }
/* not on order-wizard plan cards: their two footers (.selected-btn /
   .unselected-btn) are a pair the wizard toggles with display (exui-order.css R1) */
body.exui .card:not(.package) > .card-footer, body.exui .card:not(.package) > .card-footer:last-child {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  padding: 14px 22px; background: transparent; border-top: 1px solid var(--ex-line); border-radius: 0 0 var(--ex-r-card) var(--ex-r-card);
}
body.exui .card-footer:empty { display: none; }
body.exui .card-title { margin-bottom: 8px; font-size: 16px; font-weight: 700; letter-spacing: -.015em; color: #fff; }
body.exui :is(.card-subtitle, .card-text) { color: var(--ex-fg-72); }
body.exui .card-body > :last-child { margin-bottom: 0; }
/* Blesta section heads inside forms (h4) speak in the mono label voice */
body.exui .card-body :is(h4, .h4):where(:not([class^="ex-"]):not([class*=" ex-"])) {
  margin: 8px 0 16px; padding-bottom: 12px; border-bottom: 1px solid var(--ex-line);
  font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
body.exui .card-body > h4:first-child, body.exui .card-body > form > h4:first-child { margin-top: 0; }
body.exui .card-body > .table-responsive, body.exui .card-body > .table:where(:not(.ex-table)) { width: auto; margin-right: -22px; margin-left: -22px; }
body.exui .card-body > .table:where(:not(.ex-table)) { width: calc(100% + 44px); }
body.exui .card-body > :is(.table-responsive, .table):last-child { margin-bottom: -22px; }
body.exui .card-body > .card-nav ~ :is(.table-responsive, .table), body.exui .card-body > :is(.table-responsive, .table):first-child { margin-top: -22px; }

/* WidgetClient toolbar: div.card-nav > .float-left > ul.card-links + .float-right buttons */
body.exui .card-nav {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px;
  margin: -22px -22px 22px; padding: 11px 22px; border-bottom: 1px solid var(--ex-line);
}
body.exui .card-nav > .clearfix { display: none; }
body.exui .card-nav > :is(.float-left, .float-right) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; float: none; }
body.exui .card-nav > .float-right { margin-left: auto; }
body.exui .card-nav .btn:where(:not(.ex-btn)) { height: 32px; padding: 0 14px; font-size: 13px; gap: 6px; }
body.exui .card-nav .filter-toggle:where(:not(.ex-btn)) { width: 32px; padding: 0; }
body.exui .card-nav .filter-toggle .fas { margin: 0; }
/* status filters (.card-links, and tabs/pills inside the toolbar) → segmented, neutral active */
body.exui :is(.card-links, .panel-links) { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
body.exui :is(.card-links, .panel-links) > li { display: block; color: inherit; }
body.exui :is(.card-links, .panel-links) > li + li::before { content: none; }
body.exui :is(.card-links, .panel-links) > li > a {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  font-size: 13px; font-weight: 500; color: var(--ex-muted); white-space: nowrap; text-decoration: none;
  transition: color var(--ex-dur-2), border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui :is(.card-links, .panel-links) > li > a:hover { color: #fff; border-color: rgba(255,255,255,.25); }
body.exui :is(.card-links, .panel-links) > li.active > a { color: #fff; border-color: var(--ex-fg-22); background: var(--ex-raised); }
body.exui :is(.card-links, .panel-links) .badge:where(:not(.ex-pill)) { height: 18px; min-width: 18px; padding: 0 5px; border-radius: var(--ex-r-pill); border-color: var(--ex-line-strong); background: transparent; font-size: 10.5px; letter-spacing: 0; color: inherit; }
/* filter form (display:none until .filter-toggle) → the .ex-filters well */
body.exui form.widget_filter_form { margin: -22px -22px 22px; padding: 0; border: 0; }
body.exui form.widget_filter_form > .card { padding: 18px 22px 2px; border: 0; border-bottom: 1px solid var(--ex-line); border-radius: 0; background: var(--ex-well); }
body.exui form.widget_filter_form > .card::after { display: none; }
body.exui form.widget_filter_form .form-group { margin-bottom: 16px; }
body.exui form.widget_filter_form .row:last-child .btn { margin-bottom: 16px; }

/* .panel-blesta / .well / .top-focus-box (radius, border, fill pinned by !important in application.css → §17.99) */
body.exui .panel-blesta { background: var(--ex-surface); color: var(--ex-fg-82); }
body.exui .panel-blesta .panel-heading { padding: 12px 22px; border-bottom: 1px solid var(--ex-line); font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .panel-body { padding: 22px; }
body.exui .well { color: var(--ex-fg-82); box-shadow: none; }
body.exui .top-focus-box { color: inherit; }
body.exui .cards { margin: 0 -12px; }
body.exui .cards .card { color: var(--ex-fg-82); font-family: var(--ex-font); }
body.exui .cards .card .card-value { font: 600 30px/1 var(--ex-mono); letter-spacing: -.05em; color: #fff; }
body.exui .cards .card .card-label { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }

/* ---- 17.4 tables ---------------------------------------------------------- */
/* (Toast UI's toolbar has a button.table: it keeps the editor's own look) */
body.exui .table:where(:not(.ex-table, .toastui-editor-toolbar-icons)) {
  width: 100%; margin-bottom: 0; color: var(--ex-fg-82); background: transparent; font-size: 14px;
  border: 0; border-collapse: collapse; border-spacing: 0;
}
body.exui .table:where(:not(.ex-table)) :is(th, td) {
  padding: 16px; border-top: 1px solid var(--ex-line); border-left: 0; vertical-align: middle; background-color: transparent;
}
body.exui .table:where(:not(.ex-table)) > thead > tr > th,
body.exui .table:where(:not(.ex-table)) > thead > tr > td,
body.exui .table:where(:not(.ex-table)) > tbody > tr.heading_row > td {
  padding: 12px 16px; border-top: 0; border-bottom: 1px solid var(--ex-line); background: var(--ex-well); vertical-align: bottom;
  font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); text-align: left; white-space: nowrap;
}
body.exui .table:where(:not(.ex-table)) > tbody > tr:first-child > :is(td, th) { border-top: 0; }
body.exui .table:where(:not(.ex-table)) > thead + tbody > tr:first-child > :is(td, th) { border-top: 0; }
body.exui .table:where(:not(.ex-table)) tr > :is(th, td):first-child { padding-left: 22px; }
body.exui .table:where(:not(.ex-table)) tr > :is(th, td):last-child { padding-right: 22px; }
body.exui .table:where(:not(.ex-table)) tbody > tr { transition: background-color var(--ex-dur-3); }
body.exui .table:where(:not(.ex-table)) tbody > tr:hover > td { background-color: var(--ex-row-hover); }
body.exui .table:where(:not(.ex-table)) td :is(strong, b) { color: #fff; }
body.exui .table:where(:not(.ex-table)) .form-group { margin-bottom: 0; }
body.exui .table:where(:not(.ex-table)) tfoot td { border-top: 1px solid var(--ex-line-strong); color: #fff; font-weight: 600; }
/* sort links (Blesta adds .asc/.desc to the current sort) */
body.exui .table th a { display: inline-flex; align-items: center; gap: 6px; color: inherit; text-decoration: none; border-radius: 2px; }
body.exui .table th a:hover { color: #fff; }
body.exui .table th a:is(.asc, .desc) { color: #fff; }
body.exui .table th a:is(.asc, .desc)::after { content: ""; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid var(--ex-fg-82); }
body.exui .table th a.asc::after { border-top: 0; border-bottom: 5px solid var(--ex-fg-82); }
/* zebra stripes removed; striped, curved, bordered, small and head variants neutralised */
body.exui .table-striped tbody tr:nth-of-type(odd),
body.exui .table-striped > tbody > tr > :is(td, th),
body.exui .table-striped-alt > tbody > tr > :is(td, th) { background-color: transparent; }
body.exui .table-striped:where(:not(.ex-table)) > tbody > tr:hover > td { background-color: var(--ex-row-hover); }
body.exui .table-curved:where(:not(.ex-table)) { border-collapse: collapse; border-radius: 0; border: 0; margin-bottom: 0; }
body.exui .table-curved > tbody > tr > td, body.exui .table-curved > tbody > tr > td:first-child,
body.exui .table-curved > thead > tr > th, body.exui .table-curved > thead > tr > td { border-left: 0; border-radius: 0; }
body.exui .table-curved > :is(thead, tbody) > tr > :is(th, td) { border-top-color: var(--ex-line); }
body.exui .table-bordered:where(:not(.ex-table)) { border: 1px solid var(--ex-line); }
body.exui .table-bordered:where(:not(.ex-table)) :is(th, td) { border: 1px solid var(--ex-line); }
body.exui .table-sm:where(:not(.ex-table)) :is(th, td) { padding: 10px 12px; }
body.exui .table-sm:where(:not(.ex-table)) tr > :is(th, td):first-child { padding-left: 16px; }
body.exui :is(.thead-light, .thead-dark) th, body.exui .table-dark { color: var(--ex-muted); background-color: var(--ex-well); border-color: var(--ex-line); }
body.exui .table :is(.table-active, .table-primary, .table-secondary, .table-success, .table-info, .table-light, .table-dark) > :is(td, th),
body.exui .table tr:is(.table-active, .table-primary, .table-secondary, .table-success, .table-info, .table-light) { background-color: var(--ex-fg-05); color: inherit; }
body.exui .table :is(.table-danger, .table-warning) > :is(td, th), body.exui .table tr:is(.table-danger, .table-warning) { background-color: var(--ex-a-06); color: #fff; }
body.exui .table.multi_heading .email_header { background-color: var(--ex-well); }
body.exui .table.multi_heading .email_header td:first-child { color: var(--ex-muted); font-weight: 500; }
body.exui .table-responsive { border: 0; -webkit-overflow-scrolling: touch; }
body.exui .card > .table-responsive:last-child, body.exui .card > .table:last-child { border-radius: 0 0 var(--ex-r-card) var(--ex-r-card); }
/* expandable rows (tr.expand + tr.expand_details > td.subtable); exui.js injects button.ex-expand */
body.exui tr.expand { cursor: pointer; }
body.exui tr.expand td:last-of-type::after { color: var(--ex-muted); font-size: 11px; transition: transform var(--ex-dur-3) var(--ex-ease); }
body.exui tr.expand:has(.ex-expand) td:last-of-type::after { content: none; }
body.exui tr.expand:has(.ex-expand) td:last-of-type { padding-right: 22px; }
body.exui .table > tbody > tr.expanded > td { background-color: rgba(255,255,255,.015); }
body.exui .table > tbody > tr.expand_details > td,
body.exui .table > tbody > tr.expand_details > td:hover { padding: 0; border-top: 1px solid var(--ex-line); background-color: rgba(13,15,18,.35); }
body.exui .table > tbody > tr.expand_details:hover > td { background-color: rgba(13,15,18,.35); }
body.exui tr.expand_details td.subtable { position: relative; min-height: 64px; }
body.exui tr.expand_details td.subtable > :not(.loading_container) { margin: 0; }
body.exui tr.expand_details td.subtable .table { background: transparent; }
body.exui tr.expand_details td.subtable .table th { background: transparent; }
body.exui tr.expand_details td .alert { margin: 16px 22px; }
body.exui .subtable > .fa-spinner { display: none; }
body.exui .subtable:has(> .fa-spinner)::before { content: ""; display: block; width: 18px; height: 18px; margin: 22px auto; border-radius: 50%; border: 2px solid var(--ex-line-strong); border-top-color: var(--ex-accent); animation: ex-spin .6s linear infinite; }

/* ---- 17.5 buttons --------------------------------------------------------- */
body.exui .btn:where(:not(.ex-btn)) {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border: 1px solid transparent; border-radius: var(--ex-r-pill);
  font: 600 14px/1 var(--ex-font); letter-spacing: -.005em; white-space: nowrap; text-decoration: none; vertical-align: middle;
  box-shadow: none; user-select: none; cursor: pointer;
  transition: color var(--ex-dur-2) var(--ex-ease-std), background-color var(--ex-dur-2) var(--ex-ease-std), border-color var(--ex-dur-2) var(--ex-ease-std), box-shadow var(--ex-dur-2) var(--ex-ease-std);
}
body.exui input.btn:where(:not(.ex-btn)), body.exui button.btn:where(:not(.ex-btn)) { line-height: 1; }
body.exui .btn:where(:not(.ex-btn)):focus, body.exui .btn:where(:not(.ex-btn)).focus { box-shadow: none; }
body.exui .btn:where(:not(.ex-btn)):focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui .btn :is(.fas, .far, .fab, .fa, .bi) { font-size: 13px; line-height: 1; }
body.exui .btn .fa-fw { width: auto; }
body.exui .btn .caret:empty { display: none; }
body.exui .btn:where(:not(.ex-btn)) > .badge { margin-left: 2px; }
body.exui .btn-xs:where(:not(.ex-btn)) { height: 32px; padding: 0 14px; font-size: 13px; gap: 6px; }
body.exui .btn-sm:where(:not(.ex-btn)), body.exui .btn-group-sm > .btn:where(:not(.ex-btn)) { height: 38px; padding: 0 20px; font-size: 14px; border-radius: var(--ex-r-pill); }
body.exui .btn-lg:where(:not(.ex-btn)), body.exui .btn-group-lg > .btn:where(:not(.ex-btn)) { height: 50px; padding: 0 28px; font-size: 15px; border-radius: var(--ex-r-pill); }
body.exui .btn-block:where(:not(.ex-btn)) { display: flex; width: 100%; }
/* Bootstrap display utilities (.d-sm-block, .d-block — order forms list) force
   display:block !important, which drops the flex centring: centre by line-height */
body.exui .btn:where(:not(.ex-btn))[class*="d-"][class*="-block"] { line-height: 40px; text-align: center; }
body.exui .btn-xs:where(:not(.ex-btn))[class*="d-"][class*="-block"] { line-height: 30px; }
body.exui .btn-sm:where(:not(.ex-btn))[class*="d-"][class*="-block"] { line-height: 36px; }
body.exui .btn-lg:where(:not(.ex-btn))[class*="d-"][class*="-block"] { line-height: 48px; }
body.exui input.btn-block { display: block; }
body.exui .btn-block + .btn-block { margin-top: 10px; }
body.exui .btn:where(:not(.ex-btn)):is(:disabled, .disabled) { opacity: .5; pointer-events: none; box-shadow: none; }
/* a bare .btn with no colour variant (exact-theme.js builds some, e.g. the
   order ladder's "Deploy"; old plugin markup) reads as secondary, not as
   Bootstrap's dark text on nothing. Variant rules below win (same weight, later). */
body.exui .btn:where(:not(.ex-btn, .btn-primary, .btn-success, .btn-danger, .btn-outline-danger, .btn-link, .btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white, [class*="btn-outline-"])) {
  background-color: var(--ex-tint); border-color: var(--ex-line-strong); color: #fff;
}
body.exui .btn:where(:not(.ex-btn, .btn-primary, .btn-success, .btn-danger, .btn-outline-danger, .btn-link, .btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white, [class*="btn-outline-"])):is(:hover, :focus-visible) {
  background-color: var(--ex-a-08); border-color: var(--ex-a-50); color: #fff; box-shadow: var(--ex-glow);
}
/* .btn-icon (theme row menus, plugin toolbars) → .ex-iconbtn, bordered */
body.exui .btn.btn-icon:where(:not(.ex-btn)) { width: 32px; height: 32px; padding: 0; gap: 0; border-radius: 50%; border-color: var(--ex-line-strong); background-color: var(--ex-tint); color: var(--ex-muted); }
body.exui .btn.btn-icon:where(:not(.ex-btn)):is(:hover, :focus-visible, [aria-expanded="true"]) { border-color: var(--ex-a-50); background-color: var(--ex-a-08); color: #fff; box-shadow: none; }
body.exui .btn.btn-icon:where(:not(.ex-btn))::after { content: none; }

/* primary: the one red. .btn-success shares it (this brand has one "go"); .btn-info and
   stock .btn-light submits become primary only when they are a form's lone submit */
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)),
body.exui form :is(.btn-info[type="submit"], .btn-light[type="submit"]:only-of-type):where(:not(.ex-btn, .yes, .widget_filter_form *)) {
  isolation: isolate; overflow: hidden; background-color: var(--ex-accent); border-color: transparent; color: #fff; box-shadow: var(--ex-inset-hi);
}
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn, .dropdown-toggle, input))::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.22) 50%, transparent 60%) 100% 0 / 300% 100% no-repeat;
  transition: background-position var(--ex-dur-8) var(--ex-ease);
}
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):is(:hover, :focus, .focus),
body.exui form :is(.btn-info[type="submit"], .btn-light[type="submit"]:only-of-type):where(:not(.ex-btn, .yes, .widget_filter_form *)):is(:hover, :focus) {
  background-color: var(--ex-accent-strong); border-color: transparent; color: #fff; box-shadow: var(--ex-inset-hi), var(--ex-glow-strong);
}
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):hover::after { background-position: 0 0; }
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):not(:disabled):not(.disabled):is(:active, .active),
body.exui .show > :is(.btn-primary, .btn-success).dropdown-toggle:where(:not(.ex-btn)) { background-color: var(--ex-accent-strong); border-color: transparent; color: #fff; }
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):not(:disabled):not(.disabled):is(:active, .active):focus { box-shadow: var(--ex-inset-hi); }
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):focus-visible { outline-color: #fff; }
body.exui :is(.btn-primary, .btn-success):where(:not(.ex-btn)):is(:disabled, .disabled) { background-color: var(--ex-accent); border-color: transparent; color: #fff; }

/* secondary: outlined pill for everything else that is not destructive */
body.exui :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white,
  .btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-light, .btn-outline-dark):where(:not(.ex-btn)) {
  background-color: var(--ex-tint); border-color: var(--ex-line-strong); color: #fff; box-shadow: none;
}
body.exui :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white,
  .btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-light, .btn-outline-dark):where(:not(.ex-btn)):is(:hover, :focus, .focus) {
  background-color: var(--ex-a-08); border-color: var(--ex-a-50); color: #fff; box-shadow: var(--ex-glow);
}
body.exui :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white,
  .btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-light, .btn-outline-dark):where(:not(.ex-btn)):not(:disabled):not(.disabled):is(:active, .active),
body.exui .show > :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-outline-primary, .btn-outline-secondary, .btn-outline-dark).dropdown-toggle:where(:not(.ex-btn)) {
  background-color: var(--ex-a-10); border-color: var(--ex-a-50); color: #fff;
}
body.exui :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white,
  .btn-outline-primary, .btn-outline-secondary, .btn-outline-success, .btn-outline-info, .btn-outline-warning, .btn-outline-light, .btn-outline-dark):where(:not(.ex-btn)):not(:disabled):not(.disabled):is(:active, .active):focus { box-shadow: var(--ex-glow); }
body.exui :is(.btn-light, .btn-secondary, .btn-default, .btn-dark, .btn-info, .btn-warning, .btn-white):where(:not(.ex-btn)):is(:disabled, .disabled) { background-color: var(--ex-tint); border-color: var(--ex-line-strong); color: #fff; }

/* danger: tinted outline; turns solid on hover (destructive confirm) */
body.exui :is(.btn-danger, .btn-outline-danger):where(:not(.ex-btn)) { background-color: var(--ex-a-10); border-color: var(--ex-a-45); color: #fff; box-shadow: none; }
body.exui :is(.btn-danger, .btn-outline-danger):where(:not(.ex-btn)):is(:hover, :focus, .focus),
body.exui :is(.btn-danger, .btn-outline-danger):where(:not(.ex-btn)):not(:disabled):not(.disabled):is(:active, .active),
body.exui .show > .btn-danger.dropdown-toggle:where(:not(.ex-btn)) { background-color: var(--ex-accent-strong); border-color: var(--ex-accent-strong); color: #fff; box-shadow: var(--ex-glow-strong); }
body.exui :is(.btn-danger, .btn-outline-danger):where(:not(.ex-btn)):is(:disabled, .disabled) { background-color: var(--ex-a-10); border-color: var(--ex-a-45); color: #fff; }

/* link buttons read as inline links */
body.exui .btn-link:where(:not(.ex-btn)) { height: auto; min-height: 32px; padding: 0 2px; border: 0; background: none; font-weight: 600; box-shadow: none; }
body.exui .btn-link:where(:not(.ex-btn)):is(:focus, .focus) { box-shadow: none; text-decoration: underline; }

/* button groups: joined pills; split toggles get a hairline seam */
body.exui :is(.btn-group, .btn-group-vertical) { gap: 0; vertical-align: middle; }
body.exui .btn-group > .btn:where(:not(.ex-btn)) + .dropdown-toggle { padding: 0 12px 0 10px; border-left-color: var(--ex-line-strong); }
body.exui .btn-group > .btn-xs:where(:not(.ex-btn)) + .dropdown-toggle { padding: 0 10px 0 8px; }
body.exui .btn-toolbar { gap: 8px; }
body.exui .dropdown-toggle::after { width: 6px; height: 6px; margin: 0; translate: 0 -2px; border: 0; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); vertical-align: middle; opacity: .7; }
body.exui .dropup .dropdown-toggle::after { translate: 0 2px; transform: rotate(-135deg); }
body.exui .dropdown-toggle-split::after, body.exui .btn-group > .btn + .dropdown-toggle::after { margin-left: 0; }

/* .close (alerts, modals) → 32px icon button */
body.exui .close {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; float: none; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ex-muted); opacity: 1; text-shadow: none;
  font: 400 22px/1 var(--ex-font); transition: color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui .close:not(:disabled):not(.disabled):is(:hover, :focus) { color: #fff; background: var(--ex-fg-06); opacity: 1; }
body.exui .close > span { display: block; line-height: 1; margin-top: -2px; }

/* ---- 17.6 badges → status pills (DESIGN §6 / §12) ------------------------- */
body.exui :is(.badge, .label):where(:not(.ex-pill)) {
  display: inline-flex; align-items: center; gap: 7px; height: 22px; padding: 0 10px; vertical-align: middle;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: rgba(35,36,38,.6);
  font: 500 10.5px/1 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-fg-82); white-space: nowrap;
}
body.exui .badge:empty { display: none; }
body.exui .badge::before { flex: none; }
body.exui :is(.badge-success, .label-success):where(:not(.ex-pill)) { border-color: var(--ex-fg-22); background: transparent; color: #fff; }
body.exui :is(.badge-success, .label-success):where(:not(.ex-pill))::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ex-accent); box-shadow: var(--ex-led); }
body.exui :is(.badge-warning, .badge-primary, .label-warning, .label-primary):where(:not(.ex-pill)) { background: transparent; color: var(--ex-fg-82); }
body.exui :is(.badge-warning, .badge-primary, .label-warning, .label-primary):where(:not(.ex-pill))::before { content: ""; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--ex-fg-62); animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
body.exui :is(.badge-danger, .label-danger, .label-important):where(:not(.ex-pill)) { border-color: var(--ex-a-45); background: var(--ex-a-10); color: #fff; }
body.exui :is(.badge-danger, .label-danger, .label-important):where(:not(.ex-pill))::before { content: ""; width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }
body.exui :is(.badge-secondary, .badge-light, .badge-dark, .label-default):where(:not(.ex-pill)) { background: transparent; color: var(--ex-muted); }
body.exui :is(.badge-secondary, .badge-light, .badge-dark, .label-default):where(:not(.ex-pill))::before { content: ""; width: 10px; height: 1px; background: var(--ex-muted); }
body.exui :is(.badge-info, .label-info):where(:not(.ex-pill)) { background: rgba(35,36,38,.6); color: var(--ex-fg-82); }
body.exui a.badge:where(:not(.ex-pill)):hover { border-color: var(--ex-a-50); color: #fff; }
/* counts: badges inside nav, list groups and buttons are .ex-count, not status */
body.exui :is(.nav-link, .list-group-item, .btn, .dropdown-item, .card-header, .page-link) > .badge:where(:not(.ex-pill)) {
  height: 20px; min-width: 20px; padding: 0 6px; justify-content: center; background: transparent; border-color: var(--ex-line-strong);
  letter-spacing: 0; text-transform: none; color: var(--ex-fg-82);
}
body.exui :is(.nav-link, .list-group-item, .btn, .dropdown-item, .card-header, .page-link) > .badge:where(:not(.ex-pill))::before { content: none; }

/* ---- 17.7 alerts (message.pdt stock markup: .alert > button.close + text + p > .btn) */
body.exui .alert:where(:not(.ex-alert)) {
  position: relative; display: block; margin-bottom: 20px; padding: 14px 18px 14px 22px; overflow: hidden;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-surface);
  font-size: 14.5px; line-height: 1.5; color: var(--ex-fg-72); box-shadow: none;
}
body.exui .alert:where(:not(.ex-alert))::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ex-line-strong); }
body.exui .alert:where(:not(.ex-alert)) :is(strong, b, .alert-heading) { font-weight: 600; color: #fff; }
body.exui .alert:where(:not(.ex-alert)) .alert-heading { margin-bottom: 4px; font-size: 15px; }
body.exui .alert:where(:not(.ex-alert)) > p:last-child, body.exui .alert:where(:not(.ex-alert)) > :last-child { margin-bottom: 0; }
body.exui .alert:where(:not(.ex-alert)) > p:has(> .btn) { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
body.exui .alert:where(:not(.ex-alert)) .btn:where(:not(.ex-btn)) { height: 38px; padding: 0 18px; }
body.exui .alert hr { border-top-color: var(--ex-line); }
body.exui .alert:is(.alert-danger, .alert-warning):where(:not(.ex-alert)) { border-color: var(--ex-a-35); background: linear-gradient(var(--ex-a-06), var(--ex-a-06)), var(--ex-surface); color: var(--ex-fg-72); }
body.exui .alert:is(.alert-danger, .alert-warning):where(:not(.ex-alert))::before { background: var(--ex-accent); box-shadow: var(--ex-led); }
body.exui .alert.alert-success:where(:not(.ex-alert)) { border-color: var(--ex-line-strong); background: var(--ex-surface); color: var(--ex-fg-72); }
body.exui .alert.alert-success:where(:not(.ex-alert))::before { background: rgba(255,255,255,.55); }
body.exui .alert:is(.alert-info, .alert-secondary, .alert-primary, .alert-light, .alert-dark):where(:not(.ex-alert)) { border-color: var(--ex-line-strong); background: var(--ex-surface); color: var(--ex-fg-72); }
body.exui .alert:is(.alert-dismissable, .alert-dismissible):where(:not(.ex-alert)) { padding-right: 52px; }
body.exui .alert:where(:not(.ex-alert)) > .close { position: absolute; top: 9px; right: 10px; margin: 0; padding: 0; }
/* no warning triangles and no colour-coded icons in alerts */
body.exui .alert :is(.fa-exclamation-triangle, .fa-exclamation-circle, .fa-check-circle, .fa-info-circle, .fa-times-circle) { display: none; }
/* Stock WidgetClient lists (Domains, plugin lists) print "nothing here" as the
   last child of a table-less card body (after .card-nav and the filter form):
   .alert.alert-info > p. Show it like .ex-empty
   (icon chip on a dot-grid well) instead of a boxed notice. */
body.exui .content_section .card-body:not(:has(table)) > .alert.alert-info:last-child,
body.exui .content_section .card-body:not(:has(table)) > .row:only-child > [class*="col-"]:only-child > .alert.alert-info:only-child {
  position: relative; isolation: isolate; display: grid; justify-items: center; gap: 14px;
  margin: 0; padding: 56px 24px 52px; border: 0; border-radius: 0; background: transparent;
  text-align: center; color: #fff;
}
body.exui .content_section .card-body:not(:has(table)) > .alert.alert-info:last-child::before,
body.exui .content_section .card-body:not(:has(table)) > .row:only-child > [class*="col-"]:only-child > .alert.alert-info:only-child::before {
  content: ""; position: static; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--ex-line-strong); box-shadow: none;
  background: var(--ex-raised) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='22 12 16 12 14 15 10 15 8 12 2 12'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E") center / 20px no-repeat;
}
body.exui .content_section .card-body:not(:has(table)) > .alert.alert-info:last-child::after,
body.exui .content_section .card-body:not(:has(table)) > .row:only-child > [class*="col-"]:only-child > .alert.alert-info:only-child::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, var(--ex-line) 1px, transparent 1.5px) 0 0 / 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 45%, #000, transparent); mask-image: radial-gradient(ellipse 60% 80% at 50% 45%, #000, transparent);
}
body.exui .content_section .card-body:not(:has(table)) > .alert.alert-info:last-child p,
body.exui .content_section .card-body:not(:has(table)) > .row:only-child > [class*="col-"]:only-child > .alert.alert-info:only-child p { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
/* ---- 17.8 forms ------------------------------------------------------------ */
body.exui .form-group { margin-bottom: 20px; }
body.exui .form-row { margin-right: -8px; margin-left: -8px; }
body.exui .form-row > :is(.col, [class*="col-"]) { padding-right: 8px; padding-left: 8px; }
/* field labels: mono uppercase above the field */
body.exui :is(.control-label, .col-form-label, .form-label, .form-group > label:not(:has(input, select, textarea)), fieldset > label:not(:has(input, select, textarea))):where(:not([class^="ex-"]):not([class*=" ex-"])) {
  display: block; margin-bottom: 10px; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-fg-82);
}
body.exui .col-form-label { padding-top: 17px; padding-bottom: 17px; margin-bottom: 0; }
body.exui :is(.control-label, .form-group > label) :is(a[data-toggle="tooltip"], .fa-question-circle) { color: var(--ex-muted); text-decoration: none; letter-spacing: 0; }
body.exui :is(.control-label, .form-group > label) .fa-question-circle { margin-left: 4px; font-size: 12px; }
body.exui label .text-danger, body.exui label .required { color: var(--ex-muted) !important; }
/* text inputs, selects, textareas → .ex-input */
body.exui :is(.form-control, .custom-select, .form-select):where(:not(.ex-input)) {
  display: block; width: 100%; height: 50px; padding: 0 16px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field);
  background-color: var(--ex-raised); color: #fff; font: 400 15px/1.4 var(--ex-font); letter-spacing: -.003em;
  caret-color: var(--ex-accent); box-shadow: none; outline: none;
  transition: border-color var(--ex-dur-2), box-shadow var(--ex-dur-2);
}
body.exui :is(.form-control, .custom-select, .form-select):where(:not(.ex-input)):hover { border-color: var(--ex-fg-20); }
body.exui :is(.form-control, .custom-select, .form-select):where(:not(.ex-input)):focus { border-color: var(--ex-accent); background-color: var(--ex-raised); color: #fff; box-shadow: var(--ex-ring), var(--ex-glow); }
body.exui :is(.form-control, .custom-select, .form-select):where(:not(.ex-input))::placeholder { color: var(--ex-fg-58); opacity: 1; }
body.exui :is(.form-control, .custom-select, .form-select):where(:not(.ex-input)):is(:disabled, [readonly]) { background-color: rgba(35,36,38,.45); border-color: var(--ex-line); color: var(--ex-fg-72); opacity: 1; }
body.exui :is(select.form-control, .custom-select, .form-select):where(:not(.ex-input)):not([multiple]):not([size]) {
  -webkit-appearance: none; appearance: none; padding-right: 44px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898a8c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 16px center; background-size: 14px; background-repeat: no-repeat;
}
body.exui :is(.form-control, .custom-select, .form-select) :is(option, optgroup) { background: var(--ex-surface); color: #fff; }
body.exui :is(select.form-control, .custom-select)[multiple], body.exui :is(select.form-control, .custom-select)[size]:not([size="1"]) { height: auto; padding: 8px; }
body.exui textarea.form-control:where(:not(.ex-input)) { height: auto; min-height: 132px; padding: 14px 16px; line-height: 1.6; resize: vertical; }
body.exui textarea.form-control[rows="1"], body.exui textarea.form-control[rows="2"] { min-height: 80px; }
body.exui :is(.form-control-sm, .input-sm, .custom-select-sm):where(:not(.ex-input)),
body.exui :is(form.widget_filter_form, .modal) :is(.form-control, .custom-select):where(:not(.ex-input, textarea)) { height: 44px; font-size: 14px; border-radius: var(--ex-r-field); }
body.exui :is(.form-control-lg, .custom-select-lg):where(:not(.ex-input)) { height: 56px; font-size: 16px; border-radius: var(--ex-r-field); }
body.exui input[type="file"].form-control:where(:not(.ex-input)), body.exui .form-control-file { height: auto; padding: 8px; font-size: 13.5px; color: var(--ex-fg-72); }
body.exui :is(input[type="file"].form-control, .form-control-file)::file-selector-button {
  height: 32px; margin-right: 12px; padding: 0 14px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  background: var(--ex-tint); color: #fff; font: 600 13px var(--ex-font); cursor: pointer;
}
body.exui .form-control-plaintext { color: #fff; }
body.exui .form-control-range, body.exui input[type="range"] { accent-color: var(--ex-accent); }
/* technical values are mono (DESIGN §12 forms row) */
body.exui input.form-control:where(:not(.ex-input)):is([type="email"], [type="tel"], [type="number"], [name*="domain"], [name="number"], [name*="[number]"], [name*="hostname"], [name="ip"], [name*="ip_address"], [name*="nameserver"], [name*="coupon"], [name="otp"], #otp, [autocomplete="one-time-code"], [autocomplete="cc-number"]),
body.exui .edit_amounts input, body.exui input.date, body.exui .form-control.ex-input--mono { font-family: var(--ex-mono); letter-spacing: -.01em; }
/* validation: no green, no pink, no inline icons */
body.exui :is(.form-control, .custom-select):where(:not(.ex-input)):is(.is-invalid, :user-invalid),
body.exui .has-error :is(.form-control, .custom-select):where(:not(.ex-input)),
body.exui .was-validated :is(.form-control, .custom-select):invalid { border-color: var(--ex-accent); box-shadow: var(--ex-ring); background-image: none; }
body.exui :is(.form-control, .custom-select):is(.is-valid), body.exui .was-validated :is(.form-control, .custom-select):valid { border-color: var(--ex-line-strong); box-shadow: none; background-image: none; }
body.exui .invalid-feedback, body.exui .has-error .help-block {
  align-items: flex-start; gap: 8px; margin-top: 8px; font-size: 13px; line-height: 1.45; color: #fff;
}
body.exui .invalid-feedback::before { content: ""; flex: none; width: 10px; height: 4px; margin-top: calc(.725em - 2px); background: var(--ex-accent); transform: skewX(35deg); }
body.exui :is(.is-invalid, .was-validated :invalid) ~ .invalid-feedback, body.exui .invalid-feedback.d-block { display: flex; }
body.exui :is(.valid-feedback, .valid-tooltip) { display: none !important; }
body.exui .invalid-tooltip { border-radius: var(--ex-r-item); background: var(--ex-raised); border: 1px solid var(--ex-a-45); color: #fff; }
/* helper text */
body.exui :is(.form-text, .help-block, .form-group small.text-muted) { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ex-fg-58); }
/* checkboxes and radios everywhere: 20px squares/circles in the brand recipe */
body.exui input:is([type="checkbox"], [type="radio"]):where(:not(.custom-control-input, .ex-checkbox, .ex-radio, .btn-check, .ex-switch input, .toggle input, .sr-only)) {
  -webkit-appearance: none; appearance: none; display: inline-grid; place-items: center; flex: none; width: 20px; height: 20px; margin: 0; padding: 0;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-sm); background: var(--ex-raised); vertical-align: -5px; cursor: pointer;
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2), box-shadow var(--ex-dur-2);
}
body.exui input[type="radio"]:where(:not(.custom-control-input, .ex-radio, .btn-check, .ex-switch input, .sr-only)) { border-radius: 50%; }
body.exui input:is([type="checkbox"], [type="radio"]):where(:not(.custom-control-input, .ex-checkbox, .ex-radio, .btn-check, .ex-switch input, .toggle input, .sr-only)):hover { border-color: rgba(255,255,255,.25); }
body.exui input[type="checkbox"]:where(:not(.custom-control-input, .ex-checkbox, .btn-check, .ex-switch input, .toggle input, .sr-only)):checked {
  border-color: var(--ex-a-35);
  background: var(--ex-a-10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ed1c24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
body.exui input[type="checkbox"]:where(:not(.custom-control-input, .ex-checkbox, .btn-check, .ex-switch input, .toggle input, .sr-only)):indeterminate { border-color: var(--ex-a-35); background: var(--ex-a-10) linear-gradient(var(--ex-accent), var(--ex-accent)) center / 10px 2px no-repeat; }
body.exui input[type="radio"]:where(:not(.custom-control-input, .ex-radio, .btn-check, .ex-switch input, .sr-only)):checked { border-color: var(--ex-accent); background: radial-gradient(circle, var(--ex-accent) 0 4px, transparent 4.6px), var(--ex-raised); box-shadow: 0 0 10px rgba(237,28,36,.3); }
body.exui input:is([type="checkbox"], [type="radio"]):where(:not(.custom-control-input, .ex-checkbox, .ex-radio, .btn-check, .sr-only)):focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui input:is([type="checkbox"], [type="radio"]):disabled { opacity: .5; cursor: default; }
/* check rows: Blesta .checkbox/.radio (BS3), BS4 .form-check, label > input */
body.exui :is(.checkbox, .radio, .form-check) { position: relative; display: block; margin-bottom: 10px; padding-left: 0; }
body.exui :is(.checkbox-inline, .radio-inline, .form-check-inline) { display: inline-flex; align-items: center; margin: 0 20px 10px 0; padding-left: 0; }
body.exui :is(.checkbox, .radio, .checkbox-inline, .radio-inline) > label:where(:not(.ex-choice)),
body.exui label:has(> input:is([type="checkbox"], [type="radio"])):where(:not([class^="ex-"]):not([class*=" ex-"])),
body.exui .form-check-label {
  display: inline-flex; align-items: center; gap: 10px; min-height: 24px; margin: 0; padding: 0;
  font: 400 14.5px/1.45 var(--ex-font); letter-spacing: -.003em; text-transform: none; color: var(--ex-fg-88); cursor: pointer;
}
body.exui .form-check { display: flex; align-items: center; gap: 10px; }
body.exui .form-check-input { position: static; margin: 0; }
body.exui :is(.checkbox, .radio) label .fa-question-circle { color: var(--ex-muted); font-size: 12px; }
/* Form::fieldCheckbox + label[for] as siblings (login "Remember me", contact
   "enable login"): the label speaks in the check-row voice, not the mono field label */
body.exui input:is([type="checkbox"], [type="radio"]) + label:where(:not([class^="ex-"]):not([class*=" ex-"]), .control-label) {
  display: inline; margin: 0 0 0 10px; vertical-align: middle;
  font: 400 14.5px/1.45 var(--ex-font); letter-spacing: -.003em; text-transform: none; color: var(--ex-fg-88); cursor: pointer;
}
/* choice tiles: radio rows inside cards and modals (pay methods, cancel options) */
body.exui :is(.card-body, .modal-body) .radio > label:where(:not(.ex-choice)) {
  display: flex; width: 100%; padding: 14px 16px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field);
  background: rgba(255,255,255,.015); transition: border-color var(--ex-dur-3), background-color var(--ex-dur-3);
}
body.exui :is(.card-body, .modal-body) .radio > label:where(:not(.ex-choice)):hover { border-color: var(--ex-fg-20); }
body.exui :is(.card-body, .modal-body) .radio > label:where(:not(.ex-choice)):is(:has(input:checked), .is-checked) { border-color: var(--ex-a-45); background: var(--ex-a-06); }
/* BS4 custom controls: the label draws the box */
body.exui .custom-control { min-height: 24px; padding-left: 30px; }
body.exui .custom-control-label { font: 400 14.5px/1.45 var(--ex-font); letter-spacing: -.003em; text-transform: none; color: var(--ex-fg-88); cursor: pointer; }
body.exui .custom-control-label::before {
  top: 1px; left: -30px; width: 20px; height: 20px; border: 1px solid var(--ex-line-strong); background-color: var(--ex-raised); box-shadow: none;
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui .custom-control-label::after { top: 1px; left: -30px; width: 20px; height: 20px; background-size: 14px; }
body.exui .custom-checkbox .custom-control-label::before { border-radius: var(--ex-r-sm); }
body.exui .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--ex-a-35); background-color: var(--ex-a-10); color: #fff; }
body.exui .custom-checkbox .custom-control-input:checked ~ .custom-control-label::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ed1c24' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
body.exui .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::before { border-color: var(--ex-a-35); background-color: var(--ex-a-10); }
body.exui .custom-checkbox .custom-control-input:indeterminate ~ .custom-control-label::after { background: linear-gradient(var(--ex-accent), var(--ex-accent)) center / 10px 2px no-repeat; }
body.exui .custom-radio .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--ex-accent); background: radial-gradient(circle, var(--ex-accent) 0 4px, transparent 4.6px), var(--ex-raised); box-shadow: 0 0 10px rgba(237,28,36,.3); }
body.exui .custom-radio .custom-control-input:checked ~ .custom-control-label::after { background-image: none; }
body.exui .custom-control-input:focus ~ .custom-control-label::before { box-shadow: none; }
body.exui .custom-control-input:focus:not(:checked) ~ .custom-control-label::before { border-color: var(--ex-line-strong); }
body.exui .custom-control-input:focus-visible ~ .custom-control-label::before { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui .custom-control-input:not(:disabled):active ~ .custom-control-label::before { background-color: var(--ex-a-10); border-color: var(--ex-a-35); }
body.exui .custom-control-input:disabled ~ .custom-control-label { color: var(--ex-fg-58); }
body.exui .custom-control-input:disabled ~ .custom-control-label::before { background-color: rgba(35,36,38,.45); }
/* switch → .ex-switch */
body.exui .custom-switch { padding-left: 48px; }
body.exui .custom-switch .custom-control-label::before { top: 2px; left: -48px; width: 36px; height: 20px; border-radius: var(--ex-r-pill); pointer-events: all; }
body.exui .custom-switch .custom-control-label::after { top: 4px; left: -46px; width: 14px; height: 14px; border-radius: 50%; background-color: #fff; box-shadow: 0 1px 3px rgba(13,15,18,.7); transition: transform var(--ex-dur-5) var(--ex-ease); }
body.exui .custom-switch .custom-control-input:checked ~ .custom-control-label::before { border-color: var(--ex-a-60); background-color: rgba(237,28,36,.85); }
body.exui .custom-switch .custom-control-input:checked ~ .custom-control-label::after { background-color: #fff; transform: translateX(16px); }
/* custom file input */
body.exui .custom-file { height: 50px; }
body.exui .custom-file-input { height: 50px; }
body.exui .custom-file-label {
  height: 50px; padding: 0 120px 0 16px; display: flex; align-items: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-raised); color: var(--ex-fg-72); font: 400 14.5px var(--ex-font); box-shadow: none;
}
body.exui .custom-file-label::after {
  top: 8px; right: 8px; bottom: 8px; height: auto; display: flex; align-items: center; padding: 0 14px;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint); color: #fff; font: 600 13px var(--ex-font);
}
body.exui .custom-file-input:focus ~ .custom-file-label { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
/* input groups → one .ex-inputgroup field with affixes inside */
body.exui .input-group:where(:not(.ex-inputgroup)) {
  flex-wrap: nowrap; align-items: stretch; min-height: 50px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field);
  background: var(--ex-raised); transition: border-color var(--ex-dur-2), box-shadow var(--ex-dur-2);
}
body.exui .input-group:where(:not(.ex-inputgroup)):hover { border-color: var(--ex-fg-20); }
body.exui .input-group:where(:not(.ex-inputgroup)):focus-within { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
body.exui .input-group:where(:not(.ex-inputgroup)):has(.is-invalid) { border-color: var(--ex-accent); }
body.exui .input-group > :is(.form-control, .custom-select, .custom-file):where(:not(.ex-input)) { height: 48px; border: 0; border-radius: 0; background-color: transparent; box-shadow: none; }
body.exui .input-group > :is(.form-control, .custom-select):where(:not(.ex-input)):focus { box-shadow: none; background-color: transparent; }
body.exui :is(.input-group-prepend, .input-group-append) { display: flex; align-items: center; margin: 0; }
body.exui .input-group-text {
  height: 100%; padding: 0 14px; border: 0; border-radius: 0; background: transparent;
  font: 500 13px/1 var(--ex-mono); letter-spacing: .04em; color: var(--ex-muted);
}
body.exui .input-group-prepend .input-group-text { padding-right: 0; }
body.exui .input-group-append .input-group-text { border-left: 1px solid var(--ex-line); }
body.exui :is(.input-group-prepend, .input-group-append) > .btn:where(:not(.ex-btn)) { height: 38px; margin: 0 5px; padding: 0 16px; }
body.exui :is(.input-group-sm) { min-height: 44px; }
body.exui .input-group-sm > :is(.form-control, .custom-select):where(:not(.ex-input)) { height: 42px; }
body.exui .input-group-text input:is([type="checkbox"], [type="radio"]) { margin: 0; }
body.exui fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }

/* ---- 17.9 nav tabs, pills, list groups ------------------------------------ */
/* .nav-tabs → .ex-tabs (underline + red dash); BS3 "li.active > a" markup too */
body.exui .nav-tabs:where(:not(.ex-tabs)) { display: flex; flex-wrap: wrap; gap: 0 30px; margin-bottom: 24px; border-bottom: 1px solid var(--ex-line); }
body.exui .nav-tabs .nav-item { margin-bottom: 0; }
body.exui .nav-tabs :is(.nav-link, li > a:not(.dropdown-item)) {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 46px; margin: 0 0 -1px; padding: 0;
  border: 0; border-radius: var(--ex-r-sm); background: transparent; white-space: nowrap; text-decoration: none;
  font: 500 14px/1.2 var(--ex-font); letter-spacing: -.005em; text-transform: none;   /* never the card-header label voice */
  transition: color var(--ex-dur-2);
}
/* tabs inside a card head (profile, contact forms): the head's hairline is the tab baseline */
body.exui .card > .card-header:has(> .nav-tabs) { padding-top: 0; padding-bottom: 0; }
body.exui .card-header > .nav-tabs:where(:not(.ex-tabs)) { flex: 1 1 auto; margin: 0 0 -1px; border-bottom: 0; }
body.exui .card-header > .nav-tabs :is(.nav-link, li > a:not(.dropdown-item)) { height: 56px; }
body.exui .nav-tabs :is(.nav-link, li > a:not(.dropdown-item))::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 14px; height: 3px; background: var(--ex-accent);
  transform: translateX(-50%) skewX(35deg); opacity: 0; transition: opacity var(--ex-dur-2);
}
body.exui .nav-tabs :is(.nav-link.active, .nav-item.show .nav-link, li.active > a) { background: transparent; border: 0; }
body.exui .nav-tabs :is(.nav-link.active, li.active > a)::after { opacity: 1; }
body.exui .nav-tabs :is(.nav-link, li > a:not(.dropdown-item)):focus-visible { outline-offset: -2px; }
body.exui .nav-tabs .nav-link.disabled { opacity: .5; }
body.exui .nav-tabs .nav-link .fas { color: var(--ex-muted); font-size: 13px; }
/* .nav-pills and toolbar tabs → .ex-seg (neutral active, the rule of one marker) */
body.exui :is(.nav-pills, .card-nav .nav-tabs) { display: flex; flex-wrap: wrap; gap: 6px; border: 0; margin-bottom: 20px; }
body.exui .card-nav :is(.nav-pills, .nav-tabs) { margin: 0; }
body.exui :is(.nav-pills, .card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item)) {
  display: inline-flex; align-items: center; gap: 8px; height: 32px; margin: 0; padding: 0 14px;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: transparent; font-size: 13px; font-weight: 500;
}
body.exui :is(.nav-pills, .card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item))::after { content: none; }
body.exui :is(.nav-pills, .card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item)):hover { border-color: rgba(255,255,255,.25); }
body.exui :is(.nav-pills, .card-nav .nav-tabs) :is(.nav-link.active, .show > .nav-link, li.active > a) { border-color: var(--ex-fg-22); background: var(--ex-raised); }
body.exui .nav:not(.nav-tabs):not(.nav-pills) .nav-link { padding: 8px 12px; border-radius: var(--ex-r-item); }
body.exui .nav-fill .nav-link, body.exui .nav-justified .nav-link { justify-content: center; }
body.exui .tab-content > .tab-pane { padding-top: 0; }
body.exui .card-header-tabs, body.exui .card-header-pills { margin: 0; }
/* list groups → hairline rows on one surface; as nav (.active) → sub-nav current marker */
body.exui .list-group:where(:not(.ex-actions)) { overflow: hidden; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface); }
body.exui :is(.card, .modal-content) > .list-group, body.exui .list-group-flush { border: 0; border-radius: 0; background: transparent; }
body.exui .list-group-item {
  position: relative; padding: 14px 22px; margin: 0; border: 0; border-bottom: 1px solid var(--ex-line); border-radius: 0;
  background: transparent; color: var(--ex-fg-88); font-size: 15px;
}
body.exui .list-group-item:last-child { border-bottom: 0; }
body.exui .list-group-item + .list-group-item { border-top-width: 0; }
body.exui .list-group-item :is(h1,h2,h3,h4,h5) { font-size: 16px; margin-bottom: 4px; }
body.exui .list-group-item p { color: var(--ex-fg-72); }
body.exui :is(a.list-group-item, .list-group-item-action) { color: var(--ex-fg-82); text-decoration: none; cursor: pointer; transition: background-color var(--ex-dur-3), color var(--ex-dur-2); }
body.exui :is(a.list-group-item, .list-group-item-action):is(:hover, :focus) { background: var(--ex-row-hover); color: #fff; }
body.exui :is(a.list-group-item, .list-group-item-action):focus-visible { outline-offset: -2px; }
body.exui .list-group-item.active { z-index: 1; border-color: var(--ex-line); background: var(--ex-raised); color: #fff; }
body.exui .list-group-item.active::before { content: ""; position: absolute; top: 12px; bottom: 12px; left: 0; width: 2px; border-radius: 9999px; background: var(--ex-accent); }
body.exui .list-group-item.disabled, body.exui .list-group-item:disabled { color: var(--ex-fg-58); background: transparent; }
body.exui .list-group-item .fas:first-child { width: 18px; margin-right: 8px; color: var(--ex-muted); text-align: center; }
body.exui .list-group-horizontal > .list-group-item { border-bottom: 0; border-right: 1px solid var(--ex-line); }
body.exui .list-group-horizontal > .list-group-item:last-child { border-right: 0; }

/* ---- 17.10 dropdowns → the popover panel ------------------------------- */
body.exui .dropdown-menu {
  min-width: 220px; margin-top: 8px; padding: 8px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card);
  background: rgba(23,25,28,.96); box-shadow: var(--ex-shadow-console); color: var(--ex-fg-82); font-size: 14px; text-align: left;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); z-index: 1060;
}
body.exui .dropdown-menu[x-placement^="top"], body.exui .dropup .dropdown-menu { margin-top: 0; margin-bottom: 8px; }
body.exui .dropdown-item {
  display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 10px; border-radius: var(--ex-r-item);
  font-size: 14px; font-weight: 500; color: var(--ex-fg-82); white-space: nowrap; text-decoration: none; background: transparent;
  transition: color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui .dropdown-item:is(:hover, :focus) { background: var(--ex-fg-05); color: #fff; }
body.exui .dropdown-item:focus-visible { outline-offset: -2px; }
body.exui .dropdown-item:is(.active, :active) { background: var(--ex-fg-05); color: #fff; }
body.exui .dropdown-item:is(.disabled, :disabled) { color: var(--ex-fg-58); background: transparent; }
body.exui .dropdown-item :is(.fas, .far, .fa) { width: 16px; color: var(--ex-muted); font-size: 13px; text-align: center; transition: color var(--ex-dur-2); }
body.exui .dropdown-item:hover :is(.fas, .far, .fa) { color: #fff; }
body.exui .dropdown-item:has(:is(.fa-trash, .fa-trash-alt, .fa-ban, .fa-times, .fa-times-circle, .fa-minus-circle)):hover { background: var(--ex-a-10); }
body.exui .dropdown-divider { height: 1px; margin: 6px 4px; border: 0; background: var(--ex-line); overflow: hidden; }
body.exui .dropdown-header { padding: 4px 10px 8px; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .dropdown-item-text { padding: 6px 10px; color: var(--ex-fg-72); }

/* ---- 17.11 modals (#global_modal and its blestaModal clones) ------------ */
body.exui .modal-backdrop { background-color: var(--ex-bg); }
body.exui .modal-backdrop.show { opacity: .8; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.exui .modal-dialog { max-width: 560px; margin: 28px auto; filter: drop-shadow(0 40px 60px rgba(0,0,0,.55)); }
body.exui .modal-dialog.modal-lg, body.exui .modal-dialog.modal-xl { max-width: 760px; }
body.exui .modal-dialog.modal-sm { max-width: 400px; }
body.exui .modal.fade .modal-dialog { transform: translateY(12px); transition: transform var(--ex-dur-3) var(--ex-ease); }
body.exui .modal.show .modal-dialog, body.exui .modal.fade.show .modal-dialog { transform: none; }
body.exui .modal-content {
  --cut: 20px; position: relative; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); border-top-right-radius: 0;
  background: var(--ex-surface); color: var(--ex-fg-72); box-shadow: none; outline: 0;
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, 0 100%);
}
/* specular edge + blade corner (grey; lit only for destructive confirms) */
body.exui .modal-content::before { content: ""; position: absolute; top: 0; left: 12%; right: 20%; height: 1px; z-index: 3; pointer-events: none; background: linear-gradient(to right, transparent, rgba(255,255,255,.55), transparent); }
body.exui .modal-content::after {
  content: ""; position: absolute; top: 0; right: 0; z-index: 4; width: var(--cut); height: var(--cut); pointer-events: none;
  background: linear-gradient(45deg, transparent calc(50% - 1.5px), var(--ex-line-strong) calc(50% - 1px), var(--ex-line-strong) calc(50% + .25px), transparent calc(50% + .75px));
}
body.exui .modal-content:has(.btn.yes, .btn-danger, .ex-btn--danger)::after {
  background: linear-gradient(45deg, transparent calc(50% - 2px), var(--ex-accent) calc(50% - 1.25px), var(--ex-accent) calc(50% + .25px), transparent calc(50% + .75px));
  filter: drop-shadow(0 0 4px rgba(237,28,36,.9));
}
body.exui .modal-header {
  align-items: flex-start; gap: 16px; padding: 24px 24px 0; border: 0; border-radius: 0;
}
body.exui .modal-header :is(.modal-title, .global_modal_title, h1, h2, h3, h4, h5) {
  margin: 0; font-size: 22px; line-height: 1.2; font-weight: 800; letter-spacing: -.03em; color: #fff; text-wrap: balance;
}
body.exui .modal-header :is(.modal-title, .global_modal_title)::before { content: ""; display: block; width: 14px; height: 5px; margin: 4px 0 14px; background: var(--ex-accent); transform: skewX(35deg); }
body.exui .modal-header :is(.modal-title, .global_modal_title):empty::before { content: none; }   /* #global_modal while it loads: no orphan dash */
body.exui .modal-header :is(.modal-title, .global_modal_title) > :is(i, .fas, .far):first-child { display: none; }
body.exui .modal-header .close { margin: -4px -6px 0 auto; padding: 0; }
body.exui .modal-body { padding: 16px 24px 24px; font-size: 14.5px; line-height: 1.6; color: var(--ex-fg-72); }
body.exui .modal-body > :last-child { margin-bottom: 0; }
body.exui .modal-body > .ex-spinner:only-child { display: block; margin: 24px auto; }
body.exui .modal-footer {
  display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--ex-line);
  border-radius: 0 0 var(--ex-r-card) var(--ex-r-card); background: rgba(13,15,18,.3);
}
body.exui .modal-footer > * { margin: 0; }
body.exui .modal-footer:not(:has(*)) { display: none; }
/* buttons sit in DOM order (focus order = reading order); the confirm dialog prints "keep" first */
body.exui .modal-footer > form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
/* confirm dialog (client_dialog_confirm.pdt): "Yes" = destructive, "No" (keep) = secondary, keep sits first */
body.exui .modal .btn.yes:where(:not(.ex-btn)) { background-color: var(--ex-a-10); border-color: var(--ex-a-45); color: #fff; box-shadow: none; }
body.exui .modal .btn.yes:where(:not(.ex-btn)):is(:hover, :focus) { background-color: var(--ex-accent-strong); border-color: var(--ex-accent-strong); color: #fff; box-shadow: var(--ex-glow-strong); }
body.exui .modal .modal-footer .btn-primary[data-dismiss="modal"]:where(:not(.ex-btn)) { background-color: var(--ex-tint); border-color: var(--ex-line-strong); color: #fff; box-shadow: none; }
body.exui .modal .modal-footer .btn-primary[data-dismiss="modal"]:where(:not(.ex-btn))::after { content: none; }
body.exui .modal .modal-footer .btn-primary[data-dismiss="modal"]:where(:not(.ex-btn)):is(:hover, :focus) { background-color: var(--ex-a-08); border-color: var(--ex-a-50); color: #fff; box-shadow: var(--ex-glow); }
/* password generator dialog */
body.exui .modal-password .generate, body.exui .modal-password .save { margin-top: 10px; }
body.exui .modal-password-copied { color: #fff; font-size: 13px; }

/* ---- 17.12 pagination, breadcrumb, progress ------------------------------ */
body.exui .pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; padding: 0; border-radius: 0; list-style: none; }
body.exui .pagination :is(.page-link, li > a, li > span) {
  display: inline-grid; place-items: center; min-width: 32px; height: 32px; margin: 0; padding: 0 10px;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint);
  font: 500 12.5px/1 var(--ex-mono); text-decoration: none; box-shadow: none;
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2), color var(--ex-dur-2);
}
body.exui .pagination :is(.page-link, li > a):hover { border-color: var(--ex-a-50); background: var(--ex-a-08); }
body.exui .pagination :is(.page-link, li > a):focus { box-shadow: none; }
body.exui .pagination :is(.page-item.active .page-link, li.active > a, li.active > span, [aria-current] > .page-link) { z-index: 1; border-color: var(--ex-a-45); background: var(--ex-a-10); }
body.exui .pagination :is(.page-item.disabled .page-link, li.disabled > a, li.disabled > span) { border-color: var(--ex-line); background: transparent; opacity: .6; }
body.exui .pagination :is(.page-item:first-child .page-link, .page-item:last-child .page-link) { border-radius: var(--ex-r-pill); }
body.exui .breadcrumb {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 0 0 20px; padding: 0; border: 0; border-radius: 0; background: none;
  font: 500 12px/1.45 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); list-style: none;
}
body.exui .breadcrumb::before { content: ""; flex: none; width: 14px; height: 5px; margin-right: 12px; transform: skewX(35deg); background: var(--ex-accent); }
body.exui .breadcrumb-item { display: inline-flex; align-items: center; }
body.exui .breadcrumb-item + .breadcrumb-item { padding-left: 0; }
body.exui .breadcrumb-item + .breadcrumb-item::before { float: none; padding: 0 .55em; content: "·"; color: var(--ex-line-strong); }
body.exui .breadcrumb-item a { color: var(--ex-muted); text-decoration: none; border-radius: 2px; }
body.exui .breadcrumb-item a:hover { color: #fff; }
body.exui .breadcrumb-item.active { color: #fff; font-weight: 600; }
body.exui .breadcrumb-item :is(.fas, .far) { margin-right: 6px; font-size: 11px; }
body.exui .progress { height: 4px; margin: 10px 0; overflow: hidden; border-radius: var(--ex-r-pill); background: var(--ex-fg-06); box-shadow: none; font-size: 0; }
body.exui .progress-bar { background: var(--ex-accent); background-image: none; box-shadow: 0 0 10px var(--ex-accent); color: transparent; animation: none; transition: width .6s var(--ex-ease); }
body.exui .progress-bar:is(.bg-success, .progress-bar-success, .bg-info, .progress-bar-info) { background: linear-gradient(to right, rgba(255,255,255,.25), rgba(255,255,255,.75)); box-shadow: none; }

/* ---- 17.13 tooltip, popover ------------------------------------------------ */
body.exui .tooltip { z-index: var(--ex-z-toast); font-family: var(--ex-font); font-size: 12.5px; }
body.exui .tooltip.show { opacity: 1; }
body.exui .tooltip-inner { max-width: 260px; padding: 8px 10px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); background: var(--ex-raised); box-shadow: var(--ex-shadow-pop); color: var(--ex-fg-88); line-height: 1.45; text-align: left; }
body.exui .tooltip .arrow { display: none; }
body.exui .popover { max-width: 320px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: rgba(23,25,28,.96); box-shadow: var(--ex-shadow-console); font-family: var(--ex-font); color: var(--ex-fg-82); }
body.exui .popover .arrow { display: none; }
body.exui .popover-header { padding: 12px 16px; border-bottom: 1px solid var(--ex-line); border-radius: var(--ex-r-field) var(--ex-r-field) 0 0; background: transparent; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .popover-body { padding: 12px 16px; font-size: 13.5px; line-height: 1.5; color: var(--ex-fg-82); }
body.exui :is(a[data-toggle="tooltip"], a[data-toggle="popover"]) { color: var(--ex-muted); text-decoration: none; }
body.exui :is(a[data-toggle="tooltip"], a[data-toggle="popover"]):hover { color: #fff; }
body.exui :is(a[data-toggle="tooltip"], a[data-toggle="popover"]) > i { color: inherit !important; }

/* ---- 17.14 colour utilities → brand tokens (application.min.css pins most of
   them with !important; the answers are in §17.99) ----------------------- */
body.exui .text-white { color: #fff; }
body.exui .bg-transparent { background-color: transparent; }
body.exui :is(.shadow, .shadow-sm, .shadow-lg) { box-shadow: none; }

/* ---- 17.15 Blesta loading, nprogress, Font Awesome sizing ---------------- */
body.exui .loading_container {
  position: absolute; inset: 0; z-index: 20; display: grid; place-items: center; width: auto; height: auto;
  background: rgba(13,15,18,.6); border-radius: inherit;
}
body.exui .loading_container .loading_dialog { width: auto; margin: 0; }
body.exui .loading_container .loading_dialog .progress { width: 160px; }
/* exui-loading.js skeletons keep the loading_container root */
body.exui .loading_container.ex-skeleton { position: static; display: grid; place-items: normal; gap: var(--ex-gap); width: 100%; background: none; }
/* the getcards skeleton IS a card (.ex-card.ex-strip): keep its surface, border and cell grid */
body.exui .loading_container.ex-skeleton.ex-card { position: relative; gap: 0; border-radius: var(--ex-r-card); background: var(--ex-surface); }
body.exui .loading_container.ex-loading { position: absolute; inset: 0; }
body.exui :is(.content_section, .card-body, .card-content, td.subtable) { position: relative; }
/* NProgress: a single red filament along the top edge (nprogress.js ships no CSS) */
#nprogress { pointer-events: none; }
#nprogress .bar { position: fixed; top: 0; left: 0; z-index: 1100; width: 100%; height: 2px; background: var(--ex-accent); }
#nprogress .peg { position: absolute; right: 0; display: block; width: 100px; height: 100%; box-shadow: 0 0 10px var(--ex-accent), 0 0 5px var(--ex-accent); opacity: 1; transform: rotate(3deg) translate(0, -4px); }
#nprogress .spinner { display: none; }
/* Font Awesome inside text: smaller, muted, aligned */
body.exui :is(.fas, .far, .fab, .fa):where(:not(.fa-lg, .fa-2x, .fa-3x, .fa-4x, .fa-5x)) { font-size: .92em; }
body.exui :is(td, p, li, label, .card-header, .list-group-item) > :is(.fas, .far, .fa):first-child { color: var(--ex-muted); }
body.exui .fa-spin { animation-duration: 1s; }
body.exui .text-info > .fa-question-circle, body.exui .fa-question-circle.text-info { color: var(--ex-muted) !important; }
body.exui .img-thumbnail { padding: 4px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); background: var(--ex-surface); }
body.exui .captcha { margin-bottom: 20px; }
body.exui .marbot10 { margin-bottom: 10px; }
body.exui .martop10 { margin-top: 10px; }

/* ---- 17.16 datepicker, dropzone, Toast UI editor, bootstrap-slider ------- */
body.exui .datepicker.dropdown-menu { min-width: 0; padding: 10px; font: 500 12.5px/1 var(--ex-mono); }
body.exui .datepicker-dropdown::before, body.exui .datepicker-dropdown::after { display: none; }
body.exui .datepicker table { border-collapse: separate; border-spacing: 2px; }
body.exui .datepicker :is(td, th) { width: 32px; height: 32px; border-radius: var(--ex-r-pill); color: var(--ex-fg-82); text-shadow: none; }
body.exui .datepicker th { font-weight: 500; color: var(--ex-muted); }
body.exui .datepicker :is(.datepicker-switch, .prev, .next) { color: #fff; }
body.exui .datepicker table tr td.day:hover, body.exui .datepicker table tr td.focused,
body.exui .datepicker :is(.datepicker-switch, .prev, .next, tfoot tr th):hover,
body.exui .datepicker table tr td :is(span.month, span.year, span.decade, span.century):hover { background: var(--ex-fg-06); color: #fff; }
body.exui .datepicker table tr td :is(span.month, span.year, span.decade, span.century) { border-radius: var(--ex-r-pill); }
body.exui .datepicker table tr td:is(.old, .new) { color: var(--ex-fg-58); opacity: .7; }
body.exui .datepicker table tr td.today, body.exui .datepicker table tr td.today:hover { background: transparent; color: #fff; box-shadow: inset 0 0 0 1px var(--ex-fg-22); }
body.exui .datepicker table tr td:is(.active, .active.highlighted, .active:hover, .active.active),
body.exui .datepicker table tr td :is(span.active, span.active:hover) { background: var(--ex-a-10); border-color: var(--ex-a-45); color: #fff; text-shadow: none; box-shadow: inset 0 0 0 1px var(--ex-a-45); }
body.exui .datepicker table tr td.disabled { color: var(--ex-fg-20); }
/* dropzone: blestaBindDropZone turns input.drag-drop into div.dz-message (the
   clickable area) + .fallback + .dropzone-previews and adds .dropzone to the
   FORM itself — so the form stays unstyled and .dz-message gets .ex-drop */
body.exui :is(.dropzone .dz-message, input.drag-drop:not(.dz-hidden-input)) {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; margin: 0; padding: 12px 16px;
  border: 1px dashed var(--ex-line-strong); border-radius: var(--ex-r-field); background: transparent;
  color: var(--ex-fg-62); font-size: 13.5px; text-align: center; cursor: pointer;
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui .dropzone { min-height: 0; background: transparent; }
body.exui .dropzone.dz-clickable { cursor: auto; }
body.exui .dropzone .dz-message:hover, body.exui .dropzone.dz-drag-hover .dz-message { border-color: var(--ex-a-50); background: var(--ex-a-06); color: #fff; }
body.exui .dropzone .dz-message .fas { color: var(--ex-muted); }
body.exui .dropzone .dz-message .dz-button { padding: 0; border: 0; background: none; color: #fff; font-weight: 600; }
body.exui .dropzone-previews { display: flex; flex-wrap: wrap; gap: 10px; }
body.exui .dropzone-previews:not(:empty) { margin-top: 10px; }
body.exui .dz-preview { position: relative; display: inline-flex; align-items: center; gap: 10px; max-width: 100%; min-height: 36px; margin: 0; padding: 4px 12px 4px 4px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint); font: 400 12.5px var(--ex-mono); color: var(--ex-fg-82); }
body.exui .dz-preview .dz-image { width: 28px; height: 28px; overflow: hidden; border-radius: 50%; background: var(--ex-raised); }
body.exui .dz-preview .dz-image img { width: 100%; height: 100%; object-fit: cover; }
body.exui .dz-preview .dz-details { display: flex; gap: 8px; color: #fff; }
body.exui .dz-preview .dz-size { color: var(--ex-muted); }
body.exui .dz-preview .dz-progress { position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 9999px; background: var(--ex-fg-06); }
body.exui .dz-preview .dz-progress .dz-upload { display: block; height: 100%; background: var(--ex-accent); }
body.exui .dz-preview .dz-remove { margin-left: 4px; color: var(--ex-muted); font-size: 12px; text-decoration: none; }
body.exui .dz-preview .dz-remove:hover { color: #fff; }
body.exui .dz-preview :is(.dz-success-mark, .dz-error-mark) { display: none; }
body.exui .dz-preview .dz-error-message { color: #fff; }
/* Toast UI markdown editor (ticket replies, new ticket) */
body.exui .toastui-editor-defaultUI { overflow: hidden; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-raised); font-family: var(--ex-font); }
body.exui .toastui-editor-defaultUI:focus-within { border-color: var(--ex-accent); box-shadow: var(--ex-ring), var(--ex-glow); }
body.exui :is(.toastui-editor-defaultUI-toolbar, .toastui-editor-md-tab-container, .toastui-editor-mode-switch) { border-color: var(--ex-line); background: rgba(13,15,18,.35); }
body.exui .toastui-editor-defaultUI-toolbar { border-radius: var(--ex-r-field) var(--ex-r-field) 0 0; }
body.exui .toastui-editor-mode-switch { border-top: 1px solid var(--ex-line); border-radius: 0 0 var(--ex-r-field) var(--ex-r-field); }
body.exui .toastui-editor-toolbar-icons { border-color: transparent; background-color: transparent; filter: invert(.82); border-radius: var(--ex-r-sm); }
body.exui .toastui-editor-toolbar-icons:not(:disabled):hover { border-color: transparent; background-color: rgba(0,0,0,.14); }
body.exui .toastui-editor-toolbar-divider { background-color: var(--ex-line-strong); }
body.exui :is(.toastui-editor-tabs, .toastui-editor-mode-switch) .tab-item { border-color: var(--ex-line); background: transparent; color: var(--ex-muted); font: 500 12px var(--ex-mono); }
body.exui :is(.toastui-editor-tabs, .toastui-editor-mode-switch) .tab-item.active { border-color: var(--ex-line); background: var(--ex-raised); color: #fff; }
body.exui :is(.toastui-editor-main, .toastui-editor-md-container, .toastui-editor-ww-container, .toastui-editor-md-preview, .toastui-editor-main-container) { background: transparent; color: var(--ex-fg-88); }
body.exui .toastui-editor-md-splitter { background-color: var(--ex-line); }
body.exui :is(.ProseMirror, .toastui-editor-contents, .toastui-editor-contents p, .toastui-editor-contents li) { color: var(--ex-fg-88); font-family: var(--ex-font); font-size: 15px; caret-color: var(--ex-accent); }
body.exui .toastui-editor-md-container .ProseMirror { font-family: var(--ex-mono); font-size: 13.5px; }
body.exui .toastui-editor-contents :is(h1, h2, h3, h4) { border-color: var(--ex-line); color: #fff; }
body.exui .toastui-editor-contents :is(pre, code) { border-radius: var(--ex-r-sm); background: rgba(13,15,18,.6); color: var(--ex-fg-90); font-family: var(--ex-mono); }
body.exui .toastui-editor-contents blockquote { border-left-color: var(--ex-a-60); }
body.exui .toastui-editor-contents blockquote p { color: var(--ex-fg-82); }
body.exui .toastui-editor-contents a { color: #fff; text-decoration-color: var(--ex-a-60); }
body.exui .toastui-editor-contents :is(table th, table td) { border-color: var(--ex-line); }
body.exui .toastui-editor-contents table th { background: var(--ex-well); color: var(--ex-muted); }
body.exui :is(.toastui-editor-popup, .toastui-editor-context-menu, .toastui-editor-dropdown-toolbar) { border-color: var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-surface); box-shadow: var(--ex-shadow-pop); color: var(--ex-fg-82); }
body.exui .toastui-editor-popup-body :is(input, textarea) { border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); background: var(--ex-raised); color: #fff; }
body.exui .toastui-editor-popup-body label { color: var(--ex-muted); }
body.exui .toastui-editor-popup-body .toastui-editor-ok-button { border-radius: var(--ex-r-pill); background: var(--ex-accent); }
body.exui .toastui-editor-popup-body .toastui-editor-close-button { border-color: var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint); color: #fff; }
body.exui .toastui-editor-ww-code-block-language input { background: var(--ex-raised); color: #fff; }
body.exui .toastui-editor-toolbar-item-wrapper { color: var(--ex-fg-82); }
body.exui .toastui-editor-tooltip { border-radius: var(--ex-r-item); background: var(--ex-raised); color: var(--ex-fg-88); }
/* bootstrap-slider (configurable options): 1px track, red fill with LED, 16px white knob */
body.exui .slider.slider-horizontal { width: 100%; height: 24px; }
body.exui .slider.slider-horizontal .slider-track { top: 50%; height: 2px; margin-top: -1px; border-radius: 9999px; background: var(--ex-line-strong); background-image: none; box-shadow: none; }
body.exui .slider .slider-selection { background: var(--ex-accent); background-image: none; box-shadow: var(--ex-led); border-radius: 9999px; }
body.exui .slider .slider-track-high { background: transparent; }
body.exui .slider .slider-handle { top: 50%; width: 16px; height: 16px; margin-top: -8px; margin-left: -8px; border: 0; background: #fff; background-image: none; box-shadow: 0 1px 4px rgba(13,15,18,.7), 0 0 0 4px var(--ex-a-12); opacity: 1; }
body.exui .slider .slider-handle:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui .slider .tooltip-inner { font-family: var(--ex-mono); }
body.exui .slider .slider-tick { width: 6px; height: 6px; margin-top: -3px; background: var(--ex-line-strong); background-image: none; box-shadow: none; }
body.exui .slider .slider-tick.in-selection { background: var(--ex-accent); }
body.exui .slider .slider-tick-label { color: var(--ex-muted); font: 400 11.5px var(--ex-mono); }

/* ---- 17.16b prose in plugin markup ---------------------------------------
   Markdown the plugins print (support_manager ticket bodies, knowledge-base
   articles, download_manager folder notes) cannot carry .ex-prose, so the
   §09 prose recipe (DESIGN §5.23) is applied to their wrappers. The plugins'
   own stylesheets load later, hence the ID-strength selectors. */
body.exui #client_ticket_reply .ticket-reply > .response,
body.exui[class*="-knowledgebase-"] .article,
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 {
  font-size: 15px; line-height: 1.7; color: var(--ex-fg-82); overflow-wrap: break-word;
}
body.exui[class*="-knowledgebase-"] .article { font-size: 17px; line-height: 1.75; color: var(--ex-fg-72); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) > * + * { margin-top: 14px; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) :is(p, ul, ol, pre, blockquote, table, h1, h2, h3, h4, h5, h6) { margin-bottom: 0; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) :is(strong, b) { font-weight: 600; color: var(--ex-fg); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) a:not(.btn):not(.ex-file):not(.ex-btn) {
  color: var(--ex-fg); text-decoration: underline; text-decoration-color: var(--ex-a-60); text-underline-offset: .22em; transition: color var(--ex-dur-2);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) a:not(.btn):not(.ex-file):not(.ex-btn):hover { color: var(--ex-accent); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) code {
  padding: 2px 6px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-sm); background: var(--ex-well);
  font: 400 .86em var(--ex-mono); color: var(--ex-fg); overflow-wrap: anywhere;
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) pre {
  padding: 14px 16px; overflow-x: auto; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-well);
  font: 400 12.5px/1.75 var(--ex-mono); color: var(--ex-fg-90); white-space: pre;
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) pre code { padding: 0; border: 0; background: none; font-size: inherit; color: inherit; overflow-wrap: normal; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ul { display: grid; gap: 8px; padding: 0; list-style: none; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ul > li { position: relative; padding-left: 22px; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ul > li::before {
  content: ""; position: absolute; left: 0; top: calc(.85em - 2px); width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ol { display: grid; gap: 6px; padding-left: 22px; list-style: decimal; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ol > li { padding-left: 4px; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) ol > li::marker { font: 500 .85em var(--ex-mono); color: var(--ex-muted); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) blockquote {
  position: relative; margin-inline: 0; margin-bottom: 0; padding: 4px 0 4px 24px; border: 0; font-size: 16px; color: var(--ex-fg-90);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) blockquote::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px;
  background: linear-gradient(to bottom, var(--ex-accent), var(--ex-a-15)); box-shadow: 0 0 12px var(--ex-accent);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) blockquote > * + * { margin-top: 10px; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) :is(h1, h2) {
  margin-top: 40px; font-size: 24px; line-height: 1.15; font-weight: 700; letter-spacing: -.03em; color: var(--ex-fg);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) h3 { margin-top: 28px; font-size: 19px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--ex-fg); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) :is(h4, h5, h6) { margin-top: 24px; font-size: 16px; line-height: 1.35; font-weight: 700; color: var(--ex-fg); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) > :is(h1, h2, h3, h4):first-child { margin-top: 0; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) img { max-width: 100%; height: auto; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) hr { margin: 28px 0; border: 0; border-top: 1px solid var(--ex-line); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.5; }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) :is(th, td) { padding: 11px 14px 11px 0; border-bottom: 1px solid var(--ex-line); text-align: left; vertical-align: top; color: var(--ex-fg-82); }
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) th {
  padding-top: 0; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
:is(body.exui #client_ticket_reply .ticket-reply > .response, body.exui[class*="-knowledgebase-"] .article, body.exui #download_manager_client_main .downloads .col-md-12.pb-2) tr:last-child > td { border-bottom: 0; }

/* ---- 17.17 Bootstrap 5 and Bootstrap 3 leftovers in module markup -------- */
/* BS5 icons have no font on this stack: hide empty glyphs instead of drawing boxes */
body.exui i.bi:empty, body.exui .bi::before { display: none; }
body.exui .btn-close {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23898a8c' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M18 6 6 18M6 6l12 12'/%3E%3C/svg%3E") center / 14px no-repeat;
  opacity: 1; cursor: pointer;
}
body.exui .btn-close:hover { background-color: var(--ex-fg-06); }
body.exui .form-select { display: block; }
body.exui .form-check-input:where(:not(.ex-checkbox, .ex-radio)) { float: none; }
body.exui .form-switch .form-check-input { width: 36px; border-radius: var(--ex-r-pill); background-image: none; }
body.exui .form-switch .form-check-input::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: #fff; transform: translateX(-8px); transition: transform var(--ex-dur-5) var(--ex-ease); }
body.exui .form-switch .form-check-input:checked { border-color: var(--ex-a-60); background: rgba(237,28,36,.85); }
body.exui .form-switch .form-check-input:checked::after { transform: translateX(8px); }
body.exui .me-1 { margin-right: 4px; } body.exui .me-2 { margin-right: 8px; } body.exui .me-3 { margin-right: 16px; }
body.exui .ms-1 { margin-left: 4px; } body.exui .ms-2 { margin-left: 8px; } body.exui .ms-auto { margin-left: auto; }
body.exui .text-md-end { text-align: right; }
body.exui .text-end { text-align: right; }
body.exui .text-start { text-align: left; }
body.exui .fw-bold { font-weight: 700; }
body.exui .fw-semibold { font-weight: 600; }
body.exui .g-2 { gap: 8px; }
body.exui .g-3 { gap: 16px; }
body.exui .rounded-3 { border-radius: var(--ex-r-field); }
body.exui .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
/* BS3 panels and help */
body.exui .panel:where(:not(.panel-blesta)) { margin-bottom: 20px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface); box-shadow: none; }
body.exui .panel-heading { padding: 12px 22px; border-bottom: 1px solid var(--ex-line); background: transparent; color: var(--ex-muted); }
body.exui .panel .panel-heading .panel-title { font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .panel-footer { padding: 14px 22px; border-top: 1px solid var(--ex-line); background: transparent; }
/* ReliableSite module: render its dark set (shells add data-theme-mode on <html>) */
body.exui .rs-client { --rs-surface: var(--ex-surface); --rs-border: var(--ex-line-strong); --rs-text: var(--ex-fg-88); --rs-muted: var(--ex-muted); --rs-accent: var(--ex-accent); }
/* order wizard: jquery.sticky pins #sticker at top:0, under our sticky header */
body.exui .sticky-wrapper.is-sticky #sticker { top: calc(var(--ex-header-h) + 16px) !important; }
/* order config step: exui-order.css paints the first column itself as the
   card, so the row's negative gutter would push it 12px past the page edge */
body.exui #package_config > .row { margin-right: 0; margin-left: 0; }

/* ---- 17.18 responsive bridge ---------------------------------------------- */
@media screen and (max-width: 1023.98px) {
}
@media screen and (max-width: 767.98px) {
  body.exui .card-body { padding: 20px; }
  body.exui .card > .card-header, body.exui .card > .card-header:first-child, body.exui .card > .card-footer { padding-left: 20px; padding-right: 20px; }
  body.exui .card-body > .table-responsive, body.exui .card-body > .table:where(:not(.ex-table)) { margin-right: -20px; margin-left: -20px; }
  body.exui .card-body > .table:where(:not(.ex-table)) { width: calc(100% + 40px); }
  body.exui .card-body > :is(.table-responsive, .table):last-child { margin-bottom: -20px; }
  body.exui .card-nav { margin: -20px -20px 20px; padding: 12px 20px; }
  body.exui .card-nav > :is(.float-left, .float-right) { width: 100%; margin: 0; }
  body.exui form.widget_filter_form { margin: -20px -20px 20px; }
  body.exui form.widget_filter_form > .card { padding: 16px 20px 2px; }
  body.exui .card-body > .card-nav ~ :is(.table-responsive, .table), body.exui .card-body > :is(.table-responsive, .table):first-child { margin-top: -20px; }
  body.exui .table:where(:not(.ex-table)) :is(th, td) { padding: 14px 12px; }
  body.exui .table:where(:not(.ex-table)) tr > :is(th, td):first-child { padding-left: 20px; }
  body.exui .table:where(:not(.ex-table)) tr > :is(th, td):last-child { padding-right: 20px; }
  body.exui .table-responsive > .table { min-width: 560px; }
  body.exui .table-responsive > .table td { white-space: nowrap; }
  /* An expanded row's details cell sits in an anonymous table box that grows
     to its content's min-content width: the inherited nowrap above and a
     560px nested table pushed the whole details pane past the card. The
     details pane and its nested tables wrap instead. */
  body.exui .table-responsive > .table > tbody > tr.expand_details > td { white-space: normal; }
  body.exui tr.expand_details .table-responsive > .table { min-width: 0; }
  body.exui tr.expand_details .table-responsive > .table td { white-space: normal; overflow-wrap: anywhere; }
  /* .nav-tabs → the 2-column pill grid, like .ex-tabs */
  body.exui .nav-tabs:where(:not(.ex-tabs)):not(.card-nav .nav-tabs) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; border-bottom: 0; }
  body.exui .nav-tabs:not(.card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item)) { justify-content: center; width: 100%; height: 40px; margin: 0; padding: 0 12px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); font-size: 13px; white-space: normal; text-align: center; line-height: 1.2; }
  body.exui .nav-tabs:not(.card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item))::after { display: none; }
  body.exui .nav-tabs:not(.card-nav .nav-tabs) :is(.nav-link.active, li.active > a) { border-color: var(--ex-a-45); background: var(--ex-a-10); }
  body.exui .nav-tabs:not(.card-nav .nav-tabs) > :is(.nav-item, li):last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.exui .card > .card-header:has(> .nav-tabs) { padding-top: 16px; padding-bottom: 16px; }
  body.exui .card-header > .nav-tabs:where(:not(.ex-tabs)) { margin: 0; }
  body.exui .modal-dialog { margin: 16px; max-width: none; }
  body.exui .modal-dialog-centered { min-height: calc(100% - 32px); }
  body.exui .modal-header { padding: 20px 20px 0; }
  body.exui .modal-body { padding: 14px 20px 20px; }
  body.exui .modal-footer { flex-direction: column-reverse; align-items: stretch; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); }   /* primary on top, DOM (focus) order kept */
  body.exui .modal-footer > form { flex-direction: column-reverse; }
  body.exui .modal-footer :is(.btn, .ex-btn) { width: 100%; height: 48px; }
  body.exui .btn-xs:where(:not(.ex-btn)) { height: 36px; }
  body.exui .alert:where(:not(.ex-alert)) > p:has(> .btn) .btn { flex: 1; height: 44px; }
  body.exui .pagination :is(.page-link, li > a, li > span) { min-width: 40px; height: 40px; }
  body.exui :is(.card-links, .panel-links) > li > a, body.exui :is(.nav-pills, .card-nav .nav-tabs) :is(.nav-link, li > a:not(.dropdown-item)) { height: 40px; }
  body.exui .card-nav .btn:where(:not(.ex-btn)) { height: 40px; }
  body.exui .card-nav .filter-toggle:where(:not(.ex-btn)) { width: 40px; }
  body.exui .list-group-item { padding: 14px 20px; }
  body.exui .float-right:has(> .btn) { float: none !important; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
}

/* =========================================================================
   17.99 !important answers to application.min.css
   Blesta's stylesheet pins these with !important; only an !important of
   equal or higher specificity can repaint them. Elsewhere !important only
   answers a Blesta utility (.text-danger in labels, .text-info help icons,
   .float-right on phones), [hidden], reduced motion, print, .is-loading,
   tr.ex-details, .valid-feedback and the order wizard #sticker offset.
     application.min.css rule (abridged)                      → answer here
     .card-blesta,.panel-blesta{border-radius:.3rem}          → 16px
     .border,.card-blesta,.panel-blesta,.well{border:#dee2e6} → line tokens
     .card-blesta,.panel-blesta,.cards .card{margin-bottom}   → --ex-gap
     .bg-light,.well,.top-focus-box,form.widget_filter_form,
       .table-hover>tbody>tr:hover>td{background:#f8f9fa}     → surface/well/row-hover
     .bg-white, form.widget_filter_form .well{#fff}           → surface/well
     a.bg-light:hover, a.well:hover, a.top-focus-box:hover    → tint
     .cards .card{radius .25rem; text-align:center}           → 16px, left
     .card-blesta>.list-group .list-group-item:last-child     → card radius
     .p-2,form.widget_filter_form{padding:.5rem}              → 0 on the form
     .nav .nav-item .nav-link, .pagination .page-link,
       .list-group.list-options .list-group-item,
       .text-secondary, .top-focus-box{color:#6c757d}          → brand greys
     .nav .nav-item .nav-link.active, .text-dark{#343a40}     → white
     a.text-*:hover, .nav a.nav-link:hover{…}                 → white
     .pagination .page-item.disabled .page-link{rgba(0,0,0,.5)} → muted
     .label{color:#fff}                                       → fg-82
     .form-control.is-invalid/.is-valid{padding-right}        → field padding
     .text-* / .bg-* / .border-* / .shadow* utilities         → brand tokens
   ========================================================================= */
body.exui :is(.card-blesta, .panel-blesta) { border: 1px solid var(--ex-line-strong) !important; border-radius: var(--ex-r-card) !important; margin-bottom: var(--ex-gap) !important; }
body.exui .card .card-blesta { margin-bottom: 0 !important; }
body.exui :is(.ex-col, .ex-stack, .ex-layout) > :is(.card-blesta, .panel-blesta) { margin-bottom: 0 !important; }   /* grids and stacks own the gaps */
body.exui .card-blesta > .list-group .list-group-item:last-child { border-radius: 0 0 var(--ex-r-card) var(--ex-r-card) !important; }
body.exui .well { padding: 16px !important; border: 1px solid var(--ex-line-strong) !important; border-radius: var(--ex-r-field) !important; background-color: var(--ex-surface) !important; }
body.exui :is(.card, .modal-content, .well) .well { border-color: var(--ex-line) !important; background-color: var(--ex-well) !important; }
body.exui .top-focus-box { background-color: transparent !important; color: inherit !important; }
body.exui form.widget_filter_form { padding: 0 !important; background-color: transparent !important; }
body.exui form.widget_filter_form .well { background-color: var(--ex-well) !important; }
body.exui .table-hover > tbody > tr:hover > :is(td, th) { background-color: var(--ex-row-hover) !important; }
body.exui .table-hover > tbody > tr.expand_details:hover > td { background-color: rgba(13,15,18,.35) !important; }
body.exui .cards .card { border-radius: var(--ex-r-card) !important; text-align: left !important; margin-bottom: var(--ex-gap) !important; }
body.exui .rounded { border-radius: var(--ex-r-field) !important; }
body.exui .rounded-lg { border-radius: var(--ex-r-card) !important; }
body.exui .rounded-circle { border-radius: 50% !important; }
body.exui .rounded-pill { border-radius: var(--ex-r-pill) !important; }

/* navigation colours */
body.exui .nav .nav-item .nav-link, body.exui .nav-tabs .nav li .nav-link, body.exui .nav .nav-tabs li a { color: var(--ex-fg-78) !important; }
body.exui .nav-pills.nav .nav-item .nav-link, body.exui .card-nav .nav .nav-item .nav-link { color: var(--ex-muted) !important; }
body.exui .nav .nav-item a.nav-link:is(:hover, :focus), body.exui .nav .nav-tabs li a:is(:hover, :focus),
body.exui .nav .nav-item .nav-link.active, body.exui .nav .nav-item a.nav-link.active:is(:hover, :focus),
body.exui .nav .nav-tabs li.active a, body.exui .nav .nav-tabs li a.active { color: #fff !important; }
body.exui .list-group.list-options .list-group-item { color: var(--ex-fg-82) !important; }
body.exui .list-group.list-options a.list-group-item:is(:hover, :focus) { color: #fff !important; }
body.exui :is(.pagination .page-item .page-link, div.pagination ul.pagination li .page-link, div.pagination ul.pagination li a) { color: var(--ex-fg-82) !important; }
body.exui :is(.pagination .page-item a.page-link, div.pagination ul.pagination li a):is(:hover, :focus),
body.exui :is(.pagination .page-item.active .page-link, div.pagination ul.pagination li.active a, div.pagination ul.pagination li.active .page-link) { color: #fff !important; }
body.exui :is(.pagination .page-item.disabled .page-link, div.pagination ul.pagination li.disabled a, div.pagination ul.pagination li.disabled .page-link) { color: var(--ex-muted) !important; }
body.exui .label:where(:not(.ex-pill)) { color: var(--ex-fg-82) !important; }

/* validation padding (Bootstrap reserves room for icons we do not draw) */
body.exui .form-control:is(.is-invalid, .is-valid), body.exui .was-validated .form-control:is(:invalid, :valid) { padding-right: 16px !important; }
body.exui textarea.form-control:is(.is-invalid, .is-valid) { padding-right: 16px !important; }
body.exui .custom-select:is(.is-invalid, .is-valid), body.exui .was-validated .custom-select:is(:invalid, :valid) { padding-right: 44px !important; }

/* text colours: meaning lives in an adjacent pill or dash, never in hue (DESIGN §6) */
body.exui :is(.text-muted, .text-secondary, .text-black-50) { color: var(--ex-muted) !important; }
body.exui :is(.text-danger, .text-success, .text-warning, .text-info, .text-primary, .text-dark, .text-body, .text-light) { color: #fff !important; }
body.exui .text-body, body.exui .text-light { color: var(--ex-fg-82) !important; }
body.exui .text-white-50 { color: var(--ex-fg-58) !important; }
body.exui a:is(.text-primary, .text-secondary, .text-success, .text-info, .text-warning, .text-danger, .text-light, .text-dark):is(:hover, :focus) { color: #fff !important; }
/* backgrounds: no Bootstrap blue/green/yellow; coloured stat cards become surfaces */
body.exui :is(.bg-light, .bg-white) { background-color: var(--ex-surface) !important; }
body.exui .card :is(.bg-light, .bg-white):not(.card) { background-color: var(--ex-well) !important; }
body.exui :is(.bg-info, .bg-success, .bg-warning, .bg-primary, .bg-secondary) { background-color: var(--ex-surface) !important; color: var(--ex-fg-82); }
body.exui .card:is(.bg-info, .bg-success, .bg-warning, .bg-primary, .bg-secondary) { border-color: var(--ex-line-strong) !important; }
body.exui :is(.bg-info, .bg-success, .bg-warning, .bg-primary, .bg-secondary) :is(h1, h2, h3, h4, h5, .card-title) { color: #fff; }
body.exui .bg-danger { background-color: var(--ex-a-10) !important; color: #fff; }
body.exui .bg-dark { background-color: var(--ex-raised) !important; }
body.exui :is(a, button):is(.bg-light, .bg-white, .top-focus-box, .well):is(:hover, :focus) { background-color: var(--ex-tint) !important; }
body.exui :is(a, button):is(.bg-primary, .bg-success, .bg-info, .bg-warning, .bg-secondary, .bg-dark):is(:hover, :focus) { background-color: var(--ex-raised) !important; }
body.exui :is(a, button).bg-danger:is(:hover, :focus) { background-color: var(--ex-a-15) !important; }
/* borders */
body.exui :is(.border, .border-top, .border-right, .border-bottom, .border-left) { border-color: var(--ex-line) !important; }
body.exui :is(.border-primary, .border-danger) { border-color: var(--ex-a-45) !important; }
body.exui :is(.border-secondary, .border-success, .border-info, .border-warning, .border-light, .border-dark) { border-color: var(--ex-line-strong) !important; }
body.exui .border-white { border-color: var(--ex-fg-22) !important; }
/* shadows: cards have none (DESIGN §2.2) */
body.exui :is(.shadow, .shadow-sm, .shadow-lg) { box-shadow: none !important; }
