/* exui page compositions — account: profile, contacts, payment accounts, managers, email history (DESIGN §7.8).
   Loaded on every page after exui.css; every rule is scoped to an account root (.ex-account, .ex-payfields,
   .ex-confirm, .ex-pwdialog, .ex-invite) so other areas and the pay page's shared partials stay predictable. */

/* ---------- 1. Account grid: sub-nav (260) + content column ------------------ */
/* the content column runs to the wrap edge so cards line up with the head's actions and the footer
   (916px at ≥1280); reading width is held inside it (section ledes, prose) */
body.exui .ex-account { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--ex-gap); align-items: start; }
body.exui .ex-account__nav { position: sticky; top: calc(var(--ex-header-h) + 24px); align-content: start; }
body.exui .ex-account__nav .ex-subnav__item > .i { flex: none; color: var(--ex-muted); transition: color var(--ex-dur-2); }
body.exui .ex-account__nav .ex-subnav__item:is(:hover, [aria-current="page"], .active) > .i { color: #fff; }
body.exui .ex-account__nav .ex-subnav__text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.exui .ex-account__nav .ex-subnav__item:focus-visible { outline-offset: -2px; }
/* fields to fix on another tab: the act treatment (red dash + white count,
   DESIGN §4.1 needs-you meta), never the neutral item-count chip */
body.exui .ex-account__nav .ex-count--err { display: inline-flex; align-items: center; gap: 6px; min-width: 0; height: auto; padding: 0; border: 0; border-radius: 0; color: #fff; }
body.exui .ex-account__nav .ex-count--err::before { content: ""; width: 10px; height: 4px; background: var(--ex-accent); transform: skewX(35deg); }
[dir="rtl"] body.exui .ex-account__nav .ex-count--err::before { transform: skewX(-35deg); }
body.exui .ex-account__main { display: grid; gap: var(--ex-gap); min-width: 0; align-content: start; }
body.exui .ex-account__main > form { display: grid; gap: var(--ex-gap); min-width: 0; margin: 0; }
body.exui .ex-account__msgs { display: grid; gap: 12px; }
body.exui .ex-account__msgs > .alert { margin: 0; }
body.exui .ex-account__msgs:not(:has(*)) { display: none; }
body.exui .ex-panes > .tab-pane { display: grid; gap: var(--ex-gap); }
body.exui .ex-panes > .tab-pane:not(.active) { display: none; }

/* ---------- 2. Form sections inside one card --------------------------------- */
/* bare sections stack with a hairline (e.g. inside the pay page's own card); inside a theme card they carry the card padding */
body.exui .ex-fsec + .ex-fsec { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ex-line); }
body.exui :is(.ex-card, .ex-card > .collapse, .ex-card > .collapsing) > .ex-fsec { padding: 22px; }
body.exui :is(.ex-card, .ex-card > .collapse, .ex-card > .collapsing) > .ex-fsec + .ex-fsec { margin-top: 0; }
body.exui .ex-fsec__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 22px; margin-bottom: 18px; }
body.exui .ex-fsec__head .ex-label { margin: 0; }
body.exui .ex-fsec__head + .ex-fsec__lede { margin-top: -8px; }
body.exui .ex-fsec__lede { margin: 0 0 18px; max-width: 64ch; font-size: 14px; line-height: 1.55; color: var(--ex-muted); }
body.exui .ex-fsec .ex-form__grid { gap: 18px 20px; }
body.exui .ex-fsec .ex-field > .ex-input, body.exui .ex-fsec .ex-field > select { margin: 0; }
body.exui .ex-fsec .ex-help .mono { font-size: .92em; }
/* "copy from" select: an ordinary field (label above, half width) set off from the address fields by a hairline */
body.exui .ex-copyfrom { margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ex-line); }
body.exui .ex-copyfrom > .ex-input { max-width: calc(50% - 10px); }
/* expiry month + year side by side */
body.exui .ex-pair { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 10px; }
/* form bar as the last row of a card (sticky on phones via exui.css) */
body.exui .ex-account .ex-card > .ex-formbar, body.exui .ex-payfields-card > .ex-formbar { margin: 0; padding: 16px 22px; border-top: 1px solid var(--ex-line); }
body.exui .ex-account .ex-formbar .ex-btn--primary { min-width: 140px; }
body.exui .ex-account .ex-formbar__note .mono { font-size: .92em; }
body.exui .ex-account .ex-field--half > .ex-input { max-width: calc(50% - 10px); }
body.exui :is(.ex-account, .ex-payfields) .ex-flabel { align-items: center; min-height: 18px; }
body.exui .ex-account .ex-flabel a { line-height: 1.2; }
body.exui .ex-account .ex-flabel .opt { display: inline-flex; align-items: center; gap: 4px; font: 500 10px/1.4 var(--ex-mono); letter-spacing: .12em; text-transform: uppercase; }
/* read-only value in a field slot (username) */
body.exui .ex-readonly { display: flex; align-items: center; gap: 8px; height: 50px; padding: 0 6px 0 16px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-field); background: rgba(35,36,38,.45); font: 500 14px/1 var(--ex-mono); color: var(--ex-fg-82); }
body.exui .ex-readonly > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* file input (avatar) */
body.exui .ex-account input[type="file"].ex-fileinput { display: block; width: 100%; max-width: 360px; height: auto; padding: 0; border: 0; background: transparent; font: 400 13px/1.4 var(--ex-mono); color: var(--ex-muted); }
body.exui .ex-account input[type="file"].ex-fileinput::file-selector-button { height: 38px; margin-right: 12px; padding: 0 16px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: var(--ex-tint); font: 600 13px/1 var(--ex-font); color: #fff; cursor: pointer; transition: border-color var(--ex-dur-2), background-color var(--ex-dur-2); }
body.exui .ex-account input[type="file"].ex-fileinput:hover::file-selector-button { border-color: var(--ex-a-50); background: var(--ex-a-08); }
body.exui .ex-account input[type="file"].ex-fileinput:focus-visible { outline: 2px solid var(--ex-accent); outline-offset: 3px; border-radius: var(--ex-r-pill); }

/* sections followed by a settings row, and the login block revealed under its switch */
body.exui .ex-account .ex-card > .ex-fsec + .ex-setting, body.exui .ex-account #login_fields > .ex-fsec:first-child { border-top: 1px solid var(--ex-line); }
body.exui .ex-account__danger .ex-setting { min-height: 72px; }
body.exui .ex-account__main > form + form { margin-top: 0; }
/* forms that only carry hidden fields for buttons elsewhere (form="…"): never a grid item or a gap */
body.exui .ex-account__main > form[hidden] { display: none; }
/* contacts: one password note under both fields */
body.exui .ex-fsec .ex-form__grid > .ex-pwhelp { margin-top: -8px; }

/* ---------- 3. Avatar field ---------------------------------------------------- */
body.exui .ex-avatarfield { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--ex-line); }
body.exui .ex-avatarfield .ex-avatar--xl { width: 56px; height: 56px; font-size: 16px; overflow: hidden; }
body.exui .ex-avatarfield__body { display: grid; gap: 8px; min-width: 0; }
body.exui .ex-avatarfield__row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
body.exui .ex-avatarfield__t { font-size: 15px; font-weight: 600; color: #fff; }
body.exui .ex-avatarfield .ex-help { margin: 0; }
body.exui .ex-avatarfield__pic { position: relative; flex: none; }
body.exui .ex-avatarfield__icon { display: none; color: var(--ex-muted); }
body.exui .ex-avatarfield__pic > [data-exui-initials]:empty { display: none; }
body.exui .ex-avatarfield__pic > [data-exui-initials]:empty + .ex-avatarfield__icon { display: inline-flex; }
body.exui .ex-avatarfield__pic #avatar_preview { position: absolute; inset: -1px; overflow: hidden; border-radius: 50%; background: var(--ex-raised); }
body.exui .ex-avatarfield__pic #avatar_preview img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 4. Payment method rows ------------------------------------------- */
/* one track set for the whole list (subgrid), so the right edge lines up row to row: chip · name and state ·
   Make default · Edit / Update card / Verify · menu. The state pills read with the name, never in a column.
   The edge tracks are content-sized so they take in the row padding (a subgrid adds it to its edge items). */
body.exui .ex-methods { display: grid; grid-template-columns: max-content minmax(0, 1fr) max-content max-content max-content; column-gap: 16px; margin: 0; padding: 0; list-style: none; }
body.exui .ex-method { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; column-gap: 16px; min-height: 72px; padding: 14px 22px; border-top: 1px solid var(--ex-line); transition: background-color var(--ex-dur-3); }
@supports not (grid-template-columns: subgrid) {
  body.exui .ex-method { grid-template-columns: 44px minmax(0, 1fr) auto 136px 32px; column-gap: 16px; }
}
body.exui .ex-method:first-child { border-top: 0; }
body.exui .ex-method:hover { background: var(--ex-row-hover); }
body.exui .ex-method:last-child { border-radius: 0 0 calc(var(--ex-r-card) - 1px) calc(var(--ex-r-card) - 1px); }
body.exui .ex-method__pick { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
body.exui .ex-method__text { display: grid; gap: 3px; min-width: 0; }
body.exui .ex-method__line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
body.exui .ex-method__name { min-width: 0; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; overflow-wrap: anywhere; }
body.exui .ex-method__name .mono { font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
/* values never truncate. Each segment carries its separator in a 20px lead that is clipped wherever a line
   starts (the list is shifted 20px left inside a clipping box), so no line ever begins or ends with a dot. */
body.exui .ex-method__sub { display: block; overflow: hidden; overflow: clip; font: 400 12.5px/1.5 var(--ex-mono); color: var(--ex-muted); }
body.exui .ex-method__segs { display: flex; flex-wrap: wrap; margin-left: -20px; }
body.exui .ex-method__seg { position: relative; min-width: 0; padding-left: 20px; overflow-wrap: anywhere; }
body.exui .ex-method__seg::before { content: "\00B7"; content: "\00B7" / ""; position: absolute; top: 0; left: 0; width: 20px; text-align: center; color: var(--ex-line-strong); }
body.exui .ex-method .ex-consq { margin-top: 2px; }
/* desktop: the action group dissolves into the row's subgrid columns */
body.exui .ex-method__actions { display: contents; }
body.exui .ex-method__mk { grid-column: 3; justify-self: end; }
body.exui .ex-method__go { grid-column: 4; justify-self: start; }
body.exui .ex-method__more { grid-column: 5; justify-self: end; }
/* an unusable method dims only its brand chip: its name and action stay at full strength */
body.exui .ex-method.is-off .ex-chip--brand { opacity: .55; }
body.exui .ex-method.is-default .ex-chip--brand { border-color: var(--ex-fg-22); color: #fff; }
body.exui .ex-account .dropdown-menu { min-width: 180px; }
body.exui .ex-account .dropdown-item.ex-pop__item--danger:is(:hover, :focus) { background: var(--ex-a-10); color: #fff; }
body.exui .ex-account .dropdown-item .i { color: var(--ex-muted); }
body.exui .ex-account .dropdown-item:is(:hover, :focus) .i { color: #fff; }

body.exui .ex-account__choose { display: grid; gap: 4px; min-width: 0; }
body.exui .ex-account__choose > fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
body.exui .ex-account__choose .ex-label { margin: 0 0 14px; }
body.exui .ex-account__labelrow { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
body.exui .ex-account__labelrow .ex-label { margin: 0; }
body.exui .ex-account__choose > .ex-formbar { margin-top: 20px; }
/* choice tiles (add a payment method, invoice delivery): side by side from 1024, never a full-width strip */
@media (min-width: 1024px) {
  body.exui :is(.ex-account__choose, .ex-invm) .ex-choices { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  body.exui :is(.ex-account__choose, .ex-invm) .ex-choice { align-items: start; }
}
/* invoice delivery inline in Billing information (profile) */
body.exui .ex-invm .ex-choice__end:empty { display: none; }
body.exui .ex-account .ex-choice__s--prose { font: 400 13px/1.5 var(--ex-font); }
body.exui .ex-account .ex-choice.is-disabled:is(.is-checked, :has(.ex-radio:checked)) { border-color: var(--ex-fg-22); background: rgba(255,255,255,.03); }
body.exui .ex-account .ex-choice.is-disabled .ex-radio:checked { border-color: var(--ex-fg-62); background: radial-gradient(circle, var(--ex-fg-82) 0 4px, transparent 4.6px), var(--ex-raised); box-shadow: none; }
body.exui .ex-account fieldset.ex-fsec { min-width: 0; margin: 0; border: 0; }
body.exui .ex-account fieldset.ex-fsec + .ex-formbar, body.exui .ex-account .ex-fsec + .ex-formbar { border-top: 1px solid var(--ex-line); }

/* settings rows: a switch row (Auto-pay) and link rows (Low-credit alerts, Invoice delivery) share one voice:
   600 title, Satoshi description, the control or a chevron at the end, hairlines between */
body.exui .ex-account__settings > .ex-setting { padding-top: 16px; padding-bottom: 16px; }
body.exui .ex-account__settings .ex-setting__s .mono { font-size: .92em; color: var(--ex-fg-82); }
body.exui .ex-account .ex-card > .ex-setting--link, body.exui .ex-account .ex-card > .ex-setting ~ .ex-setting { border-top: 1px solid var(--ex-line); }
body.exui .ex-account a.ex-setting--link { color: inherit; text-decoration: none; transition: background-color var(--ex-dur-3); }
body.exui .ex-account a.ex-setting--link:hover { background: var(--ex-row-hover); }
body.exui .ex-account a.ex-setting--link:last-child { border-radius: 0 0 calc(var(--ex-r-card) - 1px) calc(var(--ex-r-card) - 1px); }
body.exui .ex-account a.ex-setting--link:focus-visible { outline-offset: -2px; }
body.exui .ex-account .ex-setting--link .ex-chev { flex: none; color: var(--ex-muted); transition: transform var(--ex-dur-3) var(--ex-ease), color var(--ex-dur-2); }
body.exui .ex-account a.ex-setting--link:hover .ex-chev { color: var(--ex-accent); transform: translateX(2px); }

/* low-credit thresholds: currency code · amount field */
body.exui .ex-thresholds { margin: 0; padding: 0; list-style: none; }
body.exui .ex-threshold { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 240px); align-items: center; gap: 16px; padding: 14px 22px; border-top: 1px solid var(--ex-line); }
body.exui .ex-threshold:first-child { border-top: 0; }
body.exui .ex-threshold__code { font: 600 14px/1 var(--ex-mono); letter-spacing: .04em; color: #fff; }
body.exui .ex-threshold__s { font-size: 13.5px; color: var(--ex-muted); }
body.exui .ex-threshold .ex-inputgroup { height: 44px; }
body.exui .ex-threshold .ex-inputgroup input { text-align: right; }
/* the list's own note: under the last row, before the form bar's hairline */
body.exui .ex-thresholds__help { margin: 0; padding: 0 22px 18px; }

/* micro-deposit fields: "$0." + cents read as one mono amount (no gap between affix and digits); the empty
   field shows "$0.––", blanks to fill, never "$0.00" that reads as a value */
body.exui .ex-deposits { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 18px 20px; }
body.exui .ex-deposits .ex-inputgroup__affix:first-child { padding-right: 0; font-size: 15px; letter-spacing: -.01em; color: var(--ex-fg-58); }
body.exui .ex-deposits .ex-inputgroup input { padding-left: 1px; }
body.exui .ex-deposits .ex-inputgroup input::placeholder { color: var(--ex-fg-22); letter-spacing: .08em; }
body.exui .ex-verify .ex-help .mono { color: var(--ex-fg-82); }
/* a gateway's own verification form (e.g. Stripe: descriptor code, then the two deposits side by side) */
body.exui .ex-verify .ex-payfields__gateway > div { display: grid; grid-template-columns: repeat(2, minmax(0, 220px)); gap: 18px 20px; }
body.exui .ex-verify .ex-payfields__gateway > div > :not(.form-group:has(input[name="first_deposit"], input[name="second_deposit"])) { grid-column: 1 / -1; }
body.exui .ex-verify .ex-payfields__gateway p { max-width: 64ch; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ex-fg-72); }
body.exui .ex-verify .ex-payfields__gateway p small { font-size: inherit; }
body.exui .ex-verify .ex-payfields__gateway .form-group { margin: 0; }
body.exui .ex-verify .ex-payfields__gateway .form-group:has(input[name="descriptor_code"]) { max-width: 360px; }
body.exui .ex-verify .ex-payfields__gateway label { display: block; margin: 0 0 10px; }
body.exui .ex-verify .ex-payfields__gateway input.form-control { font-family: var(--ex-mono); letter-spacing: .04em; }
body.exui .ex-verify .ex-payfields__gateway input.form-control::placeholder { font-family: var(--ex-mono); }
body.exui .ex-verify .ex-payfields__gateway :is(.form-text, .form-text small, small.text-muted) { display: block; margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--ex-fg-58); }

/* ---------- 5. People (contacts, managers, managed accounts) ----------------- */
body.exui .ex-people.ex-table td { padding-top: 14px; padding-bottom: 14px; }
body.exui .ex-people .ex-obj { gap: 12px; }
body.exui .ex-people .ex-avatar { width: 36px; height: 36px; font-size: 12px; }
body.exui .ex-people .ex-obj__sub .sep { padding: 0 2px; color: var(--ex-line-strong); }
/* the people tables fit their card at every width: tags wrap, emails break, and below 1280 the email
   column folds into the identity cell (.ex-people__alt); below 1024 rows stack (§13) */
body.exui .ex-people .cell-tags > .ex-tags { display: flex; flex-wrap: wrap; gap: 6px; }
body.exui .ex-people .cell-email .mono { overflow-wrap: anywhere; }
body.exui .ex-people .cell-actions { width: 1%; white-space: nowrap; }
body.exui .ex-people .ex-rowactions form { display: contents; }
body.exui .ex-people .mono { font-size: 13px; color: var(--ex-fg-82); }
body.exui .ex-people .is-quiet { color: var(--ex-muted); }
body.exui .ex-people .ex-obj__name { white-space: normal; overflow-wrap: anywhere; }
body.exui .ex-people .ex-obj__sub { white-space: normal; }
body.exui .ex-people .ex-people__alt { display: none; margin-top: 3px; color: var(--ex-fg-72); }
body.exui .ex-people .ex-people__alt > span { display: block; overflow-wrap: anywhere; }
body.exui .ex-people .ex-people__alt-id { color: var(--ex-muted); }
@media screen and (max-width: 1279.98px) {
  body.exui .ex-people :is(th, td).cell-email { display: none; }
  body.exui .ex-people .ex-people__alt { display: block; }
  body.exui .ex-people .ex-people__alt > .ex-people__alt-id { display: none; }
}
/* the WidgetClient card around AJAX lists: header kept for the card voice, body flush */
body.exui .ex-account .content_section.ex-listcard > .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; }
body.exui .ex-account .content_section.ex-listcard .card-body > .ex-table { width: 100%; margin: 0; }
body.exui .ex-account .content_section.ex-listcard .ex-table thead th:first-child { border-top-left-radius: calc(var(--ex-r-card) - 1px); }
body.exui .ex-account .content_section.ex-listcard .ex-table thead th:last-child { border-top-right-radius: calc(var(--ex-r-card) - 1px); }
body.exui .ex-account .content_section.ex-listcard .ex-table tbody tr:last-child > td:first-child { border-bottom-left-radius: calc(var(--ex-r-card) - 1px); }
body.exui .ex-account .content_section.ex-listcard .ex-table tbody tr:last-child > td:last-child { border-bottom-right-radius: calc(var(--ex-r-card) - 1px); }
body.exui .ex-account .ex-table th a.ajax { color: inherit; text-decoration: none; }
body.exui .ex-account .ex-table th a.ajax:hover, body.exui .ex-account .ex-table th a.ajax.is-sorted { color: #fff; }
body.exui .ex-account .content_section.ex-listcard .card-body { padding: 0; }
body.exui .ex-account .content_section.ex-listcard .card-footer { padding: 12px 22px; }
body.exui .ex-account .content_section.ex-listcard .ex-empty { margin: 0; }
/* segmented switch (managers ↔ managed accounts) above the list: one joined track, so it never reads as
   more sub-nav pills; short labels on phones */
body.exui .ex-account__seg { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
body.exui .ex-account__seg .ex-seg { flex-wrap: nowrap; gap: 2px; padding: 3px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill); background: rgba(13,15,18,.35); }
body.exui .ex-account__seg .ex-seg__item { height: 32px; border-color: transparent; }
body.exui .ex-account__seg .ex-seg__item:hover { border-color: transparent; background: var(--ex-tint); }
body.exui .ex-account__seg .ex-seg__item[aria-current] { border-color: var(--ex-fg-22); background: var(--ex-raised); color: #fff; }
body.exui .ex-account__seg .ex-seg__short { display: none; }
/* in the list card's toolbar (managers): the pills Billing's Open/Closed use */
body.exui .ex-account__segbar { border-bottom: 1px solid var(--ex-line); }
body.exui .ex-account__segbar .ex-account__seg .ex-seg { gap: 6px; padding: 0; border: 0; border-radius: 0; background: none; }
body.exui .ex-account__segbar .ex-account__seg .ex-seg__item { border-color: var(--ex-line-strong); }
body.exui .ex-account__segbar .ex-account__seg .ex-seg__item[aria-current] { border-color: var(--ex-fg-22); }

/* ---------- 6. Permissions grid ---------------------------------------------- */
/* unboxed check rows (hairlines over boxes): two columns per area, a hairline above each row; the check
   square carries the state and a ticked title goes from fg-82 to white */
body.exui .ex-perms { display: grid; gap: 26px; }
body.exui .ex-perms__group { min-width: 0; margin: 0; padding: 0; border: 0; }
body.exui .ex-perms__label { display: block; width: auto; margin: 0 0 6px; padding: 0; border: 0; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .ex-perms__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
body.exui .ex-perm { display: flex; align-items: flex-start; gap: 12px; margin: 0; padding: 14px 0; border-top: 1px solid var(--ex-line); cursor: pointer; font: inherit; letter-spacing: normal; text-transform: none; color: inherit; }
body.exui .ex-perm .ex-checkbox { flex: none; margin-top: 1px; }
body.exui .ex-perm__text { display: grid; gap: 3px; min-width: 0; }
body.exui .ex-perm__t { font-size: 14.5px; font-weight: 600; line-height: 1.35; color: var(--ex-fg-82); transition: color var(--ex-dur-2); }
body.exui .ex-perm:hover .ex-perm__t, body.exui .ex-perm:has(.ex-checkbox:checked) .ex-perm__t { color: #fff; }
body.exui .ex-perm__s { font: 400 13px/1.45 var(--ex-font); color: var(--ex-muted); }
body.exui .ex-perms__all { margin-inline-end: -14px; font-size: 13px; }

/* ---------- 7. Phone numbers (hairline rows) --------------------------------- */
body.exui .ex-phones__table { width: 100%; border-collapse: collapse; }
body.exui .ex-phones__table thead th { padding: 0 0 8px; font: 500 10.5px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); text-align: left; }
body.exui .ex-phones__table td { padding: 4px 0; vertical-align: middle; }
body.exui .ex-phones__table :is(th, td) + :is(th, td) { padding-left: 10px; }
body.exui .ex-phones__table .c-type { width: 22%; }
body.exui .ex-phones__table .c-loc { width: 22%; }
body.exui .ex-phones__table .c-act { width: 40px; }
body.exui .ex-phones__table .ex-input { height: 44px; font-size: 14px; }
body.exui .ex-phones__table input[type="tel"] { font-family: var(--ex-mono); letter-spacing: -.01em; }
body.exui .ex-phones__table:has(tbody > tr.phone_row:only-child) .c-act { display: none; }
/* the ghost "Add a number" starts on the field column (its icon, not its padding, lines up) */
body.exui .ex-phones__add { margin-top: 10px; margin-inline-start: -16px; }

/* ---------- 8. Sign-in and security: 2FA (QR on a white plate + rail) -------- */
body.exui .ex-2fa { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 28px; align-items: start; padding: 22px; border-top: 1px solid var(--ex-line); }
body.exui .ex-2fa .ex-qr, body.exui .ex-2fa #two_factor_qr { width: 200px; max-width: 100%; height: auto; padding: 14px; border-radius: var(--ex-r-field); background: #fff; image-rendering: pixelated; }
body.exui .ex-2fa .ex-step__body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
body.exui .ex-2fa .ex-steps { min-width: 0; }
body.exui .ex-2fa .ex-step { font-size: 13.5px; }
body.exui .ex-2fa .ex-step:not([data-state="done"]) .ex-step__node .i { display: none; }
body.exui .ex-2fa .ex-step small a { color: var(--ex-fg-82); }
body.exui .ex-2fa__keys { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: 8px; min-width: 0; }
body.exui .ex-2fa__key { display: inline-flex; align-items: center; gap: 4px; width: max-content; max-width: 100%; height: 34px; padding: 0 4px 0 12px; border: 1px solid var(--ex-line); border-radius: var(--ex-r-item); background: rgba(13,15,18,.5); }
body.exui .ex-2fa__key b { margin-right: 6px; font: 500 10px/1 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .ex-2fa__key code { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0; border: 0; background: none; font: 600 13px/1 var(--ex-mono); letter-spacing: .06em; color: #fff; }
body.exui .ex-2fa__key .ex-iconbtn { flex: none; width: 28px; height: 28px; }
body.exui .ex-2fa__key b { flex: none; }
body.exui .ex-2fa .ex-otp, body.exui .ex-account #otp.ex-otp { max-width: 240px; height: 56px; font: 600 22px/1 var(--ex-mono); letter-spacing: .45em; text-align: center; }
body.exui .ex-2fa__note { grid-column: 1 / -1; margin: 0; }
body.exui .ex-2fa__state { display: inline-flex; align-items: center; }
body.exui .ex-2fa__state > [hidden] { display: none; }
/* 2FA already on: the setup stays folded behind "Set up on a new device" */
body.exui .ex-2fa__again .ex-btn { flex: none; }
body.exui .ex-2fa__again .ex-btn .i { transition: transform var(--ex-dur-3) var(--ex-ease); }
body.exui .ex-2fa__again .ex-btn[aria-expanded="true"] .i { transform: rotate(180deg); }
body.exui .ex-account .ex-card .ex-setting { padding-left: 22px; padding-right: 22px; }

/* ---------- 9. Email history ------------------------------------------------- */
body.exui .ex-account .content_section.ex-listcard .ex-listfoot__pages .pagination { margin: 0; }
body.exui .ex-account .content_section.ex-listcard .ex-listfoot__count { min-width: 0; overflow-wrap: anywhere; }
body.exui .ex-mails td.cell-date { width: 1%; white-space: nowrap; }
body.exui .ex-mails .ex-mails__subject { display: block; font-size: 15px; font-weight: 600; letter-spacing: -.01em; color: #fff; }
body.exui .ex-mails td.cell-main { width: 100%; max-width: 0; }
body.exui .ex-mails .ex-mails__subject { overflow-wrap: anywhere; }
body.exui .ex-mails .ex-hint.mono { font-size: 12px; }
body.exui .ex-mails .ex-mails__summary { display: block; margin-top: 3px; font-size: 13px; line-height: 1.4; color: var(--ex-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.exui .ex-mails :is(th, td).cell-to { width: 1%; white-space: nowrap; text-align: right; }
body.exui .ex-mails .ex-mails__alt { display: block; margin-top: 4px; font-size: 13px; color: var(--ex-fg-72); }
body.exui .ex-mails .ex-mails__alt .mono { font-size: 12.5px; color: var(--ex-fg-82); overflow-wrap: anywhere; }
body.exui .ex-mails .ex-mails__cc { display: inline-block; margin-right: 10px; font: 400 12px/1 var(--ex-mono); letter-spacing: .02em; color: var(--ex-muted); vertical-align: middle; cursor: default; }
body.exui .ex-account .ex-listfoot__count .mono { font-size: 12.5px; color: var(--ex-fg-82); }
body.exui .ex-account .ex-listfoot__count .sep { padding: 0 4px; color: var(--ex-line-strong); }
body.exui .ex-mails td.cell-to .ex-expand { vertical-align: middle; }
body.exui .ex-mails tr.expand_details > td.subtable { padding: 0; }
body.exui .ex-mail { padding: 18px 22px 22px 22px; }
body.exui .ex-mail__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
body.exui .ex-mail__bar .ex-label { margin: 0; }
body.exui .ex-mail .ex-seg { flex-wrap: nowrap; }
body.exui .ex-mail .ex-seg__item { height: 30px; padding: 0 12px; font-size: 12.5px; cursor: pointer; }
body.exui .ex-mail .ex-seg__item.active { border-color: var(--ex-fg-22); background: var(--ex-raised); color: #fff; }
body.exui .ex-mail__pane { overflow: hidden; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-field); background: var(--ex-surface); }
body.exui .ex-mail__pane.fade:not(.show) { opacity: 1; }
body.exui .ex-mail .tab-content > .tab-pane { display: none; }
body.exui .ex-mail .tab-content > .tab-pane.active { display: block; }
body.exui .ex-mail__meta { margin: 0; padding: 4px 0; border-bottom: 1px solid var(--ex-line); background: var(--ex-well); }
body.exui .ex-mail__meta > div { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; padding: 6px 16px; font-size: 13px; }
body.exui .ex-mail__meta dt { font: 500 10.5px/1.9 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .ex-mail__meta dd { margin: 0; min-width: 0; font: 400 13px/1.6 var(--ex-mono); color: var(--ex-fg-82); overflow-wrap: anywhere; }
body.exui .ex-mail__meta dd a { color: var(--ex-fg-88); }
body.exui .ex-mail__body { max-height: 520px; overflow: auto; padding: 16px; font-size: 14px; line-height: 1.65; color: var(--ex-fg-82); overflow-wrap: anywhere; }
/* the sandboxed frame cannot be measured: a modest height the reader can drag taller */
body.exui .ex-mail__frame { display: block; width: 100%; height: min(360px, 60vh); min-height: 200px; border: 0; background: #fff; resize: vertical; overflow: auto; }

/* ---------- 10. Invitation (accept / decline) -------------------------------- */
/* a centred window like the sign-in card (DESIGN §7.8): the shell's head is hidden and the card carries the
   kicker, h1#page-title and lede, so the head and the window share one axis */
body.exui .ex-invite { display: grid; gap: var(--ex-gap); justify-items: center; padding: 48px 0 24px; }
body.exui .ex-invite > * { width: 100%; max-width: 640px; }
body.exui .ex-invite .ex-window__body { display: grid; gap: 18px; padding: 28px; }
body.exui .ex-invite__head { display: grid; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--ex-line); }
body.exui .ex-invite__head .ex-kicker { margin: 0; }
body.exui .ex-invite__title { margin: 4px 0 0; font-size: 32px; line-height: 1.08; font-weight: 900; letter-spacing: -.04em; color: #fff; text-wrap: balance; overflow-wrap: anywhere; }
body.exui .ex-invite__head .ex-lede { margin: 0; }
body.exui .ex-invite__who { display: flex; align-items: center; gap: 16px; }
body.exui .ex-invite__who .ex-avatar { width: 52px; height: 52px; font-size: 16px; }
body.exui .ex-invite__name { font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; color: #fff; }
body.exui .ex-invite__sub { margin-top: 4px; font: 400 12.5px/1.4 var(--ex-mono); color: var(--ex-muted); }
body.exui .ex-invite__text { max-width: 60ch; margin: 0; font-size: 14px; line-height: 1.55; color: var(--ex-muted); }
body.exui .ex-invite__perms { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
body.exui .ex-invite .ex-label { margin: 0; }
body.exui .ex-invite form { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin: 0; padding-top: 18px; border-top: 1px solid var(--ex-line); }
/* the password generator link: a 24px hit area on desktop (40px on phones, §13) */
body.exui .ex-account .ex-flabel a.generate-password { display: inline-flex; align-items: center; min-height: 24px; margin: -3px 0; }

/* ---------- 11. Dialogs (client_dialog_confirm / _password fragments) -------- */
body.exui .modal-header .ex-confirm__head { display: grid; gap: 10px; min-width: 0; }
body.exui .modal-header .ex-confirm__head .ex-kicker { font-size: 11px; }
body.exui .modal-header .ex-confirm__q.global_modal_title::before { content: none; }
body.exui .modal-header .ex-confirm__q.global_modal_title { font-size: 22px; }
body.exui .modal-body.ex-confirm__body:empty { display: none; }
body.exui .modal-body.ex-confirm__body .ex-confirm__consq { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--ex-fg-72); }
body.exui .modal-content:has(.ex-confirm__head) .modal-header { padding-bottom: 20px; }
body.exui .modal-body.ex-confirm__body { padding-top: 12px; }
body.exui .ex-pwdialog .ex-inputgroup { height: 50px; }
body.exui .ex-pwdialog .ex-inputgroup input { font-size: 15px; }
body.exui .ex-pwdialog .ex-inputgroup .ex-btn, body.exui .ex-pwdialog .ex-inputgroup .btn { flex: none; align-self: center; margin-right: 5px; }
body.exui .ex-pwdialog .ex-inputgroup .ex-iconbtn { align-self: center; }
body.exui .ex-pwdialog .ex-checkrow { margin-top: 16px; }

/* ---------- 12. Shared payment partials (also on the pay page) --------------- */
body.exui .ex-payfields .exact-payment-element { margin: 0; }
/* the gateway's card field is the only frame: drop exui-order.css's bordered surface around it (answers its
   !important frame, as billing.css does on the pay page) and let the field span the column like the inputs */
body.exui .ex-payfields .exact-payment-element { background: transparent !important; border: 0 !important; padding: 0; overflow: visible; }
body.exui .ex-payfields .exact-payment-element #stripe-cc-form { max-width: none; }
body.exui .ex-payfields #card-element { max-width: none; }
/* pay page: the card / bank section sits in its own #payment_details_cc|ach wrapper after the contact */
body.exui .ex-payfields--contact ~ :is(div, section) > .ex-payfields:first-child { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--ex-line); }
body.exui .ex-payfields__save { margin-top: 18px; }
body.exui .ex-payfields__msg { margin-bottom: 18px; }
body.exui .ex-payfields__gateway { min-width: 0; }

/* ---------- 13. Responsive -------------------------------------------------- */
@media screen and (max-width: 1023.98px) {
  /* the sub-nav becomes the pill grid above the content (exui.css §15) */
  body.exui .ex-account { grid-template-columns: minmax(0, 1fr); }
  body.exui .ex-account__nav { position: static; }
  body.exui .ex-account__nav .ex-subnav__text { flex: 0 1 auto; white-space: normal; line-height: 1.2; }

  /* people lists stack below 1024 (the card is too narrow for columns): identity (with the email and the
     client number folded in), then pills, then actions; exui.css stacks other lists only below 768 */
  body.exui .ex-people.ex-table--stack, body.exui .ex-people.ex-table--stack tbody { display: block; }
  body.exui .ex-people.ex-table--stack tbody tr { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "main tags act"; align-items: center; gap: 12px 20px; padding: 16px 20px; border-top: 1px solid var(--ex-line); }
  body.exui .ex-people.ex-table--stack tbody tr:first-child { border-top: 0; }
  body.exui .ex-people.ex-table--stack tbody td { display: block; width: auto; min-width: 0; padding: 0; border: 0; background: transparent; }
  body.exui .ex-people.ex-table--stack tbody td::before { display: none; }
  body.exui .ex-people.ex-table--stack tbody td.cell-main { grid-area: main; order: 0; }
  body.exui .ex-people.ex-table--stack tbody td:is(.cell-tags, .cell-status) { grid-area: tags; order: 0; }
  body.exui .ex-people.ex-table--stack tbody td.cell-actions { grid-area: act; order: 0; }
  body.exui .ex-people.ex-table--stack tbody td:is(.cell-email, .cell-id, .cell-opt) { display: none; }
  body.exui .ex-people.ex-table--stack .ex-people__alt > .ex-people__alt-id { display: block; }
  body.exui .ex-people.ex-table--stack .ex-rowactions { justify-content: flex-end; gap: 8px; }
  body.exui .ex-people.ex-table--stack .ex-rowactions .ex-go { min-height: 40px; }
  body.exui .ex-people.ex-table--stack .ex-rowactions .ex-iconbtn { width: 40px; height: 40px; }
  body.exui .ex-people.ex-table--stack .ex-rowactions .ex-btn--xs { height: 40px; padding: 0 16px; font-size: 13.5px; }
  /* the name link keeps its line but gets a 40px hit area */
  body.exui .ex-people.ex-table--stack a.ex-obj__name { display: inline-block; padding: 9px 0; margin: -9px 0; }
  /* sorting stays reachable: the header row becomes a sort bar holding only the sortable columns */
  body.exui .ex-people.ex-table--stack thead { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; }
  body.exui .ex-people.ex-table--stack thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 0 20px; border-bottom: 1px solid var(--ex-line); border-radius: calc(var(--ex-r-card) - 1px) calc(var(--ex-r-card) - 1px) 0 0; background: var(--ex-well); }
  body.exui .ex-people.ex-table--stack thead th { display: none; padding: 0; border: 0; border-radius: 0; background: none; }
  body.exui .ex-people.ex-table--stack thead th:has(a.ajax) { display: block; }
  body.exui .ex-people.ex-table--stack thead th a.ajax { min-height: 40px; }
  /* the bar says what it is: "SORT  Name ▲  Email" reads as a control, not as orphaned column heads */
  body.exui .ex-people.ex-table--stack thead tr[data-exui-sort]::before { content: attr(data-exui-sort); align-self: center; margin-right: -8px; padding-right: 14px; border-right: 1px solid var(--ex-line-strong); font: 500 10.5px/16px var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-fg-58); }
}
@media screen and (max-width: 767.98px) {
  body.exui :is(.ex-card, .ex-card > .collapse, .ex-card > .collapsing) > .ex-fsec { padding: 20px; }
  body.exui .ex-account .ex-card > .ex-formbar { margin: 0; padding: 14px 20px calc(14px + env(safe-area-inset-bottom)); border-radius: 0 0 var(--ex-r-card) var(--ex-r-card); background: rgba(23,25,28,.94); }
  body.exui .ex-account .ex-formbar .ex-btn { flex: 1; height: 46px; }
  body.exui .ex-account .ex-formbar .ex-btn--primary { min-width: 0; }
  /* beside a primary, the other actions (Back, Cancel) keep their content width and
     the primary takes the rest, so its label is never squeezed into half the bar */
  body.exui .ex-account .ex-formbar:has(.ex-btn--primary) .ex-btn:not(.ex-btn--primary) { flex: 0 0 auto; }
  body.exui .ex-copyfrom > .ex-input { max-width: none; }
  body.exui .ex-methods { display: block; }
  body.exui .ex-method { grid-template-columns: 44px minmax(0, 1fr); gap: 12px 14px; padding: 16px 20px; }
  body.exui .ex-method__actions { display: flex; grid-column: 1 / -1; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: 10px; }
  body.exui .ex-method__actions > * { grid-column: auto; }
  body.exui .ex-method__actions .ex-btn--xs { height: 40px; padding: 0 16px; font-size: 13.5px; }
  body.exui .ex-method__actions .ex-go { min-height: 40px; }
  body.exui .ex-method__actions .ex-iconbtn { width: 40px; height: 40px; }
  body.exui .ex-method__actions .dropdown { margin-left: auto; }
  body.exui .ex-threshold { grid-template-columns: 56px minmax(0, 1fr); padding: 14px 20px; }
  body.exui .ex-threshold__s { display: none; }
  body.exui .ex-thresholds__help { padding: 0 20px 16px; }
  body.exui .ex-deposits { grid-template-columns: minmax(0, 1fr); }
  body.exui .ex-verify .ex-payfields__gateway > div { grid-template-columns: minmax(0, 1fr); }
  body.exui .ex-perms__grid { grid-template-columns: minmax(0, 1fr); }
  body.exui .ex-perms__all { height: 40px; padding: 0 16px; margin-inline-end: -16px; }
  /* touch targets: 40px */
  body.exui .ex-phones__add, body.exui .ex-account__danger .ex-btn { height: 40px; }
  /* danger rows (Delete contact, Revoke access): the sentence keeps the full width, the button goes under it */
  body.exui .ex-account__danger .ex-setting { flex-wrap: wrap; gap: 14px; }
  body.exui .ex-account__danger .ex-setting__text { flex: 1 1 100%; }
  body.exui .ex-account__danger .ex-setting > .ex-btn { flex: 1 1 100%; justify-content: center; }
  /* managers ↔ managed accounts: a full-width two-part track with short labels */
  body.exui .ex-account__seg .ex-seg { display: flex; width: 100%; }
  body.exui .ex-account__seg .ex-seg__item { flex: 1 1 0; justify-content: center; height: 40px; padding: 0 10px; }
  body.exui .ex-account__seg .ex-seg__long { display: none; }
  body.exui .ex-account__seg .ex-seg__short { display: inline; }
  /* people rows on phones: identity first, then the pills and the actions on one line */
  body.exui .ex-people.ex-table--stack tbody tr { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "main main" "tags act"; gap: 14px 12px; padding: 18px 20px; }
  body.exui .ex-people.ex-table--stack tbody tr:not(:has(td:is(.cell-tags, .cell-status))) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "act"; }
  body.exui .ex-people.ex-table--stack tbody tr:not(:has(td:is(.cell-tags, .cell-status))) .ex-rowactions { justify-content: flex-start; }
  body.exui .ex-people.ex-table--stack tbody tr:not(:has(td:is(.cell-tags, .cell-status))) .ex-rowactions .ex-btn--xs { flex: 1; }
  body.exui .ex-account .ex-field--half > .ex-input { max-width: none; }
  body.exui .ex-mails.ex-table--stack td.cell-date { grid-column: 1; order: -3; align-self: center; }
  body.exui .ex-mails.ex-table--stack td.cell-to { grid-column: 2; order: -2; justify-self: end; }
  body.exui .ex-mails.ex-table--stack td.cell-to::before { display: none; }
  body.exui .ex-mails.ex-table--stack td.cell-to { width: auto; }
  body.exui .ex-mails.ex-table--stack td.cell-main { order: -1; grid-column: 1 / -1; }
  body.exui .ex-mails.ex-table--stack td.cell-date::before { display: none; }
  body.exui .ex-mails.ex-table--stack td.cell-date .ex-hint { display: inline; margin-left: 8px; }
  body.exui .ex-mails.ex-table--stack tr.expand_details { border-top: 1px solid var(--ex-line); background: rgba(13,15,18,.35); }
  body.exui .ex-mails.ex-table--stack tr.expand_details > td.subtable { width: 100%; }
  body.exui .ex-mails.ex-table--stack tr.expand { grid-template-columns: minmax(0, 1fr) auto; }
  body.exui .ex-mails .ex-expand { width: 40px; height: 40px; }
  /* email history sort bar (the stacked layout otherwise clips the header row and its sort links) */
  body.exui .ex-mails.ex-table--stack thead { position: static; display: block; width: auto; height: auto; overflow: visible; clip: auto; }
  body.exui .ex-mails.ex-table--stack thead tr { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 0 20px; border-bottom: 1px solid var(--ex-line); border-radius: calc(var(--ex-r-card) - 1px) calc(var(--ex-r-card) - 1px) 0 0; background: var(--ex-well); }
  body.exui .ex-mails.ex-table--stack thead th { display: none; padding: 0; border: 0; border-radius: 0; background: none; }
  body.exui .ex-mails.ex-table--stack thead th:has(a.ajax) { display: block; }
  body.exui .ex-mails.ex-table--stack thead th a.ajax { min-height: 40px; }
  body.exui .ex-mails.ex-table--stack thead tr[data-exui-sort]::before { content: attr(data-exui-sort); align-self: center; margin-right: -8px; padding-right: 14px; border-right: 1px solid var(--ex-line-strong); font: 500 10.5px/16px var(--ex-mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ex-fg-58); }
  /* phone numbers: the header row is hidden, so each control carries its own visible label */
  body.exui .ex-phones__table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); }
  body.exui .ex-phones__table, body.exui .ex-phones__table tbody { display: block; }
  body.exui .ex-phones__table tr.phone_row { display: grid; grid-template-columns: calc(50% - 4px) minmax(0, 1fr) 40px; align-items: end; gap: 12px 8px; padding: 14px 0; border-top: 1px solid var(--ex-line); }
  body.exui .ex-phones__table tr.phone_row:first-child { border-top: 0; padding-top: 0; }
  body.exui .ex-phones__table td, body.exui .ex-phones__table :is(th, td) + :is(th, td) { display: block; width: auto; padding: 0; }
  body.exui .ex-phones__table tr.phone_row > :is(.c-type, .c-loc, .c-num, .c-act) { width: auto; }
  body.exui .ex-phones__table td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 8px; font: 500 11px/1.4 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-fg-82); }
  /* Type and Location split the row evenly (the first track is half the row less half the gap); Location
     takes the remove column, the number sits beside the remove button */
  body.exui .ex-phones__table td.c-loc { grid-column: 2 / 4; }
  body.exui .ex-phones__table td.c-num { grid-column: 1 / 3; grid-row: 2; }
  body.exui .ex-phones__table tr.phone_row:only-child td.c-num { grid-column: 1 / -1; }
  body.exui .ex-phones__table td.c-act { grid-column: 3; grid-row: 2; }
  body.exui .ex-phones .ex-iconbtn { width: 40px; height: 44px; }
  body.exui .ex-2fa { grid-template-columns: minmax(0, 1fr); padding: 20px; }
  body.exui .ex-2fa .ex-qr, body.exui .ex-2fa #two_factor_qr { justify-self: center; }
  body.exui .ex-2fa__key { height: auto; min-height: 34px; padding: 6px 4px 6px 12px; }
  /* the base32 key is space-grouped, so it wraps only between groups (no split group to mistype);
     the hex key has no spaces and may break anywhere */
  body.exui .ex-2fa__key code { white-space: normal; word-break: normal; overflow-wrap: normal; line-height: 1.45; }
  body.exui .ex-2fa__key--hex code { word-break: break-all; }
  body.exui .ex-2fa__again { flex-wrap: wrap; }
  body.exui .ex-2fa__again .ex-btn { flex: 1 1 100%; height: 44px; }
  body.exui .ex-account .ex-card .ex-setting { padding-left: 20px; padding-right: 20px; }
  body.exui .ex-account .ex-flabel a.generate-password { display: inline-flex; align-items: center; min-height: 40px; margin: -11px 0; }
  body.exui .ex-avatarfield { align-items: flex-start; }
  body.exui .ex-mail { padding: 16px 20px 20px; }
  body.exui .ex-mail__frame { height: min(320px, 55vh); }
  body.exui .ex-mails .ex-mails__subject { white-space: normal; }
  body.exui .ex-mails .ex-mails__summary { display: -webkit-box; white-space: normal; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  body.exui .ex-mails td.cell-main { max-width: none; width: auto; }
  body.exui .ex-invite { padding-top: 24px; }
  body.exui .ex-invite .ex-window__body { padding: 22px 20px; }
  body.exui .ex-invite__title { font-size: 26px; }
  body.exui .ex-invite form .ex-btn { flex: 1; height: 48px; }
}
