/* exui page compositions — plugins (DESIGN §5.23, §7.5, §7.11, §7.12).
   Loaded on every page after exui.css. Plugin and module stylesheets
   (support_manager styles.css / kb.css, download_manager styles.css, order
   styles.css, exui-order.css) load AFTER this file and win ties, so every rule
   carries body.exui plus the plugin's own wrapper (#client_tickets,
   #client_ticket_reply, .card-kb, …), a theme override root (.ex-domains,
   .ex-orderforms) or a route match. Route classes are matched by substring
   (body.exui[class*="-knowledgebase-"]) because Blesta builds them as
   plugin-{dir}client-{controller}-{action}.
   Plugin views are stock markup (theme overrides of plugin views are not
   honoured in production, PO §0.2), so this file styles their classes; the
   .ex-thread / .ex-msg block (P5) is the composition plugins.js builds from
   the same markup when it runs.

   Contents
     P0  shared: icon masks, plugin card chrome, prose for plugin markdown
     P1  support: ticket lists (#client_tickets; the dashboard widget too)
     P2  support: choose a department
     P3  support: open a ticket
     P4  support: ticket thread (stock markup)
     P5  support: ticket thread composed by plugins.js
     P6  support: feedback
     P7  knowledge base
     P8  downloads (download_manager)
     P9  documents (client_documents)
     P10 orders, order view, affiliates (order plugin client pages)
     P11 domains (theme override)
     P12 order forms list (theme override)
     P13 module client tabs (service manage)
     P14 order flow (guest and signed in): shell-coherence fixes
     P15 tablets and phones
     P16 reduced motion, forced colours
     P17 stock plugin views (domains, order forms) and the list grammar (tickets) */

/* ---- P0 shared ------------------------------------------------------------ */
/* Lucide line icons as masks for markup that carries no theme icon (the
   colour is currentColor / background; the data URIs only give the shape). */
body.exui {
  --exp-i-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m12 5 7 7-7 7'/%3E%3C/svg%3E");
  --exp-i-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m9 18 6-6-6-6'/%3E%3C/svg%3E");
  --exp-i-download: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3Cpath d='M12 15V3'/%3E%3C/svg%3E");
  --exp-i-folder: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z'/%3E%3C/svg%3E");
  --exp-i-file: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3Cpath d='M10 9H8'/%3E%3Cpath d='M16 13H8'/%3E%3Cpath d='M16 17H8'/%3E%3C/svg%3E");
  --exp-i-book: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 3h6a4 4 0 0 1 4 4v14a3 3 0 0 0-3-3H2z'/%3E%3Cpath d='M22 3h-6a4 4 0 0 0-4 4v14a3 3 0 0 1 3-3h7z'/%3E%3C/svg%3E");
  --exp-i-msg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15a2 2 0 0 1-2 2H7l-4 4V5a2 2 0 0 1 2-2h14a2 2 0 0 1 2 2z'/%3E%3C/svg%3E");
  --exp-i-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  --exp-i-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
  --exp-i-plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E");
  --exp-i-reply: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 17 4 12l5-5'/%3E%3Cpath d='M20 18v-2a4 4 0 0 0-4-4H4'/%3E%3C/svg%3E");
  --exp-i-filter: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M7 12h10'/%3E%3Cpath d='M10 18h4'/%3E%3C/svg%3E");
  --exp-i-eye: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.06 12.35a1 1 0 0 1 0-.7 10.75 10.75 0 0 1 19.88 0 1 1 0 0 1 0 .7 10.75 10.75 0 0 1-19.88 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E");
  --exp-i-ban: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E");
  --exp-i-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6 6 18'/%3E%3Cpath d='m6 6 12 12'/%3E%3C/svg%3E");
  --exp-i-upload: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpath d='m17 8-5-5-5 5'/%3E%3Cpath d='M12 3v12'/%3E%3C/svg%3E");
  --exp-i-table: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v18'/%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M3 15h18'/%3E%3C/svg%3E");
  --exp-i-up: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 10v12'/%3E%3Cpath d='M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z'/%3E%3C/svg%3E");
  --exp-i-wallet: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 7V4a1 1 0 0 0-1-1H5a2 2 0 0 0 0 4h15a1 1 0 0 1 1 1v4h-3a2 2 0 0 0 0 4h3a1 1 0 0 0 1-1v-2a1 1 0 0 0-1-1'/%3E%3Cpath d='M3 5v14a2 2 0 0 0 2 2h15a1 1 0 0 0 1-1v-4'/%3E%3C/svg%3E");
  --exp-i-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17 14V2'/%3E%3Cpath d='M9 18.12 10 14H4.17a2 2 0 0 1-1.92-2.56l2.33-8A2 2 0 0 1 6.5 2H20a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2h-2.76a2 2 0 0 0-1.79 1.11L12 22a3.13 3.13 0 0 1-3-3.88Z'/%3E%3C/svg%3E");
}

/* Font Awesome glyphs inside plugin buttons → the matching Lucide line icon
   (the portal's one icon family). The <i> becomes the mask box; its colour
   stays currentColor, so each button's own icon colour rule still applies.
   Unmapped FA icons keep their glyph. */
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback, #create_ticket, .rate, #client_orders, #client_orders_view)
  :is(.btn, .dropdown-item, a) > .fas:is(.fa-plus-circle, .fa-plus, .fa-filter, .fa-reply, .fa-ban, .fa-eye, .fa-times, .fa-upload, .fa-thumbs-up, .fa-thumbs-down),
body.exui[class*="plugin-client_documents"] #client_main .btn > .fas.fa-download,
body.exui :is(#create_ticket, #client_ticket_reply) .dz-message > .fas.fa-upload {
  display: inline-block; flex: none; width: 14px; height: 14px; margin: 0; font-size: 0; line-height: 0; vertical-align: -2px; background: currentColor;
  -webkit-mask: var(--exp-i, var(--exp-i-plus)) center / contain no-repeat; mask: var(--exp-i, var(--exp-i-plus)) center / contain no-repeat;
}
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback, #create_ticket, .rate, #client_orders, #client_orders_view, [class*="plugin-client_documents"] #client_main) .fas:is(.fa-plus-circle, .fa-plus, .fa-filter, .fa-reply, .fa-ban, .fa-eye, .fa-times, .fa-upload, .fa-thumbs-up, .fa-thumbs-down, .fa-download)::before { content: none; }
body.exui .fas:is(.fa-plus-circle, .fa-plus) { --exp-i: var(--exp-i-plus); }
body.exui .fas.fa-filter { --exp-i: var(--exp-i-filter); }
body.exui .fas.fa-reply { --exp-i: var(--exp-i-reply); }
body.exui .fas.fa-ban { --exp-i: var(--exp-i-ban); }
body.exui .fas.fa-eye { --exp-i: var(--exp-i-eye); }
body.exui .fas.fa-times { --exp-i: var(--exp-i-x); }
body.exui .fas.fa-upload { --exp-i: var(--exp-i-upload); }
body.exui .fas.fa-download { --exp-i: var(--exp-i-download); }
body.exui .fas.fa-thumbs-up { --exp-i: var(--exp-i-up); }
body.exui .fas.fa-thumbs-down { --exp-i: var(--exp-i-down); }

/* ---- P1 support: ticket lists ---------------------------------------------- */
/* table columns (stock order): code · priority · department · summary · last
   reply · [status] · actions; the closed tab has no status column. */
body.exui #client_tickets .table td:first-child > a { font: 600 13.5px/1.2 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg); text-decoration: none; white-space: nowrap; }
body.exui #client_tickets .table td:first-child > a::before { content: "#"; margin-right: 1px; color: var(--ex-muted); font-weight: 400; }
body.exui #client_tickets .table td:first-child > a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
/* the whole row opens the ticket (DESIGN §7.11: the subject is the link). The
   plugin links only the number, so its link is stretched over the row; the
   actions cell sits above it, and a cell with an open menu above the rows
   after it. */
body.exui #client_tickets .table tbody > tr { position: relative; }
body.exui #client_tickets .table tbody > tr > td:first-child > a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
body.exui #client_tickets .table tbody > tr > td:first-child > a:focus-visible { outline: 0; }
body.exui #client_tickets .table tbody > tr > td:first-child > a:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: -2px; }
body.exui #client_tickets .table tbody > tr > td:last-child { position: relative; z-index: 1; }
body.exui #client_tickets .table tbody > tr > td:last-child:has(.dropdown-menu.show) { z-index: 5; }
body.exui #client_tickets .table tbody > tr:hover > td { background-color: var(--ex-row-hover); }
body.exui #client_tickets .table tbody > tr:hover > td:first-child > a { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
/* application.min.css sets every .table-responsive cell to nowrap, which
   pushed the table to 1193px and scrolled Status and the actions out of the
   card below ~1280px: the department and the subject wrap instead. */
body.exui #client_tickets .table td:nth-child(3) { font-size: 13.5px; line-height: 1.4; color: var(--ex-muted); }
/* hostnames in a subject break between words, never mid-token ("vps-" / "01.northwind…") */
body.exui #client_tickets .table td:nth-child(4) { width: 40%; min-width: 12em; font-size: 15px; font-weight: 600; letter-spacing: -.01em; line-height: 1.4; color: var(--ex-fg); white-space: normal; overflow-wrap: break-word; }
body.exui #client_tickets .table td:nth-child(5) { font: 400 12.5px/1.3 var(--ex-mono); color: var(--ex-muted); white-space: nowrap; }
/* status (open tab): the plugin prints only the staff label ("Awaiting
   Client") and CSS cannot tell who a status waits on, so without plugins.js
   the label sits in the neutral pill frame with no glyph (a wrong glyph is
   worse than none; DESIGN §6). plugins.js swaps in the coded pill (.ex-pill)
   and the one attention row. A table cell cannot be the pill, so the frame
   is drawn behind the label, equal down the column (as on the orders list);
   the cell lets clicks through to the row link. */
body.exui #client_tickets .table:has(thead th:nth-child(7)) td:nth-child(6) {
  font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-fg-82); white-space: nowrap;
}
body.exui #client_tickets .table:has(thead th:nth-child(7)) tbody > tr > td:nth-child(6):not(:has(.ex-pill)) {
  position: relative; width: 1%; padding-left: 24px; padding-right: 24px; text-align: center; pointer-events: none;
}
body.exui #client_tickets .table:has(thead th:nth-child(7)) tbody > tr > td:nth-child(6):not(:has(.ex-pill))::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 24px; margin-top: -12px; box-sizing: border-box;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); pointer-events: none;
}
body.exui #client_tickets .table:has(thead th:nth-child(7)):not(:has(td .ex-pill)) > thead th:nth-child(6) { text-align: center; }
/* the actions column has no visible caption, as on the theme's own lists
   (the plugins print "Actions"): the text stays for screen readers */
body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th:last-child:not(:has(a)) { color: transparent; }
/* priority: an attribute, so a plain chip, and only when it is High or above
   (classes from the plugin: low secondary, medium primary, high info,
   critical warning, emergency danger, DESIGN §7.11). Low and Medium are
   quiet text in the department's voice; the stacked rows keep them for
   screen readers only (P15). */
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback) .badge:is(.badge-secondary, .badge-primary, .badge-default) {
  height: auto; padding: 0; border: 0; background: none; box-shadow: none;
  font: inherit; letter-spacing: inherit; text-transform: none; color: inherit;
}
body.exui #client_tickets .table .badge:is(.badge-secondary, .badge-primary, .badge-default) {
  font: 400 13.5px/1.4 var(--ex-font); letter-spacing: 0; color: var(--ex-muted);
}
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback) .badge:is(.badge-secondary, .badge-primary, .badge-default)::before { content: none; display: none; }
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback) .badge:is(.badge-info, .badge-warning, .badge-danger) {
  border-color: var(--ex-line-strong); background: var(--ex-raised); color: var(--ex-fg);
}
body.exui :is(#client_tickets, #client_ticket_reply, #client_ticket_feedback) .badge:is(.badge-info, .badge-warning, .badge-danger)::before { content: none; display: none; }
/* row actions: "Reply" + the split menu (Close) */
body.exui #client_tickets .table td:last-child { width: 1%; white-space: nowrap; text-align: right; }
body.exui #client_tickets .table td:last-child form { display: inline-block; margin: 0; }
body.exui #client_tickets .table td:last-child .btn .fas { color: var(--ex-muted); font-size: 12px; }
body.exui #client_tickets .table td:last-child a.btn > .fa-plus-circle { --exp-i: var(--exp-i-reply); } /* the row action is Reply */
/* the split menu (one item, Close) opens from the group's right edge: Popper
   placed it bottom-start, 220px wide from the toggle, past the wrap at 1440
   and past the viewport on phones. Popper's inline left/top/transform are
   answered with !important. */
body.exui #client_tickets td:last-child .btn-group > .dropdown-menu {
  top: 100% !important; left: auto !important; right: 0 !important; transform: none !important; /* answers Popper's inline placement */
  min-width: 168px; margin-top: 6px;
}
/* plugins.js: the one ticket awaiting the client's reply (DESIGN §6 act row) */
body.exui #client_tickets .table tr.is-attn > td { background-color: var(--ex-a-06); }
/* the red edge is a shadow, not a positioned bar: a positioned first cell
   would trap the row-wide link inside it */
body.exui #client_tickets .table tr.is-attn > td:first-child { box-shadow: inset 2px 0 0 var(--ex-accent), inset 14px 0 14px -14px var(--ex-a-35); }
/* plugins.js labels the icon-only filter toggle */
body.exui #client_tickets .card-nav .filter-toggle:has(.ex-plugins__label) { width: auto; gap: 8px; padding: 0 14px; }
body.exui #client_tickets .card-nav .filter-toggle .ex-plugins__label { font-size: 13px; font-weight: 600; }
/* the list page's one red: Open a ticket (the dashboard widget keeps it secondary) */
body.exui[class*="plugin-support_manager"] #client_tickets .card-nav .float-right > a.btn[href*="/departments/"] {
  isolation: isolate; overflow: hidden; border-color: transparent; background: var(--ex-accent); color: var(--ex-fg); box-shadow: var(--ex-inset-hi);
}
body.exui[class*="plugin-support_manager"] #client_tickets .card-nav .float-right > a.btn[href*="/departments/"]:hover {
  border-color: transparent; background: var(--ex-accent-strong); box-shadow: var(--ex-inset-hi), var(--ex-glow-strong); color: var(--ex-fg);
}
body.exui[class*="plugin-support_manager"] #client_tickets .card-nav .float-right > a.btn[href*="/departments/"]:focus-visible { outline-color: var(--ex-fg); }
body.exui[class*="plugin-support_manager"] #client_tickets .card-nav .float-right > a.btn[href*="/departments/"] .fas { color: var(--ex-fg); }
/* empty tab: the stock info alert ("There are no tickets.") takes the
   .ex-empty look the other lists use (DESIGN §5: dot-grid well, icon chip,
   the line as the title). Pseudo elements stand in for the chip: the alert
   has no markup to hang one on. */
body.exui #client_tickets .card-body > .alert-info:last-child {
  position: relative; isolation: isolate; display: grid; justify-items: center; gap: 10px; margin: 0; padding: 56px 24px 52px;
  border: 0; border-radius: 0; background: none; box-shadow: none; text-align: center;
}
body.exui #client_tickets .card-body > .alert-info:last-child::before {
  content: ""; position: absolute; inset: 0; z-index: -1; width: auto; 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%, black, transparent); mask-image: radial-gradient(ellipse 60% 80% at 50% 45%, black, transparent);
}
body.exui #client_tickets .card-body > .alert-info:last-child > p {
  position: relative; display: grid; justify-items: center; margin: 0; max-width: 44ch;
  font-size: var(--ex-fs-h3); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; color: var(--ex-fg);
}
body.exui #client_tickets .card-body > .alert-info:last-child > p::before {
  content: ""; width: 44px; height: 44px; margin-bottom: 18px; box-sizing: border-box;
  border: 1px solid var(--ex-line-strong); border-radius: 12px; background: var(--ex-raised);
}
body.exui #client_tickets .card-body > .alert-info:last-child > p::after {
  content: ""; position: absolute; top: 12px; left: 50%; width: 20px; height: 20px; margin-left: -10px; background: var(--ex-fg);
  -webkit-mask: var(--exp-i-msg) center / contain no-repeat; mask: var(--exp-i-msg) center / contain no-repeat;
}
/* the dashboard widget keeps a compact line */
body.exui .ex-dash-widgets #client_tickets .card-body > .alert-info:last-child { padding: 36px 24px 32px; }
body.exui .ex-dash-widgets #client_tickets .card-body > .alert-info:last-child > p { font-size: 16px; }

/* ---- P2 support: choose a department --------------------------------------- */
/* stock: #client_tickets .card-body > .row > .col-md-6 > .list-group > a.list-group-item > h4 + p…
   The outer card opens up (no card inside a card); each department is a
   clickable choice card with the brand glow. */
body.exui #client_tickets:has(a.list-group-item) { border: 0 !important; /* answers .card-blesta (application.min.css, exui.css 17.99) */ background: none; }
body.exui #client_tickets:has(a.list-group-item)::after { content: none; }
body.exui #client_tickets:has(a.list-group-item) > .card-content > .card-body { padding: 0; }
body.exui #client_tickets .card-body > .row:has(.list-group) { row-gap: var(--ex-gap); }
body.exui #client_tickets .card-body > .row > [class*="col-"] > .list-group { height: 100%; margin: 0 !important; /* answers .mb-3 */ overflow: visible; border: 0; background: none; }
body.exui #client_tickets .list-group > a.list-group-item {
  position: relative; isolation: isolate; display: grid; grid-template-columns: 44px minmax(0,1fr) 16px; column-gap: 16px; align-content: start;
  height: 100%; padding: 22px !important; /* answers .p-3 */
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); color: var(--ex-fg-72);
  transition: border-color var(--ex-dur-3);
}
body.exui #client_tickets .list-group > a.list-group-item::before {
  content: ""; grid-row: 1 / span 9; width: 44px; height: 44px; border: 1px solid var(--ex-line-strong); border-radius: 12px;
  background: var(--ex-raised) padding-box; position: static;
}
body.exui #client_tickets .list-group > a.list-group-item::after {
  content: ""; position: absolute; top: 34px; left: 34px; width: 20px; height: 20px; background: var(--ex-fg);
  -webkit-mask: var(--exp-i-msg) center / contain no-repeat; mask: var(--exp-i-msg) center / contain no-repeat;
}
body.exui #client_tickets .list-group > a.list-group-item > * { grid-column: 2; min-width: 0; }
body.exui #client_tickets .list-group > a.list-group-item h4 {
  margin: 2px 0 6px; padding: 0; border: 0; font: 700 17px/1.3 var(--ex-font); letter-spacing: -.015em; text-transform: none; color: var(--ex-fg);
}
body.exui #client_tickets .list-group > a.list-group-item p { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ex-fg-72); }
body.exui #client_tickets .list-group > a.list-group-item p + p { margin-top: 6px; }
body.exui #client_tickets .list-group > a.list-group-item p + p:last-child { color: var(--ex-muted); }
body.exui #client_tickets .list-group > a.list-group-item strong { color: var(--ex-fg); }
/* the glow (brand .card-glow) rides on a background layer so ::before/::after stay free */
body.exui #client_tickets .list-group > a.list-group-item {
  background: var(--ex-surface);
}
body.exui #client_tickets .list-group > a.list-group-item:is(:hover, :focus-visible) {
  border-color: var(--ex-a-45);
  background: radial-gradient(120% 95% at 0% 100%, var(--ex-a-15) 0%, var(--ex-a-08) 42%, transparent 74%), var(--ex-surface);
  color: var(--ex-fg-82);
}
body.exui #client_tickets .list-group > a.list-group-item:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
/* the "go" mark every whole-card choice uses (the order categories' circled
   arrow): a 32px ring, centred on the card's height, the arrow nudging on
   hover. Drawn by the h4 so the card needs no extra markup: ::before is the
   ring, ::after the arrow. */
body.exui #client_tickets .list-group > a.list-group-item { grid-template-columns: 44px minmax(0,1fr) 32px; }
body.exui #client_tickets .list-group > a.list-group-item h4::before {
  content: ""; position: absolute; top: 50%; right: 22px; width: 32px; height: 32px; margin-top: -16px; box-sizing: border-box;
  border: 1px solid var(--ex-line-strong); border-radius: 50%; background: var(--ex-raised);
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui #client_tickets .list-group > a.list-group-item h4::after {
  content: ""; position: absolute; top: 50%; right: 31px; width: 14px; height: 14px; margin-top: -7px; background: var(--ex-fg-82);
  -webkit-mask: var(--exp-i-arrow) center / contain no-repeat; mask: var(--exp-i-arrow) center / contain no-repeat;
  transition: transform var(--ex-dur-3) var(--ex-ease), background-color var(--ex-dur-2);
}
body.exui #client_tickets .list-group > a.list-group-item:is(:hover, :focus-visible) h4::before { border-color: var(--ex-accent); background: var(--ex-accent); }
body.exui #client_tickets .list-group > a.list-group-item:is(:hover, :focus-visible) h4::after { background: var(--ex-fg); transform: translateX(2px); }

/* ---- P3 support: open a ticket ---------------------------------------------- */
/* stock: .content_section#open-ticket (the id is built from the translated box
   title, so rules key on the route) > .card-content > .card-body > form#create_ticket.disable-on-submit
   (summary, priority, service, details editor, attachments, recipients,
   custom fields, submit). A narrow form card, priority beside the service. */
body.exui[class*="client_tickets-add"] .content_section:has(#create_ticket) { max-width: 880px; }
body.exui[class*="client_tickets-add"] .content_section > .card-content > .card-body:has(> #create_ticket) { padding: 26px 26px 24px; }
body.exui[class*="client_tickets-add"] #create_ticket { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); column-gap: 20px; }
body.exui[class*="client_tickets-add"] #create_ticket > * { grid-column: 1 / -1; min-width: 0; }
body.exui[class*="client_tickets-add"] #create_ticket > .form-group:is(:has(> #priority), :has(> #service_id)) { grid-column: auto; }
body.exui[class*="client_tickets-add"] #create_ticket > .form-group:has(> #priority):not(:has(~ .form-group > #service_id)) { grid-column: 1 / -1; }
body.exui[class*="client_tickets-add"] #create_ticket > .form-group:has(> #service_id) #service_id { font-family: var(--ex-mono); font-size: 13.5px; letter-spacing: -.01em; }
body.exui[class*="client_tickets-add"] #create_ticket > .form-group:has(> .custom_fields:empty) { display: none; }
body.exui[class*="client_tickets-add"] #create_ticket .custom_fields { margin-top: 0 !important; /* answers .mt-4 */ }
/* the submit sits on a formbar hairline (drawn on the form: no wrapper to hang it on) */
body.exui[class*="client_tickets-add"] #create_ticket { background: linear-gradient(var(--ex-line), var(--ex-line)) left bottom 62px / 100% 1px no-repeat; }
body.exui[class*="client_tickets-add"] #create_ticket > button[type="submit"] { justify-self: end; float: none; margin-top: 21px; }
body.exui[class*="client_tickets-add"] #create_ticket > button[type="submit"] .fas { display: none; }
/* custom-field hints are printed as an empty-for label after the field */
body.exui :is(#create_ticket, #client_ticket_reply) .custom_fields .form-group > label[for=""] {
  display: block; margin: 8px 0 0; font: 400 13px/1.45 var(--ex-font); letter-spacing: 0; text-transform: none; color: var(--ex-fg-58);
}
body.exui :is(#create_ticket, #client_ticket_reply) .custom_fields .generated_fields_div > .clearfix { display: none; }
/* "Add recipients": the plugin's toggle is a div.btn; quiet ghost row */
body.exui #create_ticket .form-group > .btn[data-toggle="collapse"] {
  height: 38px; padding: 0 16px 0 12px; border-color: var(--ex-line-strong); background: transparent; font-size: 13.5px; color: var(--ex-fg-82);
}
body.exui #create_ticket .form-group > .btn[data-toggle="collapse"] .fas { color: var(--ex-muted); font-size: 11px; transition: transform var(--ex-dur-3) var(--ex-ease); }
body.exui #create_ticket .form-group > .btn[data-toggle="collapse"][aria-expanded="true"] .fas { transform: rotate(180deg); }
/* the open panel is part of the form (no card inside the form card): a
   hairline, the contact checks, then the extra addresses */
body.exui #create_ticket #recipients-section > .card {
  margin-top: 16px !important; /* answers .mt-2 */ border: 0; border-top: 1px solid var(--ex-line); border-radius: 0; background: none; box-shadow: none;
}
body.exui #create_ticket #recipients-section > .card::after { content: none; }
body.exui #create_ticket #recipients-section > .card > .card-body { padding: 16px 0 0 !important; /* answers .p-3 */ }
body.exui #create_ticket #recipients-section .checkbox-list { display: grid; gap: 8px; }
body.exui #create_ticket #recipients-section .form-check-label { font-size: 14.5px; }
body.exui #create_ticket #recipients-section .form-check-label .mono { margin-left: .35em; font-size: 13px; color: var(--ex-muted); }
body.exui #create_ticket #email-recipients .input-group { align-items: center; margin-bottom: 10px !important; /* answers .mb-2 */ }
body.exui #create_ticket #email-recipients .input-group > .form-control { font-family: var(--ex-mono); font-size: 13.5px; letter-spacing: -.01em; }
body.exui #create_ticket #email-recipients .input-group-append { align-self: center; margin: 0 6px 0 0; }
/* remove: a 32px icon button inside the pill (it was a grey square) */
body.exui #create_ticket #email-recipients .remove-recipient {
  display: grid; place-items: center; width: 32px; height: 32px; min-height: 0; padding: 0; border: 0; border-radius: 50% !important; /* answers .input-group joins */
  background: transparent; box-shadow: none; color: var(--ex-muted);
}
body.exui #create_ticket #email-recipients .remove-recipient:hover { background: var(--ex-fg-06); color: var(--ex-fg); }
body.exui #create_ticket #add-recipient { height: 32px; padding: 0 14px; font-size: 13px; }
body.exui #create_ticket #add-recipient .fas { color: var(--ex-muted); }
body.exui #create_ticket .remove-recipient .fas { color: inherit; }
/* plugins.js: " · Required" after the label of a required field (DESIGN §10) */
body.exui #create_ticket label > .opt { font-weight: 400; color: var(--ex-muted); }
/* attachments: the dropzone is the form's own .form-group */
body.exui #create_ticket .form-group:has(.drag-drop, .dz-message) > label { margin-bottom: 10px; }

/* The markdown editor's toolbar (open a ticket and the reply composer).
   The table button gets a line icon of the sprite's weight (the button's
   invert filter turns the dark mask light like the sprite), and the
   plugin's preview toggle (button.fas.fa-eye, a light-grey square) becomes
   a quiet icon button. */
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-group > * { flex: none; }
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-icons.table {
  position: relative; width: 32px; height: 32px; margin: 7px 5px; padding: 0; border: 1px solid transparent; font-size: 0;
}
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-icons.table::before {
  content: ""; position: absolute; inset: 0; width: 17px; height: 17px; margin: auto; background: var(--ex-bg); opacity: .75; /* under the toolbar's invert filter: the sprite's light grey */
  -webkit-mask: var(--exp-i-table) center / contain no-repeat; mask: var(--exp-i-table) center / contain no-repeat;
}
/* the sprite's cells are 26px apart in a 32px button: Link and More showed a
   sliver of their neighbour as a stray dot */
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-icons:is(.link, .more) { clip-path: inset(0 5px 0 0 round var(--ex-r-sm)); }
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-group > button.fas.fa-eye {
  display: grid; place-items: center; width: 32px; height: 32px; margin: 7px 5px; padding: 0; border: 1px solid transparent; border-radius: var(--ex-r-sm);
  background: transparent; box-shadow: none; font-size: 0; color: var(--ex-fg-62); transition: background-color var(--ex-dur-2), color var(--ex-dur-2);
}
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-group > button.fas.fa-eye:hover { background: var(--ex-fg-06); color: var(--ex-fg); }
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-toolbar-group > button.fas.fa-eye::before {
  content: ""; display: block; width: 17px; height: 17px; background: currentColor;
  -webkit-mask: var(--exp-i-eye) center / contain no-repeat; mask: var(--exp-i-eye) center / contain no-repeat;
}
/* Toast UI focuses the editor on load. Without plugins.js (which hands focus
   back to the page) the foundation's focus-within look (red border, ring
   and glow) lit the frame beside the red primary on arrival: in the ticket
   forms focus reads as a brighter border and a faint neutral ring (plus the
   caret), so the viewport keeps one red. */
body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-defaultUI:focus-within { border-color: var(--ex-fg-22); box-shadow: 0 0 0 4px var(--ex-fg-05); }
/* the editor's own markdown/wysiwyg switch and the dropzone line up with the 12px field radius */
body.exui :is(#create_ticket, #client_ticket_reply) .dz-message { border-radius: var(--ex-r-field); }

/* ---- P4 support: ticket thread (stock markup) -------------------------------- */
/* stock: #client_ticket_reply.card > .card-header ("Ticket #482913") + .card-content > .card-body >
     .card.p-3.bg-light (ticket facts) · form#create_ticket (reply) · .clearfix · hr ·
     .row.ticket-reply (> .top-bar[.staff-reply] p · .replier img + p strong/small · .response) ·
     .col-md-12.marbot10 > .alert.alert-info > p (log lines), newest first.
   This is the no-JS state (plugins.js composes P5 from it). One reading column (880px, like the open-
   ticket form): the facts as the ticket's header card (the card head's
   "Ticket #482913" as its label, the subject as its title, the facts in one
   row), then the composer, then the thread on a rail in the plugin's order
   (newest first). The DOM order is kept on purpose: reversing it with CSS
   would put the visual order and the focus/reading order out of step
   (WCAG 1.3.2 / 2.4.3); plugins.js rebuilds it oldest first. */
body.exui #client_ticket_reply { position: relative; border: 0 !important; /* answers .card-blesta (application.min.css, exui.css 17.99) */ background: none; }
body.exui #client_ticket_reply::after { content: none; }
body.exui #client_ticket_reply > .card-content > .card-body { display: flow-root; padding: 0; }
body.exui #client_ticket_reply > .card-content > .card-body > :is(.clearfix, hr) { display: none; }
body.exui #client_ticket_reply > .card-content > .card-body:not(.ex-ticket) { max-width: 880px; }
/* "Ticket #482913": the header card's label (the card head sits outside the
   card body, so it is laid over the facts card's top padding) */
body.exui #client_ticket_reply:not(:has(> .card-content > .ex-ticket)) > .card-header:not(.sr-only) {
  position: absolute; top: 22px; left: 22px; right: 22px; z-index: 1; display: block; min-height: 0; margin: 0; padding: 0; border: 0;
  background: none; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); pointer-events: none;
}

/* the facts as the ticket's header card (stock page) */
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light {
  margin: 0 0 var(--ex-gap) !important; /* answers .mb-3 */ padding: 0 !important; /* answers .p-3 */
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface);
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row {
  display: flex; flex-wrap: wrap; gap: 16px 36px; margin: 0; padding: 0 22px 20px;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] {
  flex: 0 1 auto; width: auto; max-width: 100%; min-width: 0; padding: 0;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] > label {
  display: block; margin: 0 0 6px; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] > p {
  margin: 0; font-size: 14.5px; font-weight: 500; line-height: 1.45; color: var(--ex-fg);
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light a {
  color: var(--ex-fg); text-decoration: underline; text-decoration-color: var(--ex-fg-22); text-underline-offset: 3px;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light a:hover { text-decoration-color: var(--ex-accent); }
/* the subject: the card's title, under the "Ticket #" label */
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child {
  flex: 1 1 calc(100% + 44px); max-width: none; margin: 0 -22px 4px; padding: 48px 22px 18px; border-bottom: 1px solid var(--ex-line);
}
body.exui #client_ticket_reply:has(> .card-header.sr-only) .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child { padding-top: 22px; }
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child > label {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child > p {
  font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.025em; text-wrap: balance;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child > hr { display: none; }
/* status (second to last fact): the staff label in the neutral pill frame,
   no glyph (CSS cannot know who it waits on; plugins.js puts the coded pill
   in the page head); the opened date (last) in mono */
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-3:nth-last-child(2) > p {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  font: 500 10.5px/1 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-fg-82); white-space: nowrap;
}
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-3:last-child > p { font: 500 13px/1.45 var(--ex-mono); letter-spacing: -.01em; }
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-3 > p > .badge { vertical-align: 1px; }

/* Wide screens (stock page): the reading column plus a sticky Details aside
   (DESIGN §7.11; the prototype's ticket-1440). The card body becomes a
   two-column grid: the facts card spans every row of column 2 (so it can
   stick for the whole thread), everything else stacks in column 1 in DOM
   order (facts, composer, replies). "Ticket #482913" (the card head) is the
   aside's label above the card; it does not stick (two sticky boxes cannot
   end together), the card does. */
@media (min-width: 1100px) {
  body.exui #client_ticket_reply > .card-content > .card-body:not(.ex-ticket) {
    display: grid; grid-template-columns: minmax(0,1fr) var(--ex-aside); column-gap: var(--ex-gap); row-gap: 0; align-items: start; max-width: none;
  }
  body.exui #client_ticket_reply > .card-content > .card-body:not(.ex-ticket) > * { grid-column: 1; min-width: 0; }
  body.exui #client_ticket_reply > .card-content > .card-body:not(.ex-ticket) > .card.bg-light {
    grid-column: 2; grid-row: 1 / span 400; /* every row the thread can have: empty auto rows are 0px */
    position: sticky; top: calc(var(--ex-header-h) + 24px); margin: 28px 0 0 !important; /* answers .mb-3 */
  }
  body.exui #client_ticket_reply:has(> .card-header.sr-only) > .card-content > .card-body:not(.ex-ticket) > .card.bg-light { margin-top: 0 !important; /* answers .mb-3 */ }
  body.exui #client_ticket_reply:not(:has(> .card-content > .ex-ticket)) > .card-header:not(.sr-only) { top: 0; left: auto; right: 0; width: var(--ex-aside); }
  /* the facts as Details key/value rows (the aside recipe below) */
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row { display: block; margin: 0; padding: 0; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] {
    display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 4px 16px; flex: none; width: auto; max-width: none;
    min-height: 50px; margin: 0; padding: 10px 22px; border-bottom: 1px solid var(--ex-line);
  }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"]:last-child { border-bottom: 0; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] > label {
    margin: 0; font: 400 14.5px/1.4 var(--ex-font); letter-spacing: 0; text-transform: none; color: var(--ex-fg-82);
  }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > [class*="col-"] > :is(p, a) { min-width: 0; text-align: right; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-3:nth-last-child(2) > p { justify-self: end; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child {
    display: block; flex: none; margin: 0; padding: 18px 22px 16px; border-bottom: 1px solid var(--ex-line);
  }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child > p { text-align: left; font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.015em; }
}

/* ticket facts → the Details key/value card: the feedback page, and the
   aside plugins.js builds (.ex-ticket__aside) */
body.exui #client_ticket_feedback .card-body > .card.bg-light,
body.exui #client_ticket_feedback #tickets_feedback > .card.bg-light,
body.exui #client_ticket_reply .ex-ticket__aside > .card.bg-light {
  margin: 0 0 var(--ex-gap) !important; /* answers .mb-3 */ padding: 0 !important; /* answers .p-3 */
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface);
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row { display: block; margin: 0; }
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"] {
  display: grid; grid-template-columns: max-content minmax(0,1fr); align-items: center; gap: 4px 16px; max-width: none;
  min-height: 50px; padding: 10px 22px; border-bottom: 1px solid var(--ex-line);
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"]:last-child { border-bottom: 0; }
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"] > label {
  margin: 0; font: 400 14.5px/1.4 var(--ex-font); letter-spacing: 0; text-transform: none; color: var(--ex-fg-82);
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"] > :is(p, a) {
  margin: 0; min-width: 0; text-align: right; font-size: 14.5px; font-weight: 500; line-height: 1.4; color: var(--ex-fg);
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"] a {
  color: var(--ex-fg); text-decoration: underline; text-decoration-color: var(--ex-fg-22); text-underline-offset: 3px;
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"] a:hover { text-decoration-color: var(--ex-accent); }
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > [class*="col-"]:last-child > p { font: 600 13px/1.4 var(--ex-mono); letter-spacing: -.01em; }
/* the summary (first fact) is the card's title */
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > .col-md-12:first-child { display: block; padding: 18px 22px 16px; }
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > .col-md-12:first-child > label {
  display: block; margin-bottom: 8px; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > .col-md-12:first-child > p {
  text-align: left; font-size: 16px; font-weight: 700; letter-spacing: -.015em; line-height: 1.35;
}
body.exui :is(#client_ticket_feedback, #client_ticket_reply .ex-ticket__aside) .card.bg-light > .row > .col-md-12:first-child > hr { display: none; }
/* plugins.js hides the summary (now the page title) and the Status row (the
   head's pill) with [hidden], which the grid rows above would override */
body.exui #client_ticket_reply .card-body .ex-ticket__aside .card.bg-light > .row > [class*="col-"][hidden] { display: none; }

/* the reply form → composer. Dropzone adds .dropzone to the form, and the
   plugin's styles.css answers it with padding:0 / border:0 !important; the
   button group's .float-right is !important too (Bootstrap). */
body.exui #client_ticket_reply #create_ticket,
body.exui #client_ticket_reply #create_ticket.dropzone {
  display: flow-root; margin: 0 0 36px; padding: 18px 18px 16px !important; /* answers support_manager .dropzone */
  border: 1px solid var(--ex-line-strong) !important; /* answers support_manager .dropzone */ border-radius: var(--ex-r-card); background: var(--ex-surface);
}
/* the editor's own label ("Add reply") stays for screen readers only until
   plugins.js relabels it "Your reply" and shows it in the mono label voice
   (.ex-composer__label, P17; DESIGN §5.14 wants a visible label) */
body.exui #client_ticket_reply #create_ticket > .form-group > label[for="details"]:not(.ex-composer__label) {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
body.exui #client_ticket_reply #create_ticket > .form-group { margin-bottom: 14px; }
body.exui #client_ticket_reply #create_ticket > .form-group:has(> .custom_fields:empty) { display: none; }
body.exui #client_ticket_reply #create_ticket .custom_fields { margin-top: 0 !important; /* answers .mt-4 */ }
/* the bar keeps the DOM order (Reply, then Close) so what you see is what
   Tab reaches (WCAG 1.3.2 / 2.4.3): both sit at the end of the bar, the
   quiet Close after the red Reply */
body.exui #client_ticket_reply #create_ticket > .btn-group.float-right {
  float: none !important; /* answers Bootstrap .float-right */ display: flex; width: 100%; flex-direction: row; justify-content: flex-end; align-items: center; gap: 18px;
  padding-top: 14px; border-top: 1px solid var(--ex-line);
}
body.exui #client_ticket_reply #create_ticket > .btn-group > .btn { flex: none; margin: 0; border-radius: var(--ex-r-pill) !important; /* answers .btn-group joins */ }
/* "Reply": the page's one red */
body.exui #client_ticket_reply #create_ticket button[type="submit"][value="reply"] {
  isolation: isolate; overflow: hidden; height: 44px; padding: 0 22px; border-color: transparent; background: var(--ex-accent); color: var(--ex-fg); box-shadow: var(--ex-inset-hi);
}
body.exui #client_ticket_reply #create_ticket button[type="submit"][value="reply"]:hover { background: var(--ex-accent-strong); box-shadow: var(--ex-inset-hi), var(--ex-glow-strong); }
body.exui #client_ticket_reply #create_ticket button[type="submit"][value="reply"]:focus-visible { outline-color: var(--ex-fg); }
body.exui #client_ticket_reply #create_ticket button[type="submit"][value="reply"] .fas { color: var(--ex-fg); }
/* "Close": quiet, never a big red button above the thread */
body.exui #client_ticket_reply button[type="submit"][value="close"] {
  height: 32px; padding: 0 4px; border: 0; background: none; box-shadow: none; font-size: 14px; font-weight: 600; color: var(--ex-fg-82);
  text-decoration: underline; text-decoration-color: var(--ex-fg-22); text-underline-offset: 3px;
}
body.exui #client_ticket_reply button[type="submit"][value="close"]:hover { background: none; color: var(--ex-fg); text-decoration-color: var(--ex-accent); box-shadow: none; }
body.exui #client_ticket_reply button[type="submit"][value="close"] .fas { color: var(--ex-muted); }
/* stock page: Close leaves the composer bar and sits quietly under the
   composer card (DESIGN §7.11: never beside the primary). It stays inside
   the form, so Blesta's submit guard and confirm dialog still reach it, and
   the order (Reply, then Close) is the DOM order. */
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > #create_ticket { position: relative; margin-bottom: 72px; }
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > #create_ticket > .btn-group { position: static; } /* Bootstrap's relative group would anchor Close inside the bar */
body.exui #client_ticket_reply .card-body:not(.ex-ticket) > #create_ticket > .btn-group > button[type="submit"][value="close"] {
  position: absolute; left: -1px; top: calc(100% + 13px); gap: 8px; padding: 0 4px 0 0;
}

/* replies and log lines on the rail */
body.exui #client_ticket_reply .ticket-reply {
  position: relative; display: grid; grid-template-columns: 36px auto minmax(0,1fr); align-items: center; column-gap: 16px; row-gap: 10px;
  margin: 0 0 26px; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none;
}
body.exui #client_ticket_reply .ticket-reply > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
body.exui #client_ticket_reply .ticket-reply > .replier { display: contents; }
body.exui #client_ticket_reply .ticket-reply > .replier > img {
  position: relative; z-index: 1; grid-column: 1; grid-row: 1;
  width: 36px !important; /* answers .w-100 */ height: 36px; margin: 0; padding: 0;
  border: 1px solid var(--ex-line-strong); border-radius: 50%; background: var(--ex-raised); object-fit: cover; color: transparent; font-size: 0;
  box-shadow: 0 0 0 5px var(--ex-bg);
}
body.exui #client_ticket_reply .ticket-reply:has(> .top-bar.staff-reply) > .replier > img { border-color: var(--ex-fg-58); }
body.exui #client_ticket_reply .ticket-reply > .replier > p {
  grid-column: 2; grid-row: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0; text-align: left !important; /* answers .text-center */
}
body.exui #client_ticket_reply .ticket-reply > .replier strong { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ex-fg); white-space: nowrap; }
body.exui #client_ticket_reply .ticket-reply > .replier br { display: none; }
body.exui #client_ticket_reply .ticket-reply > .replier small {
  display: inline-flex; align-items: center; height: 20px; padding: 0 8px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  background: var(--ex-raised); font: 500 9.5px/1 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-fg-82); white-space: nowrap;
}
body.exui #client_ticket_reply .ticket-reply > .top-bar {
  grid-column: 3; grid-row: 1; min-width: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; text-align: right;
}
body.exui #client_ticket_reply .ticket-reply > .top-bar p { margin: 0; font: 400 12px/1.4 var(--ex-mono); font-style: normal; color: var(--ex-muted); }
body.exui #client_ticket_reply .ticket-reply > .response {
  grid-column: 2 / -1; grid-row: 2; display: flex; flex-direction: column; min-width: 0; padding: 18px 20px;
  border: 1px solid var(--ex-line); border-radius: 12px 12px 4px 12px; background: transparent;
}
body.exui #client_ticket_reply .ticket-reply:has(> .top-bar.staff-reply) > .response {
  border-color: var(--ex-line-strong); border-radius: 12px 12px 12px 4px; background: var(--ex-raised); color: var(--ex-fg-88);
}
/* attachments: file pills at the end of the bubble */
body.exui #client_ticket_reply .ticket-reply > .response > hr { display: none; }
body.exui #client_ticket_reply .ticket-reply > .response > .attachments { order: 99; margin-top: 16px; padding: 0; border: 0; }
/* the plugin prints the attachments first: the text after them (shown first,
   above the moved pills) must not keep the flow gap, or bubbles with files sat
   14px lower than the rest */
body.exui #client_ticket_reply .ticket-reply > .response > :is(.attachments, .image-attachments):first-child ~ :not(.attachments, .image-attachments, hr):not(:not(.attachments, .image-attachments, hr) ~ *) { margin-top: 0; }
body.exui #client_ticket_reply .ticket-reply > .response > .attachments p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.exui #client_ticket_reply .ticket-reply > .response > .attachments span { height: auto; padding: 0; }
body.exui #client_ticket_reply .ticket-reply > .response > .attachments a,
body.exui #client_ticket_reply .ex-msg__files a {
  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/1 var(--ex-mono); color: var(--ex-fg-82); text-decoration: none; transition: border-color var(--ex-dur-2), color var(--ex-dur-2);
}
body.exui #client_ticket_reply .ticket-reply > .response > .attachments a:hover,
body.exui #client_ticket_reply .ex-msg__files a:hover { border-color: var(--ex-a-50); color: var(--ex-fg); }
body.exui #client_ticket_reply :is(.ticket-reply > .response > .attachments, .ex-msg__files) a .fas { color: var(--ex-muted); font-size: 12px; }
body.exui #client_ticket_reply .image-attachments { order: 98; margin-top: 16px; }
body.exui #client_ticket_reply .image-attachments .row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
body.exui #client_ticket_reply .image-attachments .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
body.exui #client_ticket_reply .image-attachments img {
  display: block; width: 96px; height: 96px; max-width: none !important; /* answers the inline max-width */ object-fit: cover; cursor: zoom-in;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); transition: border-color var(--ex-dur-2);
}
body.exui #client_ticket_reply .image-attachments img:hover { border-color: var(--ex-a-50); }
/* the rail: each item draws the segment to the next one */
body.exui #client_ticket_reply .card-body > :is(.ticket-reply, .marbot10)::after {
  content: ""; position: absolute; left: 17.5px; top: 18px; bottom: -26px; width: 1px; background: var(--ex-line-strong); pointer-events: none;
}
body.exui #client_ticket_reply .card-body > :is(.ticket-reply, .marbot10):last-child::after { bottom: auto; height: 18px; background: linear-gradient(var(--ex-line-strong), transparent); }
/* log lines → events: a ring node on the rail and one mono line */
body.exui #client_ticket_reply .card-body > .marbot10 {
  position: relative; max-width: none; margin: 0 0 26px !important; /* answers .marbot10 */ padding: 0 0 0 52px;
}
body.exui #client_ticket_reply .card-body > .marbot10 > .alert {
  position: static; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; overflow: visible;
}
body.exui #client_ticket_reply .card-body > .marbot10 > .alert::before {
  content: ""; position: absolute; left: 13px; top: 4px; z-index: 1; width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid var(--ex-fg-62); background: var(--ex-bg); box-shadow: 0 0 0 5px var(--ex-bg);
}
/* the sentence is quiet (DESIGN: only a name may be bright), the when/who
   meta muted */
body.exui #client_ticket_reply .card-body > .marbot10 p { margin: 0; font: 400 12.5px/1.55 var(--ex-mono); color: var(--ex-fg-72); }
body.exui #client_ticket_reply .card-body > .marbot10 p :is(strong, b) { font-weight: 600; color: var(--ex-fg-90); }
body.exui #client_ticket_reply .card-body > .marbot10 em { font-style: normal; color: var(--ex-muted); white-space: nowrap; }
body.exui #client_ticket_reply .card-body > .marbot10 em::before { content: "·"; margin: 0 .5em 0 .2em; color: var(--ex-line-strong); }

/* the lightbox the plugin opens for image attachments */
body.exui #attachment-lightbox.support_manager_modal { background: var(--ex-scrim); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
body.exui #attachment-lightbox .slides { border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card) !important; /* answers .rounded */ background: var(--ex-surface) !important; /* answers .bg-light */ }
body.exui #attachment-lightbox :is(.support_manager_close, .support_manager_prev, .support_manager_next) { color: var(--ex-fg); }

/* ---- P5 support: ticket thread composed by plugins.js --------------------- */
/* plugins.js turns the stock thread into ol.ex-thread (oldest first), moves
   the reply form to the end as the composer (li.ex-msg--reply > form.ex-composer)
   and the Close submit below it (.ex-quiet--close), lifts the facts into the
   aside (.ex-ticket__aside) and the summary into the page head. */
body.exui #client_ticket_reply .card-body.ex-ticket { display: grid; grid-template-columns: minmax(0,1fr) var(--ex-aside); gap: var(--ex-gap); align-items: start; }
body.exui #client_ticket_reply .ex-ticket__main { min-width: 0; }
body.exui #client_ticket_reply .ex-ticket__aside { position: sticky; top: calc(var(--ex-header-h) + 24px); display: grid; gap: var(--ex-gap); min-width: 0; }
body.exui #client_ticket_reply .ex-ticket__aside > .card.bg-light { margin: 0 !important; /* answers .mb-3 */ }
body.exui #client_ticket_reply .ex-ticket__aside .ex-card__head { display: flex; align-items: center; min-height: 52px; padding: 0 22px; border-bottom: 1px solid var(--ex-line); }

body.exui .ex-thread { position: relative; display: grid; gap: 24px; margin: 0; padding: 0; list-style: none; }
body.exui .ex-thread::before { content: ""; position: absolute; top: 18px; bottom: 40px; left: 17.5px; width: 1px; background: var(--ex-line-strong); }
body.exui .ex-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 16px; }
body.exui .ex-msg__node { position: relative; z-index: 1; background: var(--ex-bg); box-shadow: 0 0 0 5px var(--ex-bg); }
body.exui .ex-msg__node img { position: absolute; inset: 0; border-radius: 50%; }
body.exui .ex-msg--staff .ex-msg__node { border-color: var(--ex-fg-58); color: var(--ex-fg); }
body.exui .ex-msg--reply .ex-msg__node { border-color: var(--ex-accent); box-shadow: 0 0 0 4px var(--ex-a-12), 0 0 0 9px var(--ex-bg); color: var(--ex-fg); }
body.exui .ex-msg__main { min-width: 0; }
body.exui .ex-msg__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; min-height: 36px; }
body.exui .ex-msg__name { font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ex-fg); }
body.exui .ex-msg__time { margin-left: auto; font: 400 12px/1.4 var(--ex-mono); color: var(--ex-muted); text-align: right; }
body.exui .ex-msg__bubble { display: flex; flex-direction: column; margin-top: 8px; padding: 18px 20px; border: 1px solid var(--ex-line); border-radius: 12px 12px 4px 12px; }
body.exui .ex-msg__bubble > * + * { margin-top: 14px; }
body.exui .ex-msg--staff .ex-msg__bubble { background: var(--ex-raised); border-color: var(--ex-line-strong); border-radius: 12px 12px 12px 4px; }
body.exui .ex-msg--staff .ex-prose { color: var(--ex-fg-88); }
body.exui .ex-msg__files { display: flex; flex-wrap: wrap; gap: 8px; order: 99; margin-top: 16px; }
body.exui .ex-msg__bubble > .image-attachments { order: 98; }
body.exui .ex-evt { position: relative; display: grid; grid-template-columns: 36px minmax(0,1fr); gap: 16px; align-items: start; }
body.exui .ex-evt__node { position: relative; z-index: 1; display: grid; place-items: center; height: 20px; }
body.exui .ex-evt__node > * { box-shadow: 0 0 0 5px var(--ex-bg); background-color: var(--ex-bg); }
body.exui .ex-evt p { margin: 0; padding-top: 1px; font: 400 12.5px/1.55 var(--ex-mono); color: var(--ex-fg-72); }
body.exui .ex-evt p :is(strong, b) { font-weight: 600; color: var(--ex-fg-90); }
body.exui .ex-evt p .ex-evt__when { color: var(--ex-muted); white-space: nowrap; }
body.exui .ex-evt p .ex-evt__when::before { content: "·"; margin: 0 .5em 0 .2em; color: var(--ex-line-strong); }
/* the composer: the reply form, last on the rail */
body.exui #client_ticket_reply .ex-composer#create_ticket { margin: 0; }
body.exui #client_ticket_reply .ex-composer > .form-group > label[for="details"]:not(.ex-composer__label) { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
body.exui #client_ticket_reply #create_ticket.ex-composer > .btn-group.float-right { padding-top: 0; border-top: 0; } /* the composer bar sits flush */
body.exui[class*="client_tickets-reply"] .ex-pagehead .ex-meta .mono { white-space: nowrap; }
body.exui .ex-quiet--close { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin: 0; padding: 22px 0 0 52px; font-size: 13.5px; color: var(--ex-muted); }
body.exui .ex-quiet--close p { margin: 0; }
body.exui #client_ticket_reply .ex-quiet--close button[type="submit"][value="close"] { height: auto; min-height: 24px; padding: 0 4px; font-size: 13.5px; }

/* ---- P6 support: feedback ------------------------------------------------------ */
body.exui #client_ticket_feedback #tickets_feedback > .p-1 > h4 { margin: 8px 0 0; }
body.exui #client_ticket_feedback .rating-star { display: grid; justify-items: center; gap: 8px; }
body.exui #client_ticket_feedback .rating-star > div { font: 500 10.5px/1.3 var(--ex-mono) !important; /* answers .font-weight-bold */ letter-spacing: .1em; text-transform: uppercase; color: var(--ex-muted); }
body.exui #client_ticket_feedback .rating-star i {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0; border: 1px solid var(--ex-line-strong); border-radius: 50%;
  background: var(--ex-tint); font-size: 16px; color: var(--ex-fg-58) !important; /* answers .text-black-50 */ transition: border-color var(--ex-dur-2), color var(--ex-dur-2);
}
body.exui #client_ticket_feedback .rating-star i:hover { border-color: var(--ex-a-50); color: var(--ex-fg) !important; /* answers .text-black-50 */ }
body.exui #client_ticket_feedback .rating-star i.fas { border-color: var(--ex-a-45); background: var(--ex-a-10); color: var(--ex-fg) !important; /* answers .text-warning */ }

/* ---- P7 knowledge base -------------------------------------------------------- */
/* stock: .col-md-12 > .row > .col-md-12 > (.card.card-kb > form > .input-group) + nav > ol.breadcrumb ·
   .section-title (h3 + p) · .categories (.row > .col-md-4 > .bg-light tile | .col-md-12 > .bg-light row) ·
   view: .section-title h3 (the article title again) · .article · .row > .rate > h5 + form#rate */
/* search pill with the inline primary (the page's one red) */
body.exui[class*="-knowledgebase-"] .card.card-kb {
  margin: 0 0 28px; padding: 0 !important; /* answers .p-3 */ border: 0; border-radius: 0; background: none !important; /* answers .bg-light */
  font-size: inherit; text-align: left;
}
body.exui[class*="-knowledgebase-"] .card.card-kb::after { content: none; }
body.exui[class*="-knowledgebase-"] .card-kb .input-group {
  height: 58px; padding: 0 6px 0 46px; border-radius: var(--ex-r-pill); background: var(--ex-raised);
}
body.exui[class*="-knowledgebase-"] .card-kb .input-group::before {
  content: ""; position: absolute; left: 20px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--ex-muted); z-index: 4;
  -webkit-mask: var(--exp-i-search) center / contain no-repeat; mask: var(--exp-i-search) center / contain no-repeat;
}
body.exui[class*="-knowledgebase-"] .card-kb .input-group:focus-within::before { background: var(--ex-fg); }
body.exui[class*="-knowledgebase-"] .card-kb .input-group > .form-control { height: 56px; padding: 0 12px 0 0; font-size: 16px; }
body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn {
  isolation: isolate; overflow: hidden; height: 46px; margin: 0; padding: 0 24px; border-color: transparent; border-radius: var(--ex-r-pill) !important; /* answers .input-group joins */
  background: var(--ex-accent); color: var(--ex-fg); box-shadow: var(--ex-inset-hi);
}
body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn:hover { background: var(--ex-accent-strong); box-shadow: var(--ex-inset-hi), var(--ex-glow-strong); }
body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn:focus-visible { outline-color: var(--ex-fg); }
body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn .fas { display: none; }
body.exui[class*="-knowledgebase-"] .card-kb .clearfix { display: none; }
body.exui[class*="-knowledgebase-"] .card-kb + nav .breadcrumb { margin: 0 0 8px; }
/* a plain path: the red dash belongs to the page kicker (one per screen) */
body.exui[class*="-knowledgebase-"] .card-kb + nav .breadcrumb::before { content: none; }
/* on an article the last crumb is the article itself, which the page title
   already says */
body.exui[class*="-knowledgebase-view"] .breadcrumb > .breadcrumb-item:last-child:not(:first-child):not(:has(a)) { display: none; }
body.exui[class*="-knowledgebase-"] .card-kb .input-group > .form-control { text-overflow: ellipsis; }
/* section heads: the mono label voice. exui-order.css's unscoped
   .section-title h3 {2.5rem/800 !important} is answered here. */
/* the label above its sentence at every width (inline beside it, the pair
   wrapped differently per section on phones) */
body.exui[class*="-knowledgebase-"] .section-title {
  display: grid; justify-items: start; gap: 6px; max-width: none; margin: 44px 0 16px !important; /* answers exui-order.css (body.exact-client-ui .section-title) */
  padding: 0; text-align: left;
}
body.exui[class*="-knowledgebase-"] .section-title h3 {
  margin: 0 !important; padding: 0 !important; font: 500 11px/1.4 var(--ex-mono) !important; letter-spacing: .14em !important;
  text-transform: uppercase !important; color: var(--ex-muted) !important; text-align: left !important;
  background: none !important; -webkit-text-fill-color: currentColor !important; /* answers exui-order.css strata A and B */
}
body.exui[class*="-knowledgebase-"] .section-title h3 .fas { display: none; }
body.exui[class*="-knowledgebase-"] .section-title h3::after { content: none !important; display: none !important; /* answers exui-order.css */ }
body.exui[class*="-knowledgebase-"] .section-title p { margin: 0 !important; font-size: 13.5px !important; font-style: normal; line-height: 1.5; color: var(--ex-fg-58) !important; text-align: left !important; /* answers exui-order.css */ }
body.exui[class*="-knowledgebase-"] .row + .section-title { margin-top: 8px !important; /* answers exui-order.css */ }
/* the article page repeats its title (the page head already carries it) */
body.exui[class*="-knowledgebase-view"] .section-title { display: none; }
/* category tiles: link cards with the brand glow */
body.exui[class*="-knowledgebase-"] .categories > .row { row-gap: 16px; }
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light {
  position: relative; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; column-gap: 12px; height: 100%; margin: 0;
  padding: 20px 22px !important; /* answers .p-3 */ border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card) !important; /* answers .rounded */
  background: var(--ex-surface) !important; /* answers .bg-light */
  font: 500 12px/1.4 var(--ex-mono); color: var(--ex-muted); transition: border-color var(--ex-dur-3);
}
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light:hover,
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light:focus-within {
  border-color: var(--ex-a-45);
  background: radial-gradient(120% 95% at 0% 100%, var(--ex-a-15) 0%, var(--ex-a-08) 42%, transparent 74%), var(--ex-surface) !important; /* answers .bg-light */
}
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > .fas {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item);
  background: var(--ex-raised); font-size: 0; color: var(--ex-fg);
}
body.exui[class*="-knowledgebase-"] :is(.categories, .downloads) .fas.fa-folder::before,
body.exui[class*="-knowledgebase-"] .categories .fas.fa-file::before {
  content: ""; display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--exp-i-folder) center / contain no-repeat; mask: var(--exp-i-folder) center / contain no-repeat;
}
body.exui[class*="-knowledgebase-"] .categories .fas.fa-file::before { -webkit-mask-image: var(--exp-i-book); mask-image: var(--exp-i-book); }
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a {
  font: 700 16px/1.3 var(--ex-font); letter-spacing: -.015em; color: var(--ex-fg); text-decoration: none;
}
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
/* plugins.js: the article count "(8)" → a count bubble */
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > .ex-count { margin-left: -2px; }
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a:focus-visible { outline: 0; }
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > :is(p, ul, ol) {
  flex: 1 1 100%; margin: 12px 0 0; font: 400 14px/1.55 var(--ex-font); color: var(--ex-fg-72);
}
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > p + p { margin-top: 6px; }
/* links an admin writes into a category description stay clickable above the
   tile-wide link overlay */
body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > :is(p, ul, ol) a { position: relative; z-index: 2; }
/* article lists (popular, in a category, search results): an action list in one card */
body.exui[class*="-knowledgebase-"] .categories > .row:has(> .col-md-12),
body.exui[class*="-knowledgebase-"] .categories:has(> .col-md-12) {
  display: block; margin: 0; overflow: hidden; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface);
}
body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-12,
body.exui[class*="-knowledgebase-"] .categories > .col-md-12 { max-width: none; margin: 0; padding: 0; border-bottom: 1px solid var(--ex-line); }
body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-12:last-child,
body.exui[class*="-knowledgebase-"] .categories > .col-md-12:last-child { border-bottom: 0; }
body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-12 > .bg-light,
body.exui[class*="-knowledgebase-"] .categories > .col-md-12:not(:has(> .bg-light)) {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 56px; margin: 0;
  padding: 10px 50px 10px 22px !important; /* answers .py-2 .px-3 */ border-radius: 0 !important; /* answers .rounded */ background: none !important; /* answers .bg-light */
  transition: background-color var(--ex-dur-3);
}
body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-12 > .bg-light:hover,
body.exui[class*="-knowledgebase-"] .categories > .col-md-12:not(:has(> .bg-light)):hover { background: var(--ex-row-hover) !important; /* answers .bg-light */ }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > .fas { flex: none; width: 18px; font-size: 0; color: var(--ex-muted); }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > .fas::before {
  content: ""; display: block; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--exp-i-book) center / contain no-repeat; mask: var(--exp-i-book) center / contain no-repeat;
}
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > a {
  flex: 1; min-width: 0; font: 400 15px/1.45 var(--ex-font); color: var(--ex-fg-88); text-decoration: none;
}
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > a::after { content: ""; position: absolute; inset: 0; }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > a:focus-visible { outline: 0; }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12) > a:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: -2px; }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12)::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--ex-muted);
  -webkit-mask: var(--exp-i-chev) center / contain no-repeat; mask: var(--exp-i-chev) center / contain no-repeat;
  transition: transform var(--ex-dur-3) var(--ex-ease), background-color var(--ex-dur-2);
}
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12):hover::after { background: var(--ex-accent); transform: translateX(2px); }
body.exui[class*="-knowledgebase-"] .categories :is(.col-md-12 > .bg-light, > .col-md-12):hover > a { color: var(--ex-fg); }
body.exui[class*="-knowledgebase-"] .categories > .alert { margin: 0; }
body.exui[class*="-knowledgebase-"] .categories + .clearfix + .row .pagination { margin-top: 20px; }
/* the article: prose at reading width */
body.exui[class*="-knowledgebase-view"] .article { max-width: 760px; margin: 8px 0 0; }
body.exui[class*="-knowledgebase-view"] .row.edit { margin: 24px 0 0; }
/* "Was this helpful?": an open hairline row with two secondary xs pills */
body.exui[class*="-knowledgebase-"] .row:has(> .rate) { display: block; margin: 0; }
body.exui[class*="-knowledgebase-"] .rate {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; max-width: 760px; margin: 44px 0 0; padding: 22px 0 0;
  border: 0; border-top: 1px solid var(--ex-line); border-radius: 0; background: none; font-size: 14px;
}
body.exui[class*="-knowledgebase-"] .rate h5 { flex: 0 1 auto; margin: 0; font: 500 14.5px/1.45 var(--ex-font); letter-spacing: -.005em; color: var(--ex-fg-82); }
body.exui[class*="-knowledgebase-"] .rate form { margin: 0; }
body.exui[class*="-knowledgebase-"] .rate p { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
body.exui[class*="-knowledgebase-"] .rate a.btn {
  height: 32px; margin: 0; padding: 0 14px; border-color: var(--ex-line-strong); background: var(--ex-tint);
  font: 500 12.5px/1 var(--ex-mono); color: var(--ex-fg); text-decoration: none;
}
body.exui[class*="-knowledgebase-"] .rate a.btn:hover { border-color: var(--ex-a-50); background: var(--ex-a-08); box-shadow: var(--ex-glow); color: var(--ex-fg); }
body.exui[class*="-knowledgebase-"] .rate a.btn .fas { font-size: 12px; color: var(--ex-muted); }
body.exui[class*="-knowledgebase-"] .rate a.btn > span { font: 500 12.5px/1 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg-82); }
/* plugins.js: "Yes 42" / "No 3", the word in the UI voice, the count muted mono */
body.exui[class*="-knowledgebase-"] .rate a.btn > .ex-plugins__word { font: 600 13px/1 var(--ex-font); letter-spacing: -.005em; color: var(--ex-fg); }
body.exui[class*="-knowledgebase-"] .rate a.btn > .ex-plugins__count { color: var(--ex-muted); }
body.exui[class*="-knowledgebase-"] .rate a.btn.disabled { opacity: .55; }
body.exui[class*="-knowledgebase-"] .rate p.voted { display: block; font: 400 14px/1.5 var(--ex-font); color: var(--ex-fg-72); } /* the plugin hides it inline until the vote lands */
body.exui[class*="-knowledgebase-"] .rate p.voted:not([style*="none"])::before {
  content: ""; display: inline-block; width: 14px; height: 14px; margin: 0 8px -2px 0; background: var(--ex-fg);
  -webkit-mask: var(--exp-i-check) center / contain no-repeat; mask: var(--exp-i-check) center / contain no-repeat;
}
/* table of contents built by plugins.js (desktop) */
body.exui .ex-kb { display: grid; grid-template-columns: minmax(0,760px) minmax(0,1fr); gap: 56px; align-items: start; }
body.exui .ex-kb__toc { position: sticky; top: calc(var(--ex-header-h) + 24px); justify-self: end; width: min(100%, 300px); margin-top: 8px; }
body.exui .ex-kb__toc .ex-actions { border-top: 0; }
body.exui .ex-kb__toc .ex-action { min-height: 44px; font-size: 14px; }

/* ---- P8 downloads --------------------------------------------------------------- */
/* stock: #download_manager_client_main .card-body > .downloads > ol.breadcrumb +
   .row.px-2 > [.col-md-12.pb-2 (folder note)] + .col-md-4 (i.fa-folder|.fa-file-alt + a) …
   → hairline rows: chip, name, and a chevron (folder) or a download glyph (file). */
body.exui #download_manager_client_main .downloads { margin: 0; padding: 0; }
/* the card head ("Downloads") repeats the page head kicker */
body.exui #download_manager_client_main > .card-header {
  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;
}
/* the folder path inside the card is a plain path (the red dash belongs to the page kicker) */
body.exui #download_manager_client_main .downloads > .breadcrumb::before { content: none; }
body.exui #download_manager_client_main .downloads > div { padding-bottom: 0; }
body.exui #download_manager_client_main .downloads > .breadcrumb { margin: 0 0 18px; }
/* at the root the path is just "Home": the card head already names the place */
body.exui #download_manager_client_main .downloads > .breadcrumb:has(> .breadcrumb-item:only-child) { display: none; }
body.exui #download_manager_client_main .downloads > .breadcrumb:has(> .breadcrumb-item:only-child) + .row.px-2 { margin-top: -22px; border-top: 0; }
/* plugins.js moves the folder path into the page kicker (the crumbs stay for screen readers) */
body.exui #download_manager_client_main .downloads > .breadcrumb.sr-only + .row.px-2 { margin-top: -22px; border-top: 0; }
body.exui #download_manager_client_main .downloads > .row.px-2 { display: block; margin: 0 -22px -22px; padding: 0 !important; /* answers .px-2 */ border-top: 1px solid var(--ex-line); }
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 { max-width: none; padding: 18px 22px !important; /* answers .pb-2 */ font-size: 14.5px; color: var(--ex-fg-72); }
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 > * { max-width: 72ch; }
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 + .col-md-4,
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 { border-bottom: 1px solid var(--ex-line); }
body.exui #download_manager_client_main .downloads .col-md-12.pb-2 + .col-md-4 { border-top: 0; }
body.exui #download_manager_client_main .downloads .col-md-4 {
  position: relative; display: flex; align-items: center; gap: 14px; max-width: none; min-height: 62px; padding: 12px 56px 12px 22px;
  border-bottom: 1px solid var(--ex-line); transition: background-color var(--ex-dur-3);
}
body.exui #download_manager_client_main .downloads .col-md-4:last-child { border-bottom: 0; }
body.exui #download_manager_client_main .downloads .col-md-4:hover { background: var(--ex-row-hover); }
body.exui #download_manager_client_main .downloads .col-md-4 > .fas {
  display: grid; place-items: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item);
  background: var(--ex-raised); font-size: 0; color: var(--ex-fg);
}
body.exui #download_manager_client_main .downloads .col-md-4 > .fas::before {
  content: ""; display: block; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--exp-i-file) center / contain no-repeat; mask: var(--exp-i-file) center / contain no-repeat;
}
body.exui #download_manager_client_main .downloads .col-md-4 > .fa-folder::before { -webkit-mask-image: var(--exp-i-folder); mask-image: var(--exp-i-folder); }
body.exui #download_manager_client_main .downloads .col-md-4 > a {
  flex: 1; min-width: 0; font: 600 15px/1.4 var(--ex-font); letter-spacing: -.01em; color: var(--ex-fg); text-decoration: none; overflow-wrap: anywhere; /* one name voice with Documents */
}
body.exui #download_manager_client_main .downloads .col-md-4 > a::after { content: ""; position: absolute; inset: 0; }
body.exui #download_manager_client_main .downloads .col-md-4 > a:focus-visible { outline: 0; }
body.exui #download_manager_client_main .downloads .col-md-4 > a:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: -2px; }
body.exui #download_manager_client_main .downloads .col-md-4::after {
  content: ""; position: absolute; right: 22px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--ex-muted); pointer-events: none;
  -webkit-mask: var(--exp-i-download) center / contain no-repeat; mask: var(--exp-i-download) center / contain no-repeat;
  transition: transform var(--ex-dur-3) var(--ex-ease), background-color var(--ex-dur-2);
}
/* a file row's action reads as a button: the download glyph in a 32px
   bordered ring (the .ex-iconbtn--bordered look; the whole row is the link) */
body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder))::before {
  content: ""; position: absolute; right: 14px; top: 50%; width: 32px; height: 32px; margin-top: -16px; box-sizing: border-box; pointer-events: none;
  border: 1px solid var(--ex-line-strong); border-radius: 50%; background: var(--ex-tint);
  transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2);
}
body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder)) { padding-right: 62px; }
body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder))::after { right: 22px; width: 16px; background: var(--ex-fg-82); }
body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder)):hover::before { border-color: var(--ex-a-50); background: var(--ex-a-08); }
body.exui #download_manager_client_main .downloads .col-md-4:has(> .fa-folder)::after { -webkit-mask-image: var(--exp-i-chev); mask-image: var(--exp-i-chev); }
body.exui #download_manager_client_main .downloads .col-md-4:hover::after { background: var(--ex-accent); }
body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder)):hover::after { background: var(--ex-fg); }
body.exui #download_manager_client_main .downloads .col-md-4:has(> .fa-folder):hover::after { transform: translateX(2px); }
body.exui #download_manager_client_main .downloads .col-md-4:has(> .fa-file-alt):hover::after { transform: translateY(1px); }
/* nothing here (or "log in to download") */
body.exui #download_manager_client_main .downloads .col-md-12.p-0 { padding: 0; }
body.exui #download_manager_client_main .downloads .col-md-12.p-0 > .alert {
  display: grid; place-items: center; min-height: 160px; margin: 0; padding: 36px 24px; border: 0; border-radius: 0; background: none; text-align: center;
}
body.exui #download_manager_client_main .downloads .col-md-12.p-0 > .alert::before { content: none; }
body.exui #download_manager_client_main .downloads .col-md-12.p-0 > .alert p { margin: 0; font-size: 14.5px; color: var(--ex-muted); }

/* ---- P9 documents --------------------------------------------------------------- */
/* stock: #client_main (client_documents) table.table-curved.table-striped: name · description · date added · download */
body.exui[class*="plugin-client_documents"] #client_main .table td:first-child {
  position: relative; padding-left: 72px; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: var(--ex-fg);
}
body.exui[class*="plugin-client_documents"] #client_main .table td:first-child::before {
  content: ""; position: absolute; left: 22px; top: 50%; width: 36px; height: 36px; margin-top: -18px; box-sizing: border-box;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-item); background: var(--ex-raised);
}
body.exui[class*="plugin-client_documents"] #client_main .table td:first-child::after {
  content: ""; position: absolute; left: 32px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--ex-fg);
  -webkit-mask: var(--exp-i-file) center / contain no-repeat; mask: var(--exp-i-file) center / contain no-repeat;
}
body.exui[class*="plugin-client_documents"] #client_main .table th:first-child { padding-left: 72px; }
body.exui[class*="plugin-client_documents"] #client_main .table td:nth-child(2) { min-width: 14em; font-size: 14px; line-height: 1.5; color: var(--ex-fg-72); white-space: normal; /* application.min.css: nowrap */ }
body.exui[class*="plugin-client_documents"] #client_main .table td:nth-child(3) { font: 400 13px/1.3 var(--ex-mono); color: var(--ex-fg-82); white-space: nowrap; }
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child { width: 1%; text-align: right; white-space: nowrap; }
/* download: an icon button (its text stays the accessible name) */
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn {
  width: 36px; height: 36px; padding: 0; border-color: var(--ex-line-strong); border-radius: 50%; background: var(--ex-tint); font-size: 0; gap: 0;
}
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn:hover { border-color: var(--ex-a-50); background: var(--ex-a-08); box-shadow: var(--ex-glow); }
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn .fas { width: 15px; height: 15px; color: var(--ex-fg); }
/* the whole row downloads (the name cell carries no link): the button's
   hit area is stretched over the row; its own ring stays the focus mark */
body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr { position: relative; }
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn { position: static; }
body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn::after { content: ""; position: absolute; inset: 0; z-index: 1; }
body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr:hover > td { background-color: var(--ex-row-hover); }
body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr:hover td:last-child > .btn { border-color: var(--ex-a-50); background: var(--ex-a-08); box-shadow: var(--ex-glow); }
body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr:has(td:last-child > .btn) { cursor: pointer; }
body.exui[class*="plugin-client_documents"] #client_main .card-body > .alert:last-child {
  display: grid; place-items: center; min-height: 160px; margin: 0; padding: 36px 24px; border: 0; background: none; text-align: center;
}
body.exui[class*="plugin-client_documents"] #client_main .card-body > .alert:last-child::before { content: none; }
body.exui[class*="plugin-client_documents"] #client_main .card-body > .alert:last-child p { margin: 0; color: var(--ex-muted); }

/* ---- P10 orders, order view, affiliates -------------------------------------------- */
/* stock: #client_orders table#orders: order # · status · invoice # · total · paid · date · actions */
body.exui #orders td:is(:nth-child(1), :nth-child(3)) { font: 600 13.5px/1.2 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg); white-space: nowrap; }
body.exui #orders td:nth-child(3)::before { content: "#"; margin-right: 1px; font-weight: 400; color: var(--ex-muted); }
body.exui #orders td:nth-child(2) { font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-fg-82); white-space: nowrap; }
/* status: the plugin prints a bare label, so every status sits in the
   neutral pill frame the other lists use, with no glyph (one treatment for
   every row; drawn behind the label: a table cell cannot be the pill; the
   column's labels are centred in equal frames). plugins.js swaps in the
   coded pill (.ex-pill) when it runs. */
body.exui #orders tbody > tr > td:nth-child(2):not(:has(.ex-pill)) { position: relative; width: 1%; padding-left: 24px; padding-right: 24px; text-align: center; }
body.exui #orders tbody > tr > td:nth-child(2):not(:has(.ex-pill))::after {
  content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 24px; margin-top: -12px; box-sizing: border-box;
  border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); pointer-events: none;
}
body.exui #orders:not(:has(td .ex-pill)) > thead th:nth-child(2) { text-align: center; }
body.exui #orders td:is(:nth-child(4), :nth-child(5)) { white-space: nowrap; }
body.exui :is(#orders, #client_orders_view) .currency_value { font: 600 14px/1.2 var(--ex-mono); letter-spacing: -.02em; color: var(--ex-fg); font-variant-numeric: tabular-nums; }
/* the ISO code is a muted unit (.ex-amt small). The plugin prints its class
   attribute with escaped quotes (class=\"currency_code\"), so .currency_code
   never matches: the span is targeted by position. */
body.exui :is(#orders, #client_orders_view) .currency_value > span { margin-left: 2px; font-size: 11px; font-weight: 400; letter-spacing: 0; color: var(--ex-fg-58); }
body.exui #orders td:nth-child(5) .currency_value { color: var(--ex-fg-72); font-weight: 500; }
body.exui #orders td:nth-child(6) { font: 400 13px/1.3 var(--ex-mono); color: var(--ex-fg-82); white-space: nowrap; }
/* row actions: View first in every row, so the View pills form one column
   (the cell starts at its left edge; a row that can still be canceled adds
   Cancel after it, in DOM order) */
body.exui #orders td:last-child { width: 1%; text-align: left; white-space: nowrap; }
body.exui #orders td:last-child .btn-group { display: inline-flex; gap: 6px; }
body.exui #orders td:last-child .btn-group > .btn { border-radius: var(--ex-r-pill) !important; /* answers .btn-group joins */ margin: 0; }
body.exui #orders td:last-child .btn .fas { font-size: 12px; color: var(--ex-muted); }
/* cancel an order: the ghost pill (.ex-btn--ghost), never a red button in every row */
body.exui #orders td:last-child .btn-danger { border-color: transparent; background: transparent; box-shadow: none; color: var(--ex-fg-82); text-decoration: none; }
body.exui #orders td:last-child .btn-danger:hover { border-color: transparent; background: var(--ex-fg-05); color: var(--ex-fg); box-shadow: none; }
body.exui #client_orders .card-body > .alert-info:last-child {
  display: grid; place-items: center; min-height: 160px; margin: 0; padding: 36px 24px; border: 0; background: none; text-align: center;
}
body.exui #client_orders .card-body > .alert-info:last-child::before { content: none; }
body.exui #client_orders .card-body > .alert-info:last-child p { margin: 0; font-size: 14.5px; color: var(--ex-muted); }
/* affiliates: the three stat cards become one strip (no Bootstrap colour fills) */
body.exui .affiliate_boxes .card:is(.bg-info, .bg-success, .bg-warning, .bg-primary, .bg-danger) {
  border-color: var(--ex-line-strong) !important; background: var(--ex-surface) !important; color: var(--ex-fg-82) !important; /* answers Bootstrap .bg-* */
}
body.exui .affiliate_boxes .card :is(h1, h2, h3, h4, .h1, .h2, .h3) { font-family: var(--ex-mono); letter-spacing: -.04em; color: var(--ex-fg); }
body.exui input.referral_link { font-family: var(--ex-mono); font-size: 13.5px; }

/* ---- P11 domains (theme override: .ex-domains) -------------------------------------- */
body.exui .ex-domains { overflow: visible; }
body.exui .ex-domains > .card-content > .ex-list__bar .ex-tab { gap: 8px; }
body.exui .ex-domains .ex-list__tools .filter-toggle[aria-expanded="true"] { border-color: var(--ex-fg-22); background: var(--ex-raised); }
/* the WidgetClient filter form keeps its stock markup inside the well */
body.exui .ex-domains__filters form.widget_filter_form { margin: 0; }
/* the stock well laid out as .ex-filters (DESIGN §5.21): fields in three
   columns, the submit at the end of the row, 22px insets like the table */
body.exui .ex-domains__filters form.widget_filter_form > .card { padding: 18px 22px !important; /* answers .p-3 */ }
body.exui .ex-domains__filters form.widget_filter_form > .card > .row {
  display: grid; grid-template-columns: repeat(3, minmax(0,1fr)) auto; align-items: end; gap: 16px; margin: 0;
}
body.exui .ex-domains__filters form.widget_filter_form > .card > .row > [class*="col-"] { flex: none; width: auto; max-width: none; margin: 0; padding: 0; }
body.exui .ex-domains__filters form.widget_filter_form > .card > .row > .col-md-12 { grid-column: -2 / -1; }
body.exui .ex-domains__filters form.widget_filter_form .form-group { margin: 0; }
body.exui .ex-domains__filters form.widget_filter_form .row:last-child .btn { float: none; height: 44px; margin: 0; padding: 0 18px; }
body.exui .ex-domains__filters:not(:has(form.widget_filter_form:not([style*="none"]))) { display: none; }
body.exui .ex-domains__table { table-layout: auto; }
/* the identity column takes a share and long names ellipsize (the full name
   is the link title), as the services list does, instead of widening the table */
body.exui .ex-domains__table td.cell-main { width: 36%; max-width: 0; }
body.exui .ex-domains__table .ex-obj__name { font: 600 14.5px/1.3 var(--ex-mono); letter-spacing: -.02em; color: var(--ex-fg); text-decoration: none; }
body.exui .ex-domains__table a.ex-obj__name:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
body.exui .ex-domains__table .ex-chip--sm .i { width: 16px; height: 16px; }
body.exui .ex-domains__sub { display: block; margin-top: 3px; font: 400 12px/1.35 var(--ex-mono); color: var(--ex-muted); white-space: nowrap; }
body.exui .ex-domains__table .ex-hint { font-size: 12.5px; }
/* a renewal hint is white only on the attention row (DESIGN §6); elsewhere
   it stays muted, as on Services */
body.exui .ex-domains__table tr.is-attn .ex-domains__soon { color: var(--ex-fg-82); }
body.exui .ex-domains__table td.cell-status { width: 1%; white-space: nowrap; }
/* the auto-renew attribute: a plain chip after the status pill */
body.exui .ex-domains__table td.cell-status .ex-pill + .ex-pill { margin-left: 6px; }
/* below 1280px (table layout) the chip goes under the pill, so the status
   column does not squeeze the domain names */
@media screen and (min-width: 768px) and (max-width: 1279.98px) {
  body.exui .ex-domains__table td.cell-status .ex-pill + .ex-pill { display: flex; width: max-content; margin: 6px 0 0; }
}
/* list footer: "2 active domains · sorted by registration date", pages on the right */
body.exui .ex-domains__foot .sep { padding: 0 4px; color: var(--ex-line-strong); }
body.exui .ex-domains__table td.cell-actions { width: 1%; white-space: nowrap; }
body.exui .ex-domains__table td.cell-actions .ex-rowactions { display: inline-flex; vertical-align: middle; }
body.exui .ex-domains__table tr.expand { cursor: pointer; }
body.exui .ex-domains__table tr.expand_details > td.subtable { padding: 0 !important; /* matches tr.ex-details */ }
/* registrar notes in the expanded row: hairline text lines, never a box */
body.exui .ex-domains__table tr.expand_details td.subtable > .alert {
  position: relative; margin: 0; padding: 16px 22px 16px 72px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
body.exui .ex-domains__table tr.expand_details td.subtable > .alert + .alert { border-top: 1px solid var(--ex-line); }
body.exui .ex-domains__table tr.expand_details td.subtable > .alert::before { content: none; }
body.exui .ex-domains__table tr.expand_details td.subtable > .alert p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--ex-fg-72); }
body.exui .ex-domains__table tr.expand_details td.subtable > .alert:is(.alert-danger, .alert-warning) p { color: var(--ex-fg); }
body.exui .ex-domains__table tr.expand_details td.subtable > .alert:is(.alert-danger, .alert-warning)::before {
  content: ""; position: absolute; left: 46px; top: calc(16px + .75em - 2px); width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg);
}
body.exui .ex-domains__table tr.expand_details td.subtable > h4 { margin: 16px 22px 0 72px; }
body.exui .ex-domains__table tr.expand_details td.subtable > .table-responsive { margin: 8px 0 0; }
body.exui .ex-domains__foot .pagination { margin-left: auto; }
/* the dashboard widget head matches the sibling widgets (Services, Invoices):
   .ex-label + .ex-count, sentence-case links */
body.exui .ex-domains--widget > .ex-card__head .ex-label { margin: 0; }
body.exui .ex-domains--widget > .ex-card__head .ex-row { gap: 18px; }
body.exui .ex-domains--widget .ex-list__bar--seg { border-bottom: 1px solid var(--ex-line); }

/* ---- P12 order forms list (theme override: .ex-orderforms) --------------------------- */
body.exui .ex-orderforms { margin-top: var(--ex-gap); }
body.exui .ex-orderforms__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--ex-gap); margin: 0; padding: 0; list-style: none; }
body.exui .ex-orderforms__card { display: flex; flex-direction: column; min-height: 220px; padding: 24px; }
body.exui .ex-orderforms__head { display: flex; align-items: center; gap: 14px; }
body.exui .ex-orderforms__name { margin: 0; font-size: 20px; line-height: 1.2; font-weight: 700; letter-spacing: -.025em; color: var(--ex-fg); }
body.exui .ex-orderforms__desc { flex: 1; margin-top: 16px; font-size: 14.5px; line-height: 1.6; color: var(--ex-fg-72); }
body.exui .ex-orderforms__desc a { position: relative; z-index: 2; }
body.exui .ex-orderforms__foot { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ex-line); }
body.exui .ex-orderforms__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
body.exui .ex-orderforms__link:focus-visible { outline: 0; }
body.exui .ex-orderforms__link:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
body.exui .ex-orderforms__card:hover .ex-orderforms__link .ex-arrow { color: var(--ex-accent); transform: translateX(2px); }
/* the account sign-up form: a quiet line under the cards, not a third way
   to order */
body.exui .ex-orderforms__signup { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin: 28px 0 0; font-size: 14.5px; color: var(--ex-fg-72); }
body.exui .ex-orderforms__signup + .ex-orderforms__signup { margin-top: 8px; }

/* ---- P13 module client tabs (service manage) ---------------------------------------- */
/* Module markup cannot change; usage readouts (label + small + .progress, as
   cPanel / DirectAdmin print them) become the brand meter: a 1px line with a
   gradient that ends in a glowing dot, the numbers in mono. */
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > label:has(+ small + .progress) {
  display: inline; margin: 0; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-fg-82);
}
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > label + small:has(+ .progress) {
  float: right; font: 500 12.5px/1.4 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg-82); white-space: nowrap;
}
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > small + .progress {
  clear: both; position: relative; height: 1px; margin: 12px 0 26px; overflow: visible; border-radius: 0; background: var(--ex-line-strong);
}
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > small + .progress > .progress-bar {
  position: relative; height: 1px; overflow: visible; box-shadow: none;
  background: linear-gradient(to right, transparent, var(--ex-a-50) 45%, var(--ex-accent)) !important; /* answers .bg-success/.bg-danger */
}
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > small + .progress > .progress-bar::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);
}
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > hr + label { margin-top: 6px; }
body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > small + .progress:last-child { margin-bottom: 4px; }
/* two-column "Field · Value" tables read as key/value rows: no Field/Value
   head under the section label (kept for screen readers), values in mono
   (hostnames, IPs). The section label, the rule after the table and the
   services.js meters are the services area's (.ex-svc-modcard, services.css). */
body.exui[class*="client_services-manage"] .table:has(> thead th[style*="50%"]) > thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}
body.exui[class*="client_services-manage"] .table:has(th[style*="50%"]) td:last-child {
  text-align: right; font: 500 13.5px/1.4 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg); overflow-wrap: anywhere;
}


/* ---- P14 order flow: shell coherence ------------------------------------------------ */
/* The order wizard keeps exui-order.css (DESIGN §13 phases); only shell-level
   seams are touched here, scoped to the order routes. */
/* the stepper and the catalog back links span the page-head width (exui-order.css centres them at 1120px) */
body.exui[class*="plugin-orderclient-"] #main-content > :is(.exact-order-progress, .exact-catalog-navigation) { width: auto; max-width: none; margin-left: 0; margin-right: 0; }
/* category cards: exui-order.css stratum C's ":last-child:nth-child(3n + 1)"
   compact card (padding 14px !important) outranks the final 22px card rule,
   so the 4th category (Dedicated Servers) rendered smaller than the rest */
body.exui.exact-client-ui .list-group.package-groups > .list-group-item:is(:last-child:nth-child(3n + 1), :nth-last-child(2):nth-child(3n + 1)) {
  min-height: 108px; padding: 22px !important; /* answers exui-order.css 2641-2655 */
}
/* category step: the page head already says where you are (title = the
   order form, kicker = "Order · Choose a plan"), so the centred 56px
   gradient heading goes (BR §13.2: no gradient text outside sign-in) and its
   sentence is the head's lede (DESIGN §7.12: lede = the group description).
   The stepper is inserted between the head and the content row, so the
   main column becomes a flex column, the row and its column let their
   children take part (display: contents; the column's padding only undid
   the row's gutter, so the edges stay on the page-head line), and the
   sentence is ordered up under the title. Nothing focusable moves. */
body.exui.exact-client-ui:has(.package-groups) #main-content { display: flex; flex-direction: column; }
body.exui.exact-client-ui:has(.package-groups) #main-content > .ex-pagehead { order: -2; }
/* the email-confirmation banner (exui.css §11 .ex-gate) stays first, above the head */
body.exui.exact-client-ui:has(.package-groups) #main-content > .ex-gate { order: -3; }
body.exui.exact-client-ui:has(.package-groups) #main-content > .row.ex-content:has(> .col-md-12 > .package-groups),
body.exui.exact-client-ui:has(.package-groups) #main-content > .row.ex-content > .col-md-12:has(> .package-groups) { display: contents; }
body.exui.exact-client-ui:has(.package-groups) #main-content > .row.ex-content > .col-md-12 > .section-title {
  order: -1; max-width: 64ch; margin: -18px 0 32px !important; /* answers exui-order.css; the head's 32px gap less the lede's 14px */ text-align: left;
}
body.exui.exact-client-ui:has(.package-groups) .section-title::before { content: none; }
body.exui.exact-client-ui:has(.package-groups) .section-title h3 {
  position: absolute; width: 1px; height: 1px; margin: -1px !important; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
/* the .ex-lede voice */
body.exui.exact-client-ui:has(.package-groups) .section-title p {
  max-width: none; margin: 0 !important; /* answers exui-order.css */ font-size: var(--ex-fs-lede) !important; /* answers exui-order.css */ line-height: 1.55 !important;
  font-weight: 450; color: var(--ex-fg-72) !important; text-align: left; text-wrap: pretty;
}
body.exui.exact-client-ui .list-group.package-groups { margin-top: 0 !important; /* answers exui-order.css: the stepper above keeps its own gap */ }
/* category chips: a Lucide line icon instead of Font Awesome's solid cube
   (one icon family). The chip box stays exui-order.css's; the icon is its
   background image (the chip is a pseudo element, so it cannot also be a
   mask). plugins.js picks a closer icon from the category name when it runs
   (data-exui-icon); the default is a package. */
body.exui.exact-client-ui .list-group.package-groups > .list-group-item {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpath d='m3.3 7 7.703 4.734a2 2 0 0 0 1.994 0L20.7 7'/%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item[data-exui-icon="server"] {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cpath d='M6 6h.01'/%3E%3Cpath d='M6 18h.01'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item[data-exui-icon="cpu"] {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='16' height='16' x='4' y='4' rx='2'/%3E%3Crect width='6' height='6' x='9' y='9' rx='1'/%3E%3Cpath d='M15 2v2M15 20v2M2 15h2M2 9h2M20 15h2M20 9h2M9 2v2M9 20v2'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item[data-exui-icon="hard-drive"] {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12H2'/%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%3Cpath d='M6 16h.01M10 16h.01'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item[data-exui-icon="layers"] {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83Z'/%3E%3Cpath d='m22 17.65-9.17 4.16a2 2 0 0 1-1.66 0L2 17.65'/%3E%3Cpath d='m22 12.65-9.17 4.16a2 2 0 0 1-1.66 0L2 12.65'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item[data-exui-icon="globe"] {
  --exp-cat: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-opacity='.82' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
}
body.exui.exact-client-ui .list-group.package-groups > .list-group-item::before {
  content: ""; font-size: 0; background: var(--exp-cat) center / 16px 16px no-repeat, var(--ex-raised);
}
/* the rest of the order steps: section headings in plain white, never gradient text */
body.exui[class*="plugin-orderclient-"] .section-title :is(h2, h3) { background: none; -webkit-text-fill-color: currentColor; }

/* The order progress takes the portal stepper (.ex-stepper recipe, DESIGN
   §5.3 / §7.12) instead of exui-order.css's boxed three-cell bar: no box,
   32px nodes on a 1px line that fills red up to the current step, two-digit
   mono numerals (01 02 03; the plugin's "1" stays for screen readers), a
   check on done steps, and Satoshi 14px titles, white when done or current.
   exact-theme.js builds the markup (nav.exact-order-progress > ol >
   li.is-current|.is-complete > span.-number + span.-label). These rules
   outrank exui-order.css's at every width (its phone rules included). */
body.exui.exact-client-ui .exact-order-progress { margin-bottom: 32px; counter-reset: exui-step; }
body.exui.exact-client-ui .exact-order-progress ol { overflow: visible; border: 0; border-radius: 0; background: none; }
body.exui.exact-client-ui .exact-order-progress ol > li {
  position: relative; display: block; min-width: 0; padding: 0 24px 0 0; border: 0; background: none; counter-increment: exui-step;
  font: 600 14px/1.35 var(--ex-font); letter-spacing: -.01em; text-align: left; color: var(--ex-muted);
}
body.exui.exact-client-ui .exact-order-progress ol > li::before {
  content: ""; position: absolute; top: 16px; left: 44px; right: 12px; height: 1px; background: var(--ex-line-strong);
}
body.exui.exact-client-ui .exact-order-progress ol > li:last-child::before { content: none; }
body.exui.exact-client-ui .exact-order-progress ol > li.is-complete::before { background: var(--ex-accent); box-shadow: var(--ex-led); }
body.exui.exact-client-ui .exact-order-progress-number {
  display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; box-sizing: border-box; border: 1px solid var(--ex-line-strong); border-radius: 50%;
  background: var(--ex-bg); font-size: 0; color: var(--ex-muted);
}
body.exui.exact-client-ui .exact-order-progress-number::before {
  content: counter(exui-step, decimal-leading-zero);
  content: counter(exui-step, decimal-leading-zero) / ""; /* decorative: the plugin's own numeral is read */
  font: 600 10.5px/1 var(--ex-mono); letter-spacing: 0;
}
body.exui.exact-client-ui .exact-order-progress li.is-current .exact-order-progress-number {
  border-color: var(--ex-accent); background: var(--ex-a-10); color: var(--ex-fg); box-shadow: 0 0 0 4px var(--ex-a-10);
}
body.exui.exact-client-ui .exact-order-progress li.is-complete .exact-order-progress-number { border-color: var(--ex-fg-58); color: var(--ex-fg); }
body.exui.exact-client-ui .exact-order-progress li.is-complete .exact-order-progress-number::before {
  content: ""; width: 14px; height: 14px; background: currentColor;
  -webkit-mask: var(--exp-i-check) center / contain no-repeat; mask: var(--exp-i-check) center / contain no-repeat;
}
body.exui.exact-client-ui .exact-order-progress-label {
  display: block; margin-top: 12px; overflow: visible; white-space: normal; text-overflow: clip; overflow-wrap: break-word;
}
body.exui.exact-client-ui .exact-order-progress li:is(.is-current, .is-complete) { color: var(--ex-fg); }
@media screen and (max-width: 767.98px) {
  body.exui.exact-client-ui:has(.package-groups) #main-content > .row.ex-content > .col-md-12 > .section-title { margin: -10px 0 24px !important; /* answers exui-order.css; the head's 24px phone gap less 14px */ }
  body.exui.exact-client-ui .exact-order-progress { margin-bottom: 24px; }
  body.exui.exact-client-ui .exact-order-progress ol > li { padding-right: 8px; font-size: 13px; }
  body.exui.exact-client-ui .exact-order-progress ol > li::before { left: 40px; right: 4px; }
}

/* ---- P15 tablets and phones --------------------------------------------------------- */
/* Ticket lists stack below 1024px, and in the dashboard widget column below
   1280px (584-660px wide there): seven columns never fit, and a scroller hid
   Status and the actions. Stacked rows need no labels: code + status,
   subject, department · last reply, priority + actions. The two blocks carry
   the same rules (a media query cannot be OR-ed with a page context). */
@media screen and (max-width: 1023.98px) {
  body.exui #client_tickets .table-responsive > .table { min-width: 0; }
  body.exui #client_tickets .table, body.exui #client_tickets .table tbody { display: block; }
  body.exui #client_tickets .table tbody > tr {
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "code status" "summary summary" "dept last" "prio act";
    align-items: center; gap: 8px 12px; padding: 16px 22px; border-top: 1px solid var(--ex-line);
  }
  body.exui #client_tickets .table tbody > tr:first-child { border-top: 0; }
  /* the stacked row carries the attention edge; the first cell's own edge
     (P1) would draw a second red bar inside the row's padding */
  body.exui #client_tickets .table tbody > tr.is-attn { background: var(--ex-a-06); box-shadow: inset 2px 0 0 var(--ex-accent); }
  body.exui #client_tickets .table tbody > tr.is-attn > td:first-child { box-shadow: none; }
  body.exui #client_tickets .table tbody > tr.is-attn > td:first-child::before { content: none; }
  body.exui #client_tickets .table tbody > tr > td { display: block; width: auto; min-width: 0; padding: 0 !important; border: 0 !important; background: none !important; /* stacked cells */ white-space: normal; text-align: left; }
  body.exui #client_tickets .table tbody > tr > td:nth-child(1) { grid-area: code; }
  body.exui #client_tickets .table tbody > tr > td:nth-child(2) { grid-area: prio; }
  body.exui #client_tickets .table tbody > tr > td:nth-child(3) { grid-area: dept; }
  body.exui #client_tickets .table tbody > tr > td:nth-child(4) { grid-area: summary; width: auto; }
  body.exui #client_tickets .table tbody > tr > td:nth-child(5) { grid-area: last; text-align: right; }
  body.exui #client_tickets .table:has(thead th:nth-child(7)) tbody > tr > td:nth-child(6) { grid-area: status; text-align: right; }
  /* the stacked row's status cell is the neutral pill itself (no-JS label) */
  body.exui #client_tickets .table:has(thead th:nth-child(7)) tbody > tr > td:nth-child(6):not(:has(.ex-pill)) {
    display: inline-flex; align-items: center; justify-self: end; width: auto; height: 24px; padding: 0 10px !important; /* answers the stacked cell reset */
    border: 1px solid var(--ex-line-strong) !important; /* answers the stacked cell reset */ border-radius: var(--ex-r-pill);
  }
  body.exui #client_tickets .table:has(thead th:nth-child(7)) tbody > tr > td:nth-child(6):not(:has(.ex-pill))::after { content: none; }
  body.exui #client_tickets .table tbody > tr > td:last-child { grid-area: act; justify-self: end; width: auto; }
  /* stacked rows: Low and Medium priority say little without their column
     head, so they are kept for screen readers only (still read with the
     row); High and above keep their chip */
  body.exui #client_tickets .table tbody > tr > td:nth-child(2):not(:has(.badge:is(.badge-info, .badge-warning, .badge-danger))) {
    position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
  }
  /* the dashboard widget is a summary: no sort bar (below) */
  body.exui .ex-dash-widgets #client_tickets .table-responsive > .table > thead { display: none; }
}
/* Sort bars. Stacked lists lose their column heads. On tablets the head
   becomes a compact bar of the sortable columns (columns without a link
   drop out). On phones the bar wrapped into a strip of orphaned labels, so
   there it is visually hidden like the services and billing heads, and it
   reappears while one of its links has focus: keyboard users still see
   where they are (WCAG 2.4.7) and can re-sort; sorting by touch is a
   desktop and tablet affordance. */
@media screen and (max-width: 1023.98px) {
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead {
    position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; border-bottom: 1px solid var(--ex-line); background: var(--ex-well);
  }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; padding: 2px 22px;
  }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th {
    display: block; width: auto; padding: 0 !important; /* answers the column-head padding */ border: 0; background: none;
  }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th:not(:has(a)) { display: none; }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th a {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; color: var(--ex-muted); text-decoration: none;
  }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th a:is(:hover, .asc, .desc) { color: var(--ex-fg); }
}
@media screen and (max-width: 767.98px) {
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr { gap: 0 18px; padding: 0 20px; }
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table) > thead > tr > th a { min-height: 40px; }
  /* the domains list (.ex-table--stack) the same way; its default sort
     (Registration date) stays in the bar although the stacked rows drop
     that column */
  body.exui .ex-domains__table > thead {
    position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; border-bottom: 1px solid var(--ex-line); background: var(--ex-well);
  }
  body.exui .ex-domains__table > thead > tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; padding: 0 20px; }
  body.exui .ex-domains__table > thead > tr > th { display: block; width: auto; padding: 0; border: 0; background: none; }
  body.exui .ex-domains__table > thead > tr > th:not(:has(a)) { display: none; }
  body.exui .ex-domains__table > thead > tr > th.cell-opt:has(a) { display: block; }
  body.exui .ex-domains__table > thead > tr > th a { min-height: 40px; color: var(--ex-muted); }
  body.exui .ex-domains__table > thead > tr > th a:is(:hover, .is-sorted) { color: var(--ex-fg); }
  body.exui .ex-domains.ex-domains--widget .ex-domains__table > thead { display: none; }
  /* the phone heads stay out of sight until a sort link has focus */
  body.exui :is(#client_tickets .table, #orders, [class*="plugin-client_documents"] #client_main .table, .ex-domains__table) > thead:not(:focus-within) {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
  }
}
/* (the dashboard widget at full width drops Priority and Department in dashboard.css) */
/* tablets and small laptops: optional columns give way, long text wraps, so
   no list pushes the page (or its row actions) sideways */
/* the ticket list page at 1024-1279px keeps every column: the column heads
   and the department wrap instead (seven columns fit 942px at 1024) */
@media screen and (min-width: 1024px) and (max-width: 1279.98px) {
  body.exui[class*="plugin-support_manager"] #client_tickets .table > thead th { white-space: normal; }
  body.exui[class*="plugin-support_manager"] #client_tickets .table td:nth-child(3) { min-width: 6.5em; max-width: 8.5em; white-space: normal; }
}
/* the domains list on tablets: Registration date gives way (a table cannot
   drop a cell without its head); from 1024px every column fits */
@media screen and (max-width: 1023.98px) {
  body.exui .ex-domains__table :is(th, td).cell-opt { display: none; }
}
@media screen and (max-width: 1179.98px) {
  body.exui .ex-domains__sub { white-space: normal; }
  body.exui #orders td:nth-child(6) { white-space: normal; min-width: 7.5em; }
}
@media screen and (max-width: 1023.98px) {
  body.exui #client_ticket_reply .card-body.ex-ticket { grid-template-columns: minmax(0,1fr); }
  /* documents and orders → stacked rows (tablets too: the tables never fit
     768-1023 without hiding their actions behind a scroller) */
  body.exui[class*="plugin-client_documents"] #client_main .table-responsive > .table,
  body.exui #client_orders .table-responsive > #orders { min-width: 0; }
  body.exui[class*="plugin-client_documents"] #client_main .table,
  body.exui[class*="plugin-client_documents"] #client_main .table tbody,
  body.exui #orders, body.exui #orders tbody { display: block; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr {
    position: relative; display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "name act" "desc desc" "date date";
    gap: 6px 12px; min-height: 76px; padding: 16px 20px 16px 70px; border-top: 1px solid var(--ex-line);
  }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr:first-child { border-top: 0; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td { display: block; width: auto; padding: 0 !important; border: 0 !important; background: none !important; /* stacked cells */ position: static; white-space: normal; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:nth-child(1) { grid-area: name; align-self: center; position: static; overflow-wrap: anywhere; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:nth-child(1)::before { left: 20px; top: 18px; margin-top: 0; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:nth-child(1)::after { left: 30px; top: 28px; margin-top: 0; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:nth-child(2) { grid-area: desc; }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:nth-child(3) { grid-area: date; font-size: 12.5px; color: var(--ex-muted); }
  body.exui[class*="plugin-client_documents"] #client_main .table tbody > tr > td:last-child { grid-area: act; align-self: start; width: auto; }
  body.exui[class*="plugin-client_documents"] #client_main .table td:last-child > .btn { width: 40px; height: 40px; }
  body.exui #orders tbody > tr {
    display: grid; grid-template-columns: minmax(0,1fr) auto; grid-template-areas: "num status" "total paid" "date date" "inv act";
    align-items: center; gap: 8px 12px; padding: 16px 20px; border-top: 1px solid var(--ex-line);
  }
  body.exui #orders tbody > tr:first-child { border-top: 0; }
  body.exui #orders tbody > tr > td { display: block; width: auto; padding: 0 !important; border: 0 !important; background: none !important; /* stacked cells */ text-align: left; white-space: normal; }
  body.exui #orders tbody > tr > td:nth-child(1) { grid-area: num; }
  body.exui #orders tbody > tr > td:nth-child(2) { grid-area: status; text-align: right; }
  /* the stacked row's status cell is the pill itself */
  body.exui #orders tbody > tr > td:nth-child(2):not(:has(.ex-pill)) {
    display: inline-flex; align-items: center; justify-self: end; width: auto; height: 24px; padding: 0 10px !important; /* answers the stacked cell reset */
    border: 1px solid var(--ex-line-strong) !important; /* answers the stacked cell reset */ border-radius: var(--ex-r-pill);
  }
  body.exui #orders tbody > tr > td:nth-child(2):not(:has(.ex-pill))::after { content: none; }
  body.exui #orders tbody > tr > td:nth-child(3) { grid-area: inv; }
  body.exui #orders tbody > tr > td:nth-child(4) { grid-area: total; }
  /* paid: beside the total. The column head is hidden, so the cell carries a
     wallet glyph (never a check: "$0.00" paid is not done) or, once
     plugins.js has copied the translated column name into data-label, that
     caption. */
  body.exui #orders tbody > tr > td:nth-child(5) { grid-area: paid; display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
  body.exui #orders tbody > tr > td:nth-child(5)::before,
  body.exui #orders tbody > tr > td:nth-child(3)::after {
    content: ""; flex: none; width: 13px; height: 13px; background: var(--ex-muted);
    -webkit-mask: var(--exp-i-wallet) center / contain no-repeat; mask: var(--exp-i-wallet) center / contain no-repeat;
  }
  /* the invoice number: a file icon before it says what the number is */
  body.exui #orders tbody > tr > td:nth-child(3) { display: flex; align-items: center; gap: 0; }
  body.exui #orders tbody > tr > td:nth-child(3)::after { order: -1; margin-right: 7px; -webkit-mask-image: var(--exp-i-file); mask-image: var(--exp-i-file); }
  body.exui #orders tbody > tr > td:nth-child(5)[data-label]::before,
  body.exui #orders tbody > tr > td:nth-child(3)[data-label]::after {
    content: attr(data-label); width: auto; height: auto; margin-right: 8px; background: none; -webkit-mask: none; mask: none;
    font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted);
  }
  body.exui #orders tbody > tr > td:nth-child(5)[data-label]::before { margin-right: 2px; }
  body.exui #orders tbody > tr > td:nth-child(6) { grid-area: date; font-size: 12.5px; color: var(--ex-muted); }
  body.exui #orders tbody > tr > td:last-child { grid-area: act; justify-self: end; width: auto; }
  body.exui #orders td:last-child .btn { height: 40px; padding: 0 16px; font-size: 14px; }
  body.exui #client_ticket_reply .ex-ticket__aside { position: static; }
  body.exui .ex-kb { grid-template-columns: minmax(0,1fr); }
  body.exui .ex-kb__toc { display: none; }
}
@media screen and (max-width: 767.98px) {
  /* ticket lists: touch targets */
  body.exui #client_tickets .table tbody > tr { padding: 16px 20px; }
  body.exui #client_tickets .table tbody > tr > td:last-child .btn { height: 40px; }
  body.exui #client_tickets .table tbody > tr > td:last-child .btn:not(.dropdown-toggle) { padding: 0 18px; font-size: 14px; }
  body.exui #client_tickets .table tbody > tr > td:last-child .dropdown-toggle { width: 40px; }
  body.exui #client_tickets .card-nav .float-right > a.btn[href*="/departments/"] { height: 40px; padding: 0 18px; font-size: 14px; }
  body.exui #client_tickets .card-nav .float-right > .filter-toggle { width: 40px; height: 40px; }
  /* the list page's primary spans the row under the status tabs (it wrapped
     alone to the right, half the row empty); the filter toggle stays beside it */
  body.exui[class*="plugin-support_manager"] #client_tickets .card-nav > .float-right:has(> a.btn[href*="/departments/"]) { flex: 1 1 100%; flex-wrap: nowrap; margin-left: 0; }
  body.exui[class*="plugin-support_manager"] #client_tickets .card-nav .float-right > a.btn[href*="/departments/"] { flex: 1 1 auto; justify-content: center; }
  body.exui #client_tickets .card-nav .float-right > .filter-toggle:has(.ex-plugins__label) { flex: none; width: auto; padding: 0 16px; }


  /* departments: one column */
  body.exui #client_tickets .list-group > a.list-group-item { padding: 18px 18px !important; /* answers .p-3 */ grid-template-columns: 40px minmax(0,1fr) 32px; column-gap: 14px; }
  body.exui #client_tickets .list-group > a.list-group-item::before { width: 40px; height: 40px; }
  body.exui #client_tickets .list-group > a.list-group-item::after { top: 28px; left: 28px; }
  body.exui #client_tickets .list-group > a.list-group-item h4::before { right: 18px; }
  body.exui #client_tickets .list-group > a.list-group-item h4::after { right: 27px; }

  /* open a ticket: one column, the submit grows */
  body.exui[class*="client_tickets-add"] .content_section > .card-content > .card-body:has(> #create_ticket) { padding: 20px; }
  body.exui[class*="client_tickets-add"] #create_ticket { grid-template-columns: minmax(0,1fr); }
  body.exui[class*="client_tickets-add"] #create_ticket > .form-group:is(:has(> #priority), :has(> #service_id)) { grid-column: 1 / -1; }
  body.exui[class*="client_tickets-add"] #create_ticket > button[type="submit"] { justify-self: stretch; height: 50px; }
  body.exui[class*="client_tickets-add"] #create_ticket { background-position: left bottom 70px; }

  /* ticket thread: no avatar gutter or rail; events keep a 24px node column */
  body.exui #client_ticket_reply .ticket-reply { grid-template-columns: 28px minmax(0,1fr); column-gap: 10px; row-gap: 10px; margin-bottom: 22px; }
  body.exui #client_ticket_reply .ticket-reply > .replier > img { width: 28px !important; /* answers .w-100 */ height: 28px; box-shadow: none; }
  body.exui #client_ticket_reply .ticket-reply > .replier > p { grid-column: 2; }
  body.exui #client_ticket_reply .ticket-reply > .top-bar { grid-column: 1 / -1; grid-row: 2; text-align: left; }
  body.exui #client_ticket_reply .ticket-reply > .response { grid-column: 1 / -1; grid-row: 3; padding: 16px; }
  body.exui #client_ticket_reply .card-body > :is(.ticket-reply, .marbot10)::after { content: none; }
  body.exui #client_ticket_reply .card-body > .marbot10 { padding-left: 34px; margin-bottom: 22px !important; /* answers .marbot10 */ }
  body.exui #client_ticket_reply .card-body > .marbot10 > .alert::before { left: 7px; }
  body.exui #client_ticket_reply #create_ticket,
  body.exui #client_ticket_reply #create_ticket.dropzone { margin-bottom: 30px; padding: 14px !important; /* answers support_manager .dropzone */ }
  body.exui #client_ticket_reply:not(:has(> .card-content > .ex-ticket)) > .card-header:not(.sr-only) { top: 18px; left: 18px; right: 18px; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row { gap: 14px 24px; padding: 0 18px 18px; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child { flex-basis: calc(100% + 36px); margin: 0 -18px 2px; padding: 42px 18px 16px; }
  body.exui #client_ticket_reply .card-body:not(.ex-ticket) > .card.bg-light > .row > .col-md-12:first-child > p { font-size: 19px; }
  body.exui #client_ticket_reply #create_ticket button[type="submit"][value="reply"] { flex: 1; height: 50px; }
  body.exui #client_ticket_reply .ticket-reply > .response pre,
  body.exui[class*="-knowledgebase-"] .article pre { white-space: pre-wrap; overflow-wrap: anywhere; }
  body.exui .ex-thread::before { content: none; }
  body.exui .ex-msg { grid-template-columns: minmax(0,1fr); }
  body.exui .ex-msg > .ex-msg__node { display: none; }
  body.exui .ex-msg__time { flex-basis: 100%; margin-left: 0; text-align: left; }
  body.exui .ex-msg__bubble { padding: 16px; }
  body.exui .ex-evt { grid-template-columns: 24px minmax(0,1fr); gap: 10px; }
  body.exui .ex-quiet--close { align-items: center; padding-left: 0; }
  /* "Close ticket" stays quiet but is a 40px touch target */
  body.exui #client_ticket_reply .ex-quiet--close button[type="submit"][value="close"] { min-height: 40px; }
  body.exui #client_ticket_reply #create_ticket > .btn-group > button[type="submit"][value="close"] { height: 40px; }
  body.exui #client_ticket_reply .ex-composer button[type="submit"][value="reply"] { flex: 1; }
  /* event meta on its own line, without the leading separator */
  body.exui #client_ticket_reply .card-body > .marbot10 em,
  body.exui .ex-evt p .ex-evt__when { display: block; white-space: normal; }
  body.exui #client_ticket_reply .card-body > .marbot10 em::before,
  body.exui .ex-evt p .ex-evt__when::before { content: none; }
  /* the editor's Markdown / WYSIWYG switch: 40px tabs */
  body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-mode-switch { height: auto; }
  body.exui :is(#create_ticket, #client_ticket_reply) .toastui-editor-mode-switch .tab-item { height: 40px; line-height: 40px; }

  /* knowledge base */
  body.exui[class*="-knowledgebase-"] .card-kb .input-group { height: 54px; padding-left: 42px; }
  body.exui[class*="-knowledgebase-"] .card-kb .input-group::before { left: 17px; }
  body.exui[class*="-knowledgebase-"] .card-kb .input-group > .form-control { height: 52px; font-size: 14px; }
  /* the stock placeholder ("Search our Knowledge Base") fits beside the
     button: a tighter placeholder and button (plugins.js also shortens it) */
  body.exui[class*="-knowledgebase-"] .card-kb .input-group > .form-control::placeholder { font-size: 13px; letter-spacing: -.01em; }
  /* the submit is a 42px red disc with an arrow (its text stays its name) */
  body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn { width: 42px; height: 42px; padding: 0; gap: 0; font-size: 0; }
  body.exui[class*="-knowledgebase-"] .card-kb .input-group-append > .btn::after {
    content: ""; position: static; flex: none; width: 16px; height: 16px; background: var(--ex-fg);
    -webkit-mask: var(--exp-i-arrow) center / contain no-repeat; mask: var(--exp-i-arrow) center / contain no-repeat;
  }
  /* breadcrumb links are touch targets (DESIGN §9: 40px) */
  body.exui:is([class*="-knowledgebase-"], [class*="plugin-download_manager"]) .breadcrumb-item a { display: inline-flex; align-items: center; min-height: 40px; }
  body.exui[class*="-knowledgebase-"] .article { font-size: 16px; line-height: 1.7; }
  /* article tables on phones. Squeezing three columns into 350px broke code
     mid-token ("letsencrypt.o / rg") and split one code span into three
     chips, so a table keeps its columns and scrolls sideways inside its
     own box instead: column heads and code stay whole, cells wrap at a
     readable width, and a faint edge on the right says there is more
     (scroll-attached backgrounds: the cover travels with the content and
     hides the edge once the end is reached). plugins.js stacks tables of
     three or more columns (.ex-kb-stack, below). (:not(#exui-kb) matches the
     P0 prose rules, whose :is() list carries an id.) */
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb) {
    display: block; width: auto; max-width: 100%; overflow-x: auto; font-size: 13.5px; -webkit-overflow-scrolling: touch;
    background: linear-gradient(to left, var(--ex-bg) 40%, transparent) right center / 32px 100% no-repeat local,
                linear-gradient(to left, var(--ex-fg-06), transparent) right center / 14px 100% no-repeat scroll;
  }
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb) th { white-space: nowrap; }
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb) td { min-width: 9.5em; padding-right: 14px; }
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb) :is(th, td):last-child { padding-right: 0; }
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb) code { white-space: nowrap; overflow-wrap: normal; }
  body.exui[class*="-knowledgebase-"] .article table:not(.ex-kb-stack):not(#exui-kb):focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 2px; }
  /* three or more columns, once plugins.js has given each cell its column
     head (data-label): each row stacks as a hairline block, the first cell
     its title, the others captioned lines */
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb),
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) tbody { display: block; }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) thead { display: none; }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) tr { display: grid; gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--ex-line); }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) tr:first-child { padding-top: 4px; }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) tr:last-child { border-bottom: 0; }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) :is(th, td) { display: block; padding: 0; border: 0; font-size: 14.5px; }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) td:first-child { font-weight: 600; color: var(--ex-fg); }
  body.exui[class*="-knowledgebase-"] .article table.ex-kb-stack:not(#exui-kb) td:not(:first-child)[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ex-muted);
  }
  /* categories: one card of compact rows (chip, name and count, the
     description in two lines) instead of six tall tiles */
  body.exui[class*="-knowledgebase-"] .categories > .row:has(> .col-md-4) {
    row-gap: 0; margin: 0; overflow: hidden; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card); background: var(--ex-surface);
  }
  body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-4 { flex: 0 0 100%; max-width: 100%; padding: 0; border-bottom: 1px solid var(--ex-line); }
  body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-4:last-child { border-bottom: 0; }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light {
    display: grid; grid-template-columns: 36px minmax(0,1fr) auto; align-items: center; column-gap: 14px; row-gap: 2px;
    padding: 14px 18px !important; /* answers .p-3 */ border: 0; border-radius: 0 !important; /* answers .rounded */ background: none !important; /* answers .bg-light */
    transition: background-color var(--ex-dur-3);
  }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light:is(:hover, :focus-within) { border: 0; background: var(--ex-row-hover) !important; /* answers .bg-light */ }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > .fas { grid-row: 1 / span 2; }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a { grid-column: 2; min-width: 0; font-size: 15px; }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > a:focus-visible::after { outline-offset: -2px; }
  /* the description: two lines, so what is in each category still reads */
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > :is(p, ul, ol) {
    grid-column: 2 / -1; display: -webkit-box; margin: 2px 0 0; overflow: hidden; font-size: 13px; line-height: 1.5; color: var(--ex-muted);
    -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  }
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light > :is(p, ul, ol) ~ :is(p, ul, ol) { display: none; }
  body.exui[class*="-knowledgebase-"] .rate { margin-top: 36px; }
  body.exui[class*="-knowledgebase-"] .rate a.btn { height: 40px; padding: 0 18px; }
  body.exui[class*="-knowledgebase-"] .categories > .row > .col-md-12 > .bg-light,
  body.exui[class*="-knowledgebase-"] .categories > .col-md-12:not(:has(> .bg-light)) { padding-left: 20px !important; /* answers .px-3 */ }

  /* downloads */
  body.exui #download_manager_client_main .downloads > .row.px-2 { margin: 0 -20px -20px; }
  body.exui #download_manager_client_main .downloads > .breadcrumb:is(.sr-only, :has(> .breadcrumb-item:only-child)) + .row.px-2 { margin-top: -20px; }
  body.exui #download_manager_client_main .downloads .col-md-4 { padding-left: 20px; padding-right: 52px; }
  body.exui #download_manager_client_main .downloads .col-md-4::after { right: 20px; }
  body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder)) { padding-right: 58px; }
  body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder))::before { right: 12px; }
  body.exui #download_manager_client_main .downloads .col-md-4:not(:has(> .fa-folder))::after { right: 20px; }
  body.exui #download_manager_client_main .downloads .col-md-12.pb-2 { padding: 16px 20px !important; /* answers .pb-2 */ }


  /* domains (override): the stacked list keeps the details row when Blesta opens it */
  /* the stack shows tr.ex-details; Blesta's details rows stay closed until its
     toggle writes an inline display */
  body.exui .ex-domains__table tr.expand_details td.subtable > .alert { padding: 14px 20px 14px 40px; }
  body.exui .ex-domains__table tr.expand_details td.subtable > .alert:is(.alert-danger, .alert-warning)::before { left: 20px; top: calc(14px + .75em - 2px); }
  body.exui .ex-domains__table tr.expand_details td.subtable > h4 { margin: 14px 20px 0; }
  body.exui .ex-domains__table td.cell-actions { width: auto; }
  body.exui .ex-domains__table td.cell-main { width: auto; max-width: none; }
  body.exui .ex-domains__table td.cell-actions > .ex-expand { width: 40px; height: 40px; margin-left: auto; }
  body.exui .ex-domains__table td.cell-actions { display: flex !important; /* the stack sets display:block */ align-items: center; justify-content: space-between; }
  body.exui .ex-domains__sub { white-space: normal; }
  body.exui .ex-domains__filters form.widget_filter_form > .card { padding: 16px 20px !important; /* answers .p-3 */ }
  body.exui .ex-domains__filters form.widget_filter_form > .card > .row { grid-template-columns: minmax(0,1fr); gap: 14px; }
  body.exui .ex-domains__filters form.widget_filter_form > .card > .row > .col-md-12 { grid-column: auto; }
  body.exui .ex-domains__filters form.widget_filter_form .row:last-child .btn { width: 100%; }

  /* order forms list */
  body.exui .ex-orderforms__grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  body.exui .ex-orderforms__card { min-height: 0; padding: 20px; }

  /* module "Field · Value" tables fit the phone (two short columns need no
     560px scroller; the values sat off-screen) */
  body.exui[class*="client_services-manage"] .table-responsive > .table:has(th[style*="50%"]) { min-width: 0; }
  body.exui[class*="client_services-manage"] .table-responsive > .table:has(th[style*="50%"]) td { white-space: normal; overflow-wrap: anywhere; }
  /* module usage meters: the figures never break between a number and its unit */
  body.exui[class*="client_services-manage"] :is(.card-body, .tab-content, .ex-card__body) > label + small:has(+ .progress) { float: none; display: block; margin-top: 4px; white-space: nowrap; }
}

/* ---- P16 reduced motion, forced colours ------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  body.exui :is(#client_tickets .list-group-item, .categories .bg-light, #download_manager_client_main .col-md-4)::after,
  body.exui #client_tickets .list-group > a.list-group-item h4::after { transition: none; }
  body.exui #client_tickets .list-group > a.list-group-item:is(:hover, :focus-visible) h4::after { transform: none; }
}
@media (forced-colors: active) {
  body.exui #client_tickets .list-group > a.list-group-item,
  body.exui[class*="-knowledgebase-"] .categories .col-md-4 > .bg-light,
  body.exui :is(#client_ticket_reply .ticket-reply > .response, .ex-msg__bubble) { border: 1px solid CanvasText; }
  body.exui :is(#client_tickets .list-group > a.list-group-item, #download_manager_client_main .downloads .col-md-4, [class*="-knowledgebase-"] .categories .bg-light)::after,
  body.exui #client_tickets .list-group > a.list-group-item h4::after,
  body.exui #client_tickets .card-body > .alert-info:last-child > p::after { background: CanvasText; }
  body.exui #client_tickets .list-group > a.list-group-item h4::before { border-color: CanvasText; background: Canvas; }
  body.exui :is(#orders tbody > tr > td:nth-child(2), #client_tickets .table tbody > tr > td:nth-child(6)):not(:has(.ex-pill))::after,
  body.exui #download_manager_client_main .downloads .col-md-4::before { border-color: CanvasText; }
}

/* ---- P17 stock plugin views and the list grammar (final review) --------------------- */
/* Production may serve the plugins' stock views instead of the theme's
   overrides (README §13), so the stock markup gets the same recipes. */

/* department icons: plugins.js sets data-exui-icon from the name */
body.exui {
  --exp-i-server: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='8' x='2' y='2' rx='2'/%3E%3Crect width='20' height='8' x='2' y='14' rx='2'/%3E%3Cpath d='M6 6h.01'/%3E%3Cpath d='M6 18h.01'/%3E%3C/svg%3E");
  --exp-i-globe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20'/%3E%3Cpath d='M2 12h20'/%3E%3C/svg%3E");
  --exp-i-receipt: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 2v20l2-1 2 1 2-1 2 1 2-1 2 1 2-1 2 1V2l-2 1-2-1-2 1-2-1-2 1-2-1-2 1Z'/%3E%3Cpath d='M16 8h-6a2 2 0 1 0 0 4h4a2 2 0 1 1 0 4H8'/%3E%3Cpath d='M12 17.5v-11'/%3E%3C/svg%3E");
}
body.exui #client_tickets .list-group > a.list-group-item[data-exui-icon="server"]::after { -webkit-mask-image: var(--exp-i-server); mask-image: var(--exp-i-server); }
body.exui #client_tickets .list-group > a.list-group-item[data-exui-icon="globe"]::after { -webkit-mask-image: var(--exp-i-globe); mask-image: var(--exp-i-globe); }
body.exui #client_tickets .list-group > a.list-group-item[data-exui-icon="receipt"]::after { -webkit-mask-image: var(--exp-i-receipt); mask-image: var(--exp-i-receipt); }

/* ticket rows: the way in is the lists' ".ex-go" ("Reply →"); the split
   menu (Close) keeps a 32px bordered toggle beside it (plugins.js marks
   the group .ex-plugins__rowgo) */
body.exui #client_tickets .table td:last-child .btn-group.ex-plugins__rowgo { display: inline-flex; align-items: center; gap: 10px; }
body.exui #client_tickets .table td:last-child .ex-plugins__rowgo > .btn:not(.dropdown-toggle) {
  height: 32px; padding: 0 2px; border: 0 !important; border-radius: 4px !important; /* answers .btn-group joins */ background: none; box-shadow: none;
  font: 600 14px/1 var(--ex-font); letter-spacing: -.005em; color: #fff;
}
body.exui #client_tickets .table td:last-child .ex-plugins__rowgo > .btn:not(.dropdown-toggle)::after {
  content: ""; position: static; inset: auto; z-index: auto; width: 16px; height: 16px; border-radius: 0; background: var(--ex-muted);
  -webkit-mask: var(--exp-i-arrow) center / contain no-repeat; mask: var(--exp-i-arrow) center / contain no-repeat;
  transition: transform var(--ex-dur-3) var(--ex-ease), background-color var(--ex-dur-2);
}
body.exui #client_tickets .table tr:hover td:last-child .ex-plugins__rowgo > .btn:not(.dropdown-toggle)::after { background: var(--ex-accent); transform: translateX(2px); }
body.exui #client_tickets .table td:last-child .ex-plugins__rowgo > .btn:not(.dropdown-toggle) > :is(.fas, .far, .fa, .i) { display: none; }
body.exui #client_tickets .table td:last-child .ex-plugins__rowgo > .dropdown-toggle {
  width: 32px; height: 32px; padding: 0; border: 1px solid var(--ex-line-strong) !important; border-radius: 50% !important; /* answers .btn-group joins */
  background: var(--ex-tint); color: var(--ex-muted);
}
/* relative last-reply times read as the lists' hints (Satoshi), not mono abbreviations */
body.exui #client_tickets .table td[data-exui-ago] { font-family: var(--ex-font); }
body.exui #client_tickets .table td[data-exui-ago] .ex-hint { font-size: 13.5px; color: var(--ex-fg-72); white-space: nowrap; }
body.exui #client_tickets .ex-plugins__foot .sep { padding: 0 4px; color: var(--ex-line-strong); }
body.exui #client_tickets .ex-plugins__foot .pagination { margin: 0 0 0 auto; }

/* plugin filter wells (tickets, orders, documents): the fields on the
   table's 22px line, in a recessed band (DESIGN §5.21) */
body.exui[class*="plugin-"] .content_section form.widget_filter_form > .card { background-color: var(--ex-well) !important; /* answers .bg-light → surface (17.99) */ }
body.exui[class*="plugin-"] .content_section:not(.ex-domains) form.widget_filter_form > .card > .row { margin-left: 0; margin-right: 0; column-gap: 16px; flex-wrap: nowrap; }
body.exui[class*="plugin-"] .content_section:not(.ex-domains) form.widget_filter_form > .card > .row > [class*="col-"] { flex: 1 1 0; max-width: none; padding-left: 0; padding-right: 0; }
body.exui[class*="plugin-"] .content_section:not(.ex-domains) form.widget_filter_form > .card > .row > .col-md-12 { display: flex; justify-content: flex-end; }

/* the reply composer is labelled on screen (DESIGN §5.14): plugins.js says
   "Your reply"; the mono label voice */
body.exui #client_ticket_reply .ex-composer > .form-group > label[for="details"].ex-composer__label {
  position: static; width: auto; height: auto; margin: 0 0 10px; overflow: visible; clip: auto; white-space: normal;
  font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted);
}

/* stock domains list (plugins/domains client_main.pdt; the override is
   .ex-domains): mono names and dates, a muted term, the actions caption
   for screen readers only, "Manage →" as the lists' .ex-go (plugins.js) */
body.exui #client_domains:not(.ex-domains) #domains > tbody > tr.expand > td:first-child { font: 600 14.5px/1.3 var(--ex-mono); letter-spacing: -.02em; color: var(--ex-fg); white-space: nowrap; }
body.exui #client_domains:not(.ex-domains) #domains > tbody > tr.expand > td:nth-child(2) { font: 400 13px/1.4 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg-72); }
body.exui #client_domains:not(.ex-domains) #domains > tbody > tr.expand > td:is(:nth-child(3), :nth-child(4), :nth-child(5), :nth-child(6)):not(:last-child) { font: 400 13px/1.4 var(--ex-mono); letter-spacing: -.01em; color: var(--ex-fg-82); white-space: nowrap; }
body.exui #client_domains:not(.ex-domains) #domains .ex-hint { display: block; margin-top: 3px; font: 400 12.5px/1.3 var(--ex-font); letter-spacing: -.003em; color: var(--ex-muted); }
body.exui #client_domains:not(.ex-domains) #domains tr.expand > td:last-child { width: 1%; white-space: nowrap; }
body.exui #client_domains:not(.ex-domains) #domains tr.expand > td:last-child .btn-group { display: inline-flex; }
body.exui #client_domains:not(.ex-domains) #domains > thead > tr > th:last-child:not(:has(a)) { color: transparent; }

/* stock order forms list (plugins/order forms.pdt: .order-listing > .card
   > .row > .head-item h3 + .head-item a.btn, description, phone button):
   the override's card grid, the description as body text, one ".ex-go"
   per card instead of a solid red block, the whole card clickable */
body.exui .row.ex-content:has(> .order-listing) { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--ex-gap); margin: 0; }
body.exui .row.ex-content > .order-listing { flex: none; width: auto; max-width: none; padding: 0; }
body.exui .order-listing > .card {
  position: relative; isolation: isolate; height: 100%; margin: 0 !important; /* answers .card-blesta */ padding: 24px !important; /* answers .p-3 */
  transition: border-color var(--ex-dur-3);
}
body.exui .order-listing > .card:hover { border-color: var(--ex-a-45) !important; /* answers .card-blesta */ background: radial-gradient(120% 95% at 0% 100%, var(--ex-a-15) 0%, var(--ex-a-08) 42%, transparent 74%), var(--ex-surface); }
body.exui .order-listing > .card > .row { display: flex; flex-direction: column; height: 100%; margin: 0; }
body.exui .order-listing > .card > .row > [class*="col-"] { flex: none; width: auto; max-width: none; padding: 0; }
body.exui .order-listing .head-item h3 { margin: 0; font: 700 20px/1.2 var(--ex-font); letter-spacing: -.025em; color: var(--ex-fg); }
body.exui .order-listing > .card > .row > .col-sm-12 { flex: 1; margin-top: 14px; font-size: 14.5px; line-height: 1.6; color: var(--ex-fg-72); }
body.exui .order-listing > .card > .row > .col-sm-12 :is(ul, p) { margin: 0 0 8px; }
body.exui .order-listing > .card > .row > .clearfix { display: none; }
body.exui .order-listing .head-item:has(> a.btn) { order: 3; margin-top: 18px; padding-top: 16px !important; border-top: 1px solid var(--ex-line); }
body.exui .order-listing a.btn {
  float: none !important; display: inline-flex !important; align-items: center; justify-content: flex-start; gap: 6px; width: auto; height: 32px; min-height: 32px; margin: 0; padding: 0 2px;
  border: 0; border-radius: 4px; background: none !important; box-shadow: none !important; /* answers the bridge's primary */ line-height: 1;
  font: 600 14px/1 var(--ex-font); letter-spacing: -.005em; color: #fff;
}
body.exui .order-listing a.btn::after { content: ""; position: absolute; inset: 0; z-index: 1; width: auto; height: auto; border-radius: var(--ex-r-card); background: none; }
body.exui .order-listing a.btn .i { width: 16px; height: 16px; color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
body.exui .order-listing > .card:hover a.btn .i { color: var(--ex-accent); transform: translateX(2px); }
body.exui .order-listing a.btn:focus-visible { outline: 0; }
body.exui .order-listing a.btn:focus-visible::after { outline: 2px solid var(--ex-accent); outline-offset: 3px; }
/* one link per card: the phone copy (.d-sm-none) only below 576px, as Bootstrap meant */
body.exui .order-listing a.btn.btn-block.d-sm-none { order: 4; margin-top: 18px; }
@media (min-width: 576px) {
  body.exui .order-listing a.btn.d-sm-none { display: none !important; /* answers the display above, as .d-sm-none means */ }
}
@media screen and (max-width: 575.98px) {
  body.exui .order-listing .head-item:has(> a.btn) { display: none; }
  body.exui .order-listing a.btn.btn-block.d-sm-none { padding-top: 16px; border-top: 1px solid var(--ex-line); border-radius: 0; height: auto; }
}

/* the exact_domain_cart hand-off card (the plugin's own view; its copy is the
   plugin's): the standard card border, which Bootstrap's .border-0 removed */
body.exui[class*="plugin-exact_domain_cart"] .card.border-0 { border: 1px solid var(--ex-line-strong) !important; /* answers .border-0 */ box-shadow: none !important; /* answers .shadow-sm */ }
/* the stock domains rows stacked on phones (plugins.js adds .ex-table--stack
   and the captions): the bridge's 560px scroller width and nowrap cells give
   way to the stacked row */
@media screen and (max-width: 767.98px) {
  body.exui #client_domains:not(.ex-domains) .table-responsive > #domains.ex-table--stack { min-width: 0; }
  body.exui #client_domains:not(.ex-domains) #domains.ex-table--stack td { white-space: normal; }
  body.exui #client_domains:not(.ex-domains) #domains.ex-table--stack tr:not(.ex-details):not(.expand_details) { grid-template-columns: repeat(2, minmax(0,1fr)); }
  body.exui #client_domains:not(.ex-domains) #domains.ex-table--stack > tbody > tr.expand > td:first-child { font-size: 15px; }
}
