/* exui page compositions — dashboard: client_main + cards, widgets, myinfo (DESIGN §7.1). Loaded on every page after exui.css; scope rules to the area (body.exui …).
 *
 * Roots printed by the dashboard views:
 *   .ex-dash        client_main.pdt (data-state = loading | plugin | stock)
 *   .ex-dash-card   client_main_card.pdt (one strip cell per card, AJAX)
 *   .ex-myinfo      client_main_myinfo.pdt (#my-info) + the credit fragment
 * Components come from exui.css; this file only lays them out (prototype §13.1).
 */

/* ---------- page rhythm ------------------------------------------------ */
/* one flex column: hidden blocks (folded alerts, the stock strip in plugin
   mode, an empty grid) leave no gap behind */
body.exui .ex-dash { display: flex; flex-direction: column; gap: var(--ex-gap); min-width: 0; }
body.exui .ex-dash > .ex-pagehead { margin-bottom: 8px; }                 /* 24 + 8 = the shell's 32 */
body.exui .ex-dash > .ex-alerts { margin-top: 0; }
body.exui .ex-dash > .ex-layout, body.exui .ex-dash__live > .ex-layout { margin-top: 0; }
body.exui .ex-dash__live { display: flex; flex-direction: column; gap: var(--ex-gap); min-width: 0; }
body.exui .ex-dash__live > .ex-dash-next { margin-top: 8px; }

/* the stock page (the server renders it; the gate in client_main.pdt starts
   the plugin mode's loading state): no skeletons */
body.exui .ex-dash[data-state="stock"] [data-dash-live] { display: none; }

/* amount-due alerts wait for the summary (it folds them or keeps them);
   when they are the only alerts the whole stack waits (no empty gap). On the
   stock page with core's balance read back (data-core) they wait for the
   page script, which folds them into the Account status window. */
body.exui .ex-dash[data-state="loading"] .ex-dash__alerts > .ex-alert[data-dash-due],
body.exui .ex-dash[data-state="loading"] .ex-dash__alerts[data-dash-dueonly],
body.exui .ex-dash[data-wait][data-core] .ex-dash__alerts > .ex-alert[data-dash-due],
body.exui .ex-dash[data-wait][data-core] .ex-dash__alerts[data-dash-dueonly] { display: none; }

/* head while the summary loads, while the stock page waits for its cards
   and widgets (data-wait, an amount due included: the title counts what
   needs the client), or while the summary's "all clear" waits for the
   widgets it keeps (data-hold): the title becomes a skeleton bar, the lede
   two lines. Without scripts the server title stands. */
body.exui .ex-dash__ledeskel { display: none; }
body.exui .ex-dash:is([data-state="loading"], [data-wait], [data-hold]) .ex-dash__ledeskel { display: block; }
body.exui .ex-dash:is([data-state="loading"], [data-wait], [data-hold]) [data-dash-lede] { display: none; }
body.exui .ex-dash:is([data-state="loading"], [data-wait], [data-hold]) [data-dash-title] {
  width: fit-content; max-width: 100%; border-radius: var(--ex-r-sm); background: var(--ex-raised); color: transparent;
  animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
body.exui .ex-dash .ex-dash-holdpill { width: 92px; }
body.exui .ex-dash .ex-lede .ex-link { color: inherit; }
body.exui .ex-dash .ex-lede .ex-link:hover { color: var(--ex-fg); }
body.exui .ex-dash__ledeskel .ex-skel--line { height: 12px; }

/* ---------- skeletons (same footprint as the hydrated blocks) ---------- */
body.exui .ex-dash-skel .ex-window__bar .ex-skel--pill { width: 92px; }
body.exui .ex-dash-skel__money { width: 210px; height: 50px; margin-top: 18px; border-radius: var(--ex-r-item); }
body.exui .ex-dash-skel__list { margin-top: 22px; border-top: 1px solid var(--ex-line); }
body.exui .ex-dash-skel__row { display: grid; grid-template-columns: 5.5rem minmax(0,1fr) 84px 4.75rem; align-items: center; gap: 16px; min-height: 76px; border-bottom: 1px solid var(--ex-line); }
body.exui .ex-dash-skel__row .ex-skel--pill { width: 84px; }
body.exui .ex-dash-skel__btn { width: 190px; height: 50px; margin-top: 24px; border-radius: var(--ex-r-pill); }
body.exui .ex-dash-skel__steps { margin-top: 18px; display: grid; gap: 18px; }
body.exui .ex-dash-skel__step { display: grid; grid-template-columns: 20px minmax(0,1fr); align-items: center; gap: 16px; }
body.exui .ex-dash-skel__node { width: 20px; height: 20px; border-radius: 50%; }
body.exui .ex-dash-skel__ticket { padding: 20px 22px 26px; }
body.exui .ex-dash-skel.ex-strip .ex-strip__cell { min-height: 112px; }
body.exui .ex-dash-skel .ex-card__head { min-height: 56px; }

/* ---------- Account status window (the signature) ------------------- */
body.exui .ex-dash-status__grid { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(0,1fr); }
/* one pane: core's balance on the stock page, or the other pane alone */
body.exui .ex-dash-status__grid--solo { grid-template-columns: minmax(0,1fr); }
body.exui .ex-dash-status__grid--solo > .ex-dash-setup { border-left: 0; }
@media (min-width: 768px) {
  /* the stock window: amount and sentence left, the pay actions right */
  body.exui .ex-dash-status__grid--solo > .ex-dash-due--core { display: grid; grid-template-columns: minmax(0,1fr) auto; column-gap: 40px; align-items: end; }
  body.exui .ex-dash-status__grid--solo > .ex-dash-due--core > * { grid-column: 1; }
  body.exui .ex-dash-status__grid--solo > .ex-dash-due--core > .ex-dash-due__cta { grid-column: 2; grid-row: 1 / span 4; align-self: end; justify-content: flex-end; margin-top: 0; }
}

/* needs you (what the money pane does not show): rows under the bar, the
   first one the attention row (DESIGN section 6: one per list) */
/* the rows share one pill track (subgrid), so every title starts at the
   same x whatever the pill's width */
body.exui .ex-dash-needs { display: grid; grid-template-columns: max-content minmax(0,1fr) auto; column-gap: 20px; border-bottom: 1px solid var(--ex-line); }
body.exui .ex-dash-need { position: relative; grid-column: 1 / -1; display: grid; grid-template-columns: subgrid; align-items: center; gap: 8px 20px; padding: 18px 32px; }
body.exui .ex-dash-need + .ex-dash-need { border-top: 1px solid var(--ex-line); }
body.exui .ex-dash-need.is-attn { background: var(--ex-a-06); }
body.exui .ex-dash-need.is-attn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ex-accent); box-shadow: 0 0 14px var(--ex-accent); }
body.exui .ex-dash-need > .ex-pill { justify-self: start; }
body.exui .ex-dash-need__text { min-width: 0; }
body.exui .ex-dash-need__t { font-size: 15.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--ex-fg); overflow-wrap: anywhere; }
body.exui .ex-dash-need__t a { color: inherit; }
body.exui .ex-dash-need__t a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
body.exui .ex-dash-need__host { margin-left: 6px; font: 400 12.5px/1.4 var(--ex-mono); color: var(--ex-muted); }
/* a card's last four in the title ("Visa •••• 4242 has expired"): part of the sentence */
body.exui .ex-dash-need__t .mono:not(.ex-dash-need__host) { margin: 0; font-family: var(--ex-mono); font-size: .92em; font-weight: 500; letter-spacing: -.01em; color: inherit; }
body.exui .ex-dash-need__meta { margin-top: 3px; font-size: 13px; line-height: 1.5; color: var(--ex-muted); }
body.exui .ex-dash-need__meta .mono { font-family: var(--ex-mono); font-size: 12.5px; }
body.exui .ex-dash-need__meta .sep { padding: 0 .2em; color: var(--ex-line-strong); }
body.exui .ex-dash-need__act { display: flex; justify-content: flex-end; }
[dir="rtl"] body.exui .ex-dash-need.is-attn::before { left: auto; right: 0; }
body.exui .ex-dash-due { min-width: 0; padding: 28px 32px 30px; }
body.exui .ex-dash-due__amt { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
body.exui .ex-dash-due__amt .ex-money { font-size: 56px; line-height: .95; }
body.exui .ex-dash-due__amt .ex-unit { margin-left: 0; font: 500 13px/1 var(--ex-mono); letter-spacing: .08em; color: var(--ex-muted); }
body.exui .ex-dash-due__word { font: 700 40px/1.05 var(--ex-font); letter-spacing: -.04em; color: var(--ex-fg); }
body.exui .ex-dash-due__count { font: 700 56px/.95 var(--ex-mono); letter-spacing: -.05em; color: var(--ex-fg); }
body.exui .ex-dash-due__title { margin-top: 16px; font-size: 26px; line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--ex-fg); }
body.exui .ex-dash-due__when { margin-top: 12px; max-width: 56ch; font-size: 14.5px; line-height: 1.5; color: var(--ex-fg-72); }
body.exui .ex-dash-due__other { margin-top: 12px; font-size: 13px; line-height: 1.5; color: var(--ex-muted); }
body.exui .ex-dash-due__more { margin-top: 10px; }
body.exui :is(.ex-dash-due__when, .ex-dash-due__note, .ex-dash-setup__empty) :is(.num, .mono) {
  font-family: var(--ex-mono); font-size: .92em; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; color: var(--ex-fg);
}

/* invoices that make up the balance: ID · title + consequence · pill · amount */
body.exui .ex-duelist { margin-top: 22px; border-top: 1px solid var(--ex-line); }
body.exui .ex-duelist > li {
  position: relative; display: grid; grid-template-columns: 5.5rem minmax(0,1fr) auto 4.75rem; align-items: center; gap: 6px 16px;
  padding: 14px 0; border-bottom: 1px solid var(--ex-line);
}
body.exui .ex-duelist > li.is-attn { margin: 0 -32px; padding: 14px 32px; background: var(--ex-a-06); }
body.exui .ex-duelist > li.is-attn::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: var(--ex-accent); box-shadow: 0 0 14px var(--ex-accent); }
body.exui .ex-duelist .ex-id { justify-self: start; }
body.exui .ex-duelist__text { min-width: 0; }
body.exui .ex-duelist__text > b { display: block; font-size: 14.5px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--ex-fg); overflow-wrap: anywhere; }
body.exui .ex-duelist .ex-amt { font-size: 15px; text-align: right; }
body.exui .ex-duelist .ex-pill { justify-self: end; }

body.exui .ex-dash-due__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 24px; }
body.exui .ex-dash-due__note { display: flex; align-items: flex-start; gap: 8px; margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--ex-fg-58); }
body.exui .ex-dash-due__note .i { flex: none; margin-top: 2px; color: var(--ex-muted); }
body.exui .ex-dash-due__note .num, body.exui .ex-dash-due__note .mono { font-size: 12.5px; }

/* right pane: setup rail, coming up, or the empty rail of a new account */
body.exui .ex-dash-setup { min-width: 0; padding: 28px 32px 30px; border-left: 1px solid var(--ex-line); background: var(--ex-well); }
body.exui .ex-dash-setup__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 22px; }
body.exui .ex-dash-setup__t { margin-top: 16px; font-size: 18px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--ex-fg); overflow-wrap: anywhere; }
body.exui .ex-dash-setup__host { margin-top: 3px; font: 400 12.5px/1.4 var(--ex-mono); color: var(--ex-muted); overflow-wrap: anywhere; }
body.exui .ex-dash-setup .ex-steps { margin-top: 14px; }
body.exui .ex-dash-setup .ex-steps__end .ex-ring, body.exui .ex-dash-setup .ex-steps__end .ex-dot { flex: none; }
body.exui .ex-dash-setup__tl { margin-top: 10px; }
body.exui .ex-dash-setup__tl .ex-tl__amt { padding-top: 15px; }
body.exui .ex-dash-setup__tl .ex-tl__node { background: var(--ex-surface); }
body.exui .ex-dash-setup__empty { margin-top: 16px; margin-bottom: 12px; max-width: 40ch; font-size: 14px; line-height: 1.5; color: var(--ex-fg-72); }
body.exui .ex-dash-setup .ex-tl__text a, body.exui .ex-dash-next .ex-tl__text a { text-decoration: underline; text-decoration-color: var(--ex-fg-20); text-underline-offset: 3px; transition: text-decoration-color var(--ex-dur-2); }
body.exui .ex-dash-setup .ex-tl__text a:hover, body.exui .ex-dash-next .ex-tl__text a:hover { text-decoration-color: var(--ex-accent); }
body.exui :is(.ex-dash-setup, .ex-dash-next) .ex-tl__text .mono { font-size: .92em; }

/* ---------- account strip ------------------------------------------------ */
/* label, value and description share rows across a strip row, so a label
   that wraps (DEFAULT PAYMENT on a phone) never drops its value below its
   neighbour's (subgrid; without it the cells simply stack as before) */
body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards) > .ex-strip__cell { display: grid; grid-row: span 3; grid-template-rows: subgrid; align-content: start; row-gap: 0; }
body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards) > .ex-strip__cell > .ex-strip__top { align-items: flex-start; }
/* The cards the summary does not state join its strip (dashboard.js), so
   there is one strip. Two cells never stretch across the page; one cell is
   a full-width row (label · value · description · arrow), as on the
   services page, at every width one track wide. */
@media (min-width: 1024px) {
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="2"]:not(.ex-dash-strip--new) { width: 50%; }
}
body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] { grid-template-columns: minmax(0,1fr); }
@media (min-width: 768px) {
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) {
    grid-row: auto; grid-template-rows: none; grid-template-columns: 9.5rem max-content minmax(0,1fr) auto;
    align-items: center; column-gap: 20px; padding-top: 16px; padding-bottom: 16px;
  }
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) > .ex-strip__top { display: contents; }
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) .ex-strip__top > .ex-label { grid-column: 1; grid-row: 1; }
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) .ex-strip__top > svg { grid-column: 4; grid-row: 1; }
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) .ex-strip__val { grid-column: 2; grid-row: 1; margin-top: 0; }
  body.exui .ex-dash :is(.ex-dash-strip, .ex-dash-cards)[data-cells="1"] > .ex-strip__cell:not(.ex-dash-card--html) .ex-strip__desc { grid-column: 3; grid-row: 1; margin-top: 0; }
}
/* cards the summary already states (plugin mode): out of the row */
body.exui .ex-dash .ex-dash-cards > .ex-strip__cell.ex-dash-dup { display: none; }
body.exui .ex-dash-strip .ex-strip__val .ex-money { font-size: inherit; }
body.exui .ex-dash-strip .ex-strip__val .ex-unit { font-size: 12px; }
body.exui .ex-dash-strip .ex-strip__desc .num, body.exui .ex-dash-strip .ex-strip__desc .mono { font-family: var(--ex-mono); font-size: .92em; white-space: nowrap; }

/* stock cards strip (blestaLoadCards appends .ex-dash-card cells; the
   getcards skeleton is a whole strip appended inside it) */
body.exui .ex-dash .ex-dash-cards { margin: 0; }                         /* the bridge gives .cards row gutters */
body.exui .ex-dash-cards:empty { display: none; }
/* a brand-new account (every card a zero): the zero strip folds away */
body.exui .ex-dash--fresh .ex-dash-cards { display: none; }
@media (min-width: 1024px) {
  body.exui :is(.ex-dash-cards, .ex-dash-strip)[data-cols="3"] > .ex-strip__cell:nth-child(3n+1),
  body.exui :is(.ex-dash-cards, .ex-dash-strip)[data-cols="4"] > .ex-strip__cell:nth-child(4n+1) { border-left: 0; }
  body.exui :is(.ex-dash-cards, .ex-dash-strip)[data-cols="3"] > .ex-strip__cell:nth-child(n+4),
  body.exui :is(.ex-dash-cards, .ex-dash-strip)[data-cols="4"] > .ex-strip__cell:nth-child(n+5) { border-top: 1px solid var(--ex-line); }
}
body.exui .ex-dash-cards > .loading_container { grid-column: 1 / -1; width: 100%; margin: 0; border: 0; border-radius: 0; background: transparent; }
body.exui .ex-dash-cards > .loading_container::after { display: none; }
body.exui .ex-dash-card__html { margin-top: 12px; min-width: 0; font-size: 14px; line-height: 1.5; color: var(--ex-fg-82); overflow-wrap: anywhere; }
body.exui .ex-dash-card--html .ex-strip__top .ex-iconbtn { margin: -6px -8px -6px 0; }

/* ---------- services | support ----------------------------------------- */
body.exui .ex-dash__grid { align-items: stretch; }
body.exui .ex-dash__grid--solo { grid-template-columns: minmax(0,1fr); }
body.exui .ex-dash__grid > .ex-col { align-content: stretch; }
body.exui .ex-dash__grid > .ex-col > .ex-card:only-child { display: flex; flex-direction: column; height: 100%; }
/* both cards end in their foot at the shared height (the services card
   always has one: "Showing 4 of 6" or what the list holds) */
body.exui .ex-dash__grid .ex-card__foot { margin-top: auto; }
body.exui .ex-dash-svc .ex-card__foot .ex-card__note { font-family: var(--ex-mono); font-size: 12px; letter-spacing: -.01em; }
body.exui .ex-dash-svc .ex-card__foot .sep { padding: 0 .3em; color: var(--ex-line-strong); }
body.exui .ex-dash-svc__table td { padding-top: 14px; padding-bottom: 14px; }
body.exui .ex-dash-svc__table td.cell-status { width: 1%; white-space: nowrap; }
body.exui .ex-dash-svc__table td.cell-actions { width: 1%; white-space: nowrap; }
/* the identity cell takes what is left and ellipsizes (names carry a title);
   between 768 and 1279 the price moves under the status pill */
body.exui .ex-dash-svc__alt { display: none; }
@media (min-width: 768px) {
  body.exui .ex-dash-svc__table td.cell-main { width: 100%; max-width: 0; }
}
/* 768-1279: the price moves under the status pill and the renewal under the
   identity, so the name keeps its width (the card is ~620 px there) */
body.exui .ex-dash-svc__when { display: none; }
@media screen and (min-width: 768px) and (max-width: 1279.98px) {
  body.exui .ex-dash-svc__table :is(th, td).ex-dash-svc__price,
  body.exui .ex-dash-svc__table :is(th, td).ex-dash-svc__renews { display: none; }
  body.exui .ex-dash-svc__alt { display: block; margin-top: 8px; }
  body.exui .ex-dash-svc__when { display: block; margin-top: 4px; font-size: 12.5px; line-height: 1.45; color: var(--ex-muted); white-space: normal; }
  body.exui .ex-dash-svc__when .sep { padding: 0 .2em; color: var(--ex-line-strong); }
}
body.exui .ex-dash-svc__table .ex-date { display: block; }
/* words in the renews cell ("Not started", "Until INV-2033 is paid") are
   prose: the body face; only dates and IDs are mono */
body.exui .ex-dash-svc__word { display: block; font-size: 13.5px; line-height: 1.4; color: var(--ex-fg-82); white-space: normal; }
body.exui .ex-dash-svc__table td.ex-dash-svc__renews { min-width: 8.5rem; }
body.exui :is(.ex-dash-svc__word, .ex-dash-svc__when, .ex-dash-svc__table .ex-hint) .mono { font-family: var(--ex-mono); font-size: .92em; letter-spacing: -.01em; white-space: nowrap; }
body.exui .ex-dash-muted { font-size: 13px; color: var(--ex-muted); white-space: nowrap; }
body.exui .ex-dash-empty { flex: 1; align-content: center; padding: 36px 24px 40px; }
body.exui .ex-dash-due__note .ex-link { font-weight: 600; white-space: nowrap; }

/* ticket preview */
body.exui .ex-tprev { display: grid; gap: 10px; padding: 20px 22px 22px; align-content: start; }
body.exui .ex-dash__grid .ex-tprev { flex: 1; }
body.exui .ex-tprev__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
body.exui .ex-tprev__top .ex-id { font-size: 13px; }
body.exui .ex-tprev__t { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; color: var(--ex-fg); overflow-wrap: anywhere; }
body.exui .ex-tprev__t a { color: inherit; }
body.exui .ex-tprev__t a:hover { text-decoration: underline; text-decoration-color: var(--ex-accent); text-underline-offset: 3px; }
body.exui .ex-tprev__quote {
  margin: 2px 0 0; padding-left: 14px; border-left: 2px solid var(--ex-line-strong); font-size: 14px; line-height: 1.55; color: var(--ex-fg-72);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere;
}
body.exui .ex-tprev__meta { font-size: 13px; line-height: 1.5; color: var(--ex-muted); }
body.exui .ex-tprev__meta .sep { padding: 0 .2em; color: var(--ex-line-strong); }
body.exui .ex-tprev--empty { gap: 6px; align-content: center; }

/* ---------- coming up (open section) ------------------------------------- */
body.exui .ex-dash-next .ex-open__head .ex-label + .ex-label { color: var(--ex-muted); }
/* as many columns as events (dashboard.js sets --n, at most 3); a single
   event keeps a third's width, its amount beside its text */
@media (min-width: 1024px) {
  body.exui .ex-dash-next .ex-timeline--row { grid-template-columns: repeat(var(--n, 3), minmax(0,1fr)); }
  /* one event: a row (date · text · amount) over the services column, its
     amount where the services card ends */
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] { grid-template-columns: minmax(0,1fr) var(--ex-aside); column-gap: var(--ex-gap); }
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] .ex-tl { align-items: center; padding-right: 22px; }
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] .ex-tl > span:nth-child(2) { display: flex; align-items: baseline; gap: 20px; }
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] .ex-tl__date { flex: none; min-width: 4.5rem; }
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] .ex-tl__text { margin-top: 0; }
  body.exui .ex-dash-next .ex-timeline--row[data-n="1"] .ex-tl__amt { padding-top: 0; }
}
/* below 1024 the three-across row is too tight: the rail, as on phones */
@media screen and (max-width: 1023.98px) {
  body.exui .ex-dash-next .ex-timeline--row { display: block; }
  body.exui .ex-dash-next .ex-timeline--row .ex-tl { padding: 12px 0; border-left: 0; }
  body.exui .ex-dash-next .ex-timeline--row .ex-tl:not(:last-child)::before { display: block; }
}

/* ---------- stock widgets + account panel ---------------------------- */
body.exui .ex-dash-more { align-items: start; }
/* Below 1280 the widget column would be narrower than the stock tables
   (domains 783 px, transactions 725 px): the widgets take the full width and
   the account panel follows as a grid of cards. With the summary (and while
   it loads) the same single column holds whatever widgets remain, then the
   panel; the window above already carries the account's state. */
@media screen and (max-width: 1279.98px) {
  body.exui .ex-dash .ex-dash-more { grid-template-columns: minmax(0,1fr); }
}
body.exui .ex-dash:not([data-state="stock"]) .ex-dash-more { grid-template-columns: minmax(0,1fr); }
/* one shrinkable track: wide stock tables scroll inside their card instead
   of pushing the column under the aside */
body.exui .ex-dash-widgets { grid-template-columns: minmax(0,1fr); min-width: 0; }
body.exui .ex-dash-widgets:empty { display: none; }
/* safety net: whatever a widget prints stays inside its card */
body.exui .ex-dash-widgets .card-content { overflow-x: auto; }
/* the getwidgets skeleton: one column of cards */
body.exui .ex-dash-widgets > .loading_container { grid-template-columns: minmax(0,1fr); }
/* plugin widget views wrap their card in a bare .col-md-12 (Blesta's 10px
   column padding would inset the card from the page edge); the inner card's
   own margin would double the column gap */
body.exui .ex-dash-widgets > [class*="col-"] { flex: none; width: 100%; max-width: 100%; padding-left: 0; padding-right: 0; }
body.exui .ex-dash-widgets > .card,
body.exui .ex-dash-widgets > [class*="col-"] > .card,
body.exui .ex-dash-widgets > [class*="col-"] > :last-child { margin-top: 0; margin-bottom: 0 !important; /* answers exui.css §17.99 .card-blesta margin-bottom !important */ }
/* the widget column is narrower than a list page: optional columns go */
body.exui .ex-dash-widgets :is(th, td).cell-opt { display: none; }
body.exui .ex-dash-more--solo { grid-template-columns: minmax(0,1fr); }
body.exui .ex-dash .ex-dash-more--noaside { grid-template-columns: minmax(0,1fr); }
body.exui .ex-dash-more--solo > .ex-dash-widgets { display: none; }
/* lists the summary already shows: hidden while it loads (they arrive in
   parallel), then per permission (plugin mode; dashboard.js marks wrappers) */
body.exui .ex-dash-widgets > .ex-dash-dup,
body.exui .ex-dash[data-state="loading"] #exui-widgets > :is(#client_services, #client_invoices, #client_tickets, #client_domains),
body.exui .ex-dash[data-state="loading"] #exui-widgets > :has(> :is(#client_services, #client_invoices, #client_tickets, #client_domains)),
body.exui .ex-dash--hide-services #exui-widgets > :is(#client_services, :has(> #client_services)),
body.exui .ex-dash--hide-invoices #exui-widgets > :is(#client_invoices, :has(> #client_invoices)),
body.exui .ex-dash--hide-tickets #exui-widgets > :is(#client_tickets, :has(> #client_tickets)),
body.exui .ex-dash--hide-domains:not(.ex-dash--keep-domains) #exui-widgets > :is(#client_domains, :has(> #client_domains)) { display: none; }
/* a brand-new account: empty lists fold away (plugin: .ex-dash--new;
   stock: .ex-dash--fresh, every card a zero). The services widget's own
   empty state ("Order a service") is the one card left. */
body.exui :is(.ex-dash--new, .ex-dash--fresh) #exui-widgets > :is(#client_domains, #client_invoices, #client_tickets, #client_transactions, #client_quotations, :has(> :is(#client_domains, #client_invoices, #client_tickets, #client_transactions, #client_quotations))):not(:has(tbody tr)) { display: none; }

/* widgets on their way: stock mode keeps a card-sized skeleton in every
   empty slot; with the summary the duplicates will hide, so one skeleton
   card stands for the column and empty slots take no gap */
body.exui .ex-dash[data-state="stock"] .ex-dash-widgets > [id^="widget_container_"]:empty,
body.exui .ex-dash:not([data-state="stock"]) .ex-dash-widgets.is-waiting::before {
  content: ""; display: block; min-height: 240px; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-card);
  background: var(--ex-surface); animation: ex-pulse 2s cubic-bezier(.4,0,.6,1) infinite;
}
body.exui .ex-dash:not([data-state="stock"]) .ex-dash-widgets > [id^="widget_container_"]:empty { display: none; }
/* a new account's lists are empty and fold away: no placeholder for them */
body.exui .ex-dash--new .ex-dash-widgets.is-waiting::before { display: none; }
body.exui .ex-dash:not([data-state="stock"]) .ex-dash-widgets > .loading_container > .ex-card ~ .ex-card { display: none; }

/* the stock services widget beside the account panel (>= 1280, ~806 px):
   the services list's fixed column widths (services.css, sized for the
   full-width page) left the identity ~112 px. Here the columns fit their
   content and the identity takes the rest. */
@media (min-width: 1280px) {
  body.exui .ex-dash[data-state="stock"] .ex-dash-widgets #client_services .ex-svc-table--main { table-layout: auto; }
  body.exui .ex-dash[data-state="stock"] .ex-dash-widgets #client_services .ex-svc-table--main col { width: auto; }
  body.exui .ex-dash[data-state="stock"] .ex-dash-widgets #client_services .ex-svc-table--main > tbody > tr:not(.expand_details) > td:not(.cell-main) { width: 1%; white-space: nowrap; }
  body.exui .ex-dash[data-state="stock"] .ex-dash-widgets #client_services .ex-svc-table--main > tbody > tr > td.cell-main { width: 100%; max-width: 0; }
}
/* the stock tickets widget (7 columns, ~1,190 px): Priority and Department
   go and the summary wraps, so Status and Reply stay in view (its view has
   no cell-opt classes; the rule stands down if it gains them) */
body.exui .ex-dash-widgets #client_tickets table:not(:has(.cell-opt, .cell-main)) :is(th, td):is(:nth-child(2), :nth-child(3)) { display: none; }
body.exui .ex-dash-widgets #client_tickets table:not(:has(.cell-opt, .cell-main)) td:nth-child(4) { min-width: 18rem; white-space: normal; overflow-wrap: anywhere; }
@media screen and (max-width: 1023.98px) {
  body.exui .ex-dash-widgets #client_tickets table:not(:has(.cell-opt, .cell-main)) :is(th, td):nth-child(5) { display: none; }
}

/* one vocabulary across the widget cards (DESIGN §5.2): a filter nested in a
   card is the neutral segmented control, never a second red marker; the
   lists' search and filter tools stay on their own pages; head links keep
   the link voice inside the bridge's mono card header; no Font Awesome
   glyphs beside Lucide */
body.exui .ex-dash-widgets .card .ex-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; border: 0; }
body.exui .ex-dash-widgets .card .ex-tab {
  height: 32px; padding: 0 14px; gap: 8px; justify-content: center; border: 1px solid var(--ex-line-strong); border-radius: var(--ex-r-pill);
  background: transparent; font-size: 13px; line-height: 1; color: var(--ex-muted);
}
body.exui .ex-dash-widgets .card .ex-tab::after,
body.exui .ex-dash-widgets .card .ex-tab > .i { display: none; }
body.exui .ex-dash-widgets .card .ex-tab:hover { border-color: var(--ex-fg-20); color: var(--ex-fg); }
body.exui .ex-dash-widgets .card .ex-tab:is(.is-active, [aria-current="page"]) { border-color: var(--ex-fg-22); background: var(--ex-raised); color: var(--ex-fg); }
body.exui .ex-dash-widgets .card .ex-tab .ex-tab__count { font-size: 11px; }
body.exui .ex-dash-widgets .card .ex-list__bar:has(> .ex-tabs) { align-items: center; min-height: 58px; padding-top: 9px; padding-bottom: 9px; }
body.exui .ex-dash-widgets #client_domains .ex-list__tools,
body.exui .ex-dash-widgets #client_tickets .card-nav .filter-toggle,
body.exui .ex-dash-widgets #client_tickets .card-nav .btn > :is(.fas, .far, .fa) { display: none; }
body.exui .ex-dash-widgets .card-header .ex-go { font: 600 13px/1.2 var(--ex-font); letter-spacing: -.005em; text-transform: none; color: var(--ex-fg); }
/* the services widget hides its status tabs on the dashboard (services.css);
   they come back while another tab holds services (dashboard.js marks it;
   :has() covers a suspended count without script), never with its tools */
body.exui.exui-is-dashboard #client_services .ex-svc-list__bar.ex-dash-showbar,
body.exui.exui-is-dashboard #client_services .ex-svc-list__bar:has(.ex-tab__count--act) { display: flex; }
body.exui.exui-is-dashboard #client_services .ex-svc-list__bar .ex-list__tools { display: none; }

/* the tickets widget head (dashboard.js): "TICKETS 3" + "View all", as the
   other widgets */
body.exui .ex-dash-widgets #client_tickets > .card-header[data-dash-head] { flex-wrap: nowrap; }
body.exui .ex-dash-thead { display: inline-flex; align-items: center; gap: 8px; }
body.exui .ex-dash-thead .ex-count[hidden] { display: none; }

/* the transactions widget is a short history on the dashboard: three
   rows (the head's "View all" has the rest), no pagination. With the
   summary it is only its head ("TRANSACTIONS 3 · View all") at every
   width, and no filter bar, until a charge is declined. On phones it is
   only its head until then; a declined charge brings back the bar and the
   stacked rows, so its status tabs always drive a visible list. */
body.exui .ex-dash[data-state="plugin"] #client_transactions .ex-list__bar:not(.ex-dash-showbar),
body.exui .ex-dash[data-state="plugin"] #client_transactions .ex-list__filters,
body.exui .ex-dash #client_transactions .ex-listfoot { display: none; }
/* folded into the account card's "Transactions · View all" row (dashboard.js) */
body.exui .ex-dash #client_transactions.ex-dash-txn--folded { display: none; }
body.exui .ex-dash #client_transactions tbody > tr.expand:nth-child(n+7),
body.exui .ex-dash #client_transactions tbody > tr.expand_details:nth-child(n+7) { display: none; }
body.exui .ex-dash[data-state="plugin"] #client_transactions:not(.ex-dash-txn--attn) > .card-content { display: none; }
body.exui .ex-dash[data-state="plugin"] #client_transactions:not(.ex-dash-txn--attn) > .ex-card__head { border-bottom: 0; }
@media screen and (max-width: 767.98px) {
  body.exui .ex-dash #client_transactions:not(.ex-dash-txn--attn) > .card-content { display: none; }
  body.exui .ex-dash #client_transactions:not(.ex-dash-txn--attn) > .ex-card__head { border-bottom: 0; }
}

/* the domains widget head on narrow phones: "Register a domain" becomes
   its plus icon (the link keeps its text for screen readers) */
@media screen and (max-width: 479.98px) {
  body.exui .ex-dash-widgets #client_domains .ex-card__head .ex-row > a[href*="/order/"] {
    width: 40px; height: 40px; min-height: 40px; padding: 0; gap: 0; justify-content: center; font-size: 0; line-height: 0;
    border: 1px solid var(--ex-line-strong); border-radius: 50%;
  }
  body.exui .ex-dash-widgets #client_domains .ex-card__head .ex-row > a[href*="/order/"] > svg { margin: 0; }
}

/* with the summary the strip states credit and auto-pay: the account panel
   keeps who you are, contacts and managed accounts (.amounts stays in the
   DOM for fetchCurrencyAmounts) */
body.exui .ex-dash--strip-credit .ex-myinfo .amounts,
body.exui .ex-dash--strip-autopay .ex-myinfo__setting--autopay { display: none; }
body.exui .ex-dash--strip-autopay .ex-myinfo__setting--autopay + .ex-myinfo__setting { border-top: 0; }
body.exui .ex-dash--strip-autopay .ex-myinfo__settings:not(:has(.ex-myinfo__setting:not(.ex-myinfo__setting--autopay))) { display: none; }

/* #my-info: cards in a grid, one column in the aside, up to three across */
body.exui .ex-myinfo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: var(--ex-gap); align-items: start; min-width: 0; word-break: normal; }
body.exui .ex-myinfo__card { min-width: 0; }
body.exui .ex-myinfo .ex-card__head { min-height: 56px; }
body.exui .ex-myinfo__who { display: flex; align-items: center; gap: 14px; padding: 20px 22px 6px; }
body.exui .ex-myinfo__whotext { min-width: 0; }
body.exui .ex-myinfo__name { display: block; font-size: 17px; line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--ex-fg); overflow-wrap: anywhere; }
body.exui .ex-myinfo__sub { display: block; margin-top: 2px; font-size: 13.5px; color: var(--ex-muted); overflow-wrap: anywhere; }
body.exui .ex-myinfo__facts { margin: 0; padding: 8px 22px 4px; }
body.exui .ex-myinfo__row { display: grid; grid-template-columns: 96px minmax(0,1fr); align-items: baseline; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ex-line); }
body.exui .ex-myinfo__facts > .ex-myinfo__row:first-child { border-top: 0; }
body.exui .ex-myinfo__key { margin: 0; font: 500 10.5px/1.6 var(--ex-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ex-muted); }
body.exui .ex-myinfo__val { margin: 0; min-width: 0; font-size: 14px; line-height: 1.55; color: var(--ex-fg-88); overflow-wrap: anywhere; }
body.exui .ex-myinfo__val.mono, body.exui .ex-myinfo__val .mono { font-family: var(--ex-mono); font-size: 13px; letter-spacing: -.01em; }
body.exui .ex-myinfo__val .ex-link { color: var(--ex-fg-88); }
body.exui .ex-myinfo__line { display: block; }
body.exui .ex-myinfo__muted { font-size: 12.5px; color: var(--ex-muted); }
/* credit (fragment inside .amounts) */
body.exui .ex-myinfo .amounts { padding: 0 22px; }
body.exui .ex-myinfo .amounts:empty { display: none; }
body.exui .ex-myinfo__credit .ex-myinfo__row, body.exui .ex-myinfo__skel { align-items: center; border-top: 1px solid var(--ex-line); }
body.exui .ex-myinfo__skel { display: grid; grid-template-columns: 96px minmax(0,1fr); gap: 12px; padding: 14px 0; }
body.exui .ex-myinfo__credit .ex-amt { font-size: 15px; }
body.exui .ex-myinfo__creditfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 0 0 14px; }
body.exui .ex-myinfo__creditfoot .ex-seg__item { font-family: var(--ex-mono); }
body.exui .ex-myinfo__addcredit { margin-left: auto; }
/* settings: auto-pay, invoice delivery */
body.exui .ex-myinfo__settings { margin-top: 6px; border-top: 1px solid var(--ex-line); }
body.exui .ex-myinfo__setting { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 6px 16px; padding: 14px 22px; }
body.exui .ex-myinfo__setting + .ex-myinfo__setting { border-top: 1px solid var(--ex-line); }
body.exui .ex-myinfo__settext { display: grid; gap: 4px; min-width: 0; }
body.exui .ex-myinfo__desc { font-size: 13.5px; line-height: 1.5; color: var(--ex-fg-72); }
/* people (contacts, managed accounts) */
body.exui .ex-myinfo .ex-action { min-height: 60px; padding: 10px 22px; font-size: 14.5px; font-weight: 500; color: var(--ex-fg); }
body.exui .ex-myinfo .ex-action .ex-pill { flex: none; }
/* the role pill sits on the name line, so the email keeps the row's width;
   a sub-line that still does not fit ends in an ellipsis (full text in its
   title) instead of breaking mid-word */
body.exui .ex-myinfo__pname { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
body.exui .ex-myinfo__pnametext { min-width: 0; overflow-wrap: anywhere; }
body.exui .ex-myinfo .ex-action__text > :is(.ex-myinfo__psub, small) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* company names are prose: the body face (emails stay mono) */
body.exui .ex-myinfo .ex-action__text > .ex-myinfo__psub--text { font-family: var(--ex-font); font-size: 13px; letter-spacing: -.005em; }
body.exui .ex-myinfo__search input,
body.exui .ex-myinfo__search input::placeholder { font-family: var(--ex-font); letter-spacing: -.005em; }
body.exui .ex-myinfo__note { padding: 18px 22px 22px; }
body.exui .ex-myinfo__search { padding: 16px 22px 12px; }
body.exui .ex-myinfo__search .ex-search { display: flex; width: 100%; }
body.exui .ex-myinfo__results { border-top: 1px solid var(--ex-line); }
body.exui .ex-myinfo__results:empty { display: none; }
body.exui .ex-myinfo__results + .ex-myinfo__note { border-top: 1px solid var(--ex-line); }
/* a new account (or a stock one with every card a zero) has no credit to
   top up yet: "Add credit" waits until there is (the fragment marks an
   all-zero balance) */
body.exui :is(.ex-dash--new, .ex-dash--fresh) .ex-myinfo__credit[data-zero] .ex-myinfo__addcredit { display: none; }
body.exui :is(.ex-dash--new, .ex-dash--fresh) .ex-myinfo__credit[data-zero] .ex-myinfo__creditfoot:not(:has(.ex-myinfo__currencies)) { display: none; }

/* the account panel across the page (with the summary, and on the stock
   page below 1280): "Your account" is a wide card (who you are beside your
   details), contacts and managed accounts stack beside it; the cards share
   their row's height, so no hole opens under the shorter one */
@media (min-width: 1024px) {
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: stretch; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__account { grid-row: span 2; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0,1fr); align-content: start; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__account > :not(.ex-myinfo__who, .ex-myinfo__facts) { grid-column: 1 / -1; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__account > .ex-myinfo__who { grid-column: 1; align-self: start; padding: 22px 22px 22px; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__account > .ex-myinfo__facts { grid-column: 2; padding: 12px 22px 12px 0; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__account > .ex-myinfo__settings { align-self: end; }
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__contacts:last-child,
  body.exui .ex-dash:not([data-state="stock"]) .ex-myinfo__contacts:has(+ .ex-myinfo__managed[hidden]) { grid-row: span 2; align-self: start; }   /* a short list never stretches into empty surface */
}
@media screen and (min-width: 1024px) and (max-width: 1279.98px) {
  body.exui .ex-dash[data-state="stock"] .ex-myinfo { grid-template-columns: minmax(0,1.55fr) minmax(0,1fr); align-items: stretch; }
  body.exui .ex-dash[data-state="stock"] .ex-myinfo__account { grid-row: span 2; display: grid; grid-template-columns: minmax(0, 15rem) minmax(0,1fr); align-content: start; }
  body.exui .ex-dash[data-state="stock"] .ex-myinfo__account > :not(.ex-myinfo__who, .ex-myinfo__facts) { grid-column: 1 / -1; }
  body.exui .ex-dash[data-state="stock"] .ex-myinfo__account > .ex-myinfo__who { grid-column: 1; align-self: start; padding: 22px 22px 22px; }
  body.exui .ex-dash[data-state="stock"] .ex-myinfo__account > .ex-myinfo__facts { grid-column: 2; padding: 12px 22px 12px 0; }
  body.exui .ex-dash[data-state="stock"] .ex-myinfo__contacts:last-child { grid-row: span 2; align-self: start; }
}

/* ---------- new account: the way into ordering (DESIGN 7.1 #6) ------- */
@media (min-width: 1024px) {
  body.exui .ex-dash-ticker { grid-template-columns: auto repeat(var(--n, 1), minmax(0,1fr)); }
}
@media screen and (min-width: 480px) and (max-width: 1023.98px) {
  body.exui .ex-dash-ticker { grid-template-columns: repeat(var(--n, 1), minmax(0,1fr)); }
}
body.exui .ex-dash-ticker[data-n="1"] a { justify-content: space-between; padding: 18px 22px; }

/* the stock services widget's empty state is the one card of a new
   account: no "View all" over an empty list */
body.exui :is(.ex-dash--fresh, .ex-dash--new) #client_services:has(.ex-empty) .ex-card__head .ex-go { display: none; }

/* ---------- responsive ------------------------------------------------ */
/* below 1180 the money pane needs the full width (the duelist's text column
   fell to ~130 px at 1024): the setup / coming-up pane goes under it */
@media screen and (max-width: 1179.98px) {
  body.exui .ex-dash-status__grid { grid-template-columns: minmax(0,1fr); }
  body.exui .ex-dash-setup { border-left: 0; border-top: 1px solid var(--ex-line); }
}
@media screen and (max-width: 1023.98px) {
  body.exui .ex-duelist > li { grid-template-columns: 5rem minmax(0,1fr) auto 4.5rem; gap: 6px 12px; }
  body.exui .ex-dash-skel__row { grid-template-columns: 5rem minmax(0,1fr) 84px 4.5rem; gap: 12px; }
  /* an odd last cell spans the row (2+2+1); the covered cards sit hidden
     at the end of the stock row, so the count skips them */
  body.exui .ex-dash-cards > .ex-strip__cell:nth-child(odd of :not(.ex-dash-dup)):nth-last-child(1 of :not(.ex-dash-dup)),
  body.exui .ex-dash-strip > .ex-strip__cell:last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media screen and (max-width: 767.98px) {
  /* one phone rule for every widget's in-card status filter (DESIGN §5.2 / §9):
     the 2-column equal grid billing uses, an odd last item spanning */
  body.exui .ex-dash-widgets .card :is(.ex-tabs, .ex-seg) { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; width: 100%; }
  body.exui .ex-dash-widgets .card :is(.ex-tab, .ex-seg__item) { justify-content: center; height: 40px; }
  body.exui .ex-dash-widgets .card :is(.ex-tab, .ex-seg__item):last-child:nth-child(odd) { grid-column: 1 / -1; }
  body.exui .ex-dash { gap: 20px; }
  body.exui .ex-dash > .ex-pagehead { margin-bottom: 4px; }
  body.exui .ex-dash__live { gap: 20px; }
  body.exui .ex-dash-due, body.exui .ex-dash-setup { padding: 22px 20px 24px; }
  body.exui .ex-dash-due__amt .ex-money { font-size: 46px; }
  body.exui .ex-dash-due__word { font-size: 34px; }
  body.exui .ex-dash-due__count { font-size: 46px; }
  body.exui .ex-dash-due__title { font-size: 22px; }
  /* duelist rows: ID + amount, then text, then pill */
  body.exui .ex-duelist > li { grid-template-columns: minmax(0,1fr) auto; gap: 8px 12px; }
  body.exui .ex-duelist > li .ex-id { grid-column: 1; grid-row: 1; }
  body.exui .ex-duelist > li .ex-amt { grid-column: 2; grid-row: 1; }
  body.exui .ex-duelist__text { grid-column: 1 / -1; }
  body.exui .ex-duelist > li .ex-pill { grid-column: 1 / -1; justify-self: start; }
  body.exui .ex-duelist > li.is-attn { margin: 0 -20px; padding: 14px 20px; }
  /* needs rows: pill, then the text, then the action at full width */
  body.exui .ex-dash-need { grid-template-columns: minmax(0,1fr); gap: 10px; padding: 18px 20px 20px; }
  body.exui .ex-dash-need__act { justify-content: stretch; }
  body.exui .ex-dash-need__act .ex-btn { flex: 1 1 100%; }
  body.exui .ex-dash-need__act .ex-btn--secondary { height: 44px; }
  body.exui .ex-dash-need__act .ex-go { min-height: 40px; }
  body.exui .ex-dash-due__cta { gap: 12px 20px; }
  body.exui .ex-dash-due__cta .ex-btn { flex: 1 1 100%; }
  body.exui .ex-dash-due__cta .ex-btn--secondary { height: 44px; }
  body.exui .ex-dash-skel__row { grid-template-columns: minmax(0,1fr) auto; min-height: 96px; }
  body.exui .ex-dash-skel__row > :nth-child(2), body.exui .ex-dash-skel__row > .ex-skel--pill { display: none; }
  body.exui .ex-dash-skel__btn { width: 100%; }
  body.exui .ex-dash-svc__table .ex-obj__name { max-width: none; }
  body.exui .ex-dash-svc__table td.cell-status, body.exui .ex-dash-svc__table td.cell-actions { width: auto; }
  body.exui .ex-dash__grid .ex-card__foot .ex-btn--xs, body.exui .ex-dash__grid .ex-card__foot .ex-go { min-height: 40px; }
  body.exui .ex-dash__grid .ex-card__foot .ex-btn--xs { height: 40px; padding: 0 18px; font-size: 14px; }
  body.exui .ex-tprev, body.exui .ex-dash-cardnote, body.exui .ex-dash-skel__ticket { padding-left: 20px; padding-right: 20px; }
  body.exui .ex-myinfo__who, body.exui .ex-myinfo__facts, body.exui .ex-myinfo .amounts, body.exui .ex-myinfo__setting,
  body.exui .ex-myinfo__note, body.exui .ex-myinfo__search, body.exui .ex-myinfo .ex-action { padding-left: 20px; padding-right: 20px; }
  body.exui .ex-myinfo .ex-go { min-height: 40px; }
  body.exui .ex-myinfo .ex-iconbtn--bordered { width: 40px; height: 40px; }
  body.exui .ex-myinfo__creditfoot .ex-seg__item { min-height: 40px; }
  /* touch: the in-card filters at 40 px */
  body.exui .ex-dash-widgets .card .ex-tab { height: 40px; }
  /* touch: links at 40 px (DESIGN section 9); IDs and inline links keep
     their look and grow only their hit area */
  body.exui .ex-dash :is(.ex-dash-due__cta .ex-go, .ex-card__head .ex-go, .ex-dash-setup > .ex-go) { min-height: 40px; }
  body.exui .ex-dash .ex-duelist .ex-id { padding-block: 12px; margin-block: -12px; }
  body.exui .ex-dash :is(.ex-dash-setup, .ex-dash-next) :is(.ex-tl__text a, .ex-step__body a) { padding-block: 12px; }
  body.exui .ex-dash .ex-dash-need__t a { padding-block: 10px; }
  /* needs rows: one column (pill, text, action) */
  body.exui .ex-dash-needs { display: block; }
}
@media screen and (max-width: 479.98px) {
  body.exui .ex-dash-due__amt .ex-money { font-size: 42px; }
  /* the window bar: dots, the title after them, the pill on the right
     (the centred title ran into the pill) */
  body.exui .ex-dash .ex-dash-status .ex-window__bar { grid-template-columns: auto minmax(0,1fr) auto; gap: 10px; }
  body.exui .ex-dash .ex-dash-status .ex-window__title { justify-self: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  body.exui .ex-dash .ex-dash-status .ex-dots i { width: 8px; height: 8px; }
}

/* the domains widget beside the account panel (~808px at 1440): the domain
   name has priority. The term column goes (the domains page keeps it) and
   the names show in full instead of ellipsizing while dates had slack. */
@media (min-width: 768px) {
  body.exui .ex-dash-widgets .ex-domains__table > :is(thead, tbody) > tr > :nth-child(3):not(.cell-actions, .cell-main) { display: none; }
  body.exui .ex-dash-widgets .ex-domains__table td.cell-main { width: auto; max-width: none; }
  body.exui .ex-dash-widgets .ex-domains__table td.cell-main .ex-obj__name { overflow: visible; text-overflow: clip; white-space: nowrap; }
}
/* the tickets widget: Summary takes the free width (two lines at most at
   1440) and "Last reply" keeps one line */
body.exui .ex-dash-widgets #client_tickets table td[data-exui-ago] { white-space: nowrap; }
