/*
 * NEW-BCK-0532 — the compact customer portal, stage 2 of 4 (shell, Dashboard,
 * Orders, order detail, edit request, quote).
 *
 * The owner-approved desktop-Codex mockup (COMPACT-ORDER-FORM.html, 12 Oct
 * 2026) is the READING of the layout; the colours, type and furniture are the
 * portal's own — Arial, slate bars, lime actions, the four colour roles of
 * portal.css — so nothing here is a second design system. Loaded AFTER
 * portal.css, and hung off .portal-skin like it, so the back office cannot
 * pick any of it up. No build step: plain CSS served from public/.
 */

[x-cloak] { display: none !important; }

/* ---- shell: the mobile Menu ------------------------------------------ *\
   Desktop is unchanged (the nav is a row). At 760px and below the nav folds
   behind one Menu button that lists EVERY destination, one per line, with the
   Place an order choices opened inline. public/js/portal-menu.js adds
   `portal-menu-ready` to <html>; without it the old scrolling row still works,
   so a failed script never hides the navigation.
\* ---------------------------------------------------------------------- */

.portal-skin .menu-toggle { display: none; }
/* NEW-BCK-0580 item 1: the ID prints once, as a small line under "Account" inside the Account menu's summary. */
.portal-skin .nav-account > summary { line-height: 1.15; }
.portal-skin .top-customer-id { display: block; font-size: 11px; font-weight: normal; color: #d6dadc; white-space: nowrap; }
.portal-skin .nav-account .menu { left: auto; right: 0; }
.portal-skin .nav-account .menu form { margin: 0; }
.portal-skin .nav-account .menu .signout { display: block; width: 100%; margin: 0; padding: 10px 13px; text-align: left; }
.portal-skin .nav-wrap { display: contents; }
.portal-skin .nav .nav-help-short { display: none; }

@media (max-width: 760px) {
    .portal-skin .top-inner { display: flex; flex-wrap: wrap; align-items: center; padding: 0; min-height: 52px; }
    .portal-skin .brand { flex: 1 1 auto; margin: 0; padding: 8px 12px; display: block; }
    .portal-skin .menu-toggle { display: block; margin: 6px 12px 6px 0; min-height: 40px; padding: 8px 16px;
        border: 1px solid #67747c; background: #495155; color: #fff; font: bold 14px Arial, Helvetica, sans-serif; cursor: pointer; }
    .portal-skin .menu-toggle[aria-expanded="true"] { background: #4d5357; box-shadow: inset 0 -3px 0 var(--lime); }
    .portal-skin .nav-wrap { display: block; flex: 1 1 100%; }
    .portal-skin .nav { flex-direction: column; overflow: visible; border-top: 1px solid #4d5357; }
    .portal-menu-ready .portal-skin .nav-wrap { display: none; }
    .portal-menu-ready .portal-skin .nav-wrap.open { display: block; }
    .portal-skin .nav a,
    .portal-skin .nav button,
    .portal-skin .nav summary { display: block; min-height: 44px; padding: 13px 14px; border-bottom: 1px solid #495155; text-align: left; white-space: normal; width: 100%; }
    .portal-skin .nav form { display: block; }
    .portal-skin .nav .signout { margin: 0; }
    .portal-skin .nav a.nav-quote { margin: 0; padding: 13px 14px; border-radius: 0; }
    .portal-skin .nav details { position: static; }
    .portal-skin .nav details .menu { position: static; border: 0; background: #272b2e; }
    .portal-skin .nav details .menu a { padding-left: 28px; }
}

/* ---- the compact body ------------------------------------------------- */

.portal-skin .compact-body { padding: 10px 12px 14px; line-height: 1.4; }
.portal-skin .compact-body h2 { font-size: 16px; margin: 14px 0 7px; }
.portal-skin .compact-body p { margin: 7px 0; }
.portal-skin .section-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.portal-skin .section-heading h2 { margin: 10px 0; }
.portal-skin .portal-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.portal-skin .portal-actions a.secondary,
.portal-skin .portal-actions a.button { min-height: 36px; display: inline-flex; align-items: center; }
.portal-skin .text-button,
.portal-skin button.plain.text-button { background: none; border: 0; padding: 0; min-height: 28px; font: inherit; color: #41610b; text-decoration: underline; cursor: pointer; }

/* Dashboard heading bar (NEW-BCK-0580 item 1: the Customer ID strip is gone — the ID lives under Account). */
.portal-skin .dashboard-title { flex-wrap: wrap; gap: 4px 14px; }

/* The compact Welcome / Get in touch card. */
.portal-skin .welcome-compact { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; background: #edf4df;
    padding: 10px 12px; border: 1px solid #d4dfc3; margin: 8px 0; font-size: 13px; }
.portal-skin .welcome-compact p { margin: 4px 0; }
.portal-skin .welcome-compact > .text-button { grid-column: 1 / -1; justify-self: end; }

/* The four status counts. */
.portal-skin .portal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.portal-skin .portal-grid > a { display: block; padding: 10px; background: #f2f5f1; border: 1px solid #d1d9cd; color: var(--ink); text-decoration: none; }
.portal-skin .portal-grid > a:hover { background: #e8eee3; }
.portal-skin .portal-grid > a strong { display: block; font-size: 22px; margin-top: 2px; }
.portal-skin .portal-grid > a.needs-attention { background: var(--role-attention-bg); border-color: #e6c98a; color: var(--role-attention-ink); }

/* ---- compact toolbar + date filters ---------------------------------- */

.portal-skin .compact-toolbar { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 10px 0; padding: 8px; }
.portal-skin .compact-toolbar .orders-search,
.portal-skin .compact-toolbar .search-field { flex: 1 1 230px; max-width: none; }
.portal-skin .compact-toolbar .search-field { display: flex; flex-direction: column; gap: 3px; font-size: 12px; font-weight: bold; }
.portal-skin .compact-toolbar input,
.portal-skin .compact-toolbar select { min-width: 0; height: 36px; }
.portal-skin .compact-toolbar .orders-search,
.portal-skin .compact-toolbar .search-field input { width: 100%; }
.portal-skin .compact-toolbar > .button,
.portal-skin .compact-toolbar > a { min-height: 36px; display: inline-flex; align-items: center; }
.portal-skin .date-filters { flex: 1 1 100%; }
.portal-skin .paired-fields { display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 10px; }
.portal-skin .active-filter { flex: 1 1 100%; font-size: 13px; color: #415b42; margin: 0; }
.portal-skin .active-filter .plain { margin-left: 8px; background: none; border: 0; padding: 0; font: inherit; color: #41610b; text-decoration: underline; cursor: pointer; }
.portal-skin .dashboard-search { background: #f5f6f6; }

/* ---- order rows ------------------------------------------------------- */

.portal-skin .order-buckets { padding: 6px 0; background: transparent; }
.portal-skin .order-list { margin: 6px 0; }
.portal-skin .order-row { display: grid; grid-template-columns: 60px minmax(0, 1fr) minmax(180px, .65fr) auto;
    gap: 12px; align-items: center; border-bottom: 1px solid #dfe2e5; padding: 8px 2px; }
.portal-skin .order-row:hover { background: #f4f7eb; }
.portal-skin .order-row .thumb { width: 56px; height: 56px; }
.portal-skin .order-row small,
.portal-skin .ticket-row small { display: block; color: #53606b; font-size: 12px; margin-top: 3px; }
.portal-skin .order-title a { color: #263d47; text-decoration: none; }
.portal-skin .order-title a:hover { text-decoration: underline; }
.portal-skin .order-title,
.portal-skin .order-state { min-width: 0; overflow-wrap: anywhere; }
.portal-skin .order-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.portal-skin .ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr); align-items: center;
    gap: 12px; padding: 10px 2px; border-bottom: 1px solid #dfe2e5; overflow-wrap: anywhere; }
.portal-skin .empty-state { padding: 14px 4px; color: #53606b; }

/* ---- order detail ----------------------------------------------------- */

.portal-skin .design-summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px 18px;
    flex-wrap: wrap; padding: 8px 12px 10px; border-bottom: 1px solid #d8dce1; font-size: 13px; }
.portal-skin .design-summary h2 { margin: 0 0 4px; font-size: 18px; }
.portal-skin .design-summary .design-dates { text-align: right; }
.portal-skin .design-focus { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0; padding: 12px; }
.portal-skin .design-images { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; align-content: start; }
.portal-skin .design-images figure { margin: 0; min-width: 0; }
.portal-skin .design-images figcaption { background: #5e606b; color: #fff; padding: 5px 8px; font-size: 13px; font-weight: bold; }
.portal-skin .design-images .imagebox { height: auto; min-height: 120px; max-height: 280px; }
.portal-skin .design-images .imagebox img { max-height: 270px; max-width: 100%; object-fit: contain; }
.portal-skin .design-side { min-width: 0; }
.portal-skin .design-side h2 { margin-top: 0; }
.portal-skin .download-panel .download-row { display: flex; flex-wrap: wrap; gap: 7px; }
.portal-skin .download-panel .file-button { flex: 1 1 140px; min-height: 36px; text-align: center; }
.portal-skin .spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; margin: 10px 0; }
.portal-skin .spec-grid div { min-width: 0; }
.portal-skin .spec-grid dt { font-size: 11px; color: #555e68; }
.portal-skin .spec-grid dd { margin: 2px 0 0; font-size: 13px; overflow-wrap: anywhere; }
/* The artwork-instructions fold, open: the plain original steps aside (the same picture is shown marked up inside the fold). The finished preview is never touched. */
.portal-skin .page:has([data-fold="instructions"][data-fold-open="yes"]) .original-artwork { display: none; }
.portal-skin .notes-visible { background: #f3f6ed; border-left: 3px solid #a6c747; padding: 8px 12px; margin: 0 12px 10px; }
.portal-skin .notes-visible h2 { margin: 0 0 4px; font-size: 14px; }
.portal-skin .verbatim { white-space: pre-wrap; overflow-wrap: anywhere; }
.portal-skin .detail-fold { margin: 8px 12px; border: 1px solid #d8dce1; }
.portal-skin .detail-fold > summary { padding: 9px 11px; font-weight: bold; cursor: pointer; background: #f4f5f6; }
.portal-skin .detail-fold > .fold-body { padding: 0; }
.portal-skin .detail-fold > .fold-body > .section { border-top: 0; }
.portal-skin .detail-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 12px; }

/* ---- the quote decision ----------------------------------------------- */

.portal-skin .quote-status { padding: 10px; background: #f1f5e8; border: 1px solid #d5dfbe; }

/* ---- small screens ---------------------------------------------------- */

@media (max-width: 760px) {
    .portal-skin .portal-grid { grid-template-columns: 1fr 1fr; }
    .portal-skin .welcome-compact { grid-template-columns: 1fr; }
    .portal-skin .design-focus { grid-template-columns: 1fr; }
    .portal-skin .design-summary { flex-direction: column; }
    .portal-skin .design-summary .design-dates { text-align: left; }
    .portal-skin .order-buckets { grid-template-columns: 1fr 1fr; }
    /* Orders, as specific compact rows rather than a label-per-cell stack:
       thumbnail down the left, then reference + design, then status and date,
       then the buttons — four short lines beside one picture. */
    .portal-skin .order-row { grid-template-columns: 54px minmax(0, 1fr); gap: 4px 10px; font-size: 13px; padding: 9px 2px; }
    .portal-skin .order-row .preview-link { grid-row: 1 / 4; align-self: start; }
    .portal-skin .order-row .thumb { width: 48px; height: 48px; }
    .portal-skin .order-title,
    .portal-skin .order-state,
    .portal-skin .order-actions { grid-column: 2; }
    .portal-skin .order-state { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
    .portal-skin .order-state small { margin-top: 0; }
    .portal-skin .order-actions { justify-content: flex-start; }
    .portal-skin .order-actions .button { min-height: 40px; display: inline-flex; align-items: center; }
    .portal-skin .ticket-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .portal-skin .compact-toolbar .search-field,
    .portal-skin .compact-toolbar .orders-search { flex: 1 1 100%; }
    .portal-skin .detail-fold { margin: 8px 8px; }
    .portal-skin .notes-visible { margin: 0 8px 10px; }
}

@media (max-width: 440px) {
    .portal-skin .compact-body { padding: 9px; }
    .portal-skin .spec-grid { grid-template-columns: 1fr 1fr; }
    .portal-skin .paired-fields { gap: 7px; }
}

.portal-skin .order-row a.preview-link { text-decoration: none; color: #666; }

/* ======================================================================= *\
   NEW-BCK-0533 — stage 3 of 4: Invoices, the invoice page, Statements,
   Tickets (list, new question, thread), Account, Help & pricing. The same
   reading of the mockup as above; the colours are portal.css's own roles
   (the running invoice keeps its amber .status.running, never red).
\* ======================================================================= */

/* ---- invoice and ticket rows: reference | state | Open ---------------- */
.portal-skin .invoice-list,
.portal-skin .ticket-list { margin: 6px 0; }
.portal-skin .invoice-row,
.portal-skin .ticket-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, .7fr) auto;
    align-items: center; gap: 12px; padding: 9px 2px; border-bottom: 1px solid #dfe2e5; overflow-wrap: anywhere; }
.portal-skin .invoice-row:hover,
.portal-skin .ticket-row:hover { background: #f4f7eb; }
.portal-skin .invoice-row small,
.portal-skin .ticket-row small { display: block; color: #53606b; font-size: 12px; margin-top: 3px; }
.portal-skin .invoice-row strong { color: #263d47; }
.portal-skin .invoice-select { display: inline-flex; align-items: center; gap: 3px; margin-left: 8px; font-size: 12px; white-space: nowrap; }
.portal-skin .ticket-title a { color: #263d47; text-decoration: none; }
.portal-skin .ticket-title a:hover { text-decoration: underline; }
.portal-skin .invoice-ref,
.portal-skin .invoice-state,
.portal-skin .ticket-title,
.portal-skin .ticket-state { min-width: 0; }
.portal-skin .invoice-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.portal-skin .invoice-row .button.secondary,
.portal-skin .ticket-row .button.secondary { min-height: 34px; display: inline-flex; align-items: center; }
.portal-skin .pager-row { margin: 6px 0; }

/* ---- the invoice page: remaining + Pay first ------------------------- */
.portal-skin .invoice-remaining { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 10px 18px; padding: 10px 12px; margin: 0 0 10px; background: #f2f5f1; border: 1px solid #d1d9cd; }
.portal-skin .invoice-remaining.is-running { background: var(--role-attention-bg); border-color: #e6c98a; color: var(--role-attention-ink); }
.portal-skin .invoice-remaining-label { display: block; font-size: 12px; font-weight: bold; text-transform: uppercase; letter-spacing: .03em; }
.portal-skin .invoice-remaining strong { display: block; font-size: 24px; margin: 2px 0; }
.portal-skin .invoice-remaining small { display: block; font-size: 12px; color: #53606b; }
.portal-skin .invoice-remaining .pay-all-form { margin: 0; }
.portal-skin .invoice-exports { padding-top: 6px; }

/* ---- statements -------------------------------------------------------- */
.portal-skin .aged-tiles > div { padding: 10px; background: #f2f5f1; border: 1px solid #d1d9cd; font-size: 13px; }
.portal-skin .aged-tiles strong { display: block; font-size: 20px; margin-top: 2px; }
.portal-skin .statement-controls label { flex: 0 1 170px; }

/* ---- tickets: the question form, the thread --------------------------- */
.portal-skin .ticket-buckets { margin: 4px 0 0; }
.portal-skin .ticket-new { margin: 6px 0 10px; }
.portal-skin .question-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 6px 14px; align-items: start; }
.portal-skin .question-form > .wide { grid-column: 1 / -1; }
.portal-skin .conversation { border: 0; }
.portal-skin .conversation .message { padding: 9px 11px; margin: 6px 0; border: 1px solid #c8d0d5; }
.portal-skin .conversation .message .meta { font-size: 12px; }
.portal-skin .conversation .message p { margin: 6px 0 0; }
.portal-skin .thread-fold { margin: 6px 0; padding: 6px 10px; border: 1px dashed #c8d0d5; background: #f7f8f8; }
.portal-skin .reply-form { margin: 10px 0; }
.portal-skin .reply-form .paired-fields .right { margin: 0; }

/* ---- account: named groups, one sticky Save --------------------------- */
.portal-skin .account-group { margin: 8px 0; border: 1px solid #d8dce1; background: #fff; }
.portal-skin .account-group > summary { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; align-items: center;
    gap: 12px; padding: 10px 12px; cursor: pointer; background: #f4f5f6; list-style: none; }
.portal-skin .account-group > summary::-webkit-details-marker { display: none; }
.portal-skin .account-group > summary span { font-size: 13px; overflow-wrap: anywhere; color: #3f4a52; }
.portal-skin .account-group > summary em { font-style: normal; font-size: 12px; color: #426328; text-decoration: underline; }
.portal-skin .account-group-body { padding: 12px; }
.portal-skin .account-grid .field.wide,
.portal-skin .account-grid .field:has(#billingLine1),
.portal-skin .account-grid .field:has(#billingLine2) { grid-column: 1 / -1; }
.portal-skin .account-settings .save-bar { font-size: 13px; flex-wrap: wrap; }

/* ---- help & pricing ---------------------------------------------------- */
.portal-skin .help-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 20px; align-items: start; }
.portal-skin .help-layout .details caption { text-align: left; font-weight: bold; padding: 6px 0 2px; }
.portal-skin .help-guidance { display: block; }
.portal-skin .help-placements .detail-fold { margin: 8px 0; }
.portal-skin .help-placements .detail-fold .fold-body { padding: 4px 11px; }

@media (max-width: 760px) {
    /* Invoices and tickets as compact rows, not label-per-cell: the text
       down the left, Open beside it, the state under the reference. */
    .portal-skin .invoice-row,
    .portal-skin .ticket-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 8px; font-size: 13px; }
    .portal-skin .invoice-row > .invoice-state,
    .portal-skin .ticket-row > .ticket-state { grid-column: 1; grid-row: 2; }
    .portal-skin .invoice-row > .invoice-actions,
    .portal-skin .ticket-row > a.button { grid-column: 2; grid-row: 1 / 3; align-self: center; }
    .portal-skin .invoice-row .button.secondary,
    .portal-skin .ticket-row .button.secondary { min-height: 40px; }
    .portal-skin .invoice-actions { flex-direction: column; }
    .portal-skin .aged-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
    .portal-skin .aged-tiles > div { padding: 8px 4px; font-size: 11px; }
    .portal-skin .aged-tiles strong { font-size: 14px; overflow-wrap: anywhere; }
    .portal-skin .question-form { grid-template-columns: 1fr; }
    .portal-skin .account-group > summary { grid-template-columns: minmax(0, 1fr) auto; gap: 3px 8px; }
    .portal-skin .account-group > summary span { grid-column: 1; grid-row: 2; }
    .portal-skin .account-group > summary em { grid-column: 2; grid-row: 1 / 3; }
    .portal-skin .help-layout { grid-template-columns: 1fr; }
    .portal-skin .reply-form .paired-fields { grid-template-columns: 1fr; }
    .portal-skin .statement-lines { font-size: 12px; }
}
/* NEW-BCK-0533 — a general or account question has no design to choose: no empty reserved row. */
.portal-skin .question-form > .ticket-placement-idle { display: none; }

/* ======================================================================= *\
   NEW-BCK-0538B — the gaps found by the 13 Oct design-vs-build walk.
\* ======================================================================= */

.portal-skin .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- tabs: compact, content-width (Orders, Tickets) — the NAMES are live's, only the style is the mockup's ---- */
.portal-skin .order-buckets,
.portal-skin .ticket-buckets { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; padding: 0; background: transparent; }
.portal-skin .order-buckets .bucket,
.portal-skin .ticket-buckets .bucket { display: inline-flex; align-items: center; gap: 6px; width: auto; padding: 6px 12px; font-size: 13px; min-height: 34px; }
.portal-skin .order-buckets .bucket span,
.portal-skin .ticket-buckets .bucket span { float: none; }
.portal-skin .ticket-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 14px; }
.portal-skin .ticket-bar .ticket-buckets { flex: 0 0 auto; }
.portal-skin .ticket-bar .ticket-toolbar { flex: 1 1 220px; margin: 6px 0; padding: 0; background: transparent; }
@media (max-width: 760px) {
    .portal-skin .order-buckets { grid-template-columns: none; }
}

/* ---- rows on a phone: the action stays in its own column beside the text (Dashboard and Orders) ---- */
@media (max-width: 760px) {
    .portal-skin .order-row { grid-template-columns: 54px minmax(0, 1fr) auto; align-items: center; }
    .portal-skin .order-row .preview-link { grid-row: 1 / 3; grid-column: 1; }
    .portal-skin .order-title { grid-column: 2; grid-row: 1; }
    .portal-skin .order-state { grid-column: 2; grid-row: 2; }
    .portal-skin .order-actions { grid-column: 3; grid-row: 1 / 3; flex-direction: column; align-items: stretch; justify-content: center; }
    .portal-skin .order-actions .button { min-height: 36px; justify-content: center; white-space: nowrap; }
}

/* ---- balance lines (Invoices, Statements): one compact line, the figures unchanged ---- */
.portal-skin .balance-line { display: flex; flex-wrap: wrap; gap: 4px 22px; align-items: baseline; margin: 8px 0; padding: 7px 10px;
    background: #f2f5f1; border: 1px solid #d1d9cd; font-size: 14px; }
.portal-skin .balance-line b { font-size: 16px; margin-left: 4px; }
.portal-skin .balance-line .metric { display: inline; padding: 0; background: none; border: 0; }

/* ---- invoice page: small headings, not section bars ---- */
.portal-skin .compact-section .compact-title { margin: 0; padding: 8px 12px 0; font-size: 15px; }
.portal-skin .compact-section > .body { padding-top: 6px; }
.portal-skin .compact-section .invoice-summary { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.portal-skin .compact-section .invoice-summary .metric { padding: 0; background: none; border: 0; }

/* ---- a wide table scrolls inside its own wrapper — the page never scrolls sideways ---- */
.portal-skin .table-scroll { max-width: 100%; overflow-x: auto; }
.portal-skin .people-table th,
.portal-skin .people-table td { overflow-wrap: anywhere; }
@media (max-width: 760px) {
    .portal-skin .people-table,
    .portal-skin .people-table tbody,
    .portal-skin .people-table tr { display: block; width: 100%; }
    .portal-skin .people-table th,
    .portal-skin .people-table td { display: block; width: auto; padding: 2px 0; }
    .portal-skin .people-table tr { padding: 6px 0; border-bottom: 1px solid #e3e5e6; }
}

/* ---- order detail ---- */
.portal-skin .order-summary-card > .design-summary { border: 0; }
.portal-skin .order-summary-card > .body { padding-top: 0; }
.portal-skin .download-panel .file-button { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 7px 10px; line-height: 1.2; }
.portal-skin .download-panel .file-button .file-label { font-weight: bold; }
.portal-skin .download-panel .file-button .file-name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; font-weight: normal; opacity: .85; }
.portal-skin .download-panel .zip-line { margin: 6px 0 0; }
.portal-skin .invoice-with-downloads { margin: 10px 0 0; }
.portal-skin .price-fold > summary { cursor: pointer; font-size: 13px; }
.portal-skin .price-fold table { margin-top: 6px; }
.portal-skin .history-list { margin: 0; padding-left: 18px; line-height: 1.7; }
.portal-skin .original-fold > summary { cursor: pointer; font-weight: bold; padding: 6px 8px; background: #f4f5f6; border: 1px solid #d8dce1; }
.portal-skin .mark-how { margin: 0 0 8px; }
.portal-skin .mark-how > summary { cursor: pointer; font-weight: bold; color: #41610b; }

/* ---- quote: Full specification as a 2 × 2 grid on a desktop (Design | Files, Production | Reference, About beneath), one column on a phone ---- */
.portal-skin .qp-spec-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; }
.portal-skin .qp-spec-body .qp-group { min-width: 0; margin: 0; padding: 0; border-top: 0; }
.portal-skin .qp-spec-body .qp-group[data-quote-group="About this quote"],
.portal-skin .qp-spec-body .qp-group:not([data-quote-group="Design"]):not([data-quote-group="Files"]):not([data-quote-group="Production"]):not([data-quote-group="Reference"]) { grid-column: 1 / -1; }
@media (max-width: 760px) {
    .portal-skin .qp-spec-body { grid-template-columns: 1fr; }
}

/* NEW-BCK-0580 item 11: .orders th is left-aligned at higher specificity than .right, so the Amount heading and cells say it here. */
.portal-skin table.statement-lines th.right,
.portal-skin table.statement-lines td.right { text-align: right; white-space: nowrap; }
/* NEW-BCK-0580 item 3: the one Pay control's small line beneath it. */
.portal-skin .pay-this-invoice { display: block; margin-top: 4px; font-size: 12px; color: #555; }

/* ======================================================================
   NEW-BCK-0584 — owner-approved R7 portal UI items M1-M8 (PK-021..028).
   ====================================================================== */

/* PK-023 (M3): the Dashboard has no title bar; the welcome line stands on white. */
.portal-skin .dashboard-welcome { padding: 4px 0 0; }
.portal-skin .dashboard-welcome .greeting { margin: 0; font-size: 16px; font-weight: bold; color: var(--ink); }

/* PK-021 (M1) more padding inside the unpaid-balance banner; PK-022 (M2) 12px above it. */
.portal-skin .balance-tile { padding: 14px 16px; margin: 12px 0 0; }
/* PK-022 (M2): the gap before Welcome / Get in touch is 12px (it was ~34px: panel margin + body padding + card margin). */
.portal-skin .dashboard-welcome ~ .compact-body { padding-top: 0; }
.portal-skin .welcome-compact { margin: 12px 0 8px; }

/* PK-024 (M4): the four secondary links as icon + count tiles. */
.portal-skin .tile-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.portal-skin .tile-link { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-height: 44px; padding: 10px;
    background: #f2f5f1; border: 1px solid #d1d9cd; color: var(--ink); text-decoration: none; }
.portal-skin .tile-link:hover { background: #e8eee3; }
.portal-skin .tile-link:focus-visible { outline: 2px solid #41610b; outline-offset: 2px; }
.portal-skin .tile-link .tile-icon { color: #41610b; }
.portal-skin .tile-link .tile-count { font-size: 22px; line-height: 1.1; }
.portal-skin .tile-link .tile-label { font-size: 13px; }
@media (max-width: 760px) {
    .portal-skin .tile-links { grid-template-columns: 1fr 1fr; }
}

/* PK-025 (M5): the order page's title, section bars and yellow banner share one 12px inner margin; no content or control is removed. */
.portal-skin .order-page > .page-title { margin-left: 12px; margin-right: 12px; margin-top: 12px; }
.portal-skin .order-page > .section > .section-title { margin-left: 12px; margin-right: 12px; }
.portal-skin .order-page > .unpaid-banner { margin-left: 12px; margin-right: 12px; }
/* NEW-BCK-0602 (PK-025): Full order details shares the M5 inset. */
.portal-skin .order-page > .full-details-heading { margin-left: 12px; margin-right: 12px; }
/* NEW-BCK-0602 (PK-021): the balance sentence sits on its own line inside the banner. */
.portal-skin .balance-tile .balance-note { flex-basis: 100%; order: 3; margin: 0; font-size: 13px; }

/* PK-026 (M6): the one Ask a question sits top-right beside the order status. */
.portal-skin .order-status-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.portal-skin .order-status-row .ticket-open { margin-left: auto; }

/* PK-028 (M8): a discreet neutral underlined link, not a button. */
.portal-skin .order-actions-line { margin: 4px 0 0; text-align: right; }
.portal-skin .cancel-order-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; background: none; border: 0;
    font: inherit; font-size: 13px; color: #53606b; text-decoration: underline; cursor: pointer; }
.portal-skin .cancel-order-link:hover { color: var(--ink); }
.portal-skin .cancel-order-link:focus-visible { outline: 2px solid #41610b; outline-offset: 2px; }

/* PK-027 / PK-028: the Ask a question form and the Cancel order confirmation are dialogs. */
.portal-skin .modal-backdrop { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
    padding: 8px; background: rgba(20, 24, 28, .55); }
.portal-skin .modal-box { box-sizing: border-box; width: min(32rem, 100%); max-height: calc(100vh - 16px); overflow-y: auto;
    padding: 16px; background: #fff; color: var(--ink); border-radius: 8px; box-shadow: 0 12px 32px rgba(0, 0, 0, .3); }
.portal-skin .modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.portal-skin .modal-head h2 { margin: 0; font-size: 18px; }
.portal-skin .modal-x { min-width: 44px; min-height: 44px; background: none; border: 0; font-size: 26px; line-height: 1; cursor: pointer; color: #53606b; }
.portal-skin .modal-x:focus-visible { outline: 2px solid #41610b; outline-offset: 2px; }
.portal-skin .modal-ref { margin: 4px 0 10px; }
.portal-skin .modal-box .field { margin: 0 0 12px; }
.portal-skin .modal-box .field label { display: block; margin-bottom: 4px; font-weight: bold; }
.portal-skin .modal-box textarea,
.portal-skin .modal-box select { box-sizing: border-box; width: 100%; max-width: 100%; }
.portal-skin .modal-box input[type="file"] { max-width: 100%; }
.portal-skin .modal-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.portal-skin .modal-actions .button { min-height: 44px; }
.portal-skin .notice-problem { border-color: #d9a09a; background: #f9e7e4; }

/* ======================================================================
   NEW-BCK-0585 — owner-approved R7 items M9 (PK-029, markup in the order form) and M10 (PK-030, Dashboard only).
   ====================================================================== */

/* PK-021 (M1), corrected by 0585: the SAME shared unpaid-balance banner everywhere it is drawn (the order page, the quote page,
   the Dashboard tile above) gets about 12px more inside — it had been left at the old .7rem/.9rem on every page but the Dashboard. */
.portal-skin .unpaid-banner { padding: calc(.7rem + 12px) calc(.9rem + 4px); }

/* PK-030 (M10): the Dashboard keeps every detail and section order; it just spends less height. 16px / 20px outer padding,
   12px between sections, 4-6px rounding, no font shrunk. Content-driven height: nothing here sets a height. */
.portal-skin .dashboard-body { padding: 16px 20px; }
.portal-skin .dashboard-body > * + * { margin-top: 12px; }
.portal-skin .dashboard-body > .balance-tile { margin-bottom: 0; padding: 16px; border-radius: 6px; }
.portal-skin .dashboard-body > .dashboard-welcome { padding-top: 0; }
.portal-skin .dashboard-body .compact-body,
.portal-skin .dashboard-welcome ~ .compact-body.compact-body { padding: 0; }
.portal-skin .dashboard-body .compact-body > * + * { margin-top: 12px; margin-bottom: 0; }
.portal-skin .dashboard-body .compact-body > * { margin-bottom: 0; }
.portal-skin .dashboard-body .compact-body h2,
.portal-skin .dashboard-body .section-heading h2 { margin: 0; }
.portal-skin .dashboard-body .portal-actions { margin: 0; }
.portal-skin .dashboard-body .compact-body p { margin: 4px 0; }

/* Welcome / Get in touch: the existing two columns, tighter; "Don't show this again" stays discreet but usable (44px target). */
.portal-skin .dashboard-body .welcome-compact { margin: 0; padding: 10px 14px; gap: 6px 20px; border-radius: 6px; }
.portal-skin .dashboard-body .welcome-compact > .text-button { font-size: 13px; color: #53606b; min-height: 44px; padding: 0 4px; }

/* Place a new order (primary) with Request a quote (secondary) beside it, Help & pricing alongside. */
.portal-skin .dashboard-body .dashboard-actions { gap: 8px 12px; }

/* The four main counts: label and count side by side, the four in ONE card. */
.portal-skin .dashboard-body .status-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0;
    border: 1px solid #d1d9cd; border-radius: 6px; background: #f2f5f1; overflow: hidden; }
.portal-skin .dashboard-body .status-counts > a { display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
    padding: 10px 14px; border: 0; border-left: 1px solid #d1d9cd; border-radius: 0; background: transparent; }
.portal-skin .dashboard-body .status-counts > a:first-child { border-left: 0; }
.portal-skin .dashboard-body .status-counts > a:hover { background: #e8eee3; }
.portal-skin .dashboard-body .status-counts > a strong { display: inline; margin: 0; font-size: 22px; line-height: 1.1; }
.portal-skin .dashboard-body .status-counts > a.needs-attention { background: var(--role-attention-bg); color: var(--role-attention-ink); }

/* Search orders: label, input and button on one desktop row. */
.portal-skin .dashboard-body .dashboard-search { flex-wrap: nowrap; align-items: center; margin: 0; padding: 8px 10px; border-radius: 6px; }
.portal-skin .dashboard-body .dashboard-search .search-field { flex: 1 1 auto; flex-direction: row; align-items: center; gap: 10px; font-size: 14px; }
.portal-skin .dashboard-body .dashboard-search .search-field span { white-space: nowrap; }

/* Recent orders: the reference and its status read first; dates and placement are quieter; View order is a secondary button. */
.portal-skin .dashboard-body .order-list { margin: 0; }
.portal-skin .dashboard-body .order-row { border-radius: 4px; padding: 8px 6px; }
.portal-skin .dashboard-body .order-title > a strong { font-size: 16px; color: #1c2a33; }
.portal-skin .dashboard-body .order-title small { color: #5b6770; }
.portal-skin .dashboard-body .order-state .status { font-weight: bold; }
/* NEW-BCK-0635 G2 (PK-069): View order is ONE style — the green button — on the Dashboard and on Orders; the white outlined
   Dashboard override that used to sit here is gone. */

.portal-skin .dashboard-body .tile-links { margin: 0; }
.portal-skin .dashboard-body .tile-link { border-radius: 6px; }
.portal-skin .dashboard-body .ticket-list { margin: 0; }
.portal-skin .dashboard-body .ticket-row { border-radius: 4px; padding: 8px 6px; }
.portal-skin .dashboard-body .support-line { margin: 0; }

@media (max-width: 760px) {
    .portal-skin .dashboard-body { padding: 16px 12px; }
    .portal-skin .dashboard-body .status-counts { grid-template-columns: 1fr 1fr; }
    .portal-skin .dashboard-body .status-counts > a:nth-child(3) { border-left: 0; }
    .portal-skin .dashboard-body .status-counts > a:nth-child(n+3) { border-top: 1px solid #d1d9cd; }
    .portal-skin .dashboard-body .dashboard-search { flex-wrap: wrap; }
    .portal-skin .dashboard-body .dashboard-search .search-field { flex: 1 1 100%; flex-direction: column; align-items: stretch; gap: 3px; }
}

/* NEW-BCK-0635 C2 (PK-062): the unpaid banner sits at ONE inset on every page — Account, quote, Request a quote and Help
   included — so its text never touches the page edge. A banner straight inside the page card is inset 12px; one inside an
   already-padded body (Help) takes that body's padding instead of adding a second inset. */
.portal-skin .unpaid-banner { box-sizing: border-box; margin: 12px 12px 1rem; }
.portal-skin .page > .unpaid-banner,
.portal-skin .page > .customer-form > .unpaid-banner,
.portal-skin .order-page > .unpaid-banner,
.portal-skin .qp .unpaid-banner { margin: 12px 12px 1rem; }
.portal-skin .compact-body > .unpaid-banner,
.portal-skin .body > .unpaid-banner { margin-left: 0; margin-right: 0; }
/* The Request a quote intro gets space under the tab bar. */
.portal-skin .customer-form .product-tabs + .form-note { margin-top: 14px; }
.portal-skin .customer-form .form-note { padding-left: 12px; padding-right: 12px; }
/* NEW-BCK-0635 A1/A2: the invoice page's Pay controls — the main button, then the smaller Pay all unpaid under it. */
.portal-skin .invoice-pay-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.portal-skin .invoice-pay-actions .pay-all-form { margin: 0; }
.portal-skin .pay-now-confirm { margin-top: 10px; }

/* NEW-BCK-0649 (owner approved 21 Oct 2026, PK-076..078): the order page from the Codex mock-ups — the facts header, three
   same-size picture panels, file rows, a label/value details block and one actions row. Same 12px inset as the rest of the page. */
.portal-skin .order-page > .order-back { margin: 12px 12px 8px; font-size: 13px; }
.portal-skin .order-page > .order-back a { color: #3a434a; text-decoration: none; }
.portal-skin .order-page > .order-back a:hover { text-decoration: underline; }
.portal-skin .order-facts { margin: 0 12px 12px; padding: 14px 16px; background: #363a40; color: #fff; }
.portal-skin .order-facts .fact-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; }
.portal-skin .order-facts h1 { margin: 0; font-size: 20px; line-height: 1.2; color: #fff; }
.portal-skin .order-facts .fact-item { font-size: 16px; font-weight: bold; }
.portal-skin .order-facts .status { font-size: 12px; font-weight: bold; }
.portal-skin .order-facts .fact-meta { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 8px; font-size: 14px; }
.portal-skin .order-page > .order-fact-notes { margin: 0 12px 12px; }
.portal-skin .order-page > .order-fact-notes p { margin: 0 0 4px; }
.portal-skin .order-page > .section.order-designs,
.portal-skin .order-page > .section.order-files,
.portal-skin .order-page > .section.order-details,
.portal-skin .order-page > .section.order-actions-section { margin: 0 12px; padding: 14px 0; }
.portal-skin .order-section-title { margin: 0 0 10px; font-size: 17px; color: var(--ink); }
.portal-skin .design-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.portal-skin .design-panel { display: flex; flex-direction: column; margin: 0; border: 1px solid #c9cdd0; background: #f6f7f7; min-width: 0; }
.portal-skin .design-panel .panel-title { padding: 8px 10px; background: #5b6068; color: #fff; font-size: 14px; font-weight: bold; }
.portal-skin .design-panel .panel-picture { box-sizing: border-box; display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
    padding: 8px; overflow: hidden; background: #eef0f1; color: #6b747a; text-align: center; font-size: 13px; }
.portal-skin .design-panel .panel-picture img { max-width: 100%; max-height: 100%; object-fit: contain; }
.portal-skin .design-panel .panel-caption { margin: 0; padding: 8px 10px; border-top: 1px solid #dde0e2; font-size: 12px; overflow-wrap: anywhere; }
.portal-skin .order-designs .compare-label { margin: 12px 0 4px; }
.portal-skin .order-files .file-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-size: 13px; }
.portal-skin .file-rows { border: 1px solid #c9cdd0; }
.portal-skin .file-rows + .file-rows { margin-top: 10px; }
.portal-skin .file-rows > p { margin: 0; padding: 8px 12px; }
.portal-skin .file-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border-top: 1px solid #dde0e2; }
.portal-skin .file-rows > .file-row:first-child { border-top: 0; }
.portal-skin .file-row .file-what { display: flex; flex-direction: column; min-width: 0; }
.portal-skin .file-row .file-label { font-weight: bold; }
.portal-skin .file-row .file-name { font-size: 12px; color: #5b6770; overflow-wrap: anywhere; }
.portal-skin .file-row .file-download { flex: 0 0 auto; min-width: 110px; text-align: center; }
.portal-skin .button.disabled { opacity: .55; cursor: not-allowed; background: #f2f3f3; color: #6b747a; border-color: #c9cdd0; }
.portal-skin .order-files .held-message { margin: 10px 0 0; }
.portal-skin .details-list { margin: 0; border-top: 1px solid #dde0e2; }
.portal-skin .details-list > div { display: grid; grid-template-columns: 190px minmax(0, 1fr); border-bottom: 1px solid #dde0e2; }
.portal-skin .details-list dt { margin: 0; padding: 10px 12px; background: #f2f4f2; color: #4a535a; }
.portal-skin .details-list dd { margin: 0; padding: 10px 12px; overflow-wrap: anywhere; }
.portal-skin .details-list dd.verbatim { white-space: pre-wrap; }
.portal-skin .action-row { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.portal-skin .action-row .action-main { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.portal-skin .action-row .button,
.portal-skin .action-row .ticket-open .button.small { font-size: 13px; padding: 9px 14px; }
.portal-skin .action-row .action-pay .notice { margin: 0; max-width: 32rem; }
.portal-skin .order-actions-section .order-actions-line { text-align: left; }
@media (max-width: 760px) {
    /* NEW-BCK-0650: the key facts on a phone are TWO lines — ID · item · status, then placed · turnaround · price. */
    .portal-skin .order-facts { padding: 10px 12px; }
    .portal-skin .order-facts .fact-line { flex-wrap: nowrap; gap: 8px; }
    .portal-skin .order-facts h1 { flex: 0 0 auto; font-size: 15px; }
    .portal-skin .order-facts .fact-item { flex: 0 1 auto; min-width: 3em; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    /* the long red "Ready — files unlock when the invoice is paid" wraps inside its own cell, never past the page edge */
    .portal-skin .order-facts .status { flex: 1 1 9em; min-width: 0; font-size: 11px; padding: 2px 6px; white-space: normal; overflow-wrap: anywhere; }
    .portal-skin .order-facts .fact-meta { flex-wrap: nowrap; gap: 10px; margin-top: 6px; font-size: 12px; white-space: nowrap; overflow: hidden; }
    .portal-skin .design-panels { grid-template-columns: 1fr; }
    .portal-skin .order-files .file-head { flex-direction: column; align-items: stretch; }
    .portal-skin .file-row { flex-wrap: wrap; }
    .portal-skin .file-row .file-download { width: 100%; }
    .portal-skin .details-list > div { grid-template-columns: 1fr; }
    .portal-skin .details-list dt { padding-bottom: 4px; }
    .portal-skin .action-row,
    .portal-skin .action-row .action-main { flex-direction: column; align-items: stretch; }
    .portal-skin .action-row .button { width: 100%; box-sizing: border-box; text-align: center; }
    .portal-skin .action-row .ticket-open .button { width: 100%; }
}

/* NEW-BCK-0649 (PK-080): the Orders table and the Dashboard's recent orders — five fixed columns; a card per row on a phone. */
.portal-skin .order-table-wrap { margin: 10px 0; }
.portal-skin .order-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.portal-skin .order-table thead th { padding: 10px 12px; background: #5b6068; color: #fff; font-size: 13px; font-weight: bold; text-align: left; }
.portal-skin .order-table th.amount,
.portal-skin .order-table td.amount { text-align: right; white-space: nowrap; }
.portal-skin .order-table tbody td { padding: 12px; border-bottom: 1px solid #dde0e2; vertical-align: top; }
.portal-skin .order-table tbody tr:nth-child(even) td { background: #f6f7f7; }
.portal-skin .order-table tbody tr:hover td { background: #f4f7eb; }
.portal-skin .order-table .order-id-link { font-weight: bold; color: #24506b; text-decoration: underline; }
.portal-skin .order-table .legacy-order-thumb { width: 56px; height: 56px; margin: 0 0 4px; border: 1px solid #aeb3b6; overflow: hidden; background: #f1f2f3; }
.portal-skin .order-table .legacy-order-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.portal-skin .order-table .row-note,
.portal-skin .order-table .row-time { display: block; margin-top: 3px; font-size: 12px; color: #5b6770; }
.portal-skin .order-table .status { font-weight: bold; }
.portal-skin .order-table td .button { margin-left: 6px; }
.portal-skin .order-table .tag { margin-left: 4px; }
@media (max-width: 760px) {
    .portal-skin .order-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .portal-skin .order-table,
    .portal-skin .order-table tbody,
    .portal-skin .order-table tr,
    .portal-skin .order-table td { display: block; width: 100%; box-sizing: border-box; }
    .portal-skin .order-table tbody tr { padding: 8px 0; border-bottom: 1px solid #c9cdd0; }
    .portal-skin .order-table tbody td { position: relative; padding: 4px 6px 4px 88px; border: 0; background: transparent !important; }
    .portal-skin .order-table tbody td::before { content: attr(data-label); position: absolute; left: 6px; top: 5px; color: #5b6770; font-size: 12px; font-weight: bold; }
    .portal-skin .order-table td.amount { text-align: left; }
    .portal-skin .order-table .legacy-order-thumb { width: 48px; height: 48px; }
    .portal-skin .order-table td .button { margin: 6px 0 0; }
}

/* NEW-BCK-0720 items 79/80: one badge wording and a clearly secondary bulk payment. */
.portal-skin .invoice-state .status,
.portal-skin [data-invoice-page] .status { text-transform: none; }
.portal-skin .invoice-pay-all-secondary { border-top: 1px solid #c8cccf; padding-top: 12px; margin-top: 8px; width: 100%; }
.portal-skin .invoice-pay-all-secondary p { margin: 0 0 8px; }

.portal-skin .invoice-pay-all-secondary .button.secondary { background: transparent; color: var(--slate2); border: 1px solid #7b8790; box-shadow: none; }

/* NEW-BCK-0724 PM-12 — the card and PayPal buttons sit side by side on every width, a phone included: a two-column grid,
   never a wrap. One button alone takes the whole row. */
.portal-skin .pay-pair,
.pay-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 8px; align-items: stretch; margin: 8px 0; }
.pay-pair > .button { width: 100%; min-width: 0; justify-content: center; text-align: center; white-space: normal; margin: 0; }
