/* Phenix Connect: the customer's site. Loaded after theme.css, app.css and phenix.css, whose tokens and components
   it uses as they are (the ink, the engraved rings, the ember, cards, tiles, the feed, the ticket, the sign-in pages).
   This file adds only what a customer's site needs that the staff screens do not have: its shell, native buttons and
   fields (the staff screens take theirs from a component library), the order tracker, the upload tile, the steps of
   getting on board, and the bar of five places on a phone. Every colour is a token: a client's two colours recolour
   all of it. */

/* ---------- Shell: an ink rail of five places, the canvas beside it ---------- */
.cx-shell { display: flex; min-height: 100vh; min-height: 100dvh; align-items: stretch; }
.cx-shell > aside[data-side] { flex: 0 0 272px; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; padding: 22px 16px 16px; gap: 22px; overflow: hidden; }
.cx-shell > main { flex: 1 1 auto; min-width: 0; }
.cx-shell [data-sidebar="header"] { display: grid; gap: 16px; }
.cx-shell [data-sidebar="content"] { display: grid; gap: 4px; align-content: start; flex: 1 1 auto; }
.cx-shell [data-sidebar="footer"] { display: grid; gap: 10px; }
.cx-shell [data-sidebar="group-label"] { font-size: 11px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; padding: 4px 12px 6px; }
.cx-shell [data-sidebar="menu-button"] { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: 14.5px; font-weight: 500; text-decoration: none; }
.cx-shell [data-sidebar="menu-button"] .cx-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 6px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: #1B1203; background: var(--weo-ember); }
.cx-client { display: flex; align-items: center; gap: 12px; padding: 0 4px; color: var(--weo-on-ink); }
.cx-client-mark { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 18px; letter-spacing: -.02em; color: #fff; position: relative;
  background: linear-gradient(135deg, color-mix(in srgb, var(--weo-brand) 70%, #fff), var(--weo-brand) 55%, color-mix(in srgb, var(--weo-brand) 62%, #000)); box-shadow: 0 8px 18px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .28); }
.cx-client-mark::after { content: ""; position: absolute; right: 7px; top: 7px; width: 6px; height: 6px; border-radius: 50%; background: var(--weo-ember); }
.cx-client-name { font-weight: 700; font-size: 17px; letter-spacing: -.03em; line-height: 1.15; }
.cx-client-sub { font-size: 12px; color: var(--weo-on-ink-2); margin-top: 2px; }
.weo-phenix .cx-shell [data-sidebar="footer"] .weo-context-card .weo-context-sub { color: var(--weo-on-ink-2); }
.cx-powered { font-size: 11.5px; color: var(--weo-on-ink-3); padding: 0 4px; display: flex; align-items: center; gap: 6px; }

/* The top bar keeps Phenix's glass; here it carries the page's name, notices, the theme and the person. */
.cx-topbar-brand { display: none; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.03em; }
.cx-topbar-brand .cx-client-mark { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--weo-brand) 70%, transparent); }
.cx-user-name { display: grid; line-height: 1.2; padding-right: 8px; min-width: 0; }
.cx-user-name b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-user-name span { font-size: 11.5px; color: var(--weo-muted); white-space: nowrap; }
.cx-bell { position: relative; }
.cx-bell i { position: absolute; right: 10px; top: 10px; width: 9px; height: 9px; border-radius: 50%; background: var(--weo-ember); box-shadow: 0 0 0 2px var(--weo-card); }

/* ---------- Buttons, as Phenix draws them ---------- */
.cx-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; box-sizing: border-box; border-radius: 12px; border: 1px solid var(--weo-line-strong); background: var(--weo-card);
  color: var(--weo-text); font: inherit; font-size: 14px; font-weight: 550; text-decoration: none; cursor: pointer; white-space: nowrap; transition: border-color .15s, color .15s, background .15s, box-shadow .15s, transform .1s, filter .15s; }
.cx-btn:hover { border-color: color-mix(in srgb, var(--weo-brand) 45%, var(--weo-line-strong)); color: var(--weo-primary-text); }
.cx-btn:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.cx-btn:active { transform: translateY(1px); }
.cx-btn-primary { border-color: transparent; color: #fff;
  background-image: linear-gradient(180deg, color-mix(in srgb, var(--weo-brand) 86%, #fff) 0%, var(--weo-brand) 48%, color-mix(in srgb, var(--weo-brand) 86%, #000) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .24), 0 1px 2px color-mix(in srgb, var(--weo-ink) 40%, transparent), 0 10px 22px -10px color-mix(in srgb, var(--weo-brand) 85%, transparent); }
.cx-btn-primary:hover { color: #fff; border-color: transparent; filter: brightness(1.07); }
.cx-btn-sm { height: 36px; padding: 0 13px; border-radius: 10px; font-size: 13px; }
.cx-btn-lg { height: 50px; padding: 0 24px; border-radius: 14px; font-size: 15px; }
.cx-btn-quiet { border-color: transparent; background: transparent; color: var(--weo-primary-text); padding: 0 10px; }
.cx-btn-quiet:hover { background: var(--weo-tint); border-color: transparent; }
/* On ink (the greeting, the ticket): white for the one thing to do, glass for the rest. */
:is(.weo-hello, .weo-ticket, .cx-ink) .cx-btn { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: #fff; backdrop-filter: blur(6px); box-shadow: none; }
:is(.weo-hello, .weo-ticket, .cx-ink) .cx-btn:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .5); color: #fff; }
:is(.weo-hello, .weo-ticket, .cx-ink) .cx-btn-primary { background: #fff; background-image: none; border-color: transparent; color: color-mix(in srgb, var(--weo-brand) 80%, #000); box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55), inset 0 -2px 0 rgba(0, 0, 0, .06); filter: none; }
:is(.weo-hello, .weo-ticket, .cx-ink) .cx-btn-primary:hover { background: #fff; color: color-mix(in srgb, var(--weo-brand) 80%, #000); transform: translateY(-1px); }

/* ---------- Fields ---------- */
.cx-field { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--weo-label); }
.cx-field .weo-input { padding-left: 16px; height: 48px; background: var(--weo-card); border-color: var(--weo-line-strong); }
.cx-field .weo-input:focus { border-color: var(--weo-primary); }
.cx-field small { font-weight: 450; font-size: 12.5px; color: var(--weo-muted); display: flex; align-items: center; gap: 6px; }
.cx-field small.is-good { color: var(--weo-success); }
.cx-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px 20px; }

/* ---------- Home ---------- */
/* The greeting carries the customer's own figures in Phenix's glass tiles; the first is the one that matters. */
.weo-phenix .weo-hello .cx-hello-figure { font-size: clamp(34px, 4.2vw, 46px); font-weight: 650; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px color-mix(in srgb, var(--weo-brand) 60%, transparent); }
.weo-phenix .weo-hello .cx-hello-figure small { font-size: .55em; font-weight: 600; color: var(--weo-on-ink-2); }
.cx-hello-trust { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 500; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: rgba(255, 255, 255, .9); margin-bottom: 14px; }
.weo-phenix .weo-hello-stats.cx-two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 720px) {
  /* On a phone the one figure takes the width, the other two sit side by side, and the two buttons share a row. */
  .weo-phenix .weo-hello-stats.cx-two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
  .weo-phenix .weo-hello-stats.cx-two > :first-child { grid-column: 1 / -1; }
  .weo-phenix .weo-hello-stats.cx-two .weo-hello-stat { padding: 14px 16px; }
  .weo-hello .weo-page-actions { margin-left: 0; width: 100%; flex-wrap: nowrap; }
  .weo-hello .weo-page-actions .cx-btn { flex: 1 1 0; padding: 0 12px; }
}

/* An order on its way: four stations, the ember showing how far it has come. */
.cx-track { display: grid; grid-template-columns: repeat(var(--stations, 4), minmax(0, 1fr)); margin: 6px 0 2px; }
.cx-track li { list-style: none; position: relative; display: grid; justify-items: center; align-content: start; gap: 6px; font-size: 12px; font-weight: 500; color: var(--weo-muted); text-align: center; }
.cx-track li::before { content: ""; position: absolute; top: 13px; right: 50%; width: 100%; height: 3px; border-radius: 3px; background: var(--weo-line-strong); z-index: 0; }
.cx-track li:first-child::before { display: none; }
.cx-track li > span { position: relative; z-index: 1; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--weo-card); border: 2px solid var(--weo-line-strong); color: var(--weo-muted); box-sizing: border-box; }
.cx-track li.is-done { color: var(--weo-text); }
.cx-track li.is-done::before, .cx-track li.is-now::before { background: linear-gradient(90deg, var(--weo-brand), var(--weo-violet)); }
.cx-track li.is-done > span { border-color: transparent; color: #fff; background: linear-gradient(135deg, var(--weo-brand), var(--weo-violet)); box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--weo-brand) 70%, transparent); }
.cx-track li.is-now { color: var(--weo-text); font-weight: 650; }
.cx-track li.is-now > span { border-color: var(--weo-ember); color: color-mix(in srgb, var(--weo-accent) 80%, #000); background: color-mix(in srgb, var(--weo-accent) 16%, var(--weo-card)); box-shadow: 0 0 0 5px color-mix(in srgb, var(--weo-accent) 18%, transparent); }
.weo-ticket .cx-track li, .cx-ink .cx-track li { color: var(--weo-on-ink-3); }
.weo-ticket .cx-track li.is-done, .weo-ticket .cx-track li.is-now, .cx-ink .cx-track li.is-done, .cx-ink .cx-track li.is-now { color: #fff; }
.weo-ticket .cx-track li::before, .cx-ink .cx-track li::before { background: rgba(255, 255, 255, .22); }
.weo-ticket .cx-track li > span, .cx-ink .cx-track li > span { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .3); color: var(--weo-on-ink-2); }
.weo-ticket .cx-track li.is-done::before, .weo-ticket .cx-track li.is-now::before, .cx-ink .cx-track li.is-done::before, .cx-ink .cx-track li.is-now::before { background: var(--weo-ember); }
.weo-ticket .cx-track li.is-done > span, .cx-ink .cx-track li.is-done > span { background: #fff; color: color-mix(in srgb, var(--weo-brand) 80%, #000); border-color: transparent; box-shadow: none; }
.weo-ticket .cx-track li.is-now > span, .cx-ink .cx-track li.is-now > span { background: var(--weo-ember); border-color: transparent; color: #1B1203; box-shadow: 0 0 0 5px color-mix(in srgb, var(--weo-ember) 30%, transparent); }

/* Rows that ask something of the customer, or say something is in order: a hue tile, two lines, a way on. */
.cx-rows { display: grid; }
.cx-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 0; color: inherit; text-decoration: none; }
.cx-row + .cx-row { border-top: 1px solid var(--weo-line); }
.cx-row-icon { --hue: var(--weo-hue-1); width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none; background: color-mix(in srgb, var(--hue) 12%, var(--weo-card)); color: color-mix(in srgb, var(--hue) 82%, var(--weo-text)); transition: background .15s, color .15s, transform .15s; }
.cx-row-icon.is-accent { --hue: var(--weo-hue-2); } .cx-row-icon.is-green { --hue: var(--weo-hue-3); } .cx-row-icon.is-violet { --hue: var(--weo-hue-4); }
a.cx-row:hover .cx-row-icon { background: var(--hue); color: #fff; transform: translateY(-1px); }
.cx-row-title { font-size: 14px; font-weight: 600; line-height: 1.35; }
.cx-row-sub { font-size: 12.5px; color: var(--weo-muted); line-height: 1.45; margin-top: 1px; }
.cx-row > svg:last-child { color: var(--weo-muted); }
.cx-eyebrow { font-size: 11.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--weo-brand) 26%, var(--weo-muted)); }

/* Phenix's feed row, a size up for a customer's list, with what was bought as its mark. */
.cx-feed .weo-feed-row { padding: 13px 0; gap: 14px; }
.cx-feed .weo-feed-mark { width: 42px; height: 42px; border-radius: 13px; font-size: 11.5px; letter-spacing: .02em; }
.cx-feed .weo-feed-title { font-size: 14px; }
.cx-feed .weo-feed-amount { font-size: 14px; }
.cx-feed .weo-feed-amount small { margin-top: 3px; }
.weo-phenix .weo-feed-mark.is-in { background: linear-gradient(135deg, var(--weo-hue-3), color-mix(in srgb, var(--weo-hue-3) 60%, var(--weo-brand))); }

/* A ring that fills: how much of the customer's record is in order. */
.cx-ring { --p: 100; width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex: none; position: relative;
  background: conic-gradient(var(--weo-hue-3) calc(var(--p) * 1%), color-mix(in srgb, var(--weo-hue-3) 14%, var(--weo-subtle)) 0); }
.cx-ring::before { content: ""; position: absolute; inset: 11px; border-radius: 50%; background: var(--weo-card); }
.cx-ring > div { position: relative; text-align: center; line-height: 1.15; }
.cx-ring b { display: block; font-size: 28px; font-weight: 650; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.cx-ring span { font-size: 11.5px; color: var(--weo-muted); }

/* ---------- Tables a customer reads ---------- */
.cx-table-wrap { overflow-x: auto; }
.weo-phenix .cx-statement th, .weo-phenix .cx-statement td { padding: 14px 16px; font-size: 13.5px; }
.weo-phenix .cx-statement th:first-child, .weo-phenix .cx-statement td:first-child { padding-left: 24px; }
.weo-phenix .cx-statement th:last-child, .weo-phenix .cx-statement td:last-child { padding-right: 24px; }
.cx-statement td b { font-weight: 600; }
.cx-statement td small { display: block; font-size: 12px; color: var(--weo-muted); margin-top: 2px; }
.cx-statement .is-forward td { color: var(--weo-muted); background: color-mix(in srgb, var(--weo-brand) 2.5%, transparent); }
.cx-statement .is-paid { color: var(--weo-success); font-weight: 600; }
.cx-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.cx-period { display: inline-flex; align-items: center; gap: 9px; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--weo-line-strong); background: var(--weo-card); font: inherit; font-size: 13.5px; font-weight: 500; color: var(--weo-text); cursor: pointer; }
.cx-period svg { color: var(--weo-primary-text); }

/* The ticket's lines, as Phenix's summary prints them. */
.cx-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 9px 16px; margin: 0; font-size: 13.5px; }
.cx-lines dt { color: var(--weo-muted); }
.cx-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; }
.cx-lines .is-total { grid-column: 1 / -1; display: flex; justify-content: space-between; gap: 16px; padding-top: 12px; margin-top: 3px; border-top: 1px solid var(--weo-line-strong); font-size: 15px; font-weight: 650; }
.weo-phenix .weo-ticket .cx-lines dt { color: var(--weo-on-ink-2); } .weo-phenix .weo-ticket .cx-lines dd { color: #fff; }
.weo-phenix .weo-ticket .cx-lines .is-total { border-top-color: rgba(255, 255, 255, .18); color: #fff; }
.cx-papers { display: grid; }
.cx-paper { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; min-height: 60px; padding: 8px 0; color: inherit; text-decoration: none; }
.cx-paper + .cx-paper { border-top: 1px solid var(--weo-line); }
.cx-paper-type { width: 40px; height: 46px; border-radius: 8px 12px 8px 8px; display: grid; place-items: end center; padding-bottom: 6px; box-sizing: border-box; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: #fff; background: linear-gradient(160deg, color-mix(in srgb, var(--weo-brand) 86%, #fff), var(--weo-brand) 55%, var(--weo-violet)); box-shadow: 0 6px 12px -6px color-mix(in srgb, var(--weo-brand) 70%, transparent); }
.cx-paper .cx-btn { border-radius: 10px; }

/* ---------- Getting on board ---------- */
.cx-board { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(340px, 34%) minmax(0, 1fr); background: var(--weo-bg); }
.cx-board > .weo-auth-brand { gap: 26px; padding: 36px 40px; position: sticky; top: 0; height: 100vh; height: 100dvh; box-sizing: border-box; }
.cx-board .weo-auth-pitch { margin-top: 8px; }
.cx-board .weo-auth-pitch h2 { font-size: clamp(26px, 2.4vw, 34px); margin: 16px 0 10px; }
.cx-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.cx-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; color: rgba(255, 255, 255, .62); }
.cx-steps li > span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 650; border: 1px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .06); }
.cx-steps b { display: block; font-size: 14px; font-weight: 600; color: inherit; }
.cx-steps small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.cx-steps li.is-done { color: rgba(255, 255, 255, .92); }
.cx-steps li.is-done > span { background: #fff; color: color-mix(in srgb, var(--weo-brand) 80%, #000); border-color: transparent; }
.cx-steps li.is-now { color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .19), rgba(255, 255, 255, .07)); border-color: rgba(255, 255, 255, .14); box-shadow: inset 3px 0 0 var(--weo-ember), 0 10px 24px -14px rgba(0, 0, 0, .6); }
.cx-steps li.is-now > span { background: var(--weo-ember); color: #1B1203; border-color: transparent; box-shadow: 0 0 0 5px color-mix(in srgb, var(--weo-ember) 28%, transparent); }
.cx-steps li.is-now small { color: rgba(255, 255, 255, .78); }
.cx-progress { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.cx-progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fff, var(--weo-ember)); }
.cx-board-main { padding: 28px clamp(20px, 4vw, 56px) 48px; box-sizing: border-box;
  background: radial-gradient(760px 380px at 100% -60px, color-mix(in srgb, var(--weo-brand) 13%, transparent), transparent 72%), radial-gradient(420px 300px at 0% 30%, color-mix(in srgb, var(--weo-violet) 8%, transparent), transparent 72%), var(--weo-bg); }
.cx-board-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 760px; margin: 0 auto 26px; font-size: 13px; color: var(--weo-muted); }
.cx-board-bar span { display: inline-flex; align-items: center; gap: 7px; }
.cx-board-card { max-width: 760px; margin: 0 auto; box-sizing: border-box; padding: clamp(22px, 3vw, 36px); display: grid; gap: 24px; }
.cx-board-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: start; }
.cx-board-head .weo-step-no { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; font-size: 17px; font-weight: 700; }
.cx-board-head h1 { margin: 0; font-size: 26px; font-weight: 650; letter-spacing: -.03em; line-height: 1.15; color: color-mix(in srgb, var(--weo-brand) 32%, var(--weo-text)); }
html.dark .cx-board-head h1 { color: var(--weo-text); }
.cx-board-head p { margin: 8px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--weo-muted); max-width: 60ch; }
.cx-upload { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 18px; border-radius: 16px; border: 1.5px dashed color-mix(in srgb, var(--weo-brand) 34%, var(--weo-line-strong)); background: color-mix(in srgb, var(--weo-brand) 4%, var(--weo-card)); }
.cx-upload-thumb { width: 86px; height: 56px; border-radius: 10px; position: relative; overflow: hidden; background: linear-gradient(135deg, color-mix(in srgb, var(--weo-brand) 22%, var(--weo-card)), color-mix(in srgb, var(--weo-violet) 18%, var(--weo-card))); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 22%, transparent); }
.cx-upload-thumb::before { content: ""; position: absolute; left: 9px; top: 10px; width: 20px; height: 24px; border-radius: 4px; background: color-mix(in srgb, var(--weo-brand) 40%, var(--weo-card)); }
.cx-upload-thumb::after { content: ""; position: absolute; left: 37px; right: 9px; top: 14px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--weo-brand) 36%, var(--weo-card)); box-shadow: 0 10px 0 color-mix(in srgb, var(--weo-brand) 24%, var(--weo-card)), 0 20px 0 color-mix(in srgb, var(--weo-brand) 24%, var(--weo-card)); }
.cx-read { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; background: var(--weo-success-bg); color: var(--weo-success); }
.cx-board-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 22px; border-top: 1px solid var(--weo-line); }
.cx-help { max-width: 760px; margin: 18px auto 0; box-sizing: border-box; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; }

/* ---------- Sign-in: Phenix's own pages, in the customer's words ---------- */
.cx-auth-code { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; }
.cx-auth-code input { height: 56px; text-align: center; padding: 0; font-size: 22px; font-weight: 650; font-variant-numeric: tabular-nums; background: var(--weo-subtle); border: 1px solid var(--weo-line); border-radius: 14px; color: var(--weo-text); font-family: inherit; width: 100%; box-sizing: border-box; }
.cx-auth-code input:focus { outline: none; background: var(--weo-card); border-color: var(--weo-primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--weo-primary) 16%, transparent); }
.cx-auth-code input.is-filled { background: var(--weo-card); border-color: color-mix(in srgb, var(--weo-brand) 40%, var(--weo-line-strong)); }
.cx-assure { display: grid; gap: 10px; margin-top: 22px; padding: 14px 16px; border-radius: 14px; background: var(--weo-subtle); font-size: 12.5px; line-height: 1.5; color: var(--weo-muted); }
.cx-assure div { display: flex; gap: 10px; align-items: flex-start; }
.cx-assure svg { flex: none; margin-top: 1px; color: var(--weo-primary-text); }
.weo-auth-orbit.cx-orbit { margin: auto 0 0 auto; }

/* ---------- A phone: the five places become a bar at the foot ---------- */
.cx-tabs { display: none; }
@media (max-width: 960px) {
  .cx-shell > aside[data-side] { display: none; }
  .cx-topbar-brand { display: flex; }
  .weo-topbar { padding: 0 16px; height: 64px; }
  .weo-topbar .weo-crumbs, .cx-user-name { display: none; }
  .weo-page { padding: 4px 16px 108px; }
  .weo-grid > [class*="weo-span-"] { grid-column: 1 / -1; }
  .cx-tabs { position: fixed; z-index: 30; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px; border-radius: 22px; color: var(--weo-on-ink);
    background: radial-gradient(90% 160% at 0% 0%, color-mix(in srgb, var(--weo-brand) 78%, transparent), transparent 72%), radial-gradient(70% 140% at 100% 100%, color-mix(in srgb, var(--weo-accent) 26%, transparent), transparent 72%), var(--weo-ink);
    box-shadow: 0 18px 40px -14px color-mix(in srgb, var(--weo-ink) 90%, transparent), inset 0 1px 0 rgba(255, 255, 255, .14); }
  .cx-tabs a { min-height: 52px; display: grid; justify-items: center; align-content: center; gap: 3px; border-radius: 16px; font-size: 10.5px; font-weight: 550; color: rgba(255, 255, 255, .66); text-decoration: none; }
  .cx-tabs a[aria-current="page"] { color: #fff; background: linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .07)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
  .cx-tabs a[aria-current="page"] svg { color: var(--weo-ember); }
  .cx-board { grid-template-columns: minmax(0, 1fr); }
  .cx-board > .weo-auth-brand { position: relative; height: auto; padding: 22px 20px 24px; gap: 16px; }
  .cx-board .weo-auth-pitch p, .cx-board .cx-steps li:not(.is-now) small { display: none; }
  .cx-board .cx-steps { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; }
  .cx-board .cx-steps li { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 8px 4px; text-align: center; }
  .cx-board .cx-steps li b, .cx-board .cx-steps li small { display: none; }
  .cx-board .cx-steps li.is-now { box-shadow: inset 0 -3px 0 var(--weo-ember); }
  .cx-upload, .cx-help { grid-template-columns: auto minmax(0, 1fr); }
  .cx-upload > :last-child, .cx-help > :last-child { grid-column: 1 / -1; }
  .weo-auth-orbit.cx-orbit { display: none; }
}
@media (max-width: 560px) {
  .cx-track li { font-size: 11px; }
  .cx-row:has(> .cx-btn) { grid-template-columns: auto minmax(0, 1fr); }
  .cx-row > .cx-btn { grid-column: 1 / -1; }
  .cx-tabs a { font-size: 10px; letter-spacing: -.01em; }
  .cx-auth-code { gap: 7px; }
  .cx-board-foot .cx-btn { flex: 1 1 100%; }
}

/* ---------- Edges of a phone ---------- */
.weo-topbar { top: env(safe-area-inset-top, 0px); }
@media (max-width: 960px) { .cx-tabs { bottom: calc(10px + env(safe-area-inset-bottom, 0px)); } }
.cx-shell > aside[data-side] { height: auto; min-height: 100vh; align-self: stretch; }
.cx-shell > aside[data-side] > [data-sidebar="footer"] { position: sticky; bottom: 16px; }
@media (prefers-reduced-motion: reduce) { .weo-auth-chip, .weo-page, .weo-auth-card { animation: none !important; } }

/* ---------- A place with nothing in it yet, and plain pages outside the shell ---------- */
.cx-empty { display: grid; justify-items: center; text-align: center; gap: 10px; padding: clamp(32px, 6vw, 64px) 24px; }
.cx-empty h1, .cx-empty h2 { margin: 6px 0 0; font-size: 18px; font-weight: 650; letter-spacing: -.02em; }
.cx-empty p { margin: 0; max-width: 52ch; font-size: 14px; line-height: 1.6; color: var(--weo-muted); }
.cx-empty .cx-btn { margin-top: 10px; }
.cx-empty-mark { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; color: var(--weo-primary-text); background: color-mix(in srgb, var(--weo-brand) 9%, var(--weo-card));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-brand) 16%, transparent), 0 0 0 7px color-mix(in srgb, var(--weo-brand) 5%, transparent), 0 0 0 15px color-mix(in srgb, var(--weo-brand) 2.5%, transparent); margin-bottom: 12px; }
.cx-plain { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; box-sizing: border-box;
  background: radial-gradient(760px 380px at 100% -60px, color-mix(in srgb, var(--weo-brand) 13%, transparent), transparent 72%), var(--weo-bg); }
.cx-plain > .weo-card { width: min(520px, 100%); box-sizing: border-box; }
.cx-skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; border-radius: 10px; background: var(--weo-card); color: var(--weo-text); box-shadow: var(--weo-overlay-shadow); font-size: 14px; font-weight: 600; }
.cx-skip:focus { top: 12px; }
body { margin: 0; font-family: var(--weo-font); font-size: 14px; color: var(--weo-text); background: var(--weo-bg); }
@media (max-width: 960px) { .weo-page > .weo-page-head:first-child { margin-top: 14px; } }

/* ---------- Sign-in, profile and its forms (task 8.3) ---------- */
.cx-strong { color: var(--weo-text); }
.cx-code { padding-left: 16px; text-align: center; height: 56px; font-size: 22px; font-weight: 650; letter-spacing: .42em; font-variant-numeric: tabular-nums; }
.cx-code::placeholder { letter-spacing: .3em; font-weight: 400; }
.cx-inline-form { display: inline-flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; margin: 0; }
.cx-signout { margin: 0; display: flex; }
.cx-avatar { width: 32px; height: 32px; font-size: 12px; }
a.cx-user { text-decoration: none; color: inherit; }
.cx-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.cx-cols > .cx-wide { grid-column: 1 / -1; }
.cx-narrow { max-width: 640px; }
.cx-pad { padding: 6px 24px 18px; }
.cx-pad-x { margin-left: 24px; margin-right: 24px; }
.cx-form { display: grid; gap: 16px; margin: 0; padding-top: 18px; }
.cx-form-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.cx-form-foot small, .cx-foot-note { font-size: 12.5px; line-height: 1.5; color: var(--weo-muted); }
.cx-foot-note { margin: 0; padding: 0 24px 18px; }
.cx-head-form { margin: 0 0 0 auto; }
.weo-card-head > .weo-badge { margin-left: auto; }
.cx-flash { margin: 0 0 18px; }
.cx-flat { margin-top: 0; }
.cx-field small.cx-bad { color: var(--weo-danger); }
.cx-lines.cx-pad { padding-top: 14px; }
.cx-setup { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 22px; align-items: center; padding-top: 22px; }
/* A square code is read by a camera: dark on white in both themes, with a quiet edge around it. */
.cx-qr { display: grid; place-items: center; padding: 14px; border-radius: 16px; background: #fff; color: #0b1220; border: 1px solid var(--weo-line); line-height: 0; }
.cx-key { display: block; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: var(--weo-subtle); border: 1px solid var(--weo-line); font-size: 14px; letter-spacing: .08em; word-break: break-word; user-select: all; }
@media (max-width: 960px) {
  .cx-cols { grid-template-columns: minmax(0, 1fr); }
  .cx-user .cx-user-name { display: none; }
  .cx-pad { padding-left: 16px; padding-right: 16px; }
  .cx-foot-note { padding-left: 16px; padding-right: 16px; }
  .cx-setup { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .cx-rows .cx-row { grid-template-columns: auto minmax(0, 1fr); }
  .cx-rows .cx-row > :nth-child(3) { grid-column: 2; justify-self: start; }
}
/* On a phone the light or dark switch sits in the band at the top, clear of the form (Phenix pins it to the foot,
   where this page's longer text would run under it). */
@media (max-width: 960px) {
  .weo-auth { position: relative; }
  .weo-auth > .weo-auth-main { position: static; }
  .weo-auth .weo-auth-corner { position: absolute; top: 16px; right: 16px; bottom: auto; }
  .weo-auth .weo-auth-brand-top { padding-right: 56px; }
}
.cx-hint { font-size: 12.5px; color: var(--weo-muted); }

/* ---------- Getting on board (task 8.6) ---------- */
.cx-steps a { color: inherit; text-decoration: none; }
.cx-steps a:hover b { text-decoration: underline; }
.cx-progress-words { display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(255, 255, 255, .78); margin-bottom: 8px; }
.cx-board-tools { display: inline-flex; gap: 8px; align-items: center; }
.cx-board-card .cx-form { padding-top: 22px; }
.cx-board-card .cx-rows { margin-top: 14px; }
.cx-board-card select.weo-input { appearance: auto; padding-right: 10px; }
.cx-asked { margin-bottom: 20px; }
.cx-line { display: block; }
.cx-mono { letter-spacing: .06em; font-variant-numeric: tabular-nums; font-weight: 600; }
.cx-group { border: 1px solid var(--weo-line); border-radius: 14px; padding: 14px 16px 16px; margin: 0; }
.cx-group legend { padding: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--weo-muted); }
.cx-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; }
.cx-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--weo-primary); flex: none; }
/* A Forex Correspondent's rows (outlets, people, staff): what an outlet will do, and taking a row off. */
.cx-facilities { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px dashed var(--weo-line); }
.cx-facilities-head { font-size: 13px; font-weight: 600; color: var(--weo-muted); }
.cx-take-off { margin-top: 14px; }
label.cx-take-off { font-size: 13.5px; color: var(--weo-muted); }
.cx-notice { display: grid; gap: 8px; padding: 14px 16px; border: 1px solid var(--weo-line); border-radius: 14px; background: var(--weo-subtle); }
.cx-notice-text { font-size: 14px; line-height: 1.55; white-space: pre-wrap; }
.cx-flush { padding-left: 0; padding-right: 0; }
.cx-upload { margin-top: 14px; }
.cx-upload-what { min-width: 0; }
.cx-upload-what .cx-row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cx-upload-thumb.is-empty { opacity: .45; }
.cx-upload-form { margin: 0; display: inline-flex; gap: 8px; align-items: center; }
.cx-file { position: relative; overflow: hidden; cursor: pointer; }
.cx-file input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.cx-file:focus-within { box-shadow: var(--weo-focus); }
/* With the site's script the file goes as soon as it is chosen, and the Send button is not needed. */
html.cx-js [data-cx-fallback] { display: none; }
@media (max-width: 720px) {
  .cx-upload { grid-template-columns: auto minmax(0, 1fr); }
  .cx-upload > .cx-upload-actions { grid-column: 1 / -1; justify-content: flex-start; }
}
.cx-upload-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }

/* ---------- A corporate's people (task 8.8) ---------- */
.cx-people + .cx-people { margin-top: 20px; }
.cx-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 12px 14px; align-items: center; padding: 14px 0; }
.cx-person + .cx-person { border-top: 1px solid var(--weo-line); }
.cx-person-role, .cx-person-acts, .cx-person-acts form { display: flex; gap: 8px; align-items: center; margin: 0; }
.cx-select { height: 36px; padding: 0 10px; font-size: 13px; border-radius: 10px; appearance: auto; width: auto; background: var(--weo-card); border-color: var(--weo-line-strong); }
.cx-field .cx-select { height: 48px; width: 100%; font-size: 15px; border-radius: 14px; }
.cx-danger { color: var(--weo-danger); }
.cx-invite { border-top: 1px solid var(--weo-line); }
@media (max-width: 960px) {
  .cx-person { grid-template-columns: auto minmax(0, 1fr); }
  .cx-person-role, .cx-person-acts { grid-column: 2; flex-wrap: wrap; }
}
/* A field with a hint under it keeps its box level with its neighbours' boxes. */
.cx-field { align-content: start; }

/* ---------------------------------------------------------------------------------------- The account pages */
/* Tabs that are links (a whole page each): the look of Phenix's segmented control. */
.cx-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; border-radius: 11px; gap: 2px; background: color-mix(in srgb, var(--weo-line) 75%, var(--weo-bg));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-line-strong) 45%, transparent); }
.cx-seg a { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 8px; font-size: 13px; font-weight: 550; color: var(--weo-muted); text-decoration: none;
  white-space: nowrap; transition: color .15s, background .15s; }
.cx-seg a:hover { color: var(--weo-text); }
.cx-seg a:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 1px; }
.cx-seg a[aria-current="page"] { background: var(--weo-card); color: var(--weo-text); box-shadow: 0 1px 2px color-mix(in srgb, var(--weo-text) 10%, transparent), 0 0 0 1px var(--weo-card-border); }
.cx-seg a small { margin-left: 7px; font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--weo-tint); color: var(--weo-tint-text); }
/* A period, or a search: a short form above a list. */
.cx-find { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin: 0 0 16px; }
.cx-find label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--weo-muted); }
.cx-find .weo-input { height: 44px; padding: 0 12px; border-radius: 12px; background: var(--weo-card); min-width: 0; }
.cx-find .cx-find-text { flex: 1 1 260px; }
.cx-find .cx-find-text .weo-input { width: 100%; box-sizing: border-box; }
.cx-find .cx-btn { height: 44px; }
.cx-none { padding: 34px 20px; text-align: center; color: var(--weo-muted); font-size: 14px; line-height: 1.6; }
.cx-none b { display: block; color: var(--weo-text); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.cx-min { min-width: 0; }
.cx-block { display: block; }
.cx-right { text-align: right; }
.cx-nowrap { white-space: nowrap; }
.cx-stack { display: grid; gap: var(--weo-gap); align-content: start; }
.cx-statement a { color: inherit; text-decoration: none; }
.cx-statement a:hover b { color: var(--weo-primary-text); text-decoration: underline; }
.cx-statement .is-total td { font-weight: 650; border-top: 1px solid var(--weo-line-strong); }
.cx-table-note { margin: 0; padding: 12px 24px 16px; font-size: 12.5px; color: var(--weo-muted); border-top: 1px solid var(--weo-line); }
.cx-pager { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding-top: 16px; margin-top: 6px; border-top: 1px solid var(--weo-line);
  font-size: 13px; color: var(--weo-muted); }
.cx-pager > span:last-child { display: inline-flex; gap: 8px; }
.cx-dot-owe { background: var(--weo-ember); } .cx-dot-due { background: var(--weo-success); }
.cx-pill { padding: 3px 8px; border-radius: 7px; font-weight: 700; font-size: 12px; }
.cx-quote { font-size: 13px; line-height: 1.55; color: var(--weo-muted); margin: 14px 0; }
.cx-quote b { color: var(--weo-text); }
.cx-who { display: flex; gap: 14px; align-items: center; }
.cx-who .weo-section-title { margin: 0; }
.cx-full { width: 100%; box-sizing: border-box; }
.cx-ticket-lines { display: grid; gap: 14px; }
/* Papers and consents. */
.cx-paper-meta { display: block; }
.cx-consent { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 16px 0; }
.cx-consent + .cx-consent { border-top: 1px solid var(--weo-line); }
.cx-consent form { margin: 0; }
.cx-consent details { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--weo-muted); }
.cx-consent summary { cursor: pointer; color: var(--weo-primary-text); font-weight: 550; }
.cx-consent details p { margin: 8px 0 0; white-space: pre-line; }
.cx-choice { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.cx-choice legend { padding: 0; margin-bottom: 8px; font-size: 13px; font-weight: 600; color: var(--weo-text); }
.cx-choice label { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--weo-line-strong);
  background: var(--weo-card); cursor: pointer; font-size: 14px; font-weight: 600; }
.cx-choice label small { grid-column: 2; font-size: 12.5px; font-weight: 450; color: var(--weo-muted); line-height: 1.45; }
.cx-choice input { margin-top: 3px; accent-color: var(--weo-primary); }
.cx-choice label:has(input:checked) { border-color: var(--weo-primary); background: color-mix(in srgb, var(--weo-primary) 6%, var(--weo-card)); }
.cx-js-only { display: none; }
html.cx-js .cx-js-only { display: inline-flex; }
@media (max-width: 720px) {
  .cx-consent { grid-template-columns: auto minmax(0, 1fr); }
  .cx-consent > :last-child { grid-column: 2; justify-self: start; }
  .cx-table-note { padding-left: 16px; padding-right: 16px; }
  .cx-seg { display: flex; }
  .cx-seg a { flex: 1 1 auto; justify-content: center; }
}
@media print {
  .cx-tabs, .cx-skip, .cx-signout, .cx-find, .cx-seg { display: none !important; }
  .cx-shell { display: block; }
  .cx-table-wrap { overflow: visible; }
  .weo-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.cx-table-statement { min-width: 540px; } .cx-table-wide { min-width: 720px; } .cx-table-lines { min-width: 520px; } .cx-table-narrow { min-width: 420px; }
.cx-actions { margin-top: 14px; }
.cx-badge-lg { font-size: 13px; padding: 6px 12px; }
.cx-after-pill { margin-left: 6px; }
.cx-none b.cx-inline { display: inline; font-size: inherit; margin: 0; }
.cx-lines-plain { margin-top: 12px; }
.cx-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.weo-phenix .cx-statement td.weo-num { white-space: nowrap; }
.weo-phenix .cx-table-statement th, .weo-phenix .cx-table-statement td { padding-left: 12px; padding-right: 12px; }
/* On a phone the tabs stay on one line (they slide if they must), and a transaction's lines fit without sliding. */
@media (max-width: 720px) {
  .cx-seg { flex-wrap: nowrap; overflow-x: auto; }
  .cx-seg a { flex: 1 0 auto; padding: 0 10px; }
  .cx-table-lines { min-width: 0; }
  .weo-phenix .cx-table-lines th, .weo-phenix .cx-table-lines td { padding: 12px 6px; font-size: 13px; }
  .weo-phenix .cx-table-lines th:first-child, .weo-phenix .cx-table-lines td:first-child { padding-left: 14px; }
  .weo-phenix .cx-table-lines th:last-child, .weo-phenix .cx-table-lines td:last-child { padding-right: 14px; }
  .cx-table-lines .cx-after-pill { display: block; margin: 6px 0 0; }
}
.cx-seg { scrollbar-width: none; }

/* ------------------------------------------------------------------------------------------------- Requests */
.cx-request { gap: 20px; padding-top: 0; }
.cx-request .cx-pad { padding-top: 16px; }
.cx-line { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, .8fr); gap: 12px; align-items: start; }
.cx-textarea { height: auto; min-height: 76px; padding: 12px 16px; line-height: 1.5; resize: vertical; font: inherit; }
.cx-file-plain { height: auto; padding: 11px 12px; font-size: 13px; }
.cx-branches { grid-template-columns: minmax(0, 1fr); max-height: 340px; overflow-y: auto; padding: 2px; }
.cx-send { display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: center; justify-content: space-between; margin-bottom: var(--weo-gap);
  border-color: color-mix(in srgb, var(--weo-primary) 35%, var(--weo-card-border)); }
.cx-send-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.cx-send-acts form, .cx-side-acts form { margin: 0; }
.cx-side-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.cx-request-grid { margin-top: var(--weo-gap); }
.cx-track-6 { --stations: 6; padding: 0; margin-top: 20px; }
.cx-talk { display: grid; gap: 12px; padding-top: 16px; }
.cx-said { max-width: 86%; padding: 10px 14px; border-radius: 14px; background: var(--weo-tint); justify-self: start; }
.cx-said.is-you { justify-self: end; background: color-mix(in srgb, var(--weo-primary) 10%, var(--weo-card)); border: 1px solid color-mix(in srgb, var(--weo-primary) 22%, transparent); }
.cx-said small { display: block; font-size: 12px; color: var(--weo-muted); margin-bottom: 3px; }
.cx-said p { margin: 0; font-size: 14px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.cx-talk .cx-form { padding-top: 6px; }
.cx-paper-form { display: grid; grid-template-columns: minmax(0, 1fr); border-top: 1px solid var(--weo-line); }
.cx-paper-form > div:last-child { justify-self: start; }
.cx-pre { white-space: pre-wrap; text-align: left; }
.cx-lines dd { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  .cx-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cx-line > :last-child { grid-column: 1 / -1; }
  .cx-track-6 li { font-size: 10.5px; }
  .cx-said { max-width: 100%; }
}

/* ------------------------------------------------------------------------------ Forms, as Phenix draws them */
/* What the site's script hides stays hidden, whatever its class lays out. */
[hidden] { display: none !important; }
.cx-field .weo-input { height: 44px; border-radius: 12px; font-size: 14.5px; }
.cx-field .cx-textarea { height: auto; }
.cx-field:focus-within { color: var(--weo-text); }
.cx-field .weo-field-opt { margin-left: 4px; }
.cx-mono { font-variant-numeric: tabular-nums; letter-spacing: .03em; }
.cx-wide { grid-column: 1 / -1; }
.cx-line-said { display: block; }
.cx-label { display: flex; flex-wrap: wrap; gap: 2px 6px; align-items: baseline; }

/* A list that opens as Phenix's does: the browser's own list stays in the form and carries the value. */
.cx-pick-native { position: absolute !important; left: 18px; bottom: 0; width: 1px !important; height: 1px !important; padding: 0 !important; border: 0 !important; opacity: 0; pointer-events: none; }
.cx-pick.is-wrong { border-color: var(--weo-danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-danger) 18%, transparent); }
.cx-field { position: relative; min-width: 0; }
.cx-pick { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; cursor: pointer; font: inherit; font-size: 14.5px; font-weight: 500;
  color: var(--weo-text); padding-right: 12px; transition: border-color .15s, box-shadow .15s, background .15s; }
.cx-pick:hover { border-color: color-mix(in srgb, var(--weo-primary) 45%, var(--weo-line-strong)); }
.cx-pick.is-empty { color: var(--weo-muted); font-weight: 450; }
.cx-pick > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-pick > svg { flex: none; color: var(--weo-muted); }
.cx-pick:focus-visible, .cx-pick[aria-expanded="true"] { outline: none; border-color: var(--weo-primary); box-shadow: var(--weo-focus); }
@keyframes cx-pop { from { opacity: 0; transform: translateY(-4px) scale(.985); } }
.cx-pick-pop { position: fixed; z-index: 80; display: grid; grid-template-rows: auto minmax(0, 1fr); max-height: 340px; background: var(--weo-card); border: 1px solid var(--weo-line-strong);
  border-radius: 14px; overflow: hidden; outline: none; animation: cx-pop .14s ease-out;
  box-shadow: 0 22px 48px -16px color-mix(in srgb, var(--weo-ink) 70%, transparent), 0 2px 8px color-mix(in srgb, var(--weo-ink) 18%, transparent); }
.cx-pick-search { height: 40px; margin: 8px 8px 2px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--weo-line); background: var(--weo-bg); color: var(--weo-text); font: inherit;
  font-size: 14px; outline: none; }
.cx-pick-search:focus { border-color: var(--weo-primary); }
.cx-pick-list { overflow-y: auto; padding: 6px; overscroll-behavior: contain; }
.cx-pick-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 9px; font-size: 14px; line-height: 1.35; cursor: pointer; color: var(--weo-text); }
.cx-pick-item:hover, .cx-pick-item.is-active { background: var(--weo-tint); }
.cx-pick-item[aria-selected="true"] { color: var(--weo-primary-text); font-weight: 600; }
.cx-pick-item[aria-selected="true"]::after { content: ""; flex: none; width: 13px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translateY(-2px); }
.cx-pick-group { padding: 10px 12px 4px; font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--weo-muted); }
@media (max-width: 720px) {
  /* On a phone the list rises from the foot, as a sheet, over a dimmed page. */
  .cx-pick-pop { left: 0 !important; right: 0; top: auto !important; bottom: 0 !important; width: auto !important; max-height: 72vh; border-radius: 22px 22px 0 0; border-width: 1px 0 0;
    padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 0 0 100vmax color-mix(in srgb, var(--weo-ink) 55%, transparent); animation-name: cx-sheet; }
  .cx-pick-item { padding: 13px 14px; font-size: 15px; }
  .cx-pick-search { height: 46px; font-size: 16px; }
}
@keyframes cx-sheet { from { transform: translateY(24px); opacity: 0; } }

/* Something asked only of those it concerns: closed until opened. */
.cx-more { border: 1px dashed var(--weo-line-strong); border-radius: 14px; padding: 0 16px; transition: border-color .15s, background .15s; }
.cx-more > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 0; font-size: 13.5px; font-weight: 600; color: var(--weo-text); }
.cx-more > summary::-webkit-details-marker { display: none; }
.cx-more > summary > svg { flex: none; color: var(--weo-muted); transition: transform .15s; }
.cx-more > summary:focus-visible { outline: none; box-shadow: var(--weo-focus); border-radius: 8px; }
.cx-more[open] { border-style: solid; border-color: var(--weo-line); padding-bottom: 16px; background: color-mix(in srgb, var(--weo-subtle) 50%, var(--weo-card)); }
.cx-more[open] > summary > svg { transform: rotate(90deg); }
.cx-more .cx-form { padding-top: 0; }

/* ---------------------------------------------------------------------------- A request: the form and its sum */
.cx-request { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 20px; align-items: start; margin: 0; padding-top: 0; }
.cx-request-main { display: grid; gap: 20px; min-width: 0; }
.cx-request-side { position: sticky; top: 84px; min-width: 0; }
.cx-step > .weo-card-head { flex-wrap: nowrap; }
.cx-step > .weo-card-head > .weo-section-title { flex: 1 1 auto; min-width: 0; }
.cx-step-no { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums;
  color: var(--weo-primary-text); background: color-mix(in srgb, var(--weo-primary) 14%, var(--weo-card)); border: 1px solid color-mix(in srgb, var(--weo-primary) 30%, transparent); }
.cx-lines-edit { display: grid; gap: 12px; }
.cx-line { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1.15fr) minmax(0, .9fr) auto; gap: 12px; align-items: start; padding: 14px; border: 1px solid var(--weo-line);
  border-radius: 14px; background: color-mix(in srgb, var(--weo-subtle) 55%, var(--weo-card)); }
.cx-line-more { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 12px; align-items: start; }
.cx-line-more > label:only-of-type { grid-column: 1 / -1; }
.cx-est { grid-column: 1 / -1; margin: 0; min-height: 18px; font-size: 13px; font-weight: 600; color: var(--weo-primary-text); font-variant-numeric: tabular-nums; }
.cx-est.is-none { color: var(--weo-muted); font-weight: 450; }
/* The rate itself, where the branch shows one: the first thing a customer looks for, so it is said as a figure and set apart. */
.cx-est.is-rate { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 4px; padding: 9px 12px; border-radius: 10px; font-weight: 500; color: var(--weo-text);
  background: color-mix(in srgb, var(--weo-primary) 9%, var(--weo-card)); border: 1px solid color-mix(in srgb, var(--weo-primary) 28%, var(--weo-line)); }
.cx-est.is-rate b { font-size: 15px; font-weight: 700; color: var(--weo-primary-text); }
.cx-line-x { margin-top: 25px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--weo-line); background: transparent; color: var(--weo-muted); cursor: pointer;
  transition: color .15s, border-color .15s, background .15s; }
html.cx-js .cx-line-x.cx-js-only { display: inline-grid; place-items: center; }
.cx-line-x:hover { color: var(--weo-danger); border-color: color-mix(in srgb, var(--weo-danger) 45%, var(--weo-line)); }
.cx-line-x:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.cx-amount { position: relative; display: block; }
.cx-field .cx-amount .weo-input { width: 100%; padding-right: 54px; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.cx-amount > b { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 12px; font-weight: 650; letter-spacing: .05em; color: var(--weo-muted); pointer-events: none; }
html.cx-js .cx-line-add.cx-js-only { display: flex; }
.cx-line-add { gap: 12px; align-items: center; flex-wrap: wrap; }
.cx-line-add > small { font-size: 12.5px; color: var(--weo-muted); }
.cx-sum .cx-pad { padding-top: 0; }
.cx-sum-lines { display: grid; gap: 12px; padding-top: 16px; }
.cx-sum-none { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--weo-muted); }
.cx-sum-line { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1px 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.cx-sum-line > b { font-weight: 650; }
.cx-sum-line > small { grid-column: 1 / -1; font-size: 12.5px; color: var(--weo-muted); }
.cx-sum-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--weo-line); }
.cx-sum-total > dt { font-size: 13px; color: var(--weo-muted); }
.cx-sum-total > dd { margin: 0; font-size: 24px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cx-sum .cx-foot-note { margin: 12px 0 0; display: flex; gap: 6px; align-items: flex-start; }
.cx-sum .cx-foot-note > svg { flex: none; margin-top: 2px; }
.cx-sum-go { width: 100%; margin-top: 16px; }
.cx-sum-cancel { width: 100%; margin-top: 6px; }
@media (max-width: 1040px) {
  .cx-request { grid-template-columns: minmax(0, 1fr); }
  .cx-request-side { position: static; }
}
@media (max-width: 720px) {
  .cx-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 12px; }
  .cx-line > :last-child { grid-column: 1 / -1; }
  .cx-line > label:nth-of-type(3) { grid-column: 1; }
  .cx-line > .cx-line-x { grid-column: 2; justify-self: end; }
  .cx-step > .weo-card-head { flex-wrap: wrap; }
}

/* ------------------------------------------------------------------------- The menu's groups, rates, and "More" */
.cx-shell [data-sidebar="content"] { overflow-y: auto; scrollbar-width: none; }
.cx-shell [data-sidebar="content"]::-webkit-scrollbar { display: none; }
.cx-nav-group { margin-top: 14px; }
.cx-more-group { margin-bottom: var(--weo-gap); }
.cx-more-group .cx-rows { margin-top: 10px; }
html.cx-js .cx-no-js-only { display: none; }
.cx-cur { display: grid; gap: 1px; line-height: 1.25; }
.cx-cur > b { font-size: 14.5px; font-weight: 700; letter-spacing: .02em; }
.cx-cur > small { font-size: 12px; font-weight: 450; color: var(--weo-muted); }
.cx-dot-live { background: var(--weo-success); box-shadow: 0 0 0 4px color-mix(in srgb, var(--weo-success) 18%, transparent); }
.cx-rates-at { align-items: end; }
.cx-rates-at .cx-find-text { flex: 0 1 340px; }
.cx-rates-when { display: inline-flex; align-items: center; gap: 10px; height: 44px; font-size: 13px; color: var(--weo-muted); margin-left: 4px; }
.cx-rates { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 20px; align-items: start; }
.cx-conv { position: sticky; top: 84px; }
.cx-choice-tight { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cx-choice-tight label { padding: 10px 12px; border-radius: 12px; font-size: 14px; font-weight: 600; }
.cx-conv-out { gap: 2px; padding: 16px; border-radius: 16px; color: var(--weo-on-ink); background: linear-gradient(140deg, var(--weo-ink), color-mix(in srgb, var(--weo-brand) 78%, var(--weo-ink)));
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--weo-on-ink) 14%, transparent); }
html.cx-js .cx-conv-out.cx-js-only { display: grid; }
.cx-conv-out > span { font-size: 12.5px; opacity: .78; }
.cx-conv-out > b { font-size: 30px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cx-conv-out > small { font-size: 12.5px; opacity: .78; min-height: 17px; }
.cx-card-table .cx-scroll { overflow-x: auto; }
.cx-rate-table { width: 100%; }
.cx-rate-table .cx-num { text-align: right; font-variant-numeric: tabular-nums; }
.cx-rate-table td.cx-num { font-weight: 600; }
.cx-rate-table tr:not(.is-first) > td { border-top-color: transparent; padding-top: 4px; }
.cx-rate-table tr.is-first > td { padding-bottom: 4px; }
.cx-rate-strip { margin-bottom: var(--weo-gap); }
.cx-rate-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.cx-rate-tile { display: grid; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--weo-line); background: color-mix(in srgb, var(--weo-subtle) 55%, var(--weo-card)); color: var(--weo-text);
  text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.cx-rate-tile:hover { border-color: color-mix(in srgb, var(--weo-primary) 50%, var(--weo-line)); transform: translateY(-2px); box-shadow: 0 12px 24px -16px color-mix(in srgb, var(--weo-ink) 60%, transparent); }
.cx-rate-tile:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.cx-rate-fig { display: grid; gap: 2px; font-size: 21px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cx-rate-fig > small { font-size: 11.5px; font-weight: 450; letter-spacing: 0; color: var(--weo-muted); }
.cx-actions { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1040px) {
  .cx-rates { grid-template-columns: minmax(0, 1fr); }
  .cx-conv { position: static; }
}
@media (max-width: 720px) {
  .cx-rates-when { height: auto; margin: 0; }
  .cx-rate-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx-rate-table th:last-child, .cx-rate-table td:last-child { display: none; }
}

/* ---------------------------------------------------------------- Every control, as Phenix draws it */
/* A form's button keeps its own width; a short form above a list reads as fields, not as a toolbar. */
.cx-form > .cx-btn, .cx-form > button.cx-btn { justify-self: start; }
.cx-find label { font-size: 13px; color: var(--weo-label); position: relative; min-width: 0; }
.cx-find .cx-pick { min-width: 150px; height: 44px; border-radius: 12px; background: var(--weo-card); border-color: var(--weo-line-strong); }
.cx-field .cx-pick { background: var(--weo-card); border-color: var(--weo-line-strong); }
/* Without the script a list is the browser's own, drawn to match. */
main select.weo-input { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer; background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
  background-image: linear-gradient(45deg, transparent 50%, var(--weo-muted) 50%), linear-gradient(135deg, var(--weo-muted) 50%, transparent 50%); background-size: 6px 6px, 6px 6px;
  background-position: right 18px center, right 12px center; }
/* A tick and a choice: Phenix's own square and round marks. */
main input[type="checkbox"], main input[type="radio"] { appearance: none; -webkit-appearance: none; flex: none; width: 18px; height: 18px; margin: 2px 0 0; border: 1.5px solid color-mix(in srgb, var(--weo-muted) 60%, var(--weo-line-strong));
  background: var(--weo-card); display: inline-grid; place-content: center; cursor: pointer; transition: border-color .15s, background .15s, box-shadow .15s; }
main input[type="checkbox"] { border-radius: 6px; }
main input[type="radio"] { border-radius: 50%; }
main input[type="checkbox"]::before { content: ""; width: 10px; height: 6px; border-left: 2px solid var(--weo-on-primary, #fff); border-bottom: 2px solid var(--weo-on-primary, #fff); transform: rotate(-45deg) translateY(-1px) scale(0);
  transition: transform .12s ease-out; }
main input[type="radio"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--weo-on-primary, #fff); transform: scale(0); transition: transform .12s ease-out; }
main input[type="checkbox"]:checked, main input[type="radio"]:checked { background: var(--weo-primary); border-color: var(--weo-primary); }
main input[type="checkbox"]:checked::before { transform: rotate(-45deg) translateY(-1px) scale(1); }
main input[type="radio"]:checked::before { transform: scale(1); }
main input[type="checkbox"]:focus-visible, main input[type="radio"]:focus-visible { outline: none; box-shadow: var(--weo-focus); }
main input[type="checkbox"]:hover, main input[type="radio"]:hover { border-color: var(--weo-primary); }
.cx-check { cursor: pointer; }
/* A date: the browser's own picker, its mark in the page's colours. */
main input[type="date"].weo-input { font-variant-numeric: tabular-nums; }
main input[type="date"]::-webkit-calendar-picker-indicator { opacity: .6; cursor: pointer; padding: 4px; border-radius: 6px; }
main input[type="date"]::-webkit-calendar-picker-indicator:hover { opacity: 1; background: var(--weo-tint); }
html.dark main input[type="date"], html.dark main input[type="time"] { color-scheme: dark; }
/* A file to send: a field to press or to drop on, with the file's name once chosen. */
.cx-drop { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 10px 14px; border: 1.5px dashed var(--weo-line-strong); border-radius: 14px; background: color-mix(in srgb, var(--weo-subtle) 55%, var(--weo-card));
  cursor: pointer; transition: border-color .15s, background .15s; }
.cx-drop:hover, .cx-drop:focus-within { border-color: var(--weo-primary); background: color-mix(in srgb, var(--weo-primary) 6%, var(--weo-card)); }
.cx-drop.is-chosen { border-style: solid; border-color: color-mix(in srgb, var(--weo-success) 55%, var(--weo-line)); }
.cx-drop input[type="file"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 0; }
.cx-drop-icon { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--weo-primary-text); background: color-mix(in srgb, var(--weo-primary) 12%, var(--weo-card)); }
.cx-drop-words { display: grid; gap: 1px; min-width: 0; font-weight: 600; font-size: 13.5px; color: var(--weo-text); }
.cx-drop-words > small { font-weight: 450; font-size: 12.5px; color: var(--weo-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* Without the script the browser's own file field shows through, plainly. */
html:not(.cx-js) .cx-drop input[type="file"] { position: static; opacity: 1; font-size: 13px; width: auto; height: auto; }
html:not(.cx-js) .cx-drop-words, html:not(.cx-js) .cx-drop-icon { display: none; }

/* --------------------------------------------------------------------- People kept, alerts, and a conversation */
.cx-two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 20px; align-items: start; }
.cx-two-col > aside { position: sticky; top: 84px; min-width: 0; }
.cx-person { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--weo-line); }
.cx-person:first-child { border-top: 0; }
.cx-person-mark { grid-row: span 2; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--weo-primary-text);
  background: color-mix(in srgb, var(--weo-primary) 14%, var(--weo-card)); border: 1px solid color-mix(in srgb, var(--weo-primary) 25%, transparent); }
.cx-person-name { font-weight: 650; font-size: 14.5px; min-width: 0; overflow-wrap: anywhere; }
.cx-person-name > small { font-weight: 450; color: var(--weo-muted); font-size: 12.5px; margin-left: 6px; }
.cx-person-sub { grid-column: 2; font-size: 12.5px; color: var(--weo-muted); overflow-wrap: anywhere; }
.cx-person-end { grid-row: 1 / span 2; grid-column: 3; display: grid; gap: 6px; justify-items: end; }
.cx-person-end form { margin: 0; }
.cx-group-title { margin: 6px 0 -4px; font-size: 11.5px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--weo-muted); }
.cx-rate-field { position: relative; display: block; }
.cx-field .cx-rate-field .weo-input { width: 100%; padding-left: 34px; font-variant-numeric: tabular-nums; font-weight: 600; }
.cx-rate-field > b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--weo-muted); font-weight: 600; pointer-events: none; }
.cx-chat { display: grid; grid-template-rows: minmax(0, 1fr) auto; min-height: 420px; }
.cx-chat .cx-talk { align-content: end; max-height: 60vh; overflow-y: auto; }
.cx-chat-write { display: grid; gap: 12px; padding: 16px 24px 20px; border-top: 1px solid var(--weo-line); background: color-mix(in srgb, var(--weo-subtle) 55%, var(--weo-card)); border-radius: 0 0 var(--weo-radius-card) var(--weo-radius-card); margin: 0; }
.cx-chat-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: end; }
.cx-chat-row .cx-textarea { min-height: 56px; }
@media (max-width: 1040px) {
  .cx-two-col { grid-template-columns: minmax(0, 1fr); }
  .cx-two-col > aside { position: static; }
}
@media (max-width: 720px) {
  .cx-person { grid-template-columns: auto minmax(0, 1fr); padding: 14px 16px; }
  .cx-person-end { grid-row: auto; grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; }
  .cx-chat-row { grid-template-columns: minmax(0, 1fr); }
  .cx-chat-write { padding: 14px 16px 16px; }
}
/* On the page of every place a row keeps its arrow beside it at any width. */
.cx-more-group .cx-row { grid-template-columns: auto minmax(0, 1fr) auto; }

/* ---------- Branches ---------- */
.cx-places { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 18px; }
.cx-branch { display: flex; flex-direction: column; gap: 14px; }
.cx-branch.is-home { border-color: color-mix(in srgb, var(--weo-primary) 45%, var(--weo-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 10%, transparent); }
.cx-branch-head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.cx-branch-name { margin: 0; font-size: 16px; font-weight: 650; letter-spacing: -.01em; }
.cx-branch-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cx-branch-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 10px; margin: 0; font-size: 13.5px; line-height: 1.5; }
.cx-branch-facts dt { color: var(--weo-muted); padding-top: 2px; }
.cx-branch-facts dd { margin: 0; overflow-wrap: anywhere; }
.cx-branch-facts a { color: inherit; font-weight: 600; }
.cx-branch-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }

/* ---------- Transactions: what is shown comes to ---------- */
.cx-kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cx-seg-gap { margin-bottom: 14px; }
@media (max-width: 720px) {
  /* A phone: the two sums one under the other, whole (an amount is never broken across lines); the count is in the list's foot. */
  .cx-kpis-3 { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cx-kpis-3 > :last-child { display: none; }
  .cx-kpis-3 .weo-kpi-value { overflow-wrap: normal; white-space: nowrap; margin: 4px 0 2px; }
  .cx-find > label:not(.cx-find-text) { flex: 1 1 130px; }
  .cx-find > label:not(.cx-find-text) .weo-input { width: 100%; box-sizing: border-box; }
  .cx-find > .cx-btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- The invoice: a sheet of paper, the same in light and dark, and alone on the page when printed ---------- */
.cx-paper-wrap { overflow-x: auto; padding-bottom: 8px; }
.cx-invoice { color-scheme: light; background: Canvas; color: CanvasText; box-sizing: border-box; width: 100%; max-width: 820px; margin: 0 auto; padding: 28px;
  font-size: 12.5px; line-height: 1.45; border-radius: 6px; box-shadow: 0 1px 2px color-mix(in srgb, var(--weo-text) 14%, transparent), 0 18px 48px color-mix(in srgb, var(--weo-ink) 26%, transparent); }
.cx-invoice h2 { margin: 0; font-size: 18px; line-height: 1.25; color: inherit; }
.cx-invoice h3 { margin: 18px 0 6px; font-size: 14px; text-align: center; color: inherit; }
.cx-invoice-head { text-align: center; border-bottom: 2px solid CanvasText; padding-bottom: 10px; margin-bottom: 12px; display: grid; gap: 3px; justify-items: center; }
.cx-invoice-small { font-size: 11px; }
.cx-invoice-mark { margin-top: 2px; font-weight: 700; letter-spacing: .02em; }
.cx-invoice-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; }
.cx-invoice-details dl { display: grid; grid-template-columns: minmax(96px, 150px) minmax(0, 1fr); margin: 0; row-gap: 2px; align-content: start; }
.cx-invoice-details dt { font-weight: 700; }
.cx-invoice-details dd { margin: 0; overflow-wrap: anywhere; }
.cx-invoice-wide { grid-column: 1 / -1; }
.cx-invoice-irn { display: flex; gap: 16px; align-items: center; border: 1px solid GrayText; padding: 8px; margin: 10px 0; overflow-wrap: anywhere; }
.cx-invoice-qr { width: 130px; height: 130px; flex: none; }
.cx-invoice-scroll { overflow-x: auto; }
.cx-invoice table { width: 100%; border-collapse: collapse; margin: 10px 0; }
.cx-invoice th, .cx-invoice td { border: 1px solid GrayText; padding: 4px 6px; text-align: left; vertical-align: top; }
.cx-invoice .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cx-invoice-totals td { border: 0; }
.cx-invoice-totals td:first-child, .cx-invoice-totals .is-total td { font-weight: 700; }
.cx-invoice-note { margin-top: 10px; }
.cx-invoice-signs { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-top: 36px; }
.cx-invoice-for { text-align: right; }
.cx-invoice-statement { text-align: center; margin-top: 18px; }
@media (max-width: 720px) {
  .cx-invoice { padding: 18px 14px; font-size: 12px; }
  .cx-invoice-details { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .cx-invoice-signs { flex-direction: column; align-items: stretch; gap: 14px; }
  .cx-invoice-for { text-align: left; }
}
@media print {
  .cx-paper-wrap, .cx-invoice-scroll { overflow: visible; }
  .cx-invoice { box-shadow: none; border-radius: 0; padding: 0; max-width: none; }
  .cx-invoice-details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
