/* Library-neutral layout helpers on the WebEon tokens (theme.css). Components come from the chosen library. */
.weo-page { max-width: 1480px; margin: 0 auto; padding: 4px 32px 56px; box-sizing: border-box; }
/* Page header: title and one line of purpose on the left, the page's actions on the right, aligned to the title's foot. */
.weo-page-head { display: flex; align-items: flex-end; gap: 14px 24px; flex-wrap: wrap; margin-bottom: 28px; }
.weo-page-head > div:first-child { min-width: 0; flex: 1 1 420px; }
.weo-page-head h1 { font-size: 28px; font-weight: 650; margin: 0; letter-spacing: -.028em; line-height: 1.15; text-wrap: balance; }
.weo-page-head p { margin: 8px 0 0; color: var(--weo-muted); font-size: 14px; line-height: 1.55; max-width: 74ch; text-wrap: pretty; }
.weo-page-actions { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* The way back to the list, above the title of a detail or entry page. */
.weo-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 10px -2px; font-size: 13px; font-weight: 500; color: var(--weo-muted); text-decoration: none; border-radius: 6px; }
.weo-back:hover { color: var(--weo-text); }
.weo-back:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; }
.weo-kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: var(--weo-gap); }
.weo-kpi-label { color: var(--weo-muted); font-size: 13px; font-weight: 500; }
.weo-kpi-value { font-size: 30px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.032em; margin: 10px 0 4px; line-height: 1.1; }
.weo-kpi-note { font-size: 12px; color: var(--weo-muted); }
.weo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--weo-gap); }
.weo-span-3 { grid-column: span 3; } .weo-span-4 { grid-column: span 4; } .weo-span-5 { grid-column: span 5; } .weo-span-6 { grid-column: span 6; } .weo-span-7 { grid-column: span 7; } .weo-span-8 { grid-column: span 8; } .weo-span-9 { grid-column: span 9; } .weo-span-12 { grid-column: span 12; }
@media (max-width: 1200px) { .weo-span-3 { grid-column: span 6; } .weo-span-5, .weo-span-7 { grid-column: span 12; } }
@media (max-width: 960px) { .weo-span-3, .weo-span-4, .weo-span-6, .weo-span-8, .weo-span-9 { grid-column: span 12; } .weo-page { padding: 8px 16px 24px; } }
.weo-grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px 20px; align-items: start; }
/* A row of a list edited in place: number, two fields, remove; the second field on its own line on a phone. */
/* Several of many, each ticked or not: a box that fills, so what is chosen cannot be mistaken (a segment reads as one of many). */
.weo-tickset { display: flex; flex-wrap: wrap; gap: 8px; }
.weo-tickset button { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px 0 9px; border-radius: 9px; border: 1px solid var(--weo-line-strong); background: var(--weo-card); color: var(--weo-muted); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s, border-color .15s; }
.weo-tickset button:hover { color: var(--weo-text); border-color: var(--weo-primary); }
.weo-tickset button:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 1px; }
.weo-tickset button[aria-pressed="true"] { color: var(--weo-text); border-color: var(--weo-primary); background: var(--weo-tint); font-weight: 600; }
.weo-tick-box { width: 17px; height: 17px; flex: none; display: grid; place-items: center; border-radius: 5px; border: 1.5px solid var(--weo-line-strong); background: var(--weo-bg); color: var(--weo-on-primary); }
.weo-tickset button[aria-pressed="true"] .weo-tick-box { border-color: var(--weo-primary); background: var(--weo-primary); }
.weo-level-warning { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.45; font-weight: 400; color: var(--weo-warning); }
.weo-level-warning svg, .weo-level-left svg { flex: none; margin-top: 2px; }
.weo-level-warning-row td { padding-top: 0; border-top: 0; }
.weo-level-left { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.5; color: var(--weo-muted); border-top: 1px solid var(--weo-line); }
.weo-level-left strong { color: var(--weo-text); font-weight: 600; }
/* A note's lines: the rate and its accounts share a column, so GST and TDS are both in view without scrolling sideways. */
.weo-note-lines { min-width: 560px; table-layout: fixed; }
.weo-note-lines th:nth-child(1) { width: 32%; } .weo-note-lines th:nth-child(2) { width: 18%; } .weo-note-lines th:nth-child(3), .weo-note-lines th:nth-child(4) { width: 22%; } .weo-note-lines th:nth-child(5) { width: 6%; }
.weo-table.weo-note-lines th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.weo-table.weo-note-lines td { vertical-align: top; }
@media (max-width: 720px) {
  .weo-table.weo-note-lines { min-width: 0; }
  .weo-note-lines, .weo-note-lines tbody, .weo-note-lines tr, .weo-note-lines td { display: block; width: 100% !important; box-sizing: border-box; }
  .weo-note-lines tr:has(> th) { display: none; }
  .weo-note-lines tr { padding: 10px 16px; border-bottom: 1px solid var(--weo-line); }
  .weo-table.weo-note-lines td { padding: 6px 0; border: 0; }
  .weo-note-lines td[data-label]::before { content: attr(data-label); display: block; color: var(--weo-muted); font-size: 12px; margin-bottom: 4px; }
}
.weo-level-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; }
@media (max-width: 600px) { .weo-level-row { grid-template-columns: 72px minmax(0, 1fr) auto; } .weo-level-row > :nth-child(3) { grid-column: 1 / 3; grid-row: 2; } .weo-level-row > :nth-child(4) { grid-column: 3; grid-row: 1; } }
.weo-toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
/* A filter bar straight above a list's card is that card's top band: one object, not two. */
.weo-toolbar:has(+ .weo-card) { margin-bottom: 0; padding: 12px 16px; background: var(--weo-card); border: 1px solid var(--weo-card-border); border-bottom-color: var(--weo-line);
  border-radius: var(--weo-radius-card) var(--weo-radius-card) 0 0; box-shadow: var(--weo-card-shadow); position: relative; z-index: 1; }
.weo-toolbar + .weo-card { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.weo-permissions { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 6px 16px; }
.weo-facts { width: 100%; border-collapse: collapse; font-size: 13px; }
.weo-facts th { text-align: left; font-weight: 500; color: var(--weo-muted); padding: 10px 16px 10px 0; white-space: nowrap; vertical-align: top; width: 38%; }
.weo-facts td { padding: 10px 0; font-weight: 500; overflow-wrap: anywhere; }
/* Facts straight inside a card (no padded box): they keep the card's side margins. */
.weo-card > .weo-facts th:first-child { padding-left: 24px; }
.weo-card > .weo-facts td:last-child { padding-right: 24px; }
@media (max-width: 720px) { .weo-card > .weo-facts th:first-child { padding-left: 18px; } .weo-card > .weo-facts td:last-child { padding-right: 18px; } }
.weo-facts tr + tr th, .weo-facts tr + tr td { border-top: 1px solid var(--weo-line); }
.weo-section-title { font-size: 15px; font-weight: 600; margin: 0 0 4px; letter-spacing: -.012em; line-height: 1.35; }
.weo-section-title:has(> svg) { display: flex; align-items: center; gap: 7px; }
.weo-section-title > svg { flex: none; color: var(--weo-tint-text); }
.weo-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--weo-tint); color: var(--weo-tint-text); display: grid; place-items: center; font-weight: 600; font-size: 14px; flex: none; }
.weo-avatar-sm { width: 28px; height: 28px; font-size: 11px; }
.weo-context-card { border: 1px solid var(--weo-line); border-radius: 14px; padding: 10px 12px; background: var(--weo-subtle); display: block; text-decoration: none; color: inherit; transition: border-color .15s; }
.weo-context-card:hover { border-color: var(--weo-line-strong); }
.weo-context-title { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.weo-context-sub { color: var(--weo-muted); font-size: 12px; margin-top: 2px; }
.weo-search-btn { display: flex; align-items: center; gap: 10px; width: min(380px, 40vw); height: 44px; padding: 0 10px 0 16px; border: 1px solid var(--weo-card-border); border-radius: 14px; background: var(--weo-card); box-shadow: var(--weo-card-shadow); color: var(--weo-muted); font: inherit; font-size: 14px; cursor: pointer; transition: border-color .15s; }
.weo-search-btn:hover { border-color: var(--weo-line-strong); }
.weo-search-btn .weo-kbd { margin-left: auto; }
.weo-crumbs { display: flex; gap: 6px; align-items: center; min-width: 0; font-size: 13px; color: var(--weo-muted); white-space: nowrap; }
.weo-crumbs b { color: var(--weo-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; }
/* Phones: no keyboard shortcut to show, and only the current page in the breadcrumb. */
@media (max-width: 720px) { .weo-search-btn { width: 44px; padding: 0; justify-content: center; } .weo-search-btn span { display: none; } .weo-crumbs { display: none; } .weo-user-chip .weo-user-text { display: none; } }
.weo-topbar { height: 76px; display: flex; align-items: center; gap: 14px; padding: 0 32px; background: color-mix(in srgb, var(--weo-bg) 88%, transparent); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; box-sizing: border-box; }
@media (max-width: 960px) { .weo-topbar { padding: 0 16px; height: 64px; } }
.weo-topbar-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.weo-tile-btn { width: 44px; height: 44px; border-radius: 14px; border: 1px solid var(--weo-card-border); background: var(--weo-card); box-shadow: var(--weo-card-shadow); color: var(--weo-text); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; transition: background .15s; }
.weo-tile-btn:hover { background: var(--weo-subtle); }
.weo-user-chip { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 6px; border-radius: 14px; border: 1px solid var(--weo-card-border); background: var(--weo-card); box-shadow: var(--weo-card-shadow); min-width: 0; }
.weo-user-text { display: grid; line-height: 1.25; min-width: 0; padding-right: 4px; }
.weo-user-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.weo-user-text span { font-size: 12px; color: var(--weo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 180px; }
.weo-user-row { display: flex; align-items: center; gap: 10px; padding: 6px 4px; min-width: 0; }
.weo-user-row .weo-user-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weo-icon-btn { border: 0; background: transparent; color: var(--weo-muted); width: 32px; height: 32px; border-radius: var(--weo-radius); display: inline-grid; place-items: center; cursor: pointer; }
.weo-icon-btn:hover { background: var(--weo-subtle); color: var(--weo-text); }
/* ---------- Tables: one look for every table (shared list, report grid, hand-written) ----------
   Defined once with tokens; Phenix tints them with its brand (phenix.css). A page gets the look from .weo-table on the
   table and a .weo-card around it; nothing about the look is set on a page. */
:root {
  --weo-table-head-bg: color-mix(in srgb, var(--weo-subtle) 70%, var(--weo-card));
  --weo-table-head-text: var(--weo-muted);
  --weo-table-head-on: var(--weo-text);
  --weo-table-line: var(--weo-line);
  --weo-table-hover: color-mix(in srgb, var(--weo-subtle) 70%, var(--weo-card));
  --weo-table-zebra: color-mix(in srgb, var(--weo-subtle) 42%, var(--weo-card));
  --weo-table-selected: var(--weo-tint);
  --weo-table-selected-edge: var(--weo-primary);
  --weo-table-group-bg: color-mix(in srgb, var(--weo-subtle) 85%, var(--weo-card));
  --weo-table-group-text: var(--weo-text);
  --weo-table-group-edge: var(--weo-line-strong);
  --weo-table-subtotal-bg: color-mix(in srgb, var(--weo-subtle) 55%, var(--weo-card));
  --weo-table-total-bg: color-mix(in srgb, var(--weo-subtle) 90%, var(--weo-card));
  --weo-table-total-rule: var(--weo-line-strong);
  --weo-table-foot-bg: color-mix(in srgb, var(--weo-subtle) 45%, var(--weo-card));
  --weo-table-sort-on: var(--weo-primary-text);
  --weo-table-pad-y: 13px;
  --weo-table-pad-y-compact: 8px;
  --weo-table-pad-x: 12px;
  --weo-table-edge: 24px;
}
.weo-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.weo-table th { text-align: left; font-weight: 600; color: var(--weo-table-head-text); font-size: 12px; padding: 11px var(--weo-table-pad-x); border-bottom: 1px solid var(--weo-table-line);
  white-space: nowrap; background: var(--weo-table-head-bg); letter-spacing: .01em; vertical-align: bottom; }
.weo-table td { padding: var(--weo-table-pad-y) var(--weo-table-pad-x); border-bottom: 1px solid var(--weo-table-line); vertical-align: middle; }
.weo-table tr:not(:has(> th)):hover td { background: var(--weo-table-hover); }
.weo-table tr:last-child td { border-bottom: 0; }
/* A column of figures: right, on one line, in tabular digits (.weo-num alone only sets the digits). */
.weo-num-col { text-align: right !important; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* A row chosen (ticked, opened beside the list). */
.weo-table tr:is(.is-selected, [aria-selected="true"]) > td { background: var(--weo-table-selected); }
.weo-table tr:is(.is-selected, [aria-selected="true"]) > td:first-child { box-shadow: inset 3px 0 0 var(--weo-table-selected-edge); }
/* Sections, subtotals and totals: the same on reports and on tables written by hand (tfoot, .weo-row-*). */
.weo-table tr.weo-row-heading > td { font-weight: 650; color: var(--weo-table-group-text); background: var(--weo-table-group-bg); }
.weo-table tr.weo-row-heading > td:first-child { box-shadow: inset 3px 0 0 var(--weo-table-group-edge); }
.weo-table tr.weo-row-heading.is-repeated > td { font-weight: 550; }
.weo-table tr.weo-row-subtotal > td { font-weight: 600; background: var(--weo-table-subtotal-bg); }
.weo-table :is(tr.weo-row-total, tfoot tr) > :is(td, th) { font-weight: 700; color: var(--weo-text); background: var(--weo-table-total-bg); border-top: 1px solid var(--weo-table-total-rule); border-bottom: 0; }
.weo-table tfoot tr:last-child > :is(td, th), .weo-table tr.weo-row-total:last-child > td { box-shadow: inset 0 -3px 0 -1px var(--weo-table-total-rule); }
/* Compact rows: reports, and any table that asks (.is-compact). */
.weo-table.is-compact td, .weo-report-table td { padding-top: var(--weo-table-pad-y-compact); padding-bottom: var(--weo-table-pad-y-compact); }
/* Long reports read better banded. */
.weo-report-table tbody tr:not(.weo-row-heading, .weo-row-subtotal, .weo-row-total):nth-child(even) > td { background: var(--weo-table-zebra); }
.weo-report-table tbody tr:not(.weo-row-heading, .weo-row-subtotal, .weo-row-total):hover > td { background: var(--weo-table-hover); }
/* The frame: a card holding a table clips it, so the header band follows whatever corners the card really has (rounded
   alone, square where it is fused under a filter band) and no card colour shows round the header's corners. A table
   wider than its card (middle widths, the side menu open) scrolls sideways inside the card instead of being cut: a
   scrolling box clips to its corners just as clip does. !important: some pages still set overflow: hidden on the card
   itself. The card's head, its tools and its pager stay where they are while the table scrolls under them. Dropdowns
   are drawn outside (the library's portal), so nothing is cut. */
.weo-table-frame, .weo-card:has(> .weo-table, > div > .weo-table, > .weo-report-scroll) { overflow-x: auto !important; overflow-y: hidden !important; }
:is(.weo-table-frame, .weo-card:has(> .weo-table, > div > .weo-table)) > :is(.weo-card-head, .weo-table-tools, .weo-pager) { position: sticky; left: 0; }
.weo-table-frame { background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
/* Nothing to show, and loading, inside a table. */
.weo-table-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px; text-align: center; color: var(--weo-muted); font-size: 13px; }
.weo-table-empty b { color: var(--weo-text); font-weight: 600; font-size: 14px; }
.weo-table-empty > svg { width: 40px; height: 40px; padding: 10px; box-sizing: border-box; border-radius: 12px; background: var(--weo-subtle); color: var(--weo-muted); }
.weo-table tr.weo-table-empty-row:hover > td { background: transparent; }
.weo-table-loading td::after { content: ""; display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--weo-subtle), var(--weo-line), var(--weo-subtle)); background-size: 200% 100%; animation: weo-sheen 1.4s linear infinite; }
@keyframes weo-sheen { to { background-position: -200% 0; } }
/* A table's tools above its header: find in the rows, a column's value, what is shown. */
.weo-table-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 12px 16px; border-bottom: 1px solid var(--weo-table-line); background: var(--weo-card); }
.weo-table-find { position: relative; flex: 1 1 260px; max-width: 420px; display: flex; align-items: center; }
.weo-table-find > svg { position: absolute; left: 12px; color: var(--weo-muted); pointer-events: none; z-index: 1; }
.weo-table-find input { padding-left: 36px !important; }
.weo-table-choice { flex: 0 1 220px; min-width: 160px; }
.weo-table-found { font-size: 12.5px; color: var(--weo-muted); font-variant-numeric: tabular-nums; }
.weo-table-found::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--weo-primary); vertical-align: middle; }
.weo-card { background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
.weo-card-pad { padding: 24px; }
.weo-card-head { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; min-height: 28px; padding: 16px 24px; border-bottom: 1px solid var(--weo-line); }
.weo-card-head > .weo-section-title { margin: 0; }
.weo-tile { color: inherit; text-decoration: none; transition: box-shadow .15s, transform .15s; } .weo-tile:hover { transform: translateY(-1px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--weo-primary) 35%, transparent); }
.weo-row-link { cursor: pointer; } .weo-row-link:hover > td { background: color-mix(in srgb, var(--weo-primary) 5%, transparent); }
/* A click anywhere on a row opens its record (Experience.RowClickOpens): the script marks the rows that have one. */
html[data-row-open] tr[data-opens] { cursor: pointer; } html[data-row-open] tr[data-opens]:hover > td { background: color-mix(in srgb, var(--weo-primary) 5%, transparent); }
/* The rate board for a wall display (Rates.Board): over the whole screen, figures sized to the screen, the company's colours. */
.weo-board { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-rows: auto 1fr auto; gap: 2.2vh; padding: 3.2vh 3.2vw; background: var(--weo-bg); color: var(--weo-text); overflow: auto; }
.weo-board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 3px solid var(--weo-brand); padding-bottom: 1.6vh; }
.weo-board-title { font-size: clamp(26px, 4.4vh, 64px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; }
.weo-board-sub { font-size: clamp(13px, 1.9vh, 26px); color: var(--weo-muted); }
.weo-board-clock { text-align: right; font-size: clamp(26px, 4.4vh, 64px); font-weight: 650; font-variant-numeric: tabular-nums; line-height: 1.05; }
.weo-board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--weo-board-rows, 4), minmax(0, 1fr)); grid-auto-flow: column; gap: 1.4vh 2.4vw; min-height: 0; }
.weo-board-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.2vw; padding: 1vh 1.4vw; border-radius: 14px; background: var(--weo-card); border: 1px solid var(--weo-line); min-height: 0; }
.weo-board-row.is-stale { border-color: var(--weo-warning); }
.weo-board-code { font-size: clamp(22px, 4.6vh, 68px); font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.weo-board-code span, .weo-board-rate span { display: block; font-size: clamp(11px, 1.6vh, 22px); font-weight: 500; letter-spacing: 0; color: var(--weo-muted); margin-top: .5vh; overflow-wrap: anywhere; }
.weo-board-rate { font-size: clamp(22px, 4.6vh, 68px); font-weight: 650; font-variant-numeric: tabular-nums; text-align: right; line-height: 1; }
.weo-board-rate span { margin: 0 0 .5vh; }
.weo-board-foot { display: flex; justify-content: space-between; gap: 16px; font-size: clamp(12px, 1.6vh, 20px); color: var(--weo-muted); }
.weo-board-off { display: grid; place-content: center; text-align: center; gap: 10px; }
@media (max-width: 720px) { .weo-board-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; } }
/* The overview's recently opened records (Experience.Recents): a row of links that wraps. */
.weo-recent { display: flex; flex-wrap: wrap; gap: 8px; }
.weo-recent-item { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--weo-line); background: var(--weo-subtle); color: var(--weo-text); font-size: 13px; text-decoration: none; }
.weo-recent-item:hover { border-color: var(--weo-primary); }
.weo-recent-item span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "Removed. Undo" for a few seconds after a line or payment is taken off an entry form (Experience.UndoRemove). */
.weo-undo { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 55; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 999px; background: var(--weo-text); color: var(--weo-bg); font-size: 13px; box-shadow: 0 8px 24px color-mix(in srgb, var(--weo-text) 25%, transparent); }
.weo-undo-button { font: inherit; font-weight: 650; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; cursor: pointer; }
/* The list of keyboard shortcuts under the ? key (Experience.MoreShortcuts). */
.weo-keys { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--weo-text) 35%, transparent); }
.weo-keys-card { width: min(520px, 100%); max-height: 86vh; overflow: auto; padding: 22px 24px; border-radius: 16px; background: var(--weo-card); color: var(--weo-text); border: 1px solid var(--weo-line); }
.weo-keys-card h2 { margin: 0 0 14px; font-size: 17px; font-weight: 650; }
.weo-keys-card dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 9px 18px; margin: 0; font-size: 13.5px; }
.weo-keys-card dt { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; padding: 2px 8px; border-radius: 6px; background: var(--weo-subtle); border: 1px solid var(--weo-line); }
.weo-keys-card dd { margin: 0; align-self: center; }
.weo-keys-card .is-off { color: var(--weo-muted); opacity: .75; }
/* Words for a screen reader only (a column of tick boxes still has a heading). */
.weo-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
/* A person's saved views of a list, beside its filters. */
.weo-views { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; font-size: 13px; }
/* Rupee notes counted into a cash payment (Deals.CashDenominations): a row of small boxes that wraps. */
.weo-notes { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13px; padding: 6px 0 2px; }
.weo-notes label { display: inline-flex; align-items: center; gap: 6px; color: var(--weo-muted); }
.weo-notes input { width: 64px; padding: 5px 8px; border-radius: 8px; border: 1px solid var(--weo-line-strong); background: var(--weo-card); color: var(--weo-text); font: inherit; font-variant-numeric: tabular-nums; }
.weo-notes input:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 1px; }
/* A column heading that sorts its list. */
.weo-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; text-align: inherit; }
.weo-sort:hover { color: var(--weo-table-head-on); }
.weo-sort.is-on { color: var(--weo-table-sort-on); }
.weo-sort:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; border-radius: 4px; }
/* The sort mark: two faint carets, the one in force lit (CSS only, so the heading's words stay plain for a reader). */
.weo-sort-mark { position: relative; width: 8px; height: 12px; flex: none; opacity: .35; transition: opacity .15s; }
.weo-sort-mark::before, .weo-sort-mark::after { content: ""; position: absolute; left: 0; border: 4px solid transparent; }
.weo-sort-mark::before { top: -3px; border-bottom-color: currentColor; }
.weo-sort-mark::after { bottom: -3px; border-top-color: currentColor; }
.weo-sort:hover .weo-sort-mark { opacity: .7; }
.weo-sort-mark.is-up, .weo-sort-mark.is-down { opacity: 1; }
.weo-sort-mark.is-up::after, .weo-sort-mark.is-down::before { opacity: .25; }
.weo-table th[aria-sort="ascending"], .weo-table th[aria-sort="descending"] { color: var(--weo-table-sort-on); box-shadow: inset 0 -2px 0 var(--weo-table-sort-on); }
/* What is still to pay, one click from the amount box (Experience.PaymentChips). */
.weo-chip-fill { cursor: pointer; white-space: nowrap; } .weo-chip-fill:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; }
.weo-table th:first-child, .weo-table td:first-child { padding-left: var(--weo-table-edge); } .weo-table th:last-child, .weo-table td:last-child { padding-right: var(--weo-table-edge); }

/* Phone layout for lists: inside .weo-stack, tables become cards below 720px. The first cell is the card title;
   other cells show their label (data-label on plain tables, .weo-cell-label inside data-grid cells). */
.weo-cell-label { display: none; }
@media (max-width: 720px) {
  .weo-stack table, .weo-stack tbody, .weo-stack tr, .weo-stack td { display: block; width: 100% !important; box-sizing: border-box; }
  .weo-stack thead, .weo-stack tr:has(> th) { display: none; }
  .weo-stack tr { padding: 12px 16px; border-bottom: 1px solid var(--weo-line); }
  .weo-stack tr:last-child { border-bottom: 0; }
  .weo-stack td { display: flex; justify-content: flex-end; flex-wrap: wrap; align-items: center; gap: 4px 6px; padding: 3px 0 !important; border: 0 !important; text-align: right !important; min-height: 24px; }
  .weo-stack td:first-child { justify-content: flex-start; text-align: left !important; padding-bottom: 6px !important; }
  .weo-stack td:empty { display: none; }
  .weo-stack td[data-label]::before { content: attr(data-label); color: var(--weo-muted); font-size: 12px; font-weight: 400; text-align: left; margin-right: auto; }
  .weo-stack .weo-cell-label { display: inline; color: var(--weo-muted); font-size: 12px; font-weight: 400; margin-right: auto; }
  .weo-toolbar > * { flex: 1 1 100%; width: 100% !important; }
  .weo-page-actions { margin-left: 0; }
}
.weo-tree-row { display: flex; align-items: center; gap: 10px; padding: 10px 20px; border-bottom: 1px solid var(--weo-line); }
.weo-tree-row:last-child { border-bottom: 0; }
.weo-select-card { text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; transition: border-color .15s; }
.weo-select-card:hover { border-color: var(--weo-line-strong); }
.weo-select-card.on { border-color: var(--weo-primary); box-shadow: 0 0 0 1px var(--weo-primary); }
.weo-lock-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; }
@media (max-width: 720px) { .weo-lock-form { grid-template-columns: minmax(0, 1fr); } }
.weo-lock-row { padding: 14px 20px; border-bottom: 1px solid var(--weo-line); }
.weo-lock-row:last-child { border-bottom: 0; }
.weo-badge-x { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 0 0 0 4px; font-size: 14px; line-height: 1; }
/* Settings (2026-11): a find bar with three views over the page, areas in groups down the side (sticky, with counts and
   the open area's sections), the open area's head, then its sections as cards of settings. Tokens only. */
.weo-settings-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: stretch; margin-bottom: 22px; }
.weo-settings-find { position: relative; display: flex; align-items: center; min-width: 0; background: var(--weo-card); border: 1px solid var(--weo-card-border);
  border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); padding: 0 12px 0 18px; transition: border-color .15s, box-shadow .15s; }
.weo-settings-find:focus-within { border-color: var(--weo-primary); box-shadow: var(--weo-card-shadow), var(--weo-focus); }
.weo-settings-find > svg { flex: none; color: var(--weo-primary-text); }
.weo-settings-find input { height: 62px !important; border: 0 !important; box-shadow: none !important; background: transparent !important; font-size: 16px !important; padding-left: 14px !important; }
.weo-settings-clear { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--weo-subtle); color: var(--weo-muted); display: grid; place-items: center; cursor: pointer; }
.weo-settings-clear:hover { color: var(--weo-text); background: var(--weo-line); }
.weo-settings-views { display: grid; grid-template-columns: repeat(3, minmax(150px, 1fr)); gap: 10px; }
.weo-settings-view { display: flex; align-items: center; gap: 12px; padding: 10px 16px; text-align: left; font: inherit; color: var(--weo-text); cursor: pointer;
  background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); transition: border-color .15s, background .15s, transform .15s; }
.weo-settings-view:hover { border-color: color-mix(in srgb, var(--weo-primary) 40%, var(--weo-line-strong)); transform: translateY(-1px); }
.weo-settings-view:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.weo-settings-view-icon { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--weo-subtle); color: var(--weo-muted); }
.weo-settings-view-text { display: grid; line-height: 1.2; }
.weo-settings-view-text b { font-size: 22px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.weo-settings-view-text span { font-size: 12px; color: var(--weo-muted); white-space: nowrap; }
.weo-settings-view.on { border-color: var(--weo-primary); background: var(--weo-tint); box-shadow: 0 0 0 1px var(--weo-primary), var(--weo-card-shadow); }
.weo-settings-view.on .weo-settings-view-icon { background: var(--weo-primary); color: var(--weo-on-primary); }
.weo-settings-view.on .weo-settings-view-text span { color: var(--weo-tint-text); }
/* A fourth view, "Differs from the template", while the company follows a settings template (phase 19, task S4.3): four side by
   side (under the find bar until the window is wide enough for both on one line), two by two on a phone. */
.weo-settings-views.is-4 { grid-template-columns: repeat(4, minmax(130px, 1fr)); }
@media (max-width: 1440px) { .weo-settings-hero:has(> .weo-settings-views.is-4) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 720px) { .weo-settings-views.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.weo-settings { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 24px; align-items: start; }
.weo-settings-nav { position: sticky; top: 92px; display: grid; gap: 1px; max-height: calc(100vh - 110px); overflow-y: auto; padding: 10px; scrollbar-width: thin;
  background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
.weo-settings-group { padding: 12px 10px 5px; font-size: 11.5px; font-weight: 650; color: var(--weo-muted); letter-spacing: .01em; }
.weo-settings-group:first-child { padding-top: 4px; }
.weo-settings-area { position: relative; display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 10px; background: transparent; color: var(--weo-text);
  font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; transition: background .15s; }
.weo-settings-area:hover { background: var(--weo-subtle); }
.weo-settings-area:focus-visible, .weo-settings-section-link:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.weo-settings-area-icon { width: 26px; height: 26px; flex: none; border-radius: 8px; display: grid; place-items: center; background: var(--weo-subtle); color: var(--weo-muted); transition: background .15s, color .15s; }
.weo-settings-area-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.weo-settings-area.on { background: var(--weo-tint); color: var(--weo-tint-text); font-weight: 650; }
.weo-settings-area.on .weo-settings-area-icon { background: var(--weo-primary); color: var(--weo-on-primary); }
.weo-settings-area.none { color: var(--weo-muted); opacity: .5; }
.weo-settings-count { font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--weo-muted); min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--weo-subtle); text-align: center; }
.weo-settings-area.on .weo-settings-count { color: var(--weo-tint-text); background: color-mix(in srgb, var(--weo-card) 70%, transparent); }
.weo-settings-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--weo-accent); flex: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-accent) 20%, transparent); }
.weo-settings-sections { display: grid; gap: 1px; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--weo-primary) 30%, var(--weo-line)); }
.weo-settings-section-link { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--weo-muted);
  font: inherit; font-size: 12.5px; text-align: left; cursor: pointer; }
.weo-settings-section-link > span:first-child { flex: 1; min-width: 0; }
.weo-settings-section-link:hover { background: var(--weo-subtle); color: var(--weo-text); }
.weo-settings-section-link .weo-settings-count { background: transparent; padding: 0; min-width: 0; }

.weo-settings-main { display: grid; gap: 16px; min-width: 0; }
.weo-settings-found { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 550; color: var(--weo-text); }
.weo-settings-empty { display: grid; justify-items: center; gap: 6px; padding: 40px 24px; text-align: center; color: var(--weo-muted); font-size: 13.5px; }
.weo-settings-empty b { color: var(--weo-text); font-size: 15px; }
.weo-settings-empty-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--weo-subtle); color: var(--weo-muted); margin-bottom: 6px; }
.weo-settings-result-area { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 6px; font-size: 14px; font-weight: 650; }
.weo-settings-result-area .weo-link-btn { margin-left: auto; font-weight: 500; }

/* The open area's head: its icon on a brand tile, its name, what it holds, its counts. */
.weo-settings-area-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 22px 24px;
  background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
.weo-settings-area-tile { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--weo-primary) 75%, #FFFFFF), var(--weo-primary) 60%, color-mix(in srgb, var(--weo-primary) 70%, #000000));
  box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--weo-primary) 80%, transparent); }
.weo-settings-area-text { min-width: 0; }
.weo-settings-area-group { font-size: 12px; font-weight: 600; color: var(--weo-primary-text); }
.weo-settings-area-text h2 { margin: 2px 0 0; font-size: 22px; font-weight: 700; letter-spacing: -.025em; }
.weo-settings-area-text p { margin: 4px 0 0; font-size: 13.5px; color: var(--weo-muted); max-width: 70ch; line-height: 1.5; }
.weo-settings-stats { display: flex; gap: 8px; margin: 0; }
.weo-settings-stats > div { min-width: 78px; padding: 8px 12px; border-radius: 12px; background: var(--weo-subtle); text-align: center; }
.weo-settings-stats dt { font-size: 11.5px; color: var(--weo-muted); }
.weo-settings-stats dd { margin: 0; font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.weo-settings-stats .is-on { background: var(--weo-tint); } .weo-settings-stats .is-on dd { color: var(--weo-tint-text); }
.weo-settings-stats .is-branch { background: var(--weo-accent-tint); } .weo-settings-stats .is-branch dd { color: color-mix(in srgb, var(--weo-accent) 70%, var(--weo-text)); }

/* A section: a card of settings. */
.weo-set-section { overflow: clip; scroll-margin-top: 96px; }
.weo-set-section-head { display: flex; align-items: center; gap: 10px; padding: 13px 24px; border-bottom: 1px solid var(--weo-table-line); background: var(--weo-table-head-bg); }
.weo-set-section-head h3 { margin: 0; flex: 1; font-size: 13.5px; font-weight: 650; color: var(--weo-table-group-text); }

/* A setting: what it is on the left, its value and control on the right, its branch values under both. */
.weo-set { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); gap: 10px 28px; padding: 18px 24px; border-bottom: 1px solid var(--weo-line);
  scroll-margin-top: 110px; transition: background .2s; }
.weo-set:last-child { border-bottom: 0; }
.weo-set:hover { background: color-mix(in srgb, var(--weo-subtle) 45%, var(--weo-card)); }
.weo-set.is-changed { box-shadow: inset 3px 0 0 var(--weo-primary); }
.weo-set.is-linked { background: var(--weo-tint); box-shadow: inset 3px 0 0 var(--weo-primary), inset 0 0 0 1px color-mix(in srgb, var(--weo-primary) 35%, transparent); }
.weo-set.weo-guide-pulse { outline-offset: -3px; border-radius: 0; } .weo-set-section.weo-guide-pulse { outline-offset: -3px; border-radius: var(--weo-radius-card); }
.weo-set-text { min-width: 0; display: grid; gap: 5px; align-content: start; }
.weo-set-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weo-set-title h4 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.005em; }
.weo-set-desc { margin: 0; font-size: 13px; color: var(--weo-muted); line-height: 1.55; max-width: 76ch; }
.weo-set-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: center; font-size: 12px; color: var(--weo-muted); margin-top: 3px; }
.weo-set-meta b { color: var(--weo-text); font-weight: 600; }
.weo-set-key { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 6px; border: 1px solid var(--weo-line); border-radius: 7px; background: var(--weo-subtle);
  color: var(--weo-muted); font: inherit; cursor: pointer; transition: border-color .15s, color .15s; }
.weo-set-key code { font-size: 11.5px; color: var(--weo-text); }
.weo-set-key:hover, .weo-set-key:focus-visible { border-color: var(--weo-primary); color: var(--weo-primary-text); outline: none; }
.weo-set-when { display: inline-flex; align-items: center; gap: 5px; }
.weo-set-note { font-size: 12px; color: var(--weo-muted); }
.weo-set-related { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 12px; color: var(--weo-muted); }
.weo-set-related-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--weo-primary) 25%, var(--weo-line));
  background: var(--weo-card); color: var(--weo-text); font: inherit; font-size: 12px; cursor: pointer; }
.weo-set-related-chip b { font-weight: 600; color: var(--weo-primary-text); }
.weo-set-related-chip:hover, .weo-set-related-chip:focus-visible { border-color: var(--weo-primary); outline: none; }
.weo-set-sensitive svg { margin-right: -1px; }
.weo-set-branch-badge { background: var(--weo-accent-tint); color: color-mix(in srgb, var(--weo-accent) 72%, var(--weo-text)); }
.weo-hit { background: color-mix(in srgb, var(--weo-accent) 30%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; box-shadow: 0 1px 0 color-mix(in srgb, var(--weo-accent) 70%, transparent); }

.weo-set-side { display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; gap: 8px; min-width: 0; }
.weo-set-current { display: flex; align-items: center; justify-content: flex-end; gap: 10px; flex-wrap: wrap; min-height: 36px; }
.weo-set-value { font-size: 15px; font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.weo-set-value.is-on { color: var(--weo-success); } .weo-set-value.is-off { color: var(--weo-muted); }
.weo-set-switch { min-height: 36px; gap: 10px; }
.weo-set-empty { color: var(--weo-muted); font-weight: 400; font-style: italic; font-size: 13.5px; }
.weo-set-items { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; max-width: 340px; }
.weo-set-item { padding: 2px 9px; border-radius: 7px; background: var(--weo-subtle); border: 1px solid var(--weo-line); font-size: 12px; font-weight: 550; }
.weo-set-seg { flex-wrap: wrap; }
.weo-set-edit { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; max-width: 460px; }
.weo-set-input { position: relative; width: 190px; max-width: 100%; }
.weo-set-input.is-wide { width: 320px; }
.weo-set-input:has(.weo-set-unit) input { padding-right: 52px !important; }
.weo-set-unit { position: absolute; right: 1px; top: 1px; bottom: 1px; display: grid; place-items: center; min-width: 42px; padding: 0 8px; box-sizing: border-box; font-size: 12.5px; font-weight: 600;
  color: var(--weo-muted); background: var(--weo-subtle); border-left: 1px solid var(--weo-line); border-radius: 0 calc(var(--weo-radius) - 1px) calc(var(--weo-radius) - 1px) 0; pointer-events: none; }
.weo-set-input.is-wrong input { border-color: var(--weo-danger-solid) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-danger-solid) 18%, transparent) !important; }
.weo-set-problem { flex-basis: 100%; display: flex; align-items: flex-start; gap: 6px; justify-content: flex-end; text-align: right; font-size: 12.5px; font-weight: 550; color: var(--weo-danger); }
.weo-set-problem svg { flex: none; margin-top: 2px; }
.weo-set-hint { flex-basis: 100%; text-align: right; font-size: 12px; color: var(--weo-muted); }
.weo-set-reset { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border: 0; border-radius: 8px; background: transparent; color: var(--weo-muted); font: inherit; font-size: 12.5px; cursor: pointer; }
.weo-set-reset:hover:not(:disabled) { background: var(--weo-subtle); color: var(--weo-text); }
.weo-set-reset.is-danger:hover:not(:disabled) { background: var(--weo-danger-bg); color: var(--weo-danger); }
.weo-set-reset:focus-visible { outline: none; box-shadow: var(--weo-focus); }
.weo-set-reset:disabled { opacity: .5; cursor: default; }
/* Long values: a value, the default, the description and a branch's value wrap inside their own column (a string with no
   spaces breaks anywhere) and the value's column never takes the row; a long value (SettingsLayout.LongValue) is read
   under the description, across the row, and edited in a box of several lines; a very long one is clamped to three
   lines with Show all. */
.weo-set-desc, .weo-set-meta, .weo-set-value, .weo-set-item, .weo-set-related-chip, .weo-set-branch-chip, .weo-set-branch-head { overflow-wrap: anywhere; min-width: 0; }
.weo-set-side { max-width: 460px; }
.weo-set-current > .weo-set-value { min-width: 0; text-align: right; }
.weo-set-related-chip, .weo-set-branch-chip { max-width: 100%; }
.weo-set-default { min-width: 0; max-width: 100%; }
.weo-set-default:has(.weo-set-long) { flex-basis: 100%; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px; align-items: baseline; }
.weo-set-default-value { font-weight: 600; color: var(--weo-text); overflow-wrap: anywhere; }
.weo-set-long { display: grid; justify-items: start; gap: 2px; min-width: 0; }
.weo-set-clamp:not(.is-open) { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.weo-set-more { font-size: 12.5px; }
.weo-set.is-long { grid-template-columns: minmax(0, 1fr); }
.weo-set.is-long .weo-set-side { max-width: none; align-items: stretch; }
.weo-set.is-long .weo-set-current { justify-content: space-between; align-items: flex-start; padding: 10px 12px 10px 14px; border-radius: var(--weo-radius-inner); background: var(--weo-subtle); border: 1px solid var(--weo-line); }
.weo-set.is-long .weo-set-current > :is(.weo-set-value, .weo-set-long, .weo-set-items) { flex: 1 1 260px; max-width: none; justify-content: flex-start; text-align: left; font-size: 14px; font-weight: 550; line-height: 1.55; }
.weo-set.is-long .weo-set-edit { max-width: none; justify-content: flex-start; }
.weo-set.is-long .weo-set-reset, .weo-set.is-long .weo-set-problem, .weo-set.is-long .weo-set-hint { align-self: flex-start; justify-content: flex-start; text-align: left; }
.weo-set-input.is-box { width: 100%; }
.weo-set-input.is-box textarea { line-height: 1.5; resize: vertical; }
/* Where the settings' column is narrow (a laptop with the side menu open, a tablet), a setting reads as on a phone: its
   value under its description rather than squeezing it into a strip. */
.weo-settings-main { container-type: inline-size; }
@container (max-width: 600px) {
  .weo-set { grid-template-columns: minmax(0, 1fr); }
  .weo-set-side { max-width: none; }
  .weo-set-side, .weo-set-current, .weo-set-edit { align-items: flex-start; justify-content: flex-start; }
  .weo-set-current > .weo-set-value { text-align: left; }
  .weo-set-problem, .weo-set-hint { justify-content: flex-start; text-align: left; }
  .weo-set-items { justify-content: flex-start; }
}

/* A branch's own value: in the accent, so it never reads as the company's. */
.weo-set-branches { grid-column: 1 / -1; display: grid; gap: 8px; justify-items: start; }
.weo-set-branch-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.weo-set-branch-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 550;
  background: var(--weo-accent-tint); color: color-mix(in srgb, var(--weo-accent) 72%, var(--weo-text)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-accent) 28%, transparent); }
.weo-set-branch-chip b { font-weight: 700; color: var(--weo-text); }
.weo-link-btn { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; padding: 2px 0; color: var(--weo-primary-text); font: inherit; font-size: 13px; cursor: pointer; }
.weo-link-btn:hover { text-decoration: underline; }
.weo-set-branch-list { width: 100%; box-sizing: border-box; border: 1px solid color-mix(in srgb, var(--weo-accent) 30%, var(--weo-line)); border-radius: 14px; overflow: clip;
  background: color-mix(in srgb, var(--weo-accent-tint) 40%, var(--weo-card)); box-shadow: inset 3px 0 0 var(--weo-accent); }
.weo-set-branch-head { padding: 10px 16px; font-size: 12.5px; color: var(--weo-muted); border-bottom: 1px solid color-mix(in srgb, var(--weo-accent) 18%, var(--weo-line)); }
.weo-set-branch-head b { color: var(--weo-text); }
.weo-set-branch-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid color-mix(in srgb, var(--weo-accent) 14%, var(--weo-line)); }
.weo-set-branch-row .weo-set-side { flex-direction: row; align-items: center; }
.weo-set-branch-name { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 12px; color: var(--weo-muted); }
.weo-set-branch-add { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 12px 16px; }
.weo-set-branch-add .weo-set-problem { justify-content: flex-start; text-align: left; }

@media (max-width: 1180px) {
  .weo-settings-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .weo-settings { grid-template-columns: minmax(0, 1fr); }
  .weo-settings-nav { position: relative; top: auto; max-height: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px; scrollbar-width: thin; }
  .weo-settings-group, .weo-settings-sections, .weo-settings-area.none { display: none; }
  .weo-settings-area { width: auto; flex: none; white-space: nowrap; padding: 6px 10px 6px 6px; }
  .weo-settings-area-name { overflow: visible; }
  .weo-settings-area-head { grid-template-columns: auto minmax(0, 1fr); }
  .weo-settings-stats { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .weo-settings-views { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .weo-settings-view { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 12px; }
  .weo-settings-view-icon { display: none; }
  .weo-settings-view-text span { white-space: normal; }
  .weo-settings-find input { height: 52px !important; font-size: 15px !important; }
  .weo-settings-find input { min-width: 0; text-overflow: ellipsis; }
  .weo-settings-find input::placeholder { font-size: 13px; }
  .weo-settings-area-head { padding: 18px; gap: 14px; }
  .weo-settings-area-tile { width: 46px; height: 46px; border-radius: 14px; }
  .weo-settings-area-text h2 { font-size: 19px; }
  .weo-settings-stats > div { flex: 1; min-width: 0; }
  .weo-set { grid-template-columns: minmax(0, 1fr); padding: 16px 18px; }
  .weo-set-side, .weo-set-current, .weo-set-edit { align-items: flex-start; justify-content: flex-start; }
  .weo-set-problem, .weo-set-hint { justify-content: flex-start; text-align: left; }
  .weo-set-items { justify-content: flex-start; }
  .weo-set-section-head { padding: 12px 18px; }
}
/* Counter screens */
.weo-counter-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.weo-counter-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--weo-tint); color: var(--weo-primary-text); flex: none; }
.weo-counter-code { font-size: 22px; font-weight: 650; letter-spacing: -.01em; }
.weo-confirm { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 14px; border: 1px solid var(--weo-line); border-radius: var(--weo-radius); background: var(--weo-bg); }
.weo-confirm-row td { background: var(--weo-bg); }
/* Masters (M1) */
.weo-split-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; padding-top: 16px; border-top: 1px solid var(--weo-line); }
.weo-chip { font: inherit; font-size: 13px; font-variant-numeric: tabular-nums; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--weo-line-strong); background: var(--weo-card); color: var(--weo-text); cursor: pointer; }
.weo-chip:hover { border-color: var(--weo-primary); }
.weo-chip-off { color: var(--weo-muted); text-decoration: line-through; background: var(--weo-subtle); }
.weo-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 16px; }
.weo-check { display: flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.weo-flag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px 20px; }
.weo-flag { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; cursor: pointer; }
.weo-account-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 6px 20px; }
.weo-account-row { display: grid; grid-template-columns: 1fr 130px auto; gap: 8px; align-items: center; }
.weo-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.weo-product-off { opacity: .65; }
.weo-product-code, .weo-code-pill { display: inline-grid; place-items: center; min-width: 28px; height: 22px; padding: 0 6px; border-radius: 6px; background: var(--weo-tint); color: var(--weo-tint-text); font-weight: 600; font-size: 12px; letter-spacing: .02em; }
.weo-product-code { min-width: 36px; height: 30px; font-size: 13px; }
.weo-master-detail { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: 16px; align-items: start; }
.weo-list-group { padding: 10px 16px; font-size: 12px; font-weight: 600; color: var(--weo-muted); background: color-mix(in srgb, var(--weo-subtle) 70%, var(--weo-card)); border-top: 1px solid var(--weo-line); }
.weo-list-group:first-child { border-top: 0; border-radius: calc(var(--weo-radius-card) - 1px) calc(var(--weo-radius-card) - 1px) 0 0; }
.weo-list-row { display: flex; gap: 10px; align-items: center; width: 100%; padding: 9px 16px; border: 0; border-top: 1px solid var(--weo-line); background: transparent; color: var(--weo-text); font: inherit; font-size: 13px; cursor: pointer; }
.weo-list-row:first-child { border-top: 0; }
.weo-list-row:hover { background: var(--weo-subtle); }
.weo-list-row-on, .weo-list-row-on:hover { background: var(--weo-tint); box-shadow: inset 3px 0 0 var(--weo-primary); }
.weo-limit { padding: 12px 0; border-top: 1px solid var(--weo-line); display: grid; gap: 8px; }
.weo-limit-edit { padding: 14px; margin-top: 8px; border: 1px solid var(--weo-line); border-radius: var(--weo-radius); background: var(--weo-bg); }
.weo-limit-amounts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 4px 16px; font-size: 13px; color: var(--weo-muted); }
.weo-limit-amounts b { color: var(--weo-text); font-weight: 600; font-variant-numeric: tabular-nums; }
.weo-matrix td, .weo-matrix th { padding: 8px 10px; }
.weo-matrix-branch td { background: var(--weo-subtle); }
.weo-pager { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 10px 16px 10px var(--weo-table-edge); border-top: 1px solid var(--weo-table-line);
  background: var(--weo-table-foot-bg); font-size: 12.5px; }
.weo-pager-range { color: var(--weo-muted); font-variant-numeric: tabular-nums; display: inline-flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
.weo-pager-note { font-size: 12px; color: var(--weo-muted); opacity: .85; }
.weo-pager-size { display: inline-flex; align-items: center; gap: 8px; color: var(--weo-muted); margin-left: auto; }
.weo-pager-size select { height: 32px; padding: 0 28px 0 10px; border-radius: 8px; border: 1px solid var(--weo-line-strong); background-color: var(--weo-card); color: var(--weo-text); font: inherit; font-variant-numeric: tabular-nums; cursor: pointer;
  appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 14px) 14px, calc(100% - 10px) 14px; background-size: 4px 4px; background-repeat: no-repeat; }
.weo-pager-size select:focus-visible, .weo-pager-btn:focus-visible { outline: none; box-shadow: var(--weo-focus); border-color: var(--weo-primary); }
.weo-pager-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.weo-pager-range + .weo-pager-nav { margin-left: auto; }
.weo-pager-btn { min-width: 32px; height: 32px; padding: 0 9px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; border-radius: 8px; border: 1px solid transparent;
  background: transparent; color: var(--weo-text); font: inherit; font-weight: 550; font-variant-numeric: tabular-nums; cursor: pointer; transition: background .15s, border-color .15s; }
.weo-pager-btn:hover:not(:disabled):not(.is-current) { background: var(--weo-card); border-color: var(--weo-line-strong); }
.weo-pager-btn.is-current { background: var(--weo-primary); border-color: var(--weo-primary); color: var(--weo-on-primary); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--weo-primary) 70%, transparent); cursor: default; }
/* Keyboard focus on the current page: a ring set off from the filled button (its own shadow would hide the usual one). */
.weo-pager-btn.is-current:focus-visible { box-shadow: 0 0 0 2px var(--weo-card), 0 0 0 4px var(--weo-primary); }
.weo-pager-btn:disabled { opacity: .4; cursor: default; }
.weo-pager-btn.is-step { color: var(--weo-muted); }
.weo-pager-gap { min-width: 20px; text-align: center; color: var(--weo-muted); }
@media (max-width: 720px) {
  .weo-pager { padding: 10px 12px 10px 18px; }
  .weo-pager-btn.is-step span { display: none; }
  .weo-pager-size > span { display: none; }
}
/* Narrow screens: one pane at a time; an open record hides the list until it is closed. */
@media (max-width: 900px) { .weo-master-detail { grid-template-columns: minmax(0, 1fr); } .weo-detail-open > :first-child { display: none; } }
@media (max-width: 720px) { .weo-account-row { grid-template-columns: 1fr 110px auto; } .weo-matrix-branch td { background: transparent; } }

/* Rates (M1b) */
.weo-row-stale td { background: color-mix(in srgb, var(--weo-warning-bg) 45%, transparent); }
.weo-rate-edit { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 14px; align-items: end; }
.weo-margin-grid td, .weo-margin-grid th { padding: 6px 8px; }
.weo-margin-cell { text-align: center; }
.weo-margin-btn { width: 100%; min-width: 92px; border: 1px solid transparent; border-radius: 6px; background: transparent; padding: 6px 4px; font: inherit; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--weo-text); cursor: pointer; }
.weo-margin-btn:hover { border-color: var(--weo-line-strong); }
.weo-margin-own .weo-margin-btn { background: var(--weo-tint); color: var(--weo-tint-text); font-weight: 600; }
.weo-margin-inherited .weo-margin-btn { color: var(--weo-muted); }
.weo-margin-editing .weo-margin-btn { border-color: var(--weo-primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--weo-primary) 20%, transparent); }
.weo-margin-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; font-size: 12px; color: var(--weo-muted); }
.weo-margin-legend > span { display: inline-flex; gap: 6px; align-items: center; }
.weo-margin-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid var(--weo-line-strong); }
.weo-margin-swatch.weo-margin-own { background: var(--weo-tint); }
.weo-band { display: block; font-size: 11px; }
.weo-rate-first td { border-top: 1px solid var(--weo-line-strong); }
@media print {
  .weo-no-print, .weo-topbar, [data-sidebar], aside, nav { display: none !important; }
  .weo-page { padding: 0 !important; max-width: none !important; }
  .weo-card { border: 0 !important; box-shadow: none !important; }
  body { background: #fff !important; }
}

/* Parties (M1c) */
.weo-party-form { display: grid; gap: 0; }
.weo-party-form > section { display: grid; gap: 14px; padding: 22px 0; border-top: 1px solid var(--weo-line); min-width: 0; }
.weo-party-form > section:first-of-type { border-top: 0; padding-top: 4px; }
.weo-party-form > section:last-child { padding-bottom: 4px; }
.weo-party-form h3 { margin: 0; font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--weo-text); }
/* Wide forms: each section's heading in a column of its own beside its fields. */
@media (min-width: 1200px) {
  .weo-card-pad.weo-party-form > section { grid-template-columns: 200px minmax(0, 1fr); column-gap: 32px; align-items: start; }
  .weo-card-pad.weo-party-form > section > h3 { grid-column: 1; grid-row: 1; padding-top: 2px; }
  .weo-card-pad.weo-party-form > section > :not(h3) { grid-column: 2; }
  .weo-card-pad.weo-party-form > section > h3 + * { grid-row: 1; }
}

/* Documents (M2b): a label styled as a small outline button around a hidden file input */
.weo-file-btn { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 1px solid var(--weo-line); border-radius: var(--weo-radius); background: var(--weo-card); color: var(--weo-text); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; }
.weo-file-btn:hover { background: var(--weo-subtle); }
.weo-file-btn:focus-within { outline: 2px solid var(--weo-primary); outline-offset: 2px; }
.weo-file-btn input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.weo-file-btn[aria-disabled=true] { opacity: .5; pointer-events: none; }
.weo-doc-list { display: grid; gap: 0; }
.weo-doc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 10px 0; border-bottom: 1px solid var(--weo-line); }
.weo-doc-row:last-child { border-bottom: 0; }
.weo-doc-name { flex: 1 1 220px; min-width: 0; }
.weo-doc-meta { font-size: 12px; color: var(--weo-muted); overflow-wrap: anywhere; }

/* Till count (M3) */
.weo-till-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.weo-till-row { display: grid; grid-template-columns: 72px 96px 1fr; align-items: center; gap: 8px; font-size: 13px; }
.weo-till-row > :last-child { text-align: right; }
.weo-till-total { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; font-size: 13px; padding-top: 8px; border-top: 1px solid var(--weo-line); }
.weo-till-total > :nth-child(even) { text-align: right; }

/* Settings: colour swatches and pickers */
.weo-swatch { display: inline-block; width: 18px; height: 18px; border-radius: 6px; border: 1px solid var(--weo-line-strong); vertical-align: middle; }
.weo-colour-input { width: 40px; height: 36px; padding: 2px; border: 1px solid var(--weo-line); border-radius: 10px; background: var(--weo-card); cursor: pointer; }

/* Dashboard (Overview) */
.weo-hello { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.weo-hello h1 { font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin: 0; }
.weo-hello p { margin: 6px 0 0; color: var(--weo-muted); font-size: 14px; }
.weo-stat { display: grid; gap: 4px; }
.weo-stat-label { color: var(--weo-muted); font-size: 13px; font-weight: 500; display: flex; align-items: center; gap: 8px; }
.weo-stat-value { font-size: 34px; font-weight: 600; letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.weo-stat-big { font-size: clamp(28px, 3.2vw, 42px); overflow-wrap: anywhere; }
/* Grid columns never grow past their share: wide content scrolls or wraps inside them. */
.weo-grid > * { min-width: 0; }
.weo-stat-note { font-size: 12px; color: var(--weo-muted); }
.weo-trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 12px; }
.weo-trend-up { color: var(--weo-success); }
.weo-trend-down { color: var(--weo-danger); }
.weo-stat-stack { display: grid; gap: 22px; align-content: start; }
.weo-stat-stack > * + * { padding-top: 22px; border-top: 1px solid var(--weo-line); }
.weo-dot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex: none; }
.weo-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--weo-muted); }
.weo-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.weo-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px 8px; }
.weo-action { display: grid; justify-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--weo-text); text-decoration: none; }
.weo-action-icon { width: 54px; height: 54px; border-radius: 16px; border: 1px solid var(--weo-line); display: grid; place-items: center; background: var(--weo-card); transition: background .15s, border-color .15s; }
.weo-action:hover .weo-action-icon { background: var(--weo-tint); border-color: transparent; color: var(--weo-tint-text); }
.weo-mix { display: flex; gap: 4px; height: 26px; margin: 14px 0 18px; }
.weo-mix > span { border-radius: 7px; min-width: 6px; }
.weo-mix-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.weo-mix-row b { font-weight: 500; font-variant-numeric: tabular-nums; }
.weo-feed-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; text-decoration: none; color: inherit; }
.weo-feed-row + .weo-feed-row { border-top: 1px solid var(--weo-line); }
.weo-feed-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--weo-tint); color: var(--weo-tint-text); }
.weo-feed-mark.weo-buy { background: var(--weo-accent-tint); color: color-mix(in srgb, var(--weo-accent) 75%, var(--weo-text)); }
.weo-feed-title { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weo-feed-sub { font-size: 12px; color: var(--weo-muted); }
/* A sentence in the feed (where a voucher waits, and why): shown whole on as many lines as it needs, never cut short. */
.weo-feed-row.is-sentence { align-items: start; }
.weo-feed-row.is-sentence .weo-feed-title { white-space: normal; overflow: visible; text-overflow: clip; font-weight: 500; line-height: 1.45; overflow-wrap: anywhere; }
.weo-feed-amount { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.weo-feed-amount small { display: block; font-weight: 500; font-size: 11px; }
.weo-gauge { display: grid; justify-items: center; position: relative; }
.weo-gauge-label { position: absolute; bottom: 4px; text-align: center; }
.weo-gauge-label b { display: block; font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.weo-gauge-label span { font-size: 12px; color: var(--weo-muted); }
.weo-card-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 4px; flex-wrap: wrap; }
.weo-card-sub { font-size: 12px; color: var(--weo-muted); margin-top: 2px; }
.weo-seg { display: inline-flex; flex-wrap: wrap; max-width: 100%; padding: 3px; border-radius: 11px; background: color-mix(in srgb, var(--weo-line) 75%, var(--weo-bg)); gap: 2px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-line-strong) 45%, transparent); }
.weo-seg button { border: 0; background: transparent; color: var(--weo-muted); font: inherit; font-size: 12.5px; font-weight: 550; min-height: 30px; padding: 0 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: color .15s, background .15s; }
.weo-seg button:hover { color: var(--weo-text); }
.weo-seg button:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 1px; }
.weo-seg button[aria-pressed="true"] { background: var(--weo-card); color: var(--weo-text); box-shadow: 0 1px 2px rgba(17, 19, 24, .08), 0 0 0 1px var(--weo-card-border); }
@media (max-width: 720px) { .weo-stat-big { font-size: 34px; } .weo-stat-value { font-size: 30px; } .weo-hello h1 { font-size: 24px; } }
@media (max-width: 720px) { .weo-toolbar > .weo-seg { display: flex; } .weo-toolbar > .weo-seg button { flex: 1 1 auto; } }
/* Medium widths (sidebar open on a small laptop or tablet): search and user collapse to icon tiles. */
@media (max-width: 1180px) {
  .weo-search-btn { width: 44px; padding: 0; justify-content: center; }
  .weo-search-btn span { display: none; }
  .weo-user-chip .weo-user-text { display: none; }
}
.weo-crumbs { flex: 1 1 auto; overflow: hidden; }
main { min-width: 0; }
h1:focus, [tabindex="-1"]:focus { outline: none; }

/* Reports (M9): sticky column titles, figures right-aligned in tabular numbers, sections and totals set apart */
.weo-report-scroll { overflow: auto; }
/* The sticky header keeps its band and its rule while rows scroll under it (a collapsed border would scroll away). */
.weo-report-table thead th { position: sticky; top: 0; z-index: 2; border-bottom: 0; box-shadow: inset 0 -1px 0 var(--weo-table-line); }
.weo-report-table thead th[aria-sort="ascending"], .weo-report-table thead th[aria-sort="descending"] { box-shadow: inset 0 -2px 0 var(--weo-table-sort-on); }
/* The grand totals stay in view at the foot of a long report. */
.weo-report-table tfoot td { position: sticky; bottom: 0; z-index: 1; }
.weo-report-print-note { margin: 8px 16px; font-size: 11px; color: var(--weo-muted); }
.weo-report-head { display: grid; gap: 2px; margin-bottom: 12px; font-size: 12px; color: var(--weo-muted); }
.weo-report-bar { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 16px 20px; align-items: end; margin-bottom: 16px; }
.weo-report-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 18px; }
/* A report's choices and its Show / export buttons: one panel, the buttons on its foot. */
.weo-report-bar:has(+ .weo-report-actions) { margin-bottom: 0; padding: 20px 24px; background: var(--weo-card); border: 1px solid var(--weo-card-border); border-bottom: 0;
  border-radius: var(--weo-radius-card) var(--weo-radius-card) 0 0; box-shadow: var(--weo-card-shadow); }
.weo-report-bar + .weo-report-actions { margin-bottom: var(--weo-gap); padding: 12px 24px; background: color-mix(in srgb, var(--weo-subtle) 70%, var(--weo-card));
  border: 1px solid var(--weo-card-border); border-top: 1px solid var(--weo-line); border-radius: 0 0 var(--weo-radius-card) var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
@media (max-width: 720px) { .weo-report-bar:has(+ .weo-report-actions) { padding: 16px 18px; } .weo-report-bar + .weo-report-actions { padding: 12px 18px; } }
/* A row of filters at the top of a page (no report bar above it) is a filter band, fused to the list card below it. */
.weo-page > .weo-report-actions:not(.weo-report-bar + *) { padding: 12px 16px; margin-bottom: 16px !important; background: var(--weo-card); border: 1px solid var(--weo-card-border);
  border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
.weo-page > .weo-report-actions:not(.weo-report-bar + *):has(+ .weo-card) { margin-bottom: 0 !important; border-bottom-color: var(--weo-line); border-radius: var(--weo-radius-card) var(--weo-radius-card) 0 0; position: relative; z-index: 1; }
.weo-page > .weo-report-actions:not(.weo-report-bar + *) + .weo-card { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.weo-check-tile { display: grid; gap: 6px; }
.weo-check-pass { border-left: 4px solid var(--weo-success) !important; }
.weo-check-warn { border-left: 4px solid #d97706 !important; }
.weo-check-fail { border-left: 4px solid var(--weo-danger) !important; }
.weo-print-only { display: none; }
@media print {
  .weo-report-scroll { max-height: none !important; overflow: visible !important; }
  .weo-report-table thead th { position: static; }
  .weo-report-table tfoot { display: table-row-group; }
  .weo-report-table tfoot td { position: static; }
  .weo-table-frame, .weo-card:has(> .weo-table, > div > .weo-table, > .weo-report-scroll) { overflow: visible !important; }
  .weo-print-only { display: grid; }
  .weo-report-bar, .weo-report-actions { display: none !important; }
}
/* ---------- A report page in print (phase 18, package 25, task 25.11: the print layout while no PDF library is set) ----------
   The grid's heading prints the institution, the title, the branches, the period and the choices as chosen; the stamp under it says who
   printed it and when. The way back, the page's badges, the table's tools and pager are left off; the column titles repeat on every page,
   a row is never cut across two pages, and the totals stay with the table they close. Tokens only.
   Dark text on white whatever the theme (task 25.12): in the dark theme the printed report takes the light scheme's own colours, Canvas and
   CanvasText, as the customer site's invoice does on screen; the light theme prints as it is. */
.weo-report-printed { display: none; }
@media print {
  html.dark:has(.weo-report-page) { color-scheme: light; }
  html.dark:has(.weo-report-page) body, html.dark .weo-report-page, html.dark .weo-report-page * { color: CanvasText !important; background: Canvas !important;
    border-color: GrayText !important; box-shadow: none !important; }
  .weo-report-page > .weo-back, .weo-report-page .weo-page-actions, .weo-report-page .weo-table-tools, .weo-report-page .weo-pager,
  .weo-report-page .weo-report-print-note, .weo-report-page .weo-sort-mark { display: none !important; }
  .weo-report-page .weo-page-head { margin-bottom: 6px; }
  .weo-report-page .weo-page-head p { color: var(--weo-muted); }
  .weo-report-printed { display: block; margin: 0 0 6px; font-size: 11px; color: var(--weo-muted); }
  .weo-report-page .weo-report-head > div:first-child { font-weight: 600; color: var(--weo-text); }
  .weo-report-page .weo-report-table thead { display: table-header-group; }
  .weo-report-page .weo-report-table tr { break-inside: avoid; page-break-inside: avoid; }
  .weo-report-page .weo-report-table tr.weo-row-total, .weo-report-page .weo-report-table tfoot tr { break-before: avoid; page-break-before: avoid; }
  .weo-report-page .weo-report-table tfoot { break-inside: avoid; page-break-inside: avoid; }
  .weo-report-page .weo-report-table .weo-sort { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
  .weo-report-page .weo-report-table td, .weo-report-page .weo-report-table th { border-bottom: 1px solid var(--weo-line-strong); }
  .weo-report-page .weo-report-table a { color: inherit; text-decoration: none; }
}

/* Deal entry (M4 design §20): numbered step cards, the customer at a glance, currency lines as a table. */
.weo-entry { display: grid; gap: 18px; align-content: start; min-width: 0; }
.weo-entry > * { min-width: 0; }
.weo-entry-step > header { display: flex; align-items: center; gap: 10px; padding: 22px 24px 0; flex-wrap: wrap; }
.weo-entry-step > header h2 { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.012em; }
.weo-step-no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--weo-tint); color: var(--weo-tint-text); font-size: 12.5px; font-weight: 700; flex: none; font-variant-numeric: tabular-nums; }
.weo-entry-body { padding: 18px 24px 24px; display: grid; gap: 18px; }
.weo-entry-row { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
.weo-switch-label { display: inline-flex; gap: 10px; align-items: center; font-size: 13px; }
.weo-entry-sub { display: grid; gap: 14px; padding: 16px 18px 18px; border: 1px solid var(--weo-line); border-radius: var(--weo-radius-inner); background: color-mix(in srgb, var(--weo-subtle) 70%, var(--weo-card)); }
.weo-entry-sub-title { font-size: 13px; font-weight: 600; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.weo-entry-sub-title .weo-muted { font-weight: 400; }
.weo-grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 18px 16px; align-items: start; }
.weo-entry-search { display: flex; align-items: center; gap: 10px; max-width: 560px; padding: 0 0 0 12px; border: 1px solid var(--weo-line-strong); border-radius: 12px; color: var(--weo-muted); }
.weo-entry-search input, .weo-entry-search > div { border: 0 !important; box-shadow: none !important; flex: 1; }
.weo-entry-search input[class~="bb:border-input"], .weo-entry-search input[class~="bb:border-input"]:focus { border: 0 !important; box-shadow: none !important; background: transparent; }
.weo-entry-search { background: var(--weo-card); height: 44px; border-radius: var(--weo-radius); transition: border-color .15s, box-shadow .15s; }
.weo-entry-search:focus-within { box-shadow: var(--weo-focus); }
.weo-entry-search:focus-within { border-color: var(--weo-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 18%, transparent); }
.weo-entry-keys { display: inline-flex; gap: 3px; padding-right: 10px; }
.weo-entry-keys kbd, .weo-kbd-inline { font: 600 10px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--weo-line-strong); color: var(--weo-muted); background: var(--weo-subtle); }
.weo-kbd-inline { margin-left: 6px; opacity: .8; border-color: currentColor; background: transparent; color: inherit; }
@media (max-width: 720px) { .weo-entry-keys, .weo-kbd-inline { display: none; } }
/* Customers found: the whole row picks, arrow keys move the highlight, the last row adds a new customer. */
.weo-pick-list { max-width: 720px; }
.weo-pick-scroll { max-height: 340px; overflow-y: auto; padding: 0 12px; margin: 0 -12px; overscroll-behavior: contain; }
/* Choices in a form field (gender, residence): wrap rather than run out of a narrow panel. */
.weo-field > .weo-seg { display: flex; flex-wrap: wrap; width: fit-content; max-width: 100%; }
.weo-pick { padding: 10px 12px; margin: 0 -12px; border-radius: 10px; border-bottom-color: transparent; cursor: pointer; }
.weo-pick:hover { background: var(--weo-subtle); }
.weo-pick.is-highlighted { background: var(--weo-tint); box-shadow: inset 3px 0 0 var(--weo-primary); }
.weo-pick-new { display: flex; align-items: center; gap: 8px; width: calc(100% + 24px); margin: 4px -12px 0; padding: 10px 12px; border: 1px dashed var(--weo-line-strong); border-radius: 10px; background: transparent; color: var(--weo-primary-text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.weo-pick-new:hover, .weo-pick-new:focus-visible { background: var(--weo-tint); border-color: var(--weo-primary); outline: none; }
.weo-pick-empty { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; max-width: 720px; padding: 12px 14px; border: 1px dashed var(--weo-line-strong); border-radius: 12px; font-size: 13px; }
.weo-pick-empty .weo-muted { font-size: 12px; margin-top: 2px; }
/* What is done and still to do, in the summary; the total fades while it is worked out again. */
.weo-checklist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 12.5px; color: var(--weo-muted); }
.weo-checklist li { display: flex; align-items: center; gap: 6px; }
.weo-checklist li.is-done { color: var(--weo-text); }
.weo-checklist li.is-done svg { color: var(--weo-success); }
.weo-calculating { opacity: .45; transition: opacity .2s; }
.weo-balance-gap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--weo-danger) 10%, transparent); font-size: 12.5px; }
.weo-field-hint { font-size: 12px; line-height: 1.45; font-weight: 400; color: var(--weo-muted); }
.weo-field-hint.is-wrong { color: var(--weo-danger); }
.weo-entry-place { display: flex; gap: 8px; flex-wrap: wrap; }
.weo-entry-place > span { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; padding: 5px 10px; border-radius: 999px; background: var(--weo-subtle); border: 1px solid var(--weo-line); color: var(--weo-muted); }
.weo-entry-who { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--weo-muted); }
.weo-cust { display: grid; gap: 14px; }
.weo-cust-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.weo-cust-avatar { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: var(--weo-tint); color: var(--weo-tint-text); font-weight: 700; font-size: 15px; flex: none; }
.weo-cust-name { font-size: 16px; font-weight: 600; }
.weo-cust-sub { font-size: 12px; color: var(--weo-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 2px; }
.weo-cust-badges { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.weo-cust-kyc { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 18px; margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--weo-subtle); }
.weo-cust-kyc dt { font-size: 12px; font-weight: 500; color: var(--weo-muted); }
.weo-cust-kyc dd { margin: 2px 0 0; font-size: 13px; }
.weo-cust-missing { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--weo-warning); }
.weo-cust-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.weo-cust-history { overflow-x: auto; margin: 0 -4px; }
.weo-cust-history .weo-table { font-size: 13px; min-width: 460px; }
.weo-cust-history .weo-table th, .weo-cust-history .weo-table td { padding: 8px 8px; }
.weo-lines { display: grid; gap: 0; }
.weo-line { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, .9fr) 32px; gap: 8px; align-items: center; }
.weo-line > * { min-width: 0; }
.weo-line-head { font-size: 12px; font-weight: 550; color: var(--weo-muted); padding-bottom: 8px; border-bottom: 1px solid var(--weo-line); }
.weo-line-block { padding: 10px 0; border-bottom: 1px solid var(--weo-line); display: grid; gap: 8px; }
.weo-line-block:last-child { border-bottom: 0; }
.weo-line-inr { font-weight: 600; text-align: right; }
.weo-line-more { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weo-line-more:empty { display: none; }
.weo-sheet-wide { width: min(640px, 100vw) !important; max-width: 100vw !important; display: flex; flex-direction: column; }
.weo-sheet-body { overflow-y: auto; padding: 4px 4px 16px; flex: 1; }
/* A sheet's foot under its scrolling body (the Trade desk's approval sheet): never shrinks, so its buttons stay in view at any height. */
.weo-sheet-foot { flex: none; display: grid; gap: 10px; padding: 12px 4px 0; border-top: 1px solid var(--weo-line); }
@media (max-width: 1100px) {
    .weo-line { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .weo-line-head { display: none; }
}
@media (max-width: 720px) {
    .weo-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .weo-line-head { display: none; }
    .weo-entry-step > header, .weo-entry-body { padding-left: 16px; padding-right: 16px; }
}


/* Pages that may not open, and pages that ran into a problem (UX review 2026-10-28). */
.weo-no-access { max-width: 520px; margin: 8vh auto 0; padding: 32px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.weo-no-access h1 { font-size: 22px; font-weight: 600; margin: 6px 0 0; letter-spacing: -.02em; }
.weo-no-access p { margin: 0; color: var(--weo-muted); font-size: 14px; line-height: 1.55; }
.weo-no-access-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: color-mix(in srgb, var(--weo-primary) 12%, transparent); color: var(--weo-primary); }
.weo-no-access-icon.is-problem { background: color-mix(in srgb, var(--weo-danger) 12%, transparent); color: var(--weo-danger); }
.weo-no-access-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }

/* Phone widths: nothing pushes the page sideways (UX review 2026-10-28). Grid items and cards may shrink below their
   content, a table outside a phone list scrolls in its own box, and fixed widths set inline stop at the screen. */
.weo-grid > *, .weo-card, main [style*="display: grid"] > * { min-width: 0; }
@media (max-width: 720px) {
  .weo-table:not(.weo-stack .weo-table) { display: block; overflow-x: auto; }
  /* A table set edge to edge in a padded card follows the card's phone padding. */
  .weo-card-pad > .weo-table[style*="calc(100% + 48px)"] { margin-left: -18px !important; margin-right: -18px !important; width: calc(100% + 36px) !important; }
  /* ...while a narrow table (three columns at most) stays a table and spans its card. */
  .weo-table:not(.weo-stack .weo-table):not(:has(> tr > :nth-child(4), > tbody > tr > :nth-child(4))) { display: table; }
  main [style*="width: "]:not(table, tr, th, td, col) { max-width: 100%; }
}

/* Connection to the server lost (App.razor): Blazor sets components-reconnect-* on #components-reconnect-modal. */
#components-reconnect-modal { display: none; }
#components-reconnect-modal.components-reconnect-show, #components-reconnect-modal.components-reconnect-retrying,
#components-reconnect-modal.components-reconnect-failed, #components-reconnect-modal.components-reconnect-rejected {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 10001; background: color-mix(in srgb, var(--weo-text) 18%, transparent); backdrop-filter: blur(2px); }
.weo-reconnect-card { max-width: 420px; margin: 16px; padding: 22px 24px; border-radius: 16px; background: var(--weo-card); color: var(--weo-text); box-shadow: var(--weo-card-shadow); border: 1px solid var(--weo-line); }
.weo-reconnect-card > div { display: none; gap: 8px; justify-items: start; font-size: 14px; }
.weo-reconnect-card span { color: var(--weo-muted); line-height: 1.5; }
.weo-reconnect-card b { font-size: 16px; }
.weo-reconnect-card button, .weo-fatal button { margin-top: 6px; border: 0; border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; background: var(--weo-primary); color: #fff; }
.components-reconnect-show .weo-reconnect-on-show, .components-reconnect-retrying .weo-reconnect-on-show,
.components-reconnect-failed .weo-reconnect-on-failed, .components-reconnect-rejected .weo-reconnect-on-rejected { display: grid; }
.weo-reconnect-spin { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--weo-line); border-top-color: var(--weo-primary); animation: weo-spin .8s linear infinite; }
@keyframes weo-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .weo-reconnect-spin { animation-duration: 2.4s; } }

/* An error that ended the page (blazor.web.js shows #blazor-error-ui). */
#blazor-error-ui { display: none; }
.weo-fatal { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 10002; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 14px;
  background: var(--weo-card); color: var(--weo-text); border: 1px solid color-mix(in srgb, var(--weo-danger) 45%, var(--weo-line)); box-shadow: var(--weo-card-shadow); font-size: 14px; max-width: calc(100vw - 32px); }
.weo-fatal button { margin-top: 0; }

/* The assistant (M11): a panel on the right, full screen on phones. */
.weo-ai-toggle[aria-expanded="true"] { color: var(--weo-primary); background: color-mix(in srgb, var(--weo-primary) 12%, transparent); }
.weo-ai-panel { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); z-index: 60; display: flex; flex-direction: column;
  background: var(--weo-card); border-left: 1px solid var(--weo-line); box-shadow: -18px 0 48px rgba(0, 0, 0, .16);
  animation: weo-ai-in .22s cubic-bezier(.2, .8, .2, 1); transition: width .22s cubic-bezier(.2, .8, .2, 1); }
.weo-ai-panel.is-wide { width: min(760px, 100vw); }
@keyframes weo-ai-in { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.weo-ai-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--weo-line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--weo-primary) 6%, var(--weo-card)), var(--weo-card)); }
.weo-ai-title { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; min-width: 0; }
.weo-ai-sub { font-weight: 400; font-size: 11.5px; color: var(--weo-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.weo-ai-mark, .weo-ai-avatar { display: grid; place-items: center; flex: none; border-radius: 10px; color: #fff;
  background: linear-gradient(135deg, var(--weo-primary), color-mix(in srgb, var(--weo-primary) 55%, #a855f7)); box-shadow: 0 4px 14px color-mix(in srgb, var(--weo-primary) 35%, transparent); }
.weo-ai-mark { width: 32px; height: 32px; }
.weo-ai-avatar { width: 24px; height: 24px; border-radius: 8px; margin-top: 1px; }
.weo-ai-head-actions { display: inline-flex; gap: 2px; }
.weo-ai-head-actions [aria-pressed="true"] { color: var(--weo-primary); background: color-mix(in srgb, var(--weo-primary) 12%, transparent); }
.weo-ai-body { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; }
.weo-ai-log { flex: 1; overflow: hidden auto; padding: 16px 14px; display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px;
  overscroll-behavior: contain; scrollbar-gutter: stable; }
.weo-ai-latest { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: none; align-items: center; gap: 6px; padding: 6px 12px 6px 10px;
  border-radius: 999px; border: 1px solid var(--weo-line); background: var(--weo-card); color: var(--weo-text); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .28); z-index: 1; }
.weo-ai-latest svg { color: var(--weo-primary); }
.weo-ai-latest:hover { border-color: color-mix(in srgb, var(--weo-primary) 55%, var(--weo-line)); }
.weo-ai-log[data-away="1"] + .weo-ai-latest { display: inline-flex; animation: weo-fade-in .18s ease-out; }
.weo-ai-notready { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--weo-warning) 45%, var(--weo-line));
  background: color-mix(in srgb, var(--weo-warning) 9%, var(--weo-card)); font-size: 13px; }
.weo-ai-notready > svg { color: var(--weo-warning); margin-top: 2px; }
.weo-ai-notready b { display: block; font-size: 14px; margin-bottom: 4px; }
.weo-ai-notready p { color: var(--weo-text); margin: 0 0 8px; }
.weo-ai-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--weo-muted); margin: 4px 0 2px; }
.weo-ai-empty { display: grid; gap: 10px; padding: 8px 2px; animation: weo-fade-in .3s ease-out; }
.weo-ai-hello { font-size: 21px; font-weight: 650; letter-spacing: -.01em;
  background: linear-gradient(90deg, var(--weo-text), color-mix(in srgb, var(--weo-primary) 70%, var(--weo-text))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.weo-ai-empty p { color: var(--weo-muted); font-size: 13px; line-height: 1.55; margin: 0 0 4px; }
.weo-ai-suggestions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.weo-ai-panel.is-wide .weo-ai-suggestions { grid-template-columns: repeat(4, 1fr); }
.weo-ai-suggestions button { display: grid; gap: 8px; align-content: start; text-align: left; border: 1px solid var(--weo-line); background: var(--weo-card);
  color: var(--weo-text); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: 12.5px; line-height: 1.35; cursor: pointer;
  transition: border-color .15s, transform .15s, box-shadow .15s; }
.weo-ai-suggestions button svg { color: var(--weo-primary); }
.weo-ai-suggestions button:hover { border-color: color-mix(in srgb, var(--weo-primary) 55%, var(--weo-line)); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0, 0, 0, .08); }
.weo-ai-picks button { border: 1px solid var(--weo-line); background: transparent; color: var(--weo-text); border-radius: 10px; padding: 6px 12px; font: inherit; font-size: 12.5px; cursor: pointer; }
.weo-ai-picks button:hover { border-color: var(--weo-primary); color: var(--weo-primary); }
.weo-ai-turn { display: grid; gap: 8px; animation: weo-fade-in .2s ease-out; }
.weo-ai-turn.is-mine { justify-items: end; }
.weo-ai-bubble { max-width: 85%; padding: 9px 13px; border-radius: 16px 16px 4px 16px; color: #fff; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.45;
  background: linear-gradient(135deg, var(--weo-primary), color-mix(in srgb, var(--weo-primary) 80%, #6366f1)); box-shadow: 0 4px 14px color-mix(in srgb, var(--weo-primary) 25%, transparent); }
.weo-ai-reply { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; }
.weo-ai-reply-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; }
.weo-ai-steps { display: flex; flex-wrap: wrap; gap: 4px; }
.weo-ai-step { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--weo-muted); padding: 2px 8px; border-radius: 999px;
  background: color-mix(in srgb, var(--weo-line) 55%, transparent); }
.weo-ai-step svg { color: var(--weo-success); }
.weo-ai-answer { font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.weo-ai-answer.is-streaming > :last-child::after { content: ""; display: inline-block; width: 7px; height: 15px; margin-left: 2px; vertical-align: -2px; border-radius: 2px;
  background: var(--weo-primary); animation: weo-caret 1s steps(2) infinite; }
@keyframes weo-caret { 50% { opacity: 0; } }
.weo-ai-answer p { margin: 0 0 8px; } .weo-ai-answer p:last-child { margin-bottom: 0; }
.weo-ai-answer ul, .weo-ai-answer ol { margin: 0 0 8px; padding-left: 20px; }
.weo-ai-answer h4 { margin: 14px 0 6px; font-size: 15px; font-weight: 700; letter-spacing: -.005em; line-height: 1.3; }
.weo-ai-answer > h4:first-child { margin-top: 0; }
.weo-ai-answer strong { font-weight: 650; }
.weo-ai-answer li { margin: 2px 0; } .weo-ai-answer li::marker { color: var(--weo-muted); }
.weo-ai-answer a { color: var(--weo-primary); font-weight: 550; text-underline-offset: 2px; }
.weo-ai-answer table { border-collapse: collapse; font-size: 12.5px; margin: 4px 0 8px; display: block; overflow-x: auto; max-width: 100%; }
.weo-ai-answer th, .weo-ai-answer td { border-bottom: 1px solid var(--weo-line); padding: 5px 8px; text-align: left; white-space: nowrap; }
.weo-ai-answer th { color: var(--weo-muted); font-weight: 500; }
.weo-ai-answer code { font-size: 12.5px; padding: 1px 5px; border-radius: 5px; background: color-mix(in srgb, var(--weo-line) 70%, transparent); }
.weo-ai-answer pre { margin: 4px 0 8px; padding: 10px 12px; border-radius: 10px; overflow-x: auto; border: 1px solid var(--weo-line);
  background: color-mix(in srgb, var(--weo-line) 35%, var(--weo-card)); font-size: 12.5px; line-height: 1.5; }
.weo-ai-answer pre code { padding: 0; background: none; white-space: pre; }
.weo-ai-answer blockquote { margin: 4px 0 8px; padding: 6px 12px; border-left: 3px solid color-mix(in srgb, var(--weo-primary) 55%, var(--weo-line)); color: var(--weo-muted);
  background: color-mix(in srgb, var(--weo-primary) 5%, transparent); border-radius: 0 8px 8px 0; font-size: 13px; }
.weo-ai-answer hr { border: 0; border-top: 1px solid var(--weo-line); margin: 10px 0; }
.weo-ai-answer > :last-child { margin-bottom: 0; }
.weo-ai-table { overflow-x: auto; max-width: 100%; }
.weo-ai-table table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.weo-ai-table th, .weo-ai-table td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--weo-line); white-space: nowrap; }
.weo-ai-table th.weo-num, .weo-ai-table td.weo-num { text-align: right; font-variant-numeric: tabular-nums; }
.weo-ai-table th { color: var(--weo-muted); font-weight: 500; }
.weo-ai-table tr.weo-row-link { cursor: pointer; } .weo-ai-table tr.weo-row-link:hover td { background: color-mix(in srgb, var(--weo-primary) 6%, transparent); }
.weo-ai-card { border: 1px solid var(--weo-line); border-radius: 14px; padding: 12px 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; background: var(--weo-card);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 8px 24px rgba(0, 0, 0, .04); }
.weo-ai-card-title { display: flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13.5px; }
.weo-ai-card-title svg { color: var(--weo-primary); }
.weo-ai-card-note { color: var(--weo-muted); font-size: 12px; }
.weo-ai-facts { display: grid; grid-template-columns: auto 1fr; gap: 5px 12px; margin: 0; font-size: 13px; }
.weo-ai-facts dt { color: var(--weo-muted); } .weo-ai-facts dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; } .weo-ai-facts dd.is-strong { font-weight: 650; }
.weo-ai-problems { margin: 0; padding: 8px 10px 8px 26px; color: var(--weo-danger); font-size: 12.5px; border-radius: 10px; list-style: disc;
  background: color-mix(in srgb, var(--weo-danger) 8%, transparent); }
.weo-ai-link { justify-self: start; border: 0; background: none; padding: 0; color: var(--weo-primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.weo-ai-link:hover { text-decoration: underline; }
.weo-ai-nav { grid-template-columns: 1fr auto; align-items: center; }
.weo-ai-picks { display: flex; flex-wrap: wrap; gap: 6px; }
.weo-ai-picks button { display: grid; text-align: left; }
.weo-ai-picks button span { color: var(--weo-muted); font-size: 11.5px; }
.weo-ai-confirm { border-color: color-mix(in srgb, var(--weo-primary) 50%, var(--weo-line));
  background: linear-gradient(180deg, color-mix(in srgb, var(--weo-primary) 5%, var(--weo-card)), var(--weo-card)); }
.weo-ai-confirm > .weo-ai-card { border: 0; box-shadow: none; padding: 0; background: transparent; }
.weo-ai-pending { justify-self: start; display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 999px;
  color: var(--weo-warning); background: color-mix(in srgb, var(--weo-warning) 14%, transparent); }
.weo-ai-pending.is-done { color: var(--weo-success); background: color-mix(in srgb, var(--weo-success) 14%, transparent); }
.weo-ai-confirm-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.weo-ai-working { display: inline-flex; align-items: center; gap: 10px; color: var(--weo-muted); font-size: 12.5px; }
.weo-ai-dots { display: inline-flex; gap: 3px; }
.weo-ai-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--weo-primary); animation: weo-dot 1.2s infinite ease-in-out; }
.weo-ai-dots i:nth-child(2) { animation-delay: .15s; } .weo-ai-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes weo-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.weo-ai-failed { display: flex; gap: 6px; align-items: flex-start; color: var(--weo-danger); font-size: 13px; padding: 8px 10px; border-radius: 10px;
  background: color-mix(in srgb, var(--weo-danger) 8%, transparent); }
.weo-ai-stopped { display: inline-flex; align-items: center; gap: 6px; color: var(--weo-muted); font-size: 12.5px; }
.weo-ai-failed > svg { flex: none; margin-top: 3px; }
.weo-ai-feedback { display: flex; align-items: center; gap: 2px; opacity: .55; transition: opacity .15s; }
.weo-ai-feedback:has(.weo-ai-retry) { opacity: 1; }
.weo-ai-feedback button.weo-ai-retry { display: inline-flex; align-items: center; gap: 6px; margin-right: 6px; padding: 5px 11px; border: 1px solid var(--weo-line); border-radius: 999px;
  color: var(--weo-text); font: inherit; font-size: 12.5px; font-weight: 600; }
.weo-ai-feedback button.weo-ai-retry svg { color: var(--weo-primary); }
.weo-ai-feedback button.weo-ai-retry:hover { border-color: color-mix(in srgb, var(--weo-primary) 55%, var(--weo-line)); background: transparent; }
.weo-ai-turn:hover .weo-ai-feedback, .weo-ai-feedback:focus-within { opacity: 1; }
.weo-ai-feedback button { border: 0; background: none; color: var(--weo-muted); cursor: pointer; padding: 4px 6px; border-radius: 6px; }
.weo-ai-feedback button:hover:not(:disabled) { background: color-mix(in srgb, var(--weo-line) 60%, transparent); color: var(--weo-text); }
.weo-ai-feedback button[aria-pressed="true"] { color: var(--weo-primary); }
.weo-ai-feedback button:disabled:not([aria-pressed="true"]) { opacity: .35; cursor: default; }
.weo-ai-input { padding: 10px 14px 4px; border-top: 1px solid var(--weo-line); }
.weo-ai-compose { display: flex; gap: 8px; align-items: flex-end; padding: 6px 6px 6px 12px; border: 1px solid var(--weo-line); border-radius: 14px; background: var(--weo-card);
  transition: border-color .15s, box-shadow .15s; }
.weo-ai-compose:focus-within { border-color: color-mix(in srgb, var(--weo-primary) 60%, var(--weo-line)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 15%, transparent); }
.weo-ai-compose.is-busy { background: color-mix(in srgb, var(--weo-line) 25%, var(--weo-card)); }
.weo-ai-compose textarea { flex: 1; resize: none; border: 0; outline: 0; padding: 6px 0; font: inherit; font-size: 14px; line-height: 1.45; background: transparent;
  color: var(--weo-text); max-height: 160px; scrollbar-width: thin; }
/* A touch screen has no Enter-and-Shift to explain. */
@media (pointer: coarse) { .weo-ai-keys { display: none; } }
.weo-ai-mic { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer; color: var(--weo-muted);
  background: transparent; transition: color .15s, background .15s, box-shadow .1s linear; }
.weo-ai-mic:hover:not(:disabled) { color: var(--weo-primary); background: color-mix(in srgb, var(--weo-primary) 10%, transparent); }
.weo-ai-mic:disabled { opacity: .4; cursor: default; }
.weo-ai-mic.is-on, .weo-ai-mic.is-on:hover:not(:disabled) { color: var(--weo-on-primary); background: var(--weo-danger-solid);
  box-shadow: 0 0 0 calc(2px + var(--weo-mic-level, 0) * 9px) color-mix(in srgb, var(--weo-danger-solid) 28%, transparent); }
.weo-ai-input.is-listening .weo-ai-compose { border-color: color-mix(in srgb, var(--weo-danger-solid) 55%, var(--weo-line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-danger-solid) 14%, transparent); }
.weo-ai-listening { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0 4px 8px; font-size: 12.5px; color: var(--weo-text); }
.weo-ai-listening b { font-weight: 600; }
.weo-ai-listening-time { font-variant-numeric: tabular-nums; color: var(--weo-muted); }
.weo-ai-listening-time::before { content: attr(data-time); }
.weo-ai-listening-hint { margin-left: auto; color: var(--weo-muted); font-size: 11px; }
.weo-ai-listening-hint kbd { font: inherit; font-size: 10px; padding: 0 4px; border: 1px solid var(--weo-line); border-radius: 4px; }
.weo-ai-wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; }
.weo-ai-wave i { width: 3px; border-radius: 2px; background: var(--weo-danger-solid); height: calc(4px + var(--weo-mic-level, 0) * 14px * var(--k, 1)); transition: height .1s linear; }
.weo-ai-wave i:nth-child(1) { --k: .55; } .weo-ai-wave i:nth-child(2) { --k: .9; } .weo-ai-wave i:nth-child(4) { --k: .8; } .weo-ai-wave i:nth-child(5) { --k: .45; }
.weo-ai-speech-note { display: flex; gap: 8px; align-items: flex-start; padding: 8px 8px 8px 10px; margin-bottom: 8px; border-radius: 10px; font-size: 12.5px; line-height: 1.45;
  color: var(--weo-text); background: color-mix(in srgb, var(--weo-warning) 10%, var(--weo-card)); border: 1px solid color-mix(in srgb, var(--weo-warning) 40%, var(--weo-line)); }
.weo-ai-speech-note > svg { flex: none; margin-top: 2px; color: var(--weo-warning); }
.weo-ai-speech-note > span { flex: 1; min-width: 0; }
.weo-ai-speech-note button { flex: none; border: 0; background: none; color: var(--weo-muted); cursor: pointer; padding: 3px; border-radius: 6px; }
.weo-ai-speech-note button:hover { color: var(--weo-text); background: color-mix(in srgb, var(--weo-line) 60%, transparent); }
.weo-ai-send { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: var(--weo-primary); transition: transform .12s, opacity .12s; }
.weo-ai-send:hover:not(:disabled) { transform: scale(1.05); }
.weo-ai-send:disabled { opacity: .35; cursor: default; }
.weo-ai-send.is-stop { background: var(--weo-text); color: var(--weo-card); }
.weo-ai-note { margin: 0; padding: 6px 14px 10px; color: var(--weo-muted); font-size: 10.5px; line-height: 1.5; }
.weo-ai-note kbd { font: inherit; font-size: 10px; padding: 0 4px; border: 1px solid var(--weo-line); border-radius: 4px; }
.weo-ai-history-row { display: flex; gap: 6px; align-items: center; min-width: 0; }
.weo-ai-history-row.is-open .weo-ai-history-open { border-color: color-mix(in srgb, var(--weo-primary) 50%, var(--weo-line)); background: color-mix(in srgb, var(--weo-primary) 5%, transparent); }
.weo-ai-history-row.is-asking { padding: 8px 8px 8px 11px; border: 1px solid color-mix(in srgb, var(--weo-danger) 45%, var(--weo-line)); border-radius: 10px;
  background: color-mix(in srgb, var(--weo-danger) 6%, transparent); font-size: 13px; }
.weo-ai-history-row.is-asking > span { flex: 1; min-width: 0; display: grid; gap: 2px; }
.weo-ai-history-row.is-asking b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weo-ai-history-row.is-asking .weo-muted { font-size: 11.5px; }
.weo-ai-chip { flex: none; border: 1px solid var(--weo-line); background: var(--weo-card); color: var(--weo-text); border-radius: 8px; padding: 5px 11px; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; }
.weo-ai-chip.is-danger { border-color: transparent; background: var(--weo-danger-solid); color: var(--weo-on-primary); }
.weo-ai-history-open { min-width: 0; }
.weo-ai-history-open span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.weo-ai-history-open { flex: 1; display: grid; text-align: left; gap: 2px; border: 1px solid var(--weo-line); border-radius: 10px; padding: 9px 11px; background: transparent;
  color: var(--weo-text); font: inherit; font-size: 13px; cursor: pointer; transition: border-color .15s; }
.weo-ai-history-open:hover { border-color: color-mix(in srgb, var(--weo-primary) 50%, var(--weo-line)); }
.weo-ai-history-open span:last-child { font-size: 11.5px; }
/* On a wide screen the panel stands beside the page, which makes room for it, so nothing of the page is covered
   while the two are used together. Narrower, and at its double width, it lies over the page as before. */
@media (min-width: 1500px) { body:has(> .weo-ai-panel:not(.is-wide)) main:not(main main) { margin-right: 440px; }
  .weo-ai-panel:not(.is-wide) { box-shadow: none; } }
@media (max-width: 640px) { .weo-ai-panel, .weo-ai-panel.is-wide { width: 100vw; } .weo-ai-wide-btn { display: none; } .weo-ai-suggestions { grid-template-columns: 1fr; }
  .weo-ai-note kbd, .weo-ai-note { font-size: 10px; } }
@media (prefers-reduced-motion: reduce) { .weo-ai-panel, .weo-ai-turn, .weo-ai-empty, .weo-ai-log[data-away="1"] + .weo-ai-latest { animation: none; } .weo-ai-wave i, .weo-ai-mic { transition: none; } .weo-ai-dots i { animation: none; opacity: .6; } }
/* Explanations (M11 Phase 4, D-03): in a chat card and under the till, day and books-health figures. */
.weo-explain { display: grid; gap: 10px; font-size: 13px; }
.weo-explain-summary { margin: 0; font-size: 13.5px; line-height: 1.5; }
.weo-explain-label { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--weo-muted); margin-bottom: 4px; }
.weo-explain-likely { border-left: 3px solid var(--weo-warning, #d97706); padding: 6px 10px; border-radius: 0 8px 8px 0; background: color-mix(in srgb, var(--weo-warning, #d97706) 8%, transparent); }
.weo-explain-likely ul, .weo-explain-next ol { margin: 0; padding-left: 18px; line-height: 1.5; }
.weo-explain-likely ul { list-style: disc; } .weo-explain-next ol { list-style: decimal; }
.weo-explain-section { border: 1px solid var(--weo-line); border-radius: 10px; padding: 6px 10px; }
.weo-explain-section summary { cursor: pointer; font-weight: 600; font-size: 12.5px; padding: 2px 0; }
.weo-explain-records { list-style: none; margin: 6px 0 2px; padding: 0; display: grid; gap: 4px; }
.weo-explain-records li { display: grid; grid-template-columns: minmax(110px, auto) 1fr; gap: 10px; align-items: baseline; padding: 3px 6px; border-radius: 6px; }
.weo-explain-records li.is-flag { background: color-mix(in srgb, var(--weo-warning, #d97706) 6%, transparent); box-shadow: inset 2px 0 0 var(--weo-warning, #d97706); border-radius: 0 6px 6px 0; }
.weo-explain-ref { border: 0; background: none; padding: 0; color: var(--weo-primary); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; text-align: left; font-variant-numeric: tabular-nums; }
.weo-explain-ref.is-plain { color: var(--weo-text); cursor: default; }
.weo-explain-detail { color: var(--weo-muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.weo-ai-answer ul { list-style: disc; } .weo-ai-answer ol { list-style: decimal; }
.weo-ai-answer li { margin: 2px 0; }

.weo-guide-pulse { outline: 3px solid var(--weo-primary); outline-offset: 3px; border-radius: 8px; transition: outline-color .3s; }

/* A plain text box (e.g. the assistant's company instructions). */
.weo-textarea { border: 1px solid var(--weo-line); border-radius: 10px; padding: 8px 10px; font: inherit; font-size: 13.5px; background: transparent; color: var(--weo-text); resize: vertical; }
.weo-textarea:focus { outline: 2px solid color-mix(in srgb, var(--weo-primary) 45%, transparent); }

/* M11 B-08: the checker's notes, above the decision. */
.weo-checker-notes { display: grid; gap: 8px; border-left: 3px solid var(--weo-warning); }
.weo-checker-notes ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 13px; }
.weo-checker-notes li.is-strong { font-weight: 600; }
.weo-checker-summary { margin: 0; font-size: 13px; }

/* M11 C-03: scanning a document into a form. */
.weo-scan { display: grid; gap: 10px; margin-top: 10px; padding: 12px; border: 1px dashed var(--weo-line-strong); border-radius: 10px; }
.weo-scan-pick { display: flex; align-items: center; gap: 10px; font-size: 13px; cursor: pointer; }
.weo-scan-pick input[type=file] { max-width: 100%; font-size: 12px; }
.weo-scan-fields th { width: 38%; font-weight: 500; text-align: left; }
.weo-scan-fields td:last-child { text-align: right; white-space: nowrap; }
.weo-scan-fields tr { transition: background .12s; }
.weo-scan-fields tr.is-active > * { background: color-mix(in srgb, var(--weo-primary) 9%, transparent); }
.weo-scan-fields tr.is-missing td { color: var(--weo-muted); }

/* Where a document is given to be read: a place to press or to drop the file on. The file input covers it, so both work. */
.weo-drop { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1.5px dashed var(--weo-line-strong); background: var(--weo-subtle); cursor: pointer; transition: border-color .15s, background .15s; }
.weo-drop:hover, .weo-drop:focus-within { border-color: var(--weo-primary); background: var(--weo-tint); }
.weo-drop:focus-within { box-shadow: var(--weo-focus); }
.weo-drop input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.weo-drop-icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--weo-card); border: 1px solid var(--weo-line); color: var(--weo-primary-text); }
.weo-drop-text { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; }
.weo-drop-text span { font-size: 12px; color: var(--weo-muted); }
.weo-drop.is-busy { cursor: progress; border-style: solid; border-color: color-mix(in srgb, var(--weo-primary) 45%, var(--weo-line)); background: var(--weo-tint); }
.weo-drop.is-busy input[type=file] { cursor: progress; }
.weo-drop.is-small { padding: 8px 12px; gap: 10px; justify-self: start; }
.weo-drop.is-small .weo-drop-icon { width: 30px; height: 30px; border-radius: 9px; }

/* What was read: the picture as the reader saw it, each field's place marked on it, beside the fields. */
.weo-scan-result { display: grid; gap: 14px; min-width: 0; }
.weo-scan-result.has-view { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: start; }
.weo-scan-read { display: grid; gap: 10px; min-width: 0; }
.weo-scan-sum { display: flex; flex-wrap: wrap; gap: 6px; }
.weo-docview { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--weo-line); background: var(--weo-subtle); line-height: 0; box-shadow: var(--weo-card-shadow); }
.weo-docview img { display: block; width: 100%; height: auto; }
.weo-docview-spot { position: absolute; border-radius: 4px; border: 1.5px solid color-mix(in srgb, var(--weo-primary) 75%, transparent); background: color-mix(in srgb, var(--weo-primary) 10%, transparent); transition: box-shadow .12s, background .12s; }
.weo-docview-spot.is-checked { border-color: color-mix(in srgb, var(--weo-success) 80%, transparent); background: color-mix(in srgb, var(--weo-success) 12%, transparent); }
.weo-docview-spot.is-doubt { border-color: color-mix(in srgb, var(--weo-warning) 85%, transparent); background: color-mix(in srgb, var(--weo-warning) 16%, transparent); }
.weo-docview-spot.is-active { z-index: 1; background: color-mix(in srgb, var(--weo-primary) 24%, transparent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 35%, transparent), 0 0 0 999px var(--weo-camera-shade); }
/* The panel sits in columns of many widths (a customer's record, a sale, a note beside its summary): it goes by its own
   width, not the screen's. In a narrow one the picture is above the fields; a long value wraps inside its cell. */
.weo-scan { container-type: inline-size; }
.weo-scan > * { min-width: 0; }
.weo-scan-fields { width: 100%; table-layout: fixed; }
.weo-scan-fields td { overflow-wrap: anywhere; }
.weo-scan-fields td:last-child { width: 108px; }
@container (max-width: 660px) { .weo-scan-result.has-view { grid-template-columns: minmax(0, 1fr); } .weo-scan-result.has-view .weo-docview { max-width: 440px; } }

/* A sale's documents scanned together: each with the picture read, small; pressing it shows it large with its marks. */
.weo-scan-item { flex-wrap: nowrap; align-items: flex-start; gap: 12px; }
.weo-scan-item .weo-doc-name { display: grid; gap: 5px; min-width: 0; }
.weo-doc-thumb { display: grid; place-items: center; flex: none; width: 76px; height: 76px; padding: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--weo-line); background: var(--weo-subtle); color: var(--weo-muted); cursor: zoom-in; }
.weo-doc-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weo-doc-thumb.is-empty { cursor: default; }
button.weo-doc-thumb:hover, button.weo-doc-thumb:focus-visible { outline: none; border-color: var(--weo-primary); box-shadow: var(--weo-focus); }
.weo-doc-pop { width: min(760px, calc(100vw - 32px)); max-height: calc(100vh - 32px); margin: auto; padding: 16px; overflow: auto; border: 1px solid var(--weo-card-border); border-radius: 20px; background: var(--weo-card); color: var(--weo-text); box-shadow: var(--weo-overlay-shadow); }
.weo-doc-pop:popover-open { display: grid; gap: 12px; justify-items: start; }
.weo-doc-pop::backdrop { background: var(--weo-camera-shade); backdrop-filter: blur(6px); }
.weo-doc-pop .weo-docview { width: 100%; }

/* Phase 10: recognising a returning customer by face. The live picture is shown as a mirror, as people expect of
   themselves, with an oval to stand in; the frame just taken stays on show while it is read. */
.weo-face { flex: 1 1 100%; }
.weo-face-capture { display: grid; gap: 10px; min-width: 0; }
.weo-face-stage { position: relative; width: 100%; max-width: 420px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 16px; background: var(--weo-subtle); border: 1px solid var(--weo-line); box-shadow: var(--weo-card-shadow); }
.weo-face-video, .weo-face-still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.weo-face-video[hidden], .weo-face-still[hidden] { display: none; }
.weo-face-still.is-photo { transform: none; object-fit: contain; background: var(--weo-subtle); }
.weo-face-guide { position: absolute; left: 50%; top: 46%; width: 42%; aspect-ratio: 3 / 4; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--weo-camera-line); box-shadow: 0 0 0 999px var(--weo-camera-shade); pointer-events: none; }
.weo-face-hint { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; text-align: center; font-size: 12.5px; font-weight: 500; color: var(--weo-camera-ink); background: linear-gradient(to top, var(--weo-camera-shade), transparent); pointer-events: none; }
.weo-face-scan { position: absolute; left: 0; right: 0; top: 0; height: 26%; background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--weo-primary) 42%, transparent)); border-bottom: 2px solid var(--weo-primary); animation: weo-face-scan 1.3s ease-in-out infinite alternate; pointer-events: none; }
@keyframes weo-face-scan { from { transform: translateY(-100%); } to { transform: translateY(285%); } }
@keyframes weo-spin { to { transform: rotate(360deg); } }
.weo-spin { display: inline-grid; animation: weo-spin 1s linear infinite; }
@media (prefers-reduced-motion: reduce) { .weo-face-scan { animation: none; top: 37%; } .weo-spin { animation: none; } }
.weo-face-reading { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--weo-muted); }
.weo-face-reason { display: flex; gap: 8px; align-items: flex-start; max-width: 420px; padding: 9px 12px; border-radius: 10px; font-size: 13px; line-height: 1.4; background: var(--weo-warning-bg); color: var(--weo-warning); }
.weo-face-reason svg { flex: none; margin-top: 2px; }
.weo-face-actions { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.weo-face-capture.is-compact .weo-face-stage { width: 148px; max-width: 148px; border-radius: 12px; }
.weo-face-capture.is-compact .weo-face-hint { display: none; }

/* What was found: the picture just taken, small, beside the customers it could be, each with the photo on record. */
.weo-face-result.has-result { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px 16px; align-items: start; }
.weo-face-found { display: grid; gap: 10px; min-width: 0; }
.weo-face-say { font-size: 14px; font-weight: 600; }
.weo-face-cands { display: grid; gap: 8px; }
.weo-face-cand { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; background: var(--weo-card); border: 1px solid var(--weo-line); }
.weo-face-cand.is-sure { border-color: color-mix(in srgb, var(--weo-primary) 50%, var(--weo-line)); box-shadow: var(--weo-focus); }
.weo-face-who { display: grid; gap: 3px; min-width: 0; }
.weo-face-name { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; font-weight: 600; }
.weo-like { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--weo-muted); }
.weo-like-bar { width: 96px; height: 6px; border-radius: 999px; overflow: hidden; background: var(--weo-line); }
.weo-like-bar i { display: block; height: 100%; border-radius: inherit; background: var(--weo-primary); }
@media (max-width: 640px) {
  .weo-face-result.has-result { grid-template-columns: minmax(0, 1fr); }
  .weo-face-cand { grid-template-columns: auto minmax(0, 1fr); }
  .weo-face-cand > :last-child { grid-column: 1 / -1; justify-self: start; }
}

/* The customer's photo: beside their record, on their sale. The initials stand in where none is kept. */
.weo-photo { position: relative; display: inline-grid; place-items: center; flex: none; overflow: hidden; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 50%; background: var(--weo-tint); color: var(--weo-tint-text); font: inherit; font-weight: 650; font-size: 15px; }
.weo-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.weo-photo.has-photo { box-shadow: 0 0 0 2px var(--weo-card), 0 0 0 4px color-mix(in srgb, var(--weo-primary) 55%, transparent); }
button.weo-photo { cursor: zoom-in; }
button.weo-photo:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--weo-card), 0 0 0 5px var(--weo-primary); }
.weo-photo-sm { width: 32px; height: 32px; font-size: 12px; }
.weo-photo-lg { width: 64px; height: 64px; font-size: 21px; }
.weo-photo-xl { width: 112px; height: 112px; font-size: 32px; border-radius: 24px; }
.weo-card-head > .weo-photo { margin-right: 12px; }
.weo-photo-large { width: min(360px, calc(100vw - 32px)); margin: auto; padding: 0; border: 0; border-radius: 24px; background: transparent; color: var(--weo-text); overflow: visible; }
.weo-photo-large::backdrop { background: var(--weo-camera-shade); backdrop-filter: blur(6px); }
.weo-photo-large figure { display: grid; gap: 12px; justify-items: start; margin: 0; padding: 16px; border-radius: 24px; background: var(--weo-card); border: 1px solid var(--weo-card-border); box-shadow: var(--weo-overlay-shadow); }
.weo-photo-large img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 16px; }
.weo-photo-large figcaption { display: grid; gap: 3px; font-size: 13px; }
.weo-photo-large figcaption strong { font-size: 16px; }

/* Recognition by face on the customer's record: the photo (or its empty place), what is on record, and what can be done. */
.weo-facecard { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px 20px; align-items: start; padding: 18px 20px; }
.weo-facecard-side { display: grid; gap: 10px; justify-items: center; }
.weo-facecard-tile { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 24px; background: var(--weo-subtle); border: 1.5px dashed var(--weo-line-strong); color: var(--weo-muted); }
.weo-facecard-tile.is-on { background: var(--weo-tint); border-color: color-mix(in srgb, var(--weo-primary) 45%, transparent); color: var(--weo-tint-text); }
.weo-face-dots { display: inline-flex; gap: 6px; }
.weo-face-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--weo-line-strong); }
.weo-face-dots i.on { background: var(--weo-primary); }
.weo-facecard-main { display: grid; gap: 10px; min-width: 0; }
.weo-facecard-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weo-facecard-count { font-size: 13px; font-weight: 600; }
.weo-facecard-meta { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12.5px; color: var(--weo-muted); }
.weo-facecard-kept { display: flex; gap: 7px; align-items: flex-start; font-size: 12.5px; color: var(--weo-muted); }
.weo-facecard-kept svg { flex: none; margin-top: 2px; }
@media (max-width: 560px) { .weo-facecard { grid-template-columns: minmax(0, 1fr); } .weo-facecard-side { justify-items: start; } }

/* M11 C-05: entry hints, quiet under the customer. */
.weo-entry-hints { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; }
.weo-entry-hints li { display: flex; gap: 6px; align-items: flex-start; color: var(--weo-muted); }
.weo-entry-hints li.is-warning { color: var(--weo-warning); }
.weo-entry-hints li svg { flex: none; margin-top: 2px; }
.weo-entry-hints .weo-ai-link { margin-left: auto; white-space: nowrap; }

/* Phase 11: the customer in one line on the sale screen, and the morning briefing on the overview. */
.weo-cust-line { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; font-size: 13px; color: var(--weo-muted); }
.weo-cust-line svg { flex: none; color: var(--weo-primary); }
.weo-cust-line > span:first-of-type { flex: 1 1 260px; min-width: 0; color: var(--weo-text); }
.weo-briefing { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.weo-briefing li { display: flex; gap: 10px; align-items: flex-start; }
.weo-briefing li svg { flex: none; margin-top: 3px; color: var(--weo-muted); }
.weo-briefing li.is-yours svg { color: var(--weo-warning); }
.weo-briefing li span { flex: 1 1 auto; min-width: 0; }
.weo-briefing li a { flex: none; font-size: 12.5px; font-weight: 500; }
.weo-dayend-guide { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 8px; }
.weo-dayend-guide > li { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--weo-line); border-radius: 10px; font-size: 13px; }
.weo-dayend-guide > li.is-next { border-color: var(--weo-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 14%, transparent); }
.weo-dayend-guide > li.is-passed { opacity: .75; }
.weo-dayend-head { display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; }
.weo-dayend-head svg { flex: none; }
.weo-dayend-guide > li.is-passed .weo-dayend-head svg { color: var(--weo-success); }
.weo-dayend-guide > li.is-warning .weo-dayend-head svg { color: var(--weo-warning); }
.weo-dayend-guide > li.is-blocked .weo-dayend-head svg { color: var(--weo-danger); }
.weo-dayend-head .weo-badge { margin-left: auto; }
.weo-dayend-records { margin: 0; padding-left: 18px; display: grid; gap: 2px; overflow-wrap: anywhere; }
.weo-dayend-fix { display: flex; gap: 6px; align-items: flex-start; }
.weo-dayend-fix svg { flex: none; margin-top: 3px; color: var(--weo-muted); }
.weo-casefile-list { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 13.5px; overflow-wrap: anywhere; }
.weo-casefile-records { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-left: 6px; font-size: 12px; }
.weo-casefile-timeline { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.weo-casefile-timeline li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; padding-left: 10px; border-left: 2px solid var(--weo-line); }
.weo-casefile-timeline li.is-flag { border-left-color: var(--weo-warning); }
.weo-casefile-timeline time { color: var(--weo-muted); white-space: nowrap; }
.weo-policy-answer { font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; }
.weo-policy-quote { margin: 0; padding: 10px 12px; border-left: 3px solid var(--weo-primary); background: var(--weo-subtle); border-radius: 0 8px 8px 0; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.weo-policy-source { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.weo-policy-source a { font-weight: 500; }
.weo-policy-passages { margin: 10px 0 0; padding-left: 26px; display: grid; gap: 10px; font-size: 13.5px; line-height: 1.5; overflow-wrap: anywhere; }
.weo-policy-passages li.is-quoted { background: var(--weo-tint); border-radius: 6px; padding: 4px 6px; }
.weo-regwatch-item { padding: 12px 16px; border-bottom: 1px solid var(--weo-line); }
.weo-regwatch-item:last-child { border-bottom: 0; }
.weo-regwatch-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.weo-regwatch-title { flex: 1 1 240px; min-width: 0; text-align: left; background: none; border: 0; padding: 0; font: inherit; font-weight: 500; color: var(--weo-text); cursor: pointer; overflow-wrap: anywhere; }
.weo-regwatch-title:hover { color: var(--weo-primary); }
.weo-regwatch-title:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; border-radius: 4px; }
.weo-regwatch-body { display: grid; gap: 14px; margin-top: 12px; }

/* Dashboard summaries (M11 Phase 4, D-04). */
.weo-narrative { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; margin: 0 0 16px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--weo-primary) 30%, var(--weo-line)); background: color-mix(in srgb, var(--weo-primary) 6%, var(--weo-card));
  animation: weo-fade-in .35s ease-out; }
.weo-narrative > svg { color: var(--weo-primary); margin-top: 2px; }
.weo-narrative p { margin: 0; font-size: 14px; line-height: 1.55; }
.weo-narrative details { margin-top: 6px; font-size: 12px; color: var(--weo-muted); }
.weo-narrative summary { cursor: pointer; }
.weo-narrative.is-working { color: var(--weo-muted); animation: weo-narrative-wait 1.6s ease-in-out infinite; }
@keyframes weo-narrative-wait { 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .weo-narrative.is-working { animation: none; } }
.weo-narrative ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; line-height: 1.5; }
@keyframes weo-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* AI feedback (M11 A-10). */
.weo-feedback-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--weo-line); }
.weo-feedback-row:last-child { border-bottom: 0; }
.weo-feedback-thumb { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; }
.weo-feedback-thumb.is-good { color: var(--weo-success); background: color-mix(in srgb, var(--weo-success) 12%, transparent); }
.weo-feedback-thumb.is-bad { color: var(--weo-danger); background: color-mix(in srgb, var(--weo-danger) 12%, transparent); }

/* PLAN 2.3.5: the licence banner above every page (payment due, read-only, suspended). */
.weo-licence-banner { display: flex; gap: 10px; align-items: center; padding: 8px 16px; font-size: 13px; color: var(--weo-warning); background: color-mix(in srgb, var(--weo-warning-bg) 70%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--weo-warning) 30%, transparent); }
.weo-licence-banner a { margin-left: auto; }

/* ==========================================================================================================
   Design system (2026-11): fields, controls, form sheets, entry screens, the summary ticket, empty states.
   docs/ui/design-direction.md, "Design system". Library-neutral classes; the Blueprint mapping is in
   blueprint-theme.css.
   ========================================================================================================== */

/* Fields: the label above (sentence case, medium weight), the control, then help or error text below.
   Field.razor writes .weo-field-label and the optional/required marks; older fields put the label text first. */
.weo-field { display: grid; grid-template-columns: minmax(0, 1fr); gap: 7px; align-content: start; min-width: 0; font-size: 13px; font-weight: 500; line-height: 1.35; color: var(--weo-label); }
.weo-field-label { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.weo-field-opt { font-size: 12px; font-weight: 400; color: var(--weo-muted); }
.weo-field-req { color: var(--weo-danger-solid); font-weight: 600; }
.weo-field > .weo-muted { font-weight: 400; line-height: 1.45; }
/* Column grids for fields. Two columns from a tablet up, three where the form is wide; a field may span. */
.weo-fields { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 20px; align-items: start; }
@media (min-width: 560px) { .weo-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .weo-fields.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.weo-fields > .is-wide, .weo-grid-2 > .is-wide, .weo-grid-3 > .is-wide { grid-column: 1 / -1; }
/* Switches and checkboxes in a form: one quiet row of choices. */
.weo-entry-row { gap: 12px 28px; }
.weo-switch-label { line-height: 1.4; color: var(--weo-text); }

/* Form sheet: one card holding a form's sections, divided by hairlines. Cards placed inside it become sections. */
.weo-sheet { background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); min-width: 0; }
.weo-sheet > .weo-card { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.weo-sheet.weo-entry-main { gap: 0; }
.weo-sheet > * + * { border-top: 1px solid var(--weo-line) !important; }
/* A table opening the sheet: its first section takes the sheet's top corners and clips the header band to them. */
.weo-sheet > .weo-card:first-child:has(.weo-table) { border-radius: calc(var(--weo-radius-card) - 1px) calc(var(--weo-radius-card) - 1px) 0 0; overflow: clip; }
/* A section heading block (title, one line on what the section is for), with its actions on the right. */
.weo-fs-head { display: flex; align-items: flex-start; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 18px; }
.weo-fs-head > div:first-child { min-width: 0; flex: 1 1 240px; }
.weo-fs-head .weo-section-title { margin: 0; }
.weo-fs-head .weo-card-sub { margin-top: 3px; }
.weo-fs-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.weo-card-sub { font-size: 13px; line-height: 1.5; max-width: 74ch; }
/* The unit a chart plots in, beside its title ("in ₹ lakh"). */
.weo-unit { font-size: 12.5px; font-weight: 400; letter-spacing: 0; color: var(--weo-muted); white-space: nowrap; }
.weo-fs-foot { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 10px 24px 18px; }

/* Entry screens: the form on the left; on the right a summary that stays in view, with the actions under it. */
.weo-entry-layout { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 27vw, 368px); gap: 24px; align-items: start; }
.weo-entry-main { display: grid; gap: var(--weo-gap); align-content: start; min-width: 0; }
.weo-entry-aside { position: sticky; top: 92px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.weo-entry-actions { display: grid; gap: 8px; }
.weo-entry-actions > button, .weo-entry-actions > a { width: 100%; }
.weo-entry-actions-total { display: none; }
/* Narrower screens: the summary follows the form, and the actions ride along at the foot of the screen. */
@media (max-width: 1180px) {
  .weo-entry-layout { display: block; }
  .weo-entry-main { margin-bottom: var(--weo-gap); }
  .weo-entry-aside { display: contents; }
  .weo-entry-actions { position: sticky; bottom: 0; z-index: 15; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px -32px -56px; padding: 12px 32px calc(12px + env(safe-area-inset-bottom));
    background: color-mix(in srgb, var(--weo-card) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--weo-line); box-shadow: 0 -8px 24px -12px rgba(17, 19, 24, .12); }
  .weo-entry-actions > button, .weo-entry-actions > a { width: auto; flex: 0 0 auto; }
  .weo-entry-actions > [data-hotkey="save"] { order: 3; margin-left: auto; }
  .weo-entry-actions-total { display: grid; line-height: 1.2; margin-right: auto; min-width: 0; }
  .weo-entry-actions-total span { font-size: 11.5px; color: var(--weo-muted); }
  .weo-entry-actions-total b { font-size: 17px; font-weight: 650; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
}
@media (max-width: 960px) { .weo-entry-actions { margin: 16px -16px -24px; padding-left: 16px; padding-right: 16px; } }
@media (max-width: 480px) { .weo-entry-actions > [data-hotkey="save"] { flex: 1 1 100%; order: 4; } .weo-entry-actions .weo-kbd-inline { display: none; } }

/* The summary ticket: what the entry comes to, set like a deal ticket. Faint engraved rings in the brand colour (the
   security print of a banknote) behind the figure, and a perforation before the breakdown. */
.weo-ticket { position: relative; overflow: clip; isolation: isolate; padding: 22px 24px 24px; display: grid; gap: 14px; }
.weo-ticket::before {
  content: ""; position: absolute; z-index: -1; top: -150px; right: -150px; width: 330px; height: 330px; border-radius: 50%; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 46% 50%, transparent 0 6px, color-mix(in srgb, var(--weo-brand) 24%, transparent) 6px 6.9px),
    repeating-radial-gradient(circle at 56% 47%, transparent 0 6px, color-mix(in srgb, var(--weo-brand) 18%, transparent) 6px 6.9px);
  -webkit-mask-image: radial-gradient(circle, #000 22%, transparent 70%); mask-image: radial-gradient(circle, #000 22%, transparent 70%);
}
html.dark .weo-ticket::before { opacity: .8; }
.weo-ticket-label { font-size: 13px; font-weight: 550; color: var(--weo-muted); display: flex; align-items: center; gap: 8px; }
.weo-ticket-figure { font-size: clamp(30px, 2.9vw, 40px); font-weight: 650; letter-spacing: -.038em; line-height: 1.05; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; margin-top: 2px; }
.weo-ticket-note { font-size: 12.5px; line-height: 1.5; color: var(--weo-muted); }
.weo-ticket-tear { position: relative; height: 0; margin: 4px -24px; border-top: 1.5px dashed var(--weo-line-strong); }
.weo-ticket-tear::before, .weo-ticket-tear::after { content: ""; position: absolute; top: -9px; width: 16px; height: 16px; border-radius: 50%; background: var(--weo-bg); box-shadow: inset 0 0 0 1px var(--weo-card-border); }
.weo-ticket-tear::before { left: -9px; } .weo-ticket-tear::after { right: -9px; }
.weo-ticket-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 0; font-size: 13px; }
.weo-ticket-lines dt { color: var(--weo-muted); min-width: 0; }
.weo-ticket-lines dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 550; overflow-wrap: anywhere; }
.weo-ticket-lines .is-total { padding-top: 8px; border-top: 1px solid var(--weo-line); color: var(--weo-text); font-weight: 650; }

/* A heading between cards on the page: room above it, close to the card it names. */
.weo-page > h2.weo-section-title { margin: 32px 0 12px !important; font-size: 16px; }
.weo-page > :is(.weo-page-head, .weo-back) + h2.weo-section-title { margin-top: 0 !important; }
/* A heading inside a form card that starts the next group of fields, under a hairline. */
.weo-form-subhead { margin: 6px 0 0; padding-top: 20px; border-top: 1px solid var(--weo-line); font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--weo-text); }
/* A form's own buttons (save first): set off by a hairline; at the foot of a form card they stay in view while the
   form scrolls, on a frosted band. */
.weo-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 4px; padding-top: 18px; border-top: 1px solid var(--weo-line); }
:is(.weo-card-pad, .weo-party-form) > .weo-form-actions:last-child {
  position: sticky; bottom: 0; z-index: 5; margin: 8px -24px -24px; padding: 14px 24px; border-radius: 0 0 var(--weo-radius-card) var(--weo-radius-card);
  background: color-mix(in srgb, var(--weo-card) 90%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.weo-party-form > .weo-form-actions:last-child { margin-top: 0; }
@media (max-width: 720px) { :is(.weo-card-pad, .weo-party-form) > .weo-form-actions:last-child { margin: 8px -18px -18px; padding: 12px 18px; } }

/* Empty lists: a quiet tile and two lines, centred in the card (Blueprint's empty state). */
main div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3) { padding: 40px 24px 44px; gap: 2px; }
main div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3)::before {
  content: ""; width: 44px; height: 44px; margin-bottom: 12px; border-radius: 13px; background-color: var(--weo-subtle); box-shadow: inset 0 0 0 1px var(--weo-line);
  background-repeat: no-repeat; background-position: center; background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A909A' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-6l-2 3h-4l-2-3H2'/%3E%3Cpath d='M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11z'/%3E%3C/svg%3E");
}
/* Searches in a filter bar carry a magnifier. */
:is(.weo-toolbar, .weo-settings-bar, .weo-report-bar) :not(.weo-entry-search) > input:is([aria-label^="Search"], [aria-label^="Find"], [placeholder^="Search"]) {
  padding-left: 34px; background-repeat: no-repeat; background-position: 11px 50%; background-size: 15px 15px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A909A' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
}
main div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3) > h3 { font-size: 14.5px; letter-spacing: -.01em; }
/* An empty state standing on the page itself (not inside a card) gets the card's surface. */
.weo-page > div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3) { background: var(--weo-card); border: 1px solid var(--weo-card-border); border-radius: var(--weo-radius-card); box-shadow: var(--weo-card-shadow); }
main div[class~="bb:flex-col"][class~="bb:text-center"]:has(> h3) > p { font-size: 13px; line-height: 1.5; max-width: 46ch; }

/* Alerts (Blueprint): softer corners, a little more air. */
:is(main, [role="dialog"]) [role="alert"][class~="bb:rounded-lg"] { border-radius: var(--weo-radius-inner); padding: 14px 16px; font-size: 13.5px; line-height: 1.5; }
.weo-page > [role="alert"]:not(:last-child) { margin-bottom: 16px; }

/* Phones: the page gutter, a smaller title, sections closer to the edges. */
@media (max-width: 720px) {
  .weo-page-head { margin-bottom: 20px; }
  .weo-page-head h1 { font-size: 24px; }
  .weo-page-head > div:first-child { flex-basis: 100%; }
  .weo-card-pad, .weo-ticket { padding: 18px; }
  .weo-card-head { padding: 14px 18px; }
  .weo-entry-step > header { padding: 18px 18px 0; }
  .weo-entry-body { padding: 16px 18px 20px; }
  .weo-ticket-tear { margin-left: -18px; margin-right: -18px; }
  :root { --weo-table-edge: 18px; }
  .weo-toolbar:has(+ .weo-card) { padding: 12px; }
  /* Headline figures two to a row. */
  .weo-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .weo-kpis > .weo-card-pad { padding: 16px; }
  .weo-kpis .weo-kpi-value { font-size: 22px !important; margin: 8px 0 4px; overflow-wrap: anywhere; }
}

/* Suggestions under a typed box (SuggestBox): chips that wrap, each cut to one line. */
.weo-suggest { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.weo-suggest .weo-chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }

/* A date box (DateBox) is as wide as its place, like every other box. The component library gives the typed box and
   the calendar button a fixed 280px, which spilled over the next box wherever the place was narrower. */
.weo-datebox { min-width: 0; max-width: 100%; }
/* Only the element that carries the fixed width (the typed box, or the calendar-only button): the small calendar
   button inside the typed box keeps its own size, so the typing area gets the rest. */
.weo-datebox [class*="w-[280px]"] { width: 100% !important; max-width: 100%; min-width: 0; }

/* ---------- The yes-or-no dialog (AskDialog) ----------
   One dialog for every question in the application, in place of the browser's own box. A round mark and the question
   on a tinted head, what will happen under it, and two buttons of equal size: the tone (--ask) colours the mark, the
   glow and the button that goes ahead. --ask-ink is the tone as a surface that carries white text. */
html.weo-asking { overflow: hidden; }
.weo-ask-veil { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: color-mix(in srgb, var(--weo-text) 46%, transparent); backdrop-filter: blur(8px) saturate(1.15); animation: weo-ask-veil .18s ease-out; }
.weo-ask { --ask: var(--weo-primary); --ask-ink: var(--weo-primary); --ask-soft: var(--weo-tint);
  width: min(460px, 100%); border-radius: 24px; overflow: clip; background: var(--weo-card); color: var(--weo-text); border: 1px solid var(--weo-card-border);
  box-shadow: var(--weo-overlay-shadow), 0 44px 90px -34px color-mix(in srgb, var(--ask) 55%, transparent);
  animation: weo-ask-in .26s cubic-bezier(.2, .9, .3, 1.12); }
.weo-ask-warning { --ask: var(--weo-accent); --ask-ink: color-mix(in srgb, var(--weo-accent) 78%, black); --ask-soft: var(--weo-accent-tint); }
.weo-ask-danger { --ask: var(--weo-danger-solid); --ask-ink: var(--weo-danger-solid); --ask-soft: var(--weo-danger-bg); }
.weo-ask-head { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 16px; padding: 30px 28px 22px; text-align: center;
  background: linear-gradient(180deg, var(--ask-soft), transparent); }
.weo-ask-head h2 { margin: 0; font-size: 20px; line-height: 1.25; font-weight: 700; letter-spacing: -.018em; text-wrap: balance; }
.weo-ask-mark { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--ask-ink) 74%, white), var(--ask-ink) 58%, color-mix(in srgb, var(--ask-ink) 78%, black));
  box-shadow: 0 0 0 8px color-mix(in srgb, var(--ask) 15%, transparent), 0 16px 28px -10px color-mix(in srgb, var(--ask) 75%, transparent);
  animation: weo-ask-mark .42s cubic-bezier(.2, .9, .3, 1.3) .06s backwards; }
.weo-ask-glyph { font-size: 32px; line-height: 1; font-weight: 800; }
.weo-ask-body { display: grid; gap: 12px; padding: 0 28px 4px; text-align: center; }
.weo-ask-body p { margin: 0; font-size: 14.5px; line-height: 1.6; color: var(--weo-label); text-wrap: pretty; overflow-wrap: anywhere; }
.weo-ask-body .weo-ask-note { font-size: 13px; line-height: 1.5; color: var(--weo-muted); background: var(--weo-subtle); border-radius: var(--weo-radius-inner); padding: 10px 14px; }
.weo-ask-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 22px 24px 24px; }
.weo-ask-actions button { min-height: 46px; padding: 8px 14px; border-radius: 13px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, border-color .12s ease; }
.weo-ask-actions button:active { transform: translateY(1px) scale(.99); }
/* The button the keyboard rests on is always marked, however the dialog was opened: Enter presses it. */
.weo-ask-actions button:focus { outline: 3px solid color-mix(in srgb, var(--ask) 38%, transparent); outline-offset: 2px; }
.weo-ask-no { background: var(--weo-card); color: var(--weo-text); border: 1px solid var(--weo-line-strong); }
.weo-ask-no:hover { background: var(--weo-subtle); border-color: color-mix(in srgb, var(--weo-text) 30%, var(--weo-line-strong)); }
.weo-ask-no kbd { font: 600 10px/1 ui-monospace, monospace; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--weo-line-strong); color: var(--weo-muted); background: var(--weo-subtle); }
.weo-ask-yes { border: 0; color: var(--weo-on-primary);
  background: linear-gradient(135deg, color-mix(in srgb, var(--ask-ink) 86%, white), var(--ask-ink) 60%, color-mix(in srgb, var(--ask-ink) 88%, black));
  box-shadow: 0 12px 24px -12px color-mix(in srgb, var(--ask) 85%, transparent), inset 0 1px 0 color-mix(in srgb, white 28%, transparent); }
.weo-ask-yes:hover { box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--ask) 95%, transparent), inset 0 1px 0 color-mix(in srgb, white 28%, transparent); transform: translateY(-1px); }
@keyframes weo-ask-veil { from { opacity: 0; } }
@keyframes weo-ask-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes weo-ask-mark { from { opacity: 0; transform: scale(.5) rotate(-12deg); } }
/* On a phone it rises from the bottom edge, where the thumbs are. */
@media (max-width: 520px) {
  .weo-ask-veil { place-items: end center; padding: 0; }
  .weo-ask { width: 100%; border-radius: 26px 26px 0 0; border-bottom: 0; padding-bottom: env(safe-area-inset-bottom, 0px); animation-name: weo-ask-up; }
  .weo-ask-head { padding-top: 26px; }
  .weo-ask-actions { padding: 20px 16px 18px; }
}
@keyframes weo-ask-up { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { .weo-ask-veil, .weo-ask, .weo-ask-mark { animation: none; } .weo-ask-actions button { transition: none; } }
@media print { .weo-ask-veil { display: none; } }

/* A meter of progress to a target (the turnover tracker): what is reached, solid, over what is projected, tinted. */
.weo-meter { position: relative; height: 14px; border-radius: 999px; background: var(--weo-subtle); border: 1px solid var(--weo-line); overflow: hidden; }
.weo-meter > span { position: absolute; inset: 0 auto 0 0; border-radius: 999px; }
.weo-meter-projected { background: color-mix(in srgb, var(--weo-primary) 26%, transparent); }
.weo-meter-reached { background: linear-gradient(90deg, color-mix(in srgb, var(--weo-primary) 82%, white), var(--weo-primary)); }
.weo-meter-reached.is-short { background: linear-gradient(90deg, color-mix(in srgb, var(--weo-danger-solid) 80%, white), var(--weo-danger-solid)); }
.weo-meter-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: baseline; }
.weo-meter-key.is-reached { background: var(--weo-primary); }
.weo-meter-key.is-reached.is-short { background: var(--weo-danger-solid); }
.weo-meter-key.is-projected { background: color-mix(in srgb, var(--weo-primary) 26%, transparent); border: 1px solid var(--weo-line-strong); }

/* A plain list of points with a small mark each (the licence page's conditions and documents). */
.weo-ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.weo-ticks li { position: relative; padding-left: 22px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.weo-ticks li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--weo-primary); box-shadow: 0 0 0 3px var(--weo-tint); }

/* A table row that carries nothing to act on (a day with no return): quieter than the rows that do. */
.weo-row-quiet td { color: var(--weo-muted); }

/* A statement handed to a customer (the TCS statement): a sheet of its own on screen, and the only thing on the page in print. */
.weo-statement { display: grid; gap: 18px; max-width: 900px; }
.weo-statement h1 { font-size: 22px; letter-spacing: -.015em; }
@media print { .weo-statement { box-shadow: none; border: 0; padding: 0; max-width: none; } }

/* The AI governance pack: one feature or model to a card, its facts as a list of name and value. */
/* The list form (dl) of the facts; the table form above keeps its own layout. */
dl.weo-facts { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13.5px; }
.weo-facts dt { color: var(--weo-muted); }
.weo-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { dl.weo-facts { grid-template-columns: 1fr; gap: 2px 0; } .weo-facts dd { margin-bottom: 8px; } }
.weo-policy h2 { font-size: 15.5px; margin: 6px 0 0; }
.weo-policy p { margin: 0; line-height: 1.6; }

/* ---------- Users: the list's figures and cells, the form to add one, and a person's page ---------- */
.weo-user-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weo-user-kpi { display: grid; text-align: left; font: inherit; color: inherit; }
button.weo-user-kpi { cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
button.weo-user-kpi:hover { border-color: color-mix(in srgb, var(--weo-primary) 45%, var(--weo-card-border)); transform: translateY(-1px); }
button.weo-user-kpi:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; }
button.weo-user-kpi[aria-pressed="true"] { border-color: var(--weo-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--weo-primary) 16%, transparent); }
.weo-user-kpi.is-warn .weo-kpi-value { color: var(--weo-warning); }
.weo-user-cell { display: flex; align-items: center; gap: 10px; min-width: 0; }
.weo-user-cell-text { min-width: 0; font-size: 12px; }
.weo-user-cell-name { font-size: 13.5px; font-weight: 550; }
a.weo-user-cell-name { color: var(--weo-text); text-decoration: none; } a.weo-user-cell-name:hover { text-decoration: underline; }
.weo-user-cell-how { font-size: 12px; }
.weo-user-roles { display: inline-flex; flex-wrap: wrap; gap: 5px; }
.weo-user-add, .weo-user-added { margin-bottom: 18px; }
.weo-user-add-body { display: grid; gap: 14px; }
.weo-user-add-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; border-top: 1px solid var(--weo-line); font-size: 12.5px; }
.weo-user-add-foot > .weo-muted { flex: 1 1 320px; max-width: 62ch; }
.weo-user-add-buttons { display: inline-flex; gap: 8px; margin-left: auto; }
.weo-user-added { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: start; border-color: color-mix(in srgb, var(--weo-success) 40%, var(--weo-card-border)); }
.weo-user-added-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--weo-success-bg); color: var(--weo-success); }
.weo-user-added-text b { font-weight: 650; color: var(--weo-text); }
.weo-user-added-secret { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 10px; font-size: 12.5px; }
.weo-user-added-secret code { font-size: 15px; letter-spacing: .04em; }
.weo-user-added-actions { display: flex; gap: 8px; align-items: center; }

.weo-person { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 24px; padding: 22px 24px; margin-bottom: 18px; position: relative; overflow: hidden; }
.weo-person::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, var(--weo-brand, var(--weo-primary)), var(--weo-violet, var(--weo-primary))); }
.weo-person-main { display: flex; align-items: center; gap: 16px; min-width: 0; flex: 1 1 420px; }
.weo-avatar.weo-person-avatar { width: 60px; height: 60px; font-size: 20px; }
.weo-person-who { min-width: 0; }
.weo-person-who h1 { margin: 0; font-size: 24px; font-weight: 650; letter-spacing: -.025em; line-height: 1.2; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.weo-person-who p { margin: 4px 0 0; color: var(--weo-muted); font-size: 13.5px; }
.weo-person-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.weo-person-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--weo-line-strong); color: var(--weo-text); }
.weo-person-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.weo-person-note { margin: 0 0 18px; }
.weo-person-side { display: grid; gap: 16px; align-content: start; }
.weo-person-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.weo-person-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.weo-person-fact { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.weo-facts tr.weo-facts-mid th { vertical-align: middle; }
.weo-facts tr.weo-facts-mid td { padding-top: 5px; padding-bottom: 5px; }
.weo-person-edit { display: grid; gap: 8px; font-weight: 400; }
.weo-person-edit > span { display: inline-flex; gap: 6px; }
.weo-person-form { border-top: 1px solid var(--weo-line); display: grid; gap: 12px; background: color-mix(in srgb, var(--weo-primary) 3%, var(--weo-card)); }
.weo-person-form-foot { display: flex; gap: 8px; }
.weo-person-ended td { color: var(--weo-muted); }
.weo-person-log { list-style: none; margin: 0; padding: 4px 0; }
.weo-person-log li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 24px; font-size: 12.5px; }
.weo-person-log li + li { border-top: 1px solid var(--weo-line); }
@media (max-width: 960px) {
  .weo-user-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .weo-user-added { grid-template-columns: auto minmax(0, 1fr); }
  .weo-user-added-actions { grid-column: 1 / -1; }
  .weo-person { padding: 20px 18px; }
  .weo-person-main { align-items: flex-start; flex-basis: 100%; }
  .weo-avatar.weo-person-avatar { width: 48px; height: 48px; font-size: 16px; }
  .weo-person-who h1 { font-size: 20px; }
  .weo-person-actions { width: 100%; }
  .weo-person-head { flex-wrap: wrap; }
  .weo-person-log li { padding: 9px 18px; }
}

/* ==========================================================================================================
   The Trade desk (phase 18, package 6; docs/ui/trade-desk.md): the case's route (.weo-timeline), the deadline chip
   (.weo-due), the two sides of a merchanting trade (.weo-legs), a rule's standing (.weo-standing), why something is
   not offered (.weo-matrix-notice), one amount in its currency (.weo-figure, .weo-money) and the reports' hub.
   Tokens only, light and dark from them. The set hues are phenix.css's (--weo-hue-1..4: brand, accent, green,
   violet); where that file is not loaded (the customer site, the portal) they fall back to the brand, the accent and
   the status colours. Nothing here changes a class that existed before it.
   ========================================================================================================== */
/* ---------- The Trade desk home (package 23; SCREENS.md, section 6; reworked after the fifth hand check, part H) ----------
   One contiguous block of its own, at the top of the desk's section. One idea carried through: the hero is printed on the
   product's ink (phenix.css's night shade of the brand, its engraved rings and its ember; where that file is not loaded, a
   mix of the brand and the text), and it answers first what a manager must see: what is overdue and what waits ("Needs
   attention", glass counts on the ink, each tone said in a word as well as a colour). Then the headline tiles own their
   colour: the value of the period on ink, imports in the brand, exports in green, outward remittances in the accent, inward
   in violet, a merchanting trade's two sides in the accent and the brand (the warning tone with its words when a side is
   open): a tinted surface, a band and rings in the hue, a mark of weight, a large figure and the comparison in words over two
   hairlines. The charts take the same hues at full strength (to pay in the imports' brand, to receive in the exports'
   green, the countries in the accent; never the violet, a mixed colour the charts' library cannot read); each section card carries its hue's band and wash, with generous space. The tiles never leave an orphan row: six
   in a row from 1280px (five, four or three where a part is off), three by two (3 + 2, 2 + 2) to 961px, two by three to
   541px (an odd last tile across), one column below. Light and dark are both drawn from the tokens (dark: deeper surfaces,
   luminous figures). Nothing scrolls a card sideways and no card clips: a chart's column never grows past its card, a
   table folds under "Show figures" and reads as label and value at 720px and under. Motion is the product's own (a lift on
   hover), still for people who ask for less. Tokens only. */
.weo-desk { --desk-ink: var(--weo-ink, color-mix(in srgb, var(--weo-brand) 30%, var(--weo-text))); --desk-on-ink: var(--weo-on-ink, var(--weo-on-primary));
  --desk-on-ink-2: color-mix(in srgb, var(--desk-on-ink) 86%, transparent); --desk-glass: color-mix(in srgb, var(--desk-on-ink) 8%, transparent);
  --desk-glass-line: color-mix(in srgb, var(--desk-on-ink) 17%, transparent); --desk-violet: var(--weo-violet, var(--weo-trade-hue-4));
  --desk-ember: var(--weo-ember, var(--weo-accent)); display: grid; gap: 22px; min-width: 0; }
html.dark .weo-desk { --desk-ink: var(--weo-ink, color-mix(in srgb, var(--weo-brand) 20%, var(--weo-bg))); }
.weo-desk .is-hue-1 { --hue: var(--weo-trade-hue-1); }
.weo-desk .is-hue-2 { --hue: var(--weo-trade-hue-2); }
.weo-desk .is-hue-3 { --hue: var(--weo-trade-hue-3); }
.weo-desk .is-hue-4 { --hue: var(--weo-trade-hue-4); }
.weo-desk .weo-unit { white-space: normal; }

/* The hero, on ink: the glows are its background (rounded with it), the engraved rings a layer of the same box. */
.weo-desk-hero { position: relative; isolation: isolate; display: grid; gap: 24px; min-width: 0; padding: 30px 32px 28px; border-radius: 24px; color: var(--desk-on-ink);
  background:
    radial-gradient(62% 130% at 0% 0%, color-mix(in srgb, var(--weo-trade-hue-1) 86%, transparent), transparent 70%),
    radial-gradient(44% 120% at 100% 100%, color-mix(in srgb, var(--desk-ember) 36%, transparent), transparent 72%),
    radial-gradient(40% 95% at 78% 0%, color-mix(in srgb, var(--desk-violet) 58%, transparent), transparent 72%),
    var(--desk-ink);
  box-shadow: 0 28px 54px -30px color-mix(in srgb, var(--desk-ink) 88%, transparent), inset 0 1px 0 var(--desk-glass-line); }
.weo-desk-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    repeating-radial-gradient(circle at 84% 34%, transparent 0 8px, color-mix(in srgb, var(--desk-on-ink) 14%, transparent) 8px 9px),
    repeating-radial-gradient(circle at 90% 30%, transparent 0 8px, color-mix(in srgb, var(--desk-on-ink) 9%, transparent) 8px 9px);
  -webkit-mask-image: radial-gradient(circle at 86% 32%, currentColor 40px, transparent 300px); mask-image: radial-gradient(circle at 86% 32%, currentColor 40px, transparent 300px); }
html.dark .weo-desk-hero { box-shadow: 0 0 0 1px var(--desk-glass-line), 0 30px 64px -34px color-mix(in srgb, var(--weo-trade-hue-1) 60%, transparent), inset 0 1px 0 var(--desk-glass-line); }
.weo-desk-hero-top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 28px; min-width: 0; }
.weo-desk-head-titles { display: grid; gap: 8px; flex: 1 1 420px; min-width: 0; max-width: 760px; }
.weo-desk-head-titles h1 { margin: 2px 0 0; font-size: clamp(28px, 3.1vw, 42px); font-weight: 720; letter-spacing: -.035em; line-height: 1.06; color: var(--desk-on-ink); text-wrap: balance;
  overflow-wrap: anywhere; text-shadow: 0 2px 22px color-mix(in srgb, var(--weo-trade-hue-1) 55%, transparent); }
.weo-desk-hero-line { display: flex; flex-wrap: wrap; gap: 2px 8px; margin: 0; font-size: 14px; color: var(--desk-on-ink-2); overflow-wrap: anywhere; }
.weo-desk-sep { margin-right: 4px; }
.weo-desk-kicker { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  color: var(--desk-on-ink); background: var(--desk-glass); box-shadow: inset 0 0 0 1px var(--desk-glass-line); }
.weo-desk-kicker svg, .weo-desk-tracks svg { color: var(--desk-ember); }
.weo-desk-tracks { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: 13px; font-weight: 550; color: var(--desk-on-ink-2); }
.weo-desk-head-tools { display: grid; justify-items: end; gap: 10px; min-width: 0; max-width: 100%; }
.weo-desk-head-actions, .weo-desk-range, .weo-desk-card-actions, .weo-desk-welcome-actions, .weo-desk-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.weo-desk-head-actions { justify-content: flex-end; }
.weo-desk-hero .weo-seg { background: var(--desk-glass); box-shadow: inset 0 0 0 1px var(--desk-glass-line); }
.weo-desk-hero .weo-seg button { color: var(--desk-on-ink-2); }
.weo-desk-hero .weo-seg button:hover { color: var(--desk-on-ink); }
.weo-desk .weo-desk-hero .weo-seg button[aria-pressed="true"] { color: var(--desk-ink); background: var(--desk-on-ink); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--desk-ink) 90%, transparent); }
.weo-desk-hero .weo-seg button:focus-visible, .weo-desk-hero .weo-case-link:focus-visible { outline-color: var(--desk-ember); }
.weo-desk-hero .weo-case-link.is-primary { color: var(--desk-ink); background: var(--desk-on-ink);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--desk-ink) 95%, transparent), inset 0 -2px 0 color-mix(in srgb, var(--desk-ink) 8%, transparent); }
.weo-desk-hero .weo-case-link.is-primary svg { color: var(--weo-trade-hue-1); }
.weo-desk-hero .weo-case-link.is-primary:hover { box-shadow: 0 0 0 3px color-mix(in srgb, var(--desk-on-ink) 26%, transparent), 0 14px 28px -12px color-mix(in srgb, var(--desk-ink) 95%, transparent); }

/* "Needs attention": glass counts on the ink, darkened under their words so the text holds on every glow; the tone in a word. */
.weo-desk-pulse-band { display: grid; gap: 10px; min-width: 0; padding-top: 18px; border-top: 1px solid var(--desk-glass-line); }
.weo-desk-pulse-title { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--desk-on-ink-2); }
.weo-desk-pulse { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.weo-desk-pulse.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.weo-desk-pulse.is-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.weo-desk-pulse.is-1 { grid-template-columns: minmax(0, 420px); }
.weo-desk-pulse > li { display: grid; min-width: 0; }
.weo-desk-pulse-item { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; min-width: 0; padding: 14px 16px; border-radius: 16px; color: var(--desk-on-ink);
  text-decoration: none; background: color-mix(in srgb, var(--desk-ink) 58%, transparent); box-shadow: inset 0 0 0 1px var(--desk-glass-line);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: background .15s, transform .15s, box-shadow .15s; }
a.weo-desk-pulse-item:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--desk-ink) 42%, transparent); }
a.weo-desk-pulse-item:focus-visible { outline: 2px solid var(--desk-ember); outline-offset: 2px; }
.weo-desk-pulse-mark { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--desk-glass); box-shadow: inset 0 0 0 1px var(--desk-glass-line); }
.weo-desk-pulse-body { display: grid; gap: 2px; min-width: 0; }
.weo-desk-pulse-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.weo-desk-pulse-count { font-size: 30px; font-weight: 750; letter-spacing: -.035em; line-height: 1.05; }
.weo-desk-pulse-label { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }
.weo-desk-pulse-line { font-size: 12px; color: var(--desk-on-ink-2); overflow-wrap: anywhere; }
.weo-desk-pulse-state { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; color: var(--desk-on-ink-2); background: var(--desk-glass);
  box-shadow: inset 0 0 0 1px var(--desk-glass-line); }
.weo-desk-pulse-item.is-danger { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-danger-solid) 75%, transparent), 0 0 0 4px color-mix(in srgb, var(--weo-danger-solid) 16%, transparent),
  0 14px 30px -14px var(--weo-danger-solid); }
.weo-desk-pulse-item.is-danger :is(.weo-desk-pulse-mark, .weo-desk-pulse-state) { color: var(--weo-on-primary); background: var(--weo-danger-solid); box-shadow: none; }
.weo-desk-pulse-item.is-warning { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--desk-ember) 60%, transparent), 0 14px 30px -16px var(--desk-ember); }
.weo-desk-pulse-item.is-warning :is(.weo-desk-pulse-mark, .weo-desk-pulse-state) { color: var(--desk-ink); background: var(--desk-ember); box-shadow: none; }

/* The headline tiles: as many columns as tiles fill whole rows (part H, item 2; TradeDeskHomeTests lays them out). */
.weo-desk-tiles { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 541px) and (max-width: 960px) {
  .weo-desk-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weo-desk-tiles.is-3 > :last-child, .weo-desk-tiles.is-5 > :last-child { grid-column: 1 / -1; }
}
@media (min-width: 961px) and (max-width: 1279px) {
  .weo-desk-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .weo-desk-tiles > * { grid-column: span 2; }
  .weo-desk-tiles.is-4 > *, .weo-desk-tiles.is-5 > :nth-child(n+4) { grid-column: span 3; }
}
@media (min-width: 1280px) {
  .weo-desk-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .weo-desk-tiles.is-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .weo-desk-tiles.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .weo-desk-tiles.is-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.weo-desk-tile { --hue: var(--weo-trade-hue-1); position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 18px 16px 14px;
  color: var(--weo-text); text-decoration: none; border-color: color-mix(in srgb, var(--hue) 24%, var(--weo-card-border));
  background:
    linear-gradient(90deg, var(--hue), color-mix(in srgb, var(--hue) 40%, transparent)) top / 100% 4px no-repeat,
    linear-gradient(165deg, color-mix(in srgb, var(--hue) 16%, var(--weo-card)) 0%, color-mix(in srgb, var(--hue) 5%, var(--weo-card)) 78%);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--hue) 12%, transparent), 0 12px 28px -20px color-mix(in srgb, var(--hue) 70%, transparent); transition: box-shadow .15s, transform .15s; }
.weo-desk-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: repeating-radial-gradient(circle at 100% 0%, transparent 0 6px, color-mix(in srgb, var(--hue) 26%, transparent) 6px 7px);
  -webkit-mask-image: radial-gradient(circle at 100% 0%, currentColor 30px, transparent 110px); mask-image: radial-gradient(circle at 100% 0%, currentColor 30px, transparent 110px); }
a.weo-desk-tile:hover { transform: translateY(-3px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hue) 50%, transparent), 0 18px 34px -18px var(--hue); }
a.weo-desk-tile:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
.weo-desk-tile-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.weo-desk-tile-mark { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, var(--hue), color-mix(in srgb, var(--hue) 76%, var(--weo-text))); box-shadow: 0 10px 18px -10px var(--hue), inset 0 1px 0 color-mix(in srgb, var(--weo-on-primary) 28%, transparent); }
.weo-desk-tile-label { min-width: 0; font-size: 13px; font-weight: 650; line-height: 1.25; color: color-mix(in srgb, var(--hue) 45%, var(--weo-text)); overflow-wrap: anywhere; }
.weo-desk-tile-figure { margin-top: 8px; font-size: clamp(30px, 2.5vw, 38px); font-weight: 760; letter-spacing: -.04em; line-height: 1.04; color: color-mix(in srgb, var(--hue) 60%, var(--weo-text));
  overflow-wrap: anywhere; }
.weo-desk-tile-sub { font-size: 13px; font-weight: 600; color: var(--weo-label); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.weo-desk-tile-note { font-size: 11.5px; line-height: 1.4; color: var(--weo-label); overflow-wrap: anywhere; }
.weo-desk-tile-state { align-self: flex-start; }
.weo-desk-tile-trend { display: grid; gap: 7px; margin-top: auto; padding-top: 8px; }
.weo-desk-tile-trend .weo-trend { align-items: flex-start; font-size: 11.5px; line-height: 1.35; color: var(--weo-label); }
.weo-desk-tile-trend .weo-trend-up { color: var(--weo-success); }
.weo-desk-tile-trend .weo-trend-down { color: var(--weo-danger); }
.weo-desk-tile-trend .weo-trend svg { flex: none; margin-top: 1px; }
.weo-desk-tile-meter { display: grid; gap: 3px; }
.weo-desk-tile-meter i { display: block; width: var(--share); min-width: 4px; height: 4px; border-radius: 999px; background: var(--hue); }
.weo-desk-tile-meter i.is-before { background: color-mix(in srgb, var(--hue) 32%, transparent); }
html.dark .weo-desk-tile { border-color: color-mix(in srgb, var(--hue) 32%, var(--weo-card-border));
  background:
    linear-gradient(90deg, var(--hue), color-mix(in srgb, var(--hue) 30%, transparent)) top / 100% 4px no-repeat,
    linear-gradient(165deg, color-mix(in srgb, var(--hue) 20%, var(--weo-card)) 0%, color-mix(in srgb, var(--hue) 4%, var(--weo-card)) 70%);
  box-shadow: inset 0 1px 0 color-mix(in srgb, var(--hue) 40%, transparent), 0 18px 36px -26px color-mix(in srgb, var(--hue) 80%, transparent); }
html.dark .weo-desk-tile-label { color: color-mix(in srgb, var(--hue) 38%, var(--weo-text)); }
html.dark .weo-desk-tile-figure { color: color-mix(in srgb, var(--hue) 28%, var(--weo-text)); text-shadow: 0 0 26px color-mix(in srgb, var(--hue) 50%, transparent); }
/* A merchanting trade: its two sides in the accent and the brand; with a side open, the warning tone and its words. */
.weo-desk-tile.is-sides .weo-desk-tile-mark { background: linear-gradient(140deg, var(--weo-trade-hue-2), color-mix(in srgb, var(--weo-trade-hue-1) 80%, var(--weo-text))); }
.weo-desk-tile.is-sides { background:
    linear-gradient(90deg, var(--weo-trade-hue-2), var(--weo-trade-hue-1)) top / 100% 4px no-repeat,
    linear-gradient(165deg, color-mix(in srgb, var(--weo-trade-hue-2) 10%, var(--weo-card)) 0%, color-mix(in srgb, var(--weo-trade-hue-1) 6%, var(--weo-card)) 78%); }
html.dark .weo-desk-tile.is-sides { background:
    linear-gradient(90deg, var(--weo-trade-hue-2), var(--weo-trade-hue-1)) top / 100% 4px no-repeat,
    linear-gradient(165deg, color-mix(in srgb, var(--weo-trade-hue-2) 14%, var(--weo-card)) 0%, color-mix(in srgb, var(--weo-trade-hue-1) 6%, var(--weo-card)) 70%); }
.weo-desk-tile.is-warning { --hue: var(--weo-accent); }
.weo-desk-tile.is-warning .weo-desk-tile-figure { color: var(--weo-warning); }
/* The value of the period, printed on ink as the hero is: the strongest tile, its light from the corner away from its words. */
.weo-desk-tile.is-ink, html.dark .weo-desk-tile.is-ink { color: var(--desk-on-ink); border-color: var(--desk-glass-line);
  background:
    linear-gradient(90deg, var(--desk-ember), color-mix(in srgb, var(--desk-ember) 20%, transparent)) top / 100% 4px no-repeat,
    radial-gradient(120% 80% at 100% 0%, color-mix(in srgb, var(--desk-violet) 45%, transparent), transparent 70%),
    radial-gradient(90% 70% at 100% 100%, color-mix(in srgb, var(--desk-ember) 26%, transparent), transparent 72%),
    var(--desk-ink);
  box-shadow: 0 18px 36px -20px color-mix(in srgb, var(--desk-ink) 90%, transparent), inset 0 1px 0 var(--desk-glass-line); }
.weo-desk-tile.is-ink::after { background: repeating-radial-gradient(circle at 100% 0%, transparent 0 6px, color-mix(in srgb, var(--desk-on-ink) 14%, transparent) 6px 7px); }
.weo-desk-tile.is-ink .weo-desk-tile-mark { color: var(--desk-ink); background: var(--desk-ember); box-shadow: 0 10px 20px -10px var(--desk-ember); }
.weo-desk-tile.is-ink :is(.weo-desk-tile-label, .weo-desk-tile-sub, .weo-desk-tile-note, .weo-money-code, .weo-trend) { color: var(--desk-on-ink-2); }
.weo-desk-tile.is-ink .weo-desk-tile-figure, .weo-desk-tile.is-ink .weo-desk-values li { color: var(--desk-on-ink); text-shadow: none; }
.weo-desk-tile.is-ink .weo-trend-up { color: color-mix(in srgb, var(--weo-trade-hue-3) 25%, var(--desk-on-ink)); }
.weo-desk-tile.is-ink .weo-trend-down { color: color-mix(in srgb, var(--weo-danger-solid) 25%, var(--desk-on-ink)); }
.weo-desk-values { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.weo-desk-values li { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; min-width: 0; font-size: clamp(19px, 1.7vw, 25px); font-weight: 740;
  letter-spacing: -.03em; line-height: 1.1; }
.weo-desk-values .weo-money { flex-wrap: wrap; min-width: 0; max-width: 100%; white-space: normal; }
.weo-desk-values .weo-money > * { min-width: 0; overflow-wrap: anywhere; }
.weo-desk-values .weo-trend { font-size: 11.5px; font-weight: 650; letter-spacing: 0; }

/* The section cards: a band and a wash of their hue at the top (part of their background, so nothing needs clipping). */
.weo-desk-section { --hue: var(--weo-trade-hue-1); display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 16px; min-width: 0; padding: 22px 24px 24px;
  background:
    linear-gradient(90deg, var(--hue), transparent 85%) top / 100% 3px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--hue) 6%, var(--weo-card)) 0, var(--weo-card) 160px); }
html.dark .weo-desk-section { background:
    linear-gradient(90deg, var(--hue), transparent 85%) top / 100% 3px no-repeat,
    linear-gradient(180deg, color-mix(in srgb, var(--hue) 10%, var(--weo-card)) 0, var(--weo-card) 160px); }
.weo-desk-section.is-compliance { --hue: var(--desk-violet); }
.weo-desk-row { align-items: stretch; }
.weo-desk-card-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 10px 14px; min-width: 0; }
.weo-desk-card-titles { flex: 1 1 220px; min-width: 0; }
.weo-desk-card-titles .weo-section-title { margin: 0; font-size: 16px; font-weight: 680; letter-spacing: -.015em; }
.weo-desk-card-titles .weo-card-sub { margin: 4px 0 0; }
.weo-desk-icon { --hue: var(--weo-trade-hue-1); width: 40px; height: 40px; flex: none; border-radius: 13px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, var(--hue), color-mix(in srgb, var(--hue) 76%, var(--weo-text))); box-shadow: 0 10px 20px -10px var(--hue), inset 0 1px 0 color-mix(in srgb, var(--weo-on-primary) 25%, transparent); }
.weo-desk-icon.is-pair { background: linear-gradient(140deg, var(--weo-trade-hue-1), color-mix(in srgb, var(--weo-trade-hue-3) 80%, var(--weo-text))); }
.weo-desk-icon.is-ink { background: linear-gradient(140deg, var(--desk-violet), var(--desk-ink)); box-shadow: 0 10px 20px -10px var(--desk-violet); }
.weo-desk-card-figure { display: grid; justify-items: end; gap: 2px; line-height: 1; }
.weo-desk-card-figure b { font-size: 34px; font-weight: 760; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.weo-desk-card-figure span { font-size: 12px; font-weight: 600; color: var(--weo-muted); }
.weo-desk-card-figure.is-warning b { color: var(--weo-warning); }
.weo-desk-card-figure.is-calm b { color: var(--weo-success); }
.weo-desk-pad { margin: 0 24px 20px; }
.weo-desk-small { margin: 0; font-size: 12.5px; color: var(--weo-muted); }
.weo-desk-clear { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--weo-radius-inner); font-size: 13px; font-weight: 600; color: var(--weo-success); background: var(--weo-success-bg); }

/* Due next: the case pages' own chips, a card each. */
.weo-desk-due { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 12px; }
.weo-desk-due-item { display: grid; gap: 6px; align-content: start; height: 100%; box-sizing: border-box; padding: 13px 15px; border-radius: var(--weo-radius-inner); color: inherit; text-decoration: none;
  background: var(--weo-card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-trade-hue-2) 20%, var(--weo-line)); transition: box-shadow .15s, transform .15s; }
.weo-desk-due-item:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-trade-hue-2) 55%, var(--weo-line)), 0 12px 22px -14px var(--weo-trade-hue-2); }
.weo-desk-due-item:focus-visible { outline: 2px solid var(--weo-trade-hue-2); outline-offset: 2px; }
.weo-desk-due-item .weo-due { justify-self: start; }
.weo-desk-due-what { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; }
.weo-desk-due-case { font-size: 12.5px; color: var(--weo-muted); overflow-wrap: anywhere; }

/* The charts: their column never grows past the card, so the chart is drawn to the card's width at every width. */
.weo-desk-plot { min-width: 0; max-width: 100%; }
.weo-desk-plot > * { min-width: 0; max-width: 100%; }
.weo-desk-fold { display: none; justify-self: start; padding: 7px 14px; border: 0; border-radius: 999px; font: inherit; font-size: 12.5px; font-weight: 650; cursor: pointer;
  color: var(--weo-tint-text); background: var(--weo-tint); }
.weo-desk-figures { min-width: 0; overflow-x: auto; border-radius: var(--weo-radius-inner); box-shadow: inset 0 0 0 1px var(--weo-line); }
.weo-desk-risk { display: inline-flex; align-items: center; gap: 5px; margin-right: 8px; padding: 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap;
  color: var(--weo-warning); background: var(--weo-warning-bg); }
.weo-desk-risk::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* The bills' totals, the pending documents, regulatory reporting and compliance: three columns from 1280px, two (the side across)
   to 961px, one below. */
.weo-desk-trio { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 961px) and (max-width: 1279px) { .weo-desk-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); } .weo-desk-side { grid-column: 1 / -1; } }
@media (min-width: 1280px) { .weo-desk-trio { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.weo-desk-side { display: grid; gap: 20px; align-content: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); min-width: 0; }
.weo-desk-chart, .weo-desk-panel { align-content: start; }
.weo-desk-totals { display: grid; gap: 8px; margin: 0; }
.weo-desk-total { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 12px; border-radius: var(--weo-radius-inner); font-size: 13px;
  background: color-mix(in srgb, var(--hue) 7%, var(--weo-subtle)); box-shadow: inset 3px 0 0 var(--hue); }
.weo-desk-total dt { min-width: 0; font-weight: 600; }
.weo-desk-total dd { min-width: 0; margin: 0; text-align: right; font-weight: 650; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.weo-desk-pending, .weo-desk-returns, .weo-desk-notes { list-style: none; margin: 0; padding: 0; display: grid; }
.weo-desk-pending { gap: 8px; }
/* A case is one flowing paragraph (the fifth by-hand check, part K, item 18): its number and kind, then its pills inline, wrapping onto the
   next line; the row wears the card's hue at low strength in both themes. A pill is whole (the sixth by-hand check, part U, item 4): it moves
   to the next line as one, and its name wraps, between words, only when it is longer than the card is wide. */
.weo-desk-pending > li { display: block; min-width: 0; padding: 10px 12px; border-radius: var(--weo-radius-inner); line-height: 1.9; overflow-wrap: anywhere;
  background: color-mix(in srgb, var(--weo-trade-hue-2) 9%, var(--weo-card)); box-shadow: inset 3px 0 0 color-mix(in srgb, var(--weo-trade-hue-2) 75%, transparent), inset 0 0 0 1px color-mix(in srgb, var(--weo-trade-hue-2) 16%, transparent); }
.weo-desk-pending-case { display: inline; margin-right: 8px; }
.weo-desk-pending-case .weo-link { font-size: 13.5px; font-weight: 650; overflow-wrap: anywhere; margin-right: 6px; }
.weo-desk-pending-docs { display: inline; font-size: 12.5px; }
.weo-desk-pending-to { color: var(--weo-label); margin-right: 4px; }
.weo-desk-doc { display: inline-block; max-width: 100%; box-sizing: border-box; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 999px; font-weight: 600; line-height: 1.45; overflow-wrap: anywhere;
  color: var(--weo-text); background: var(--weo-card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-trade-hue-2) 30%, var(--weo-line-strong)); }
.weo-desk-pending-more { font-weight: 600; color: var(--weo-label); }
.weo-desk-kind { display: inline-flex; align-items: center; gap: 5px; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: color-mix(in srgb, var(--hue) 62%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 14%, var(--weo-card)); }
.weo-desk-kind::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--hue); }
html.dark .weo-desk-kind { color: color-mix(in srgb, var(--hue) 40%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 22%, var(--weo-card)); }
.weo-desk-returns li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; padding: 9px 0; border-top: 1px solid var(--weo-line); font-size: 13px; }
.weo-desk-returns li:first-child { border-top: 0; }
.weo-desk-counts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr)); gap: 10px; }
.weo-desk-count { display: grid; gap: 4px; align-content: start; padding: 14px 16px; border-radius: var(--weo-radius-inner); font-size: 12.5px; font-weight: 600; text-decoration: none;
  color: var(--desk-on-ink-2); background: radial-gradient(110% 90% at 100% 0%, color-mix(in srgb, var(--desk-violet) 42%, transparent), transparent 70%), var(--desk-ink);
  box-shadow: inset 0 1px 0 var(--desk-glass-line), 0 12px 24px -16px color-mix(in srgb, var(--desk-ink) 90%, transparent); transition: transform .15s, box-shadow .15s; }
.weo-desk-count b { font-size: 28px; font-weight: 750; letter-spacing: -.03em; line-height: 1.05; color: var(--desk-on-ink); }
.weo-desk-count:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 var(--desk-glass-line), 0 0 0 2px color-mix(in srgb, var(--desk-violet) 55%, transparent); }
.weo-desk-count:focus-visible { outline: 2px solid var(--desk-violet); outline-offset: 2px; }

/* The analysis: the table runs to the card's edges; on a wide table it scrolls inside its own frame, never the card. */
.weo-desk-analysis { padding: 0; gap: 0; }
.weo-desk-analysis > .weo-desk-card-head { padding: 22px 24px 16px; }
.weo-desk-scroll { min-width: 0; overflow-x: auto; }

/* Quick actions: tiles in the four hues in turn. */
.weo-desk-actions { display: grid; gap: 12px; }
.weo-desk-actions .weo-section-title { margin: 0; font-size: 16px; font-weight: 680; }
.weo-desk-action-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.weo-desk-action { --hue: var(--weo-trade-hue-1); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; color: inherit; text-decoration: none;
  transition: box-shadow .15s, transform .15s; }
.weo-desk-action:nth-child(4n+2) { --hue: var(--weo-trade-hue-2); }
.weo-desk-action:nth-child(4n+3) { --hue: var(--weo-trade-hue-3); }
.weo-desk-action:nth-child(4n+4) { --hue: var(--weo-trade-hue-4); }
.weo-desk-action:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px color-mix(in srgb, var(--hue) 40%, transparent), 0 14px 28px -18px var(--hue); }
.weo-desk-action:focus-visible { outline: 2px solid var(--hue); outline-offset: 2px; }
.weo-desk-action.is-primary { background: linear-gradient(135deg, color-mix(in srgb, var(--hue) 13%, var(--weo-card)), var(--weo-card) 70%); }
.weo-desk-action-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, var(--hue), color-mix(in srgb, var(--hue) 76%, var(--weo-text))); box-shadow: 0 10px 18px -10px var(--hue); }
.weo-desk-action-text { display: grid; gap: 2px; min-width: 0; }
.weo-desk-action-text b { font-size: 14px; font-weight: 650; }
.weo-desk-action-text small { font-size: 12px; line-height: 1.4; color: var(--weo-muted); overflow-wrap: anywhere; }
.weo-desk-notes { gap: 4px; font-size: 12px; color: var(--weo-muted); }

/* The first steps (no case yet). */
.weo-desk-welcome { grid-template-columns: auto minmax(0, 1fr); gap: 18px 24px; padding: 28px 30px; }
.weo-desk-welcome-art { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; color: var(--desk-on-ink);
  background: radial-gradient(90% 90% at 0% 0%, var(--weo-trade-hue-1), transparent 75%), radial-gradient(80% 80% at 100% 100%, color-mix(in srgb, var(--desk-ember) 60%, transparent), transparent 75%), var(--desk-ink);
  box-shadow: 0 18px 34px -18px var(--weo-trade-hue-1); }
.weo-desk-welcome-body { display: grid; gap: 12px; min-width: 0; }
.weo-desk-welcome-body h2 { margin: 0; font-size: 21px; font-weight: 720; letter-spacing: -.02em; }
.weo-desk-welcome-body p { margin: 0; font-size: 14px; color: var(--weo-label); }
.weo-desk-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 13.5px; color: var(--weo-label); }
.weo-desk-steps li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 12px; }
.weo-desk-step-no { width: 26px; height: 26px; border-radius: 9px; display: grid; place-items: center; font-size: 13px; font-weight: 760;
  color: color-mix(in srgb, var(--hue) 62%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 16%, var(--weo-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 30%, transparent); }
html.dark .weo-desk-step-no { color: color-mix(in srgb, var(--hue) 40%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 24%, var(--weo-card)); }
.weo-desk-skeleton { gap: 18px; }

/* Width by width. */
@media (max-width: 1179px) { .weo-desk-pulse.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .weo-desk { gap: 16px; }
  .weo-desk-hero { gap: 18px; padding: 22px 18px 20px; border-radius: 20px; }
  .weo-desk-head-tools { justify-items: start; width: 100%; }
  .weo-desk-head-tools .weo-seg { flex-wrap: wrap; max-width: 100%; }
  .weo-desk-head-actions { justify-content: flex-start; }
  .weo-desk-pulse.is-4, .weo-desk-pulse.is-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .weo-desk-pulse.is-3 > li:first-child { grid-column: 1 / -1; }
  .weo-desk-pulse-item { grid-template-columns: minmax(0, 1fr); padding: 12px 14px; }
  .weo-desk-pulse-mark { display: none; }
  .weo-desk-pulse-count { font-size: 26px; }
  .weo-desk-section { padding: 18px 16px; }
  .weo-desk-analysis { padding: 0; }
  .weo-desk-analysis > .weo-desk-card-head { padding: 18px 16px 12px; }
  .weo-desk-pad { margin: 0 16px 16px; }
  .weo-desk-due { grid-template-columns: minmax(0, 1fr); }
  .weo-desk-fold { display: inline-flex; }
  .weo-desk-figures { display: none; box-shadow: none; overflow: visible; }
  .weo-desk-figures.is-open { display: block; }
  .weo-desk-scroll { overflow: visible; }
  .weo-desk-welcome { grid-template-columns: minmax(0, 1fr); padding: 20px 18px; }
}
@media (max-width: 540px) { .weo-desk-values li { font-size: 22px; } .weo-desk-card-figure b { font-size: 28px; }
  .weo-desk-head-tools .weo-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; box-sizing: border-box; }
  .weo-desk-head-tools .weo-seg button { white-space: normal; } }
@media (prefers-reduced-motion: reduce) { a.weo-desk-tile:hover, a.weo-desk-pulse-item:hover, .weo-desk-due-item:hover, .weo-desk-action:hover, .weo-desk-count:hover { transform: none; } }

:root {
  --weo-trade-hue-1: var(--weo-hue-1, var(--weo-primary));
  --weo-trade-hue-2: var(--weo-hue-2, var(--weo-accent));
  --weo-trade-hue-3: var(--weo-hue-3, var(--weo-success));
  --weo-trade-hue-4: var(--weo-hue-4, var(--weo-primary));
}

/* ---------- The case's route: stations on a line ----------
   Each station is a column: its round mark on the line, then its title, one line of fact and a date. The line between
   two marks is drawn by the station before; it is travelled (solid, success into the brand) when the next station is
   reached, and dashed while it is to come. Done is filled in success, the current station is ringed in its hue with a
   slow breath, a held one is filled in danger with its reason in words, one to come is hollow and quiet. */
.weo-timeline-card { position: relative; overflow: clip; isolation: isolate; padding: 22px 24px 18px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--weo-primary) 5%, var(--weo-card)) 0%, var(--weo-card) 72%); }
.weo-timeline-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 18px; }
.weo-timeline-head .weo-section-title { margin: 0; }
.weo-timeline-summary { font-size: 12.5px; color: var(--weo-muted); }
.weo-timeline { --mark: 44px; list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 0 10px; }
.weo-station { --hue: var(--weo-trade-hue-1); position: relative; min-width: 0; }
.weo-station:nth-child(4n+2) { --hue: var(--weo-trade-hue-2); }
.weo-station:nth-child(4n+3) { --hue: var(--weo-trade-hue-3); }
.weo-station:nth-child(4n+4) { --hue: var(--weo-trade-hue-4); }
.weo-station:not(:last-child)::after {
  content: ""; position: absolute; z-index: 0; top: calc(var(--mark) / 2 - 2px); left: calc(var(--mark) + 10px); right: 0; height: 4px; border-radius: 999px;
  background: repeating-linear-gradient(90deg, var(--weo-line-strong) 0 7px, transparent 7px 13px);
}
.weo-station:has(+ .weo-station.is-reached)::after { background: linear-gradient(90deg, var(--weo-success), color-mix(in srgb, var(--weo-success) 55%, var(--weo-primary))); }
.weo-station:has(+ .weo-station.is-current)::after { background: linear-gradient(90deg, var(--weo-success), var(--weo-primary)); box-shadow: 0 0 12px -2px color-mix(in srgb, var(--weo-primary) 55%, transparent); }
.weo-station:has(+ .weo-station.is-held)::after { background: linear-gradient(90deg, var(--weo-success), var(--weo-danger-solid)); }
.weo-station-link { position: relative; z-index: 1; display: grid; gap: 12px; align-content: start; min-width: 0; color: inherit; text-decoration: none; border-radius: 14px; padding: 0 6px 6px 0; }
.weo-station-link:focus-visible { outline: none; }
.weo-station-link:focus-visible .weo-station-mark { outline: 3px solid color-mix(in srgb, var(--hue) 45%, transparent); outline-offset: 3px; }
.weo-station-mark { position: relative; width: var(--mark); height: var(--mark); border-radius: 50%; display: grid; place-items: center; flex: none;
  font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; transition: transform .2s, box-shadow .2s; }
.weo-station-link:hover .weo-station-mark { transform: translateY(-2px); }
.weo-station.is-tocome .weo-station-mark { color: var(--weo-muted); background: var(--weo-card); box-shadow: inset 0 0 0 2px var(--weo-line-strong); }
.weo-station.is-done .weo-station-mark { color: var(--weo-card);
  background: linear-gradient(145deg, color-mix(in srgb, var(--weo-success) 72%, var(--weo-card)), var(--weo-success) 62%);
  box-shadow: 0 10px 20px -12px var(--weo-success), inset 0 1px 0 color-mix(in srgb, var(--weo-card) 35%, transparent); }
.weo-station.is-current .weo-station-mark { color: color-mix(in srgb, var(--hue) 80%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 12%, var(--weo-card));
  box-shadow: inset 0 0 0 2.5px var(--hue), 0 0 0 7px color-mix(in srgb, var(--hue) 13%, transparent), 0 14px 26px -12px var(--hue); }
.weo-station.is-current .weo-station-mark::before { content: ""; position: absolute; inset: -7px; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--hue) 40%, transparent); animation: weo-station-breath 2.6s ease-in-out infinite; }
@keyframes weo-station-breath { 0%, 100% { opacity: .9; transform: scale(1); } 60% { opacity: 0; transform: scale(1.22); } }
.weo-station.is-held .weo-station-mark { color: var(--weo-on-primary);
  background: linear-gradient(145deg, color-mix(in srgb, var(--weo-danger-solid) 78%, var(--weo-card)), var(--weo-danger-solid) 60%);
  box-shadow: 0 0 0 7px color-mix(in srgb, var(--weo-danger-solid) 13%, transparent), 0 14px 26px -12px var(--weo-danger-solid); }
/* How many (documents, legs) the station holds: a small bubble on its mark. */
.weo-station-count { position: absolute; top: -5px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; box-sizing: border-box; border-radius: 999px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; line-height: 1; background: var(--weo-card); color: var(--weo-text);
  box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--hue) 45%, var(--weo-line-strong)), 0 3px 8px -3px color-mix(in srgb, var(--weo-text) 35%, transparent); }
.weo-station-body { display: grid; gap: 3px; min-width: 0; }
.weo-station-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 7px; font-size: 14px; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; color: var(--weo-text); transition: color .15s; }
.weo-station-link:hover .weo-station-title { color: var(--weo-primary-text); }
.weo-station.is-tocome .weo-station-title { color: var(--weo-muted); font-weight: 600; }
.weo-station.is-held .weo-station-title { color: var(--weo-danger); }
.weo-station-now { font-size: 11px; font-weight: 700; letter-spacing: .02em; padding: 1px 8px; border-radius: 999px;
  color: color-mix(in srgb, var(--hue) 78%, var(--weo-text)); background: color-mix(in srgb, var(--hue) 15%, var(--weo-card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue) 30%, transparent); }
.weo-station-fact { font-size: 12.5px; line-height: 1.45; color: var(--weo-label); overflow-wrap: anywhere; }
.weo-station.is-tocome .weo-station-fact { color: var(--weo-muted); }
.weo-station-why { font-size: 12.5px; line-height: 1.45; font-weight: 550; color: var(--weo-danger); overflow-wrap: anywhere; }
.weo-station-date { font-size: 12px; color: var(--weo-muted); font-variant-numeric: tabular-nums; }
/* Phones: a vertical list with the line on the left, each station's words beside its mark. */
@media (max-width: 720px) {
  .weo-timeline-card { padding: 18px; }
  .weo-timeline { --mark: 36px; grid-auto-flow: row; grid-auto-columns: auto; gap: 0; }
  .weo-station-link { grid-template-columns: var(--mark) minmax(0, 1fr); gap: 0 14px; padding: 0 0 18px; }
  .weo-station:last-child .weo-station-link { padding-bottom: 0; }
  .weo-station-mark { font-size: 13px; }
  .weo-station-body { padding-top: 7px; }
  .weo-station:not(:last-child)::after { top: calc(var(--mark) + 6px); bottom: 6px; left: calc(var(--mark) / 2 - 2px); right: auto; width: 4px; height: auto;
    background: repeating-linear-gradient(180deg, var(--weo-line-strong) 0 7px, transparent 7px 13px); }
  .weo-station:has(+ .weo-station.is-reached)::after { background: linear-gradient(180deg, var(--weo-success), color-mix(in srgb, var(--weo-success) 55%, var(--weo-primary))); }
  .weo-station:has(+ .weo-station.is-current)::after { background: linear-gradient(180deg, var(--weo-success), var(--weo-primary)); }
  .weo-station:has(+ .weo-station.is-held)::after { background: linear-gradient(180deg, var(--weo-success), var(--weo-danger-solid)); }
}

/* ---------- The deadline chip ----------
   Time is never out of sight: the chip sits in a case's head and on every row. Its tone means what status colours
   mean everywhere: calm (the brand's tint) while far off, warning within the institution's reminder days and stronger
   on the day, danger when overdue (both with a live dot), success when met, the fourth hue when a request moved it,
   neutral and dashed when there is no date. */
.weo-due { --due: var(--weo-primary); --due-bg: var(--weo-tint); --due-text: var(--weo-tint-text);
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 26px; padding: 0 11px 0 9px; box-sizing: border-box; border-radius: 999px; vertical-align: middle;
  font-size: 12.5px; font-weight: 550; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; text-decoration: none;
  background: var(--due-bg); color: var(--due-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--due) 26%, transparent); transition: box-shadow .15s, transform .15s; }
.weo-due > svg { flex: none; opacity: .85; }
.weo-due > span { overflow: hidden; text-overflow: ellipsis; }
.weo-due b { font-size: 13.5px; font-weight: 750; letter-spacing: -.01em; }
a.weo-due:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--due) 55%, transparent), 0 8px 16px -10px var(--due); }
a.weo-due:focus-visible { outline: 2px solid var(--due); outline-offset: 2px; }
.weo-due.is-soon { --due: var(--weo-accent); --due-bg: var(--weo-warning-bg); --due-text: var(--weo-warning); }
.weo-due.is-today { --due: var(--weo-accent); --due-bg: color-mix(in srgb, var(--weo-accent) 22%, var(--weo-card)); --due-text: var(--weo-warning); font-weight: 700;
  box-shadow: inset 0 0 0 1.5px var(--due), 0 8px 18px -12px var(--due); }
.weo-due.is-overdue { --due: var(--weo-danger-solid); --due-bg: var(--weo-danger-bg); --due-text: var(--weo-danger);
  box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--due) 60%, transparent), 0 8px 18px -12px var(--due); }
.weo-due.is-met { --due: var(--weo-success); --due-bg: var(--weo-success-bg); --due-text: var(--weo-success); }
.weo-due.is-extended { --due: var(--weo-trade-hue-4); --due-bg: color-mix(in srgb, var(--due) 13%, var(--weo-card)); --due-text: color-mix(in srgb, var(--due) 72%, var(--weo-text)); }
.weo-due.is-none { --due: var(--weo-muted); --due-bg: var(--weo-subtle); --due-text: var(--weo-muted); box-shadow: none; outline: 1px dashed var(--weo-line-strong); outline-offset: -1px; }
.weo-due:is(.is-today, .is-overdue)::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--due);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--due) 22%, transparent); animation: weo-due-live 1.8s ease-in-out infinite; }
@keyframes weo-due-live { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--due) 8%, transparent); } }
/* A date a request moved, still within the reminder days or past it: a quiet word after the count. */
.weo-due-note { font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: 999px; background: color-mix(in srgb, var(--weo-trade-hue-4) 14%, var(--weo-card)); color: color-mix(in srgb, var(--weo-trade-hue-4) 72%, var(--weo-text)); }
/* The larger chip of a page's head. */
.weo-due.is-large { min-height: 32px; padding: 0 14px 0 11px; font-size: 13.5px; gap: 7px; }
.weo-due.is-large b { font-size: 15.5px; }

/* ---------- The two sides of a merchanting trade ----------
   Two columns, the purchase side in the accent and the sale side in the brand, each with a figure, a meter of what is
   settled, its legs and its totals; between them the band bridges the two with the period's chip, a bar of time used
   and the gross margin. A side settled in full turns its meter to success. Below 960px the sides stack, the band between. */
.weo-legs { --buy: var(--weo-trade-hue-2); --sell: var(--weo-trade-hue-1); position: relative; isolation: isolate; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) minmax(0, 1fr); align-items: stretch; }
.weo-legs-side { --side: var(--buy); position: relative; display: grid; align-content: start; gap: 14px; min-width: 0; padding: 22px 22px 20px; border-radius: var(--weo-radius-inner);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side) 8%, var(--weo-card)) 0%, var(--weo-card) 48%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--side) 20%, var(--weo-line)); }
.weo-legs-side.is-sale { --side: var(--sell); }
.weo-legs-side::before { content: ""; position: absolute; top: 0; left: 18px; right: 18px; height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--side), color-mix(in srgb, var(--side) 30%, transparent)); }
.weo-legs-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.weo-legs-head > div { min-width: 0; }
.weo-legs-head h3 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.01em; }
.weo-legs-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--weo-muted); overflow-wrap: anywhere; }
.weo-legs-icon { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--side) 72%, var(--weo-card)), var(--side) 62%); box-shadow: 0 10px 18px -10px var(--side); }
.weo-legs-figure { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.weo-legs-figure .weo-money { font-size: 26px; font-weight: 700; letter-spacing: -.03em; color: color-mix(in srgb, var(--side) 30%, var(--weo-text)); }
.weo-legs-figure small { font-size: 12.5px; color: var(--weo-muted); }
.weo-legs-meter { height: 8px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--side) 12%, var(--weo-subtle)); }
.weo-legs-meter > span { display: block; height: 100%; min-width: 0; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--side) 55%, var(--weo-card)), var(--side)); }
.weo-legs-side.is-settled .weo-legs-meter > span { background: linear-gradient(90deg, color-mix(in srgb, var(--weo-success) 55%, var(--weo-card)), var(--weo-success)); }
.weo-legs-list { list-style: none; margin: 0; padding: 0; display: grid; }
.weo-legs-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2px 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--weo-line); font-size: 13px; }
.weo-legs-list time { font-size: 12px; color: var(--weo-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.weo-legs-what { display: grid; min-width: 0; overflow-wrap: anywhere; }
.weo-legs-what small { font-size: 12px; color: var(--weo-muted); }
.weo-legs-amount { text-align: right; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.weo-legs-warn { grid-column: 2 / -1; display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--weo-warning); }
.weo-legs-none { margin: 0; padding: 10px 0; border-top: 1px solid var(--weo-line); font-size: 13px; color: var(--weo-muted); }
.weo-legs-totals { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 0; padding-top: 12px; border-top: 1px solid var(--weo-line-strong); font-size: 13px; }
.weo-legs-totals dt { color: var(--weo-muted); }
.weo-legs-totals dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.weo-legs-totals .is-left { font-weight: 700; color: var(--weo-text); }
.weo-legs-band { position: relative; z-index: 1; display: grid; align-content: center; padding: 18px 10px; }
.weo-legs-band::before { content: ""; position: absolute; z-index: -1; top: 50%; left: -2px; right: -2px; height: 2px; border-radius: 999px;
  background: linear-gradient(90deg, var(--buy), var(--sell)); opacity: .55; }
.weo-legs-band-card { display: grid; justify-items: center; gap: 10px; padding: 16px 14px; text-align: center; border-radius: 16px; background: var(--weo-card);
  box-shadow: 0 0 0 1px var(--weo-card-border), 0 16px 32px -20px color-mix(in srgb, var(--weo-text) 45%, transparent); }
.weo-legs-bridge { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(135deg, var(--buy), var(--sell)); box-shadow: 0 0 0 5px var(--weo-card), 0 0 0 6px color-mix(in srgb, var(--sell) 25%, transparent), 0 12px 22px -10px var(--sell); }
.weo-legs-period { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--weo-label); text-wrap: balance; }
.weo-legs-time { width: 100%; height: 6px; border-radius: 999px; overflow: hidden; background: var(--weo-subtle); box-shadow: inset 0 0 0 1px var(--weo-line); }
.weo-legs-time > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--buy), var(--sell)); }
.weo-legs-time.is-late > span { background: var(--weo-danger-solid); }
.weo-legs-margin { display: grid; gap: 2px; padding-top: 10px; width: 100%; border-top: 1px dashed var(--weo-line-strong); }
.weo-legs-margin > span { font-size: 12px; color: var(--weo-muted); }
.weo-legs-margin b { font-size: 18px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.weo-legs-margin small { font-size: 12px; line-height: 1.45; color: var(--weo-muted); }
@media (max-width: 960px) {
  .weo-legs { grid-template-columns: minmax(0, 1fr); }
  .weo-legs-band { padding: 14px 18px; }
  .weo-legs-band::before { top: -2px; bottom: -2px; left: 50%; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--buy), var(--sell)); }
}
@media (max-width: 720px) { .weo-legs-side { padding: 18px; } .weo-legs-figure .weo-money { font-size: 22px; } }

/* ---------- A rule's standing ----------
   A badge with a dot, as status badges are: filled once the version may refuse (verified, the institution's own
   policy), hollow while it only warns (proposed) or was never read (awaiting the source, dashed). */
.weo-standing { --standing: var(--weo-muted); display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 8px; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  font-size: 12px; font-weight: 550; line-height: 1.45; background: var(--weo-subtle); color: var(--weo-muted); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--standing) 24%, transparent); }
.weo-standing::before { content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--standing); }
.weo-standing.is-verified { --standing: var(--weo-success); background: var(--weo-success-bg); color: var(--weo-success); }
.weo-standing.is-verified::before { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--weo-success) 22%, transparent); }
.weo-standing.is-policy { --standing: var(--weo-primary-text); background: var(--weo-tint); color: var(--weo-tint-text); }
.weo-standing.is-proposed { --standing: var(--weo-warning); background: var(--weo-warning-bg); color: var(--weo-warning); }
.weo-standing.is-proposed::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--standing); }
.weo-standing.is-awaiting::before { background: transparent; border: 1.5px dashed var(--standing); box-sizing: border-box; }
.weo-standing.is-awaiting { box-shadow: inset 0 0 0 1px var(--weo-line-strong); }

/* ---------- Why something is not offered ----------
   A fact about the institution, never a fault: the brand's tint, an icon tile, a title with the matrix's word, the
   sentence, and the rule's id as a small code. Inline, it takes the place of a button in one line. */
.weo-matrix-notice { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 18px 20px; border-radius: var(--weo-radius-inner);
  background: linear-gradient(120deg, color-mix(in srgb, var(--weo-primary) 8%, var(--weo-card)), color-mix(in srgb, var(--weo-trade-hue-4) 5%, var(--weo-card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-primary) 20%, var(--weo-line)); color: var(--weo-text); }
.weo-matrix-notice > p { grid-column: 2; margin: 0; min-width: 0; font-size: 13.5px; line-height: 1.55; color: var(--weo-label); overflow-wrap: anywhere; }
.weo-matrix-notice-icon { grid-row: 1 / span 3; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--weo-primary) 78%, var(--weo-card)), var(--weo-primary) 55%, var(--weo-trade-hue-4)); box-shadow: 0 10px 18px -10px var(--weo-primary); }
.weo-matrix-notice > .weo-matrix-notice-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14.5px; font-weight: 650; color: var(--weo-text); }
.weo-matrix-notice > .weo-matrix-notice-rule { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12.5px; color: var(--weo-muted); }
.weo-matrix-notice-code { padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 650; letter-spacing: .02em; font-variant-numeric: tabular-nums;
  background: var(--weo-card); color: var(--weo-tint-text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-primary) 24%, transparent); }
.weo-matrix-notice.is-inline { gap: 2px 10px; padding: 10px 12px; }
.weo-matrix-notice.is-inline .weo-matrix-notice-icon { width: 28px; height: 28px; border-radius: 9px; }
.weo-matrix-notice.is-inline > p { font-size: 12.5px; }
.weo-matrix-notice.is-inline > .weo-matrix-notice-title { font-size: 13px; }

/* ---------- One amount in its currency ----------
   The code (or the rupee sign) set small before the figure and the decimals set smaller after it, in tabular digits;
   on a white card with a corner of rings in its hue (the brand's by default), never the ink ticket. */
.weo-money { display: inline-flex; align-items: baseline; white-space: nowrap; font-variant-numeric: tabular-nums; }
.weo-money-code { margin-right: .4em; font-size: .46em; font-weight: 700; letter-spacing: .05em; color: var(--weo-muted); }
.weo-money-sign { margin-right: .06em; font-weight: 600; }
.weo-money-fraction { font-size: .6em; font-weight: 600; color: var(--weo-muted); }
.weo-figure { --hue: var(--weo-trade-hue-1); position: relative; overflow: clip; isolation: isolate; display: grid; gap: 6px; padding: 20px 22px; }
.weo-figure.is-hue-2 { --hue: var(--weo-trade-hue-2); }
.weo-figure.is-hue-3 { --hue: var(--weo-trade-hue-3); }
.weo-figure.is-hue-4 { --hue: var(--weo-trade-hue-4); }
.weo-figure::after { content: ""; position: absolute; z-index: -1; top: -64px; right: -64px; width: 180px; height: 180px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 6px, color-mix(in srgb, var(--hue) 24%, transparent) 6px 7px);
  -webkit-mask-image: radial-gradient(circle, currentColor 24%, transparent 70%); mask-image: radial-gradient(circle, currentColor 24%, transparent 70%); }
.weo-figure-label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 550; color: color-mix(in srgb, var(--hue) 25%, var(--weo-muted)); }
.weo-figure-label::before { content: ""; width: 9px; height: 9px; border-radius: 3px; flex: none; background: var(--hue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hue) 18%, transparent); }
.weo-figure-amount { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.035em; line-height: 1.1; color: color-mix(in srgb, var(--hue) 28%, var(--weo-text)); overflow-wrap: anywhere; }
html.dark .weo-figure-amount { color: var(--weo-text); }
.weo-figure-sub { font-size: 13px; font-weight: 550; color: var(--weo-label); font-variant-numeric: tabular-nums; }
.weo-figure-note { font-size: 12px; color: var(--weo-muted); }
.weo-figure-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 8px 0 0; padding-top: 12px; border-top: 1px solid var(--weo-line); font-size: 13px; }
.weo-figure-lines dt { color: var(--weo-muted); min-width: 0; }
.weo-figure-lines dd { margin: 0; text-align: right; font-weight: 550; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) { .weo-figure { padding: 16px 18px; } .weo-figure-amount { font-size: 26px; } }

/* ---------- The Trade reports' hub: three groups, a line each ---------- */
.weo-report-group { --hue: var(--weo-trade-hue-1); display: grid; align-content: start; overflow: clip; }
.weo-report-group.is-hue-2 { --hue: var(--weo-trade-hue-2); }
.weo-report-group.is-hue-3 { --hue: var(--weo-trade-hue-3); }
.weo-report-group.is-hue-4 { --hue: var(--weo-trade-hue-4); }
.weo-report-group-head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 20px 22px 16px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 8%, var(--weo-card)), var(--weo-card)); border-bottom: 1px solid var(--weo-line); }
.weo-report-group-head .weo-section-title { margin: 0; }
.weo-report-group-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--hue) 72%, var(--weo-card)), var(--hue) 62%); box-shadow: 0 10px 18px -10px var(--hue); }
.weo-report-list { list-style: none; margin: 0; padding: 6px; display: grid; }
.weo-report-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 12px; border-radius: 12px; color: inherit; text-decoration: none; transition: background .15s; }
.weo-report-link:hover { background: color-mix(in srgb, var(--hue) 7%, var(--weo-card)); }
.weo-report-link:hover > svg { color: color-mix(in srgb, var(--hue) 80%, var(--weo-text)); transform: translateX(2px); }
.weo-report-link:focus-visible { outline: 2px solid var(--hue); outline-offset: -2px; }
.weo-report-link > svg { flex: none; color: var(--weo-muted); transition: transform .15s, color .15s; }
.weo-report-link-text { display: grid; gap: 2px; min-width: 0; }
.weo-report-link-text b { font-size: 13.5px; font-weight: 600; }
.weo-report-link-text small { font-size: 12.5px; line-height: 1.45; color: var(--weo-muted); }
@media (max-width: 1200px) { .weo-report-hub > .weo-span-4 { grid-column: span 6; } }
@media (max-width: 960px) { .weo-report-hub > .weo-span-4 { grid-column: span 12; } }
/* ---------- A case's page: the head, the route, the figures and the sections (package 15a) ----------
   The head is a card with the brand's breath behind the number, the state and the deadline's chip; the route runs across
   under it, then a strip of figure cards (one per currency, never a table that outgrows its card). The sections are cards
   with one accent each (a set hue on the icon tile and a hairline at the top), the substance on the left and the deadlines on
   the right, which stay in view; below 1100px one column. A wide table scrolls inside its card; at phone width (720px, the
   shared stacked layout) its rows read as label and value. Nothing here sets a width that outlives the phone layout. */
.weo-case { display: grid; gap: 18px; }
.weo-case-head { position: relative; overflow: clip; isolation: isolate; display: grid; gap: 14px; padding: 24px 26px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--weo-primary) 9%, var(--weo-card)) 0%, var(--weo-card) 55%, color-mix(in srgb, var(--weo-trade-hue-4) 6%, var(--weo-card)) 100%); }
.weo-case-head::after { content: ""; position: absolute; z-index: -1; top: -90px; right: -70px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none;
  background: repeating-radial-gradient(circle, transparent 0 8px, color-mix(in srgb, var(--weo-primary) 16%, transparent) 8px 9px);
  -webkit-mask-image: radial-gradient(circle, currentColor 20%, transparent 70%); mask-image: radial-gradient(circle, currentColor 20%, transparent 70%); }
.weo-case-head-main { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 16px 24px; }
.weo-case-head-titles { display: grid; gap: 8px; min-width: 0; }
.weo-case-kind { display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 650; letter-spacing: .02em;
  color: var(--weo-tint-text); background: var(--weo-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-primary) 22%, transparent); }
.weo-case-number { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; overflow-wrap: anywhere; }
.weo-case-head-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.weo-case-who { margin: 0; font-size: 14px; color: var(--weo-label); overflow-wrap: anywhere; }
.weo-case-who b { color: var(--weo-text); font-weight: 650; }
.weo-case-person { margin: 0; font-size: 12.5px; color: var(--weo-muted); }
.weo-case-head-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; max-width: 100%; }
.weo-case-head-actions .weo-case-why { flex-basis: 100%; justify-content: flex-end; }
.weo-case-link { display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap;
  color: var(--weo-primary-text); background: var(--weo-card); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-primary) 32%, var(--weo-line)); transition: box-shadow .15s, transform .15s; }
.weo-case-link:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--weo-primary), 0 8px 16px -12px var(--weo-primary); }
.weo-case-link:focus-visible { outline: 2px solid var(--weo-primary); outline-offset: 2px; }
.weo-case-link.is-primary { color: var(--weo-on-primary); background: var(--weo-primary); box-shadow: 0 10px 20px -12px var(--weo-primary); }
.weo-case-alert { margin: 0; }
.weo-case-figures { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.weo-case-figures .weo-figure-amount { font-size: clamp(24px, 2.2vw, 32px); }
.weo-case-figures .weo-figure-lines dd { overflow-wrap: anywhere; min-width: 0; }
.weo-case-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 18px; align-items: start; }
.weo-case-main, .weo-case-aside { display: grid; gap: 18px; min-width: 0; align-content: start; }
.weo-case-aside { position: sticky; top: 16px; }
@media (max-width: 1100px) { .weo-case-grid { grid-template-columns: minmax(0, 1fr); } .weo-case-aside { position: static; order: -1; } }

/* A section: one accent each, its head, its states. */
.weo-case-section { --hue: var(--weo-trade-hue-1); position: relative; overflow: clip; min-width: 0; padding: 0; scroll-margin-top: 16px; }
.weo-case-section.is-hue-2 { --hue: var(--weo-trade-hue-2); }
.weo-case-section.is-hue-3 { --hue: var(--weo-trade-hue-3); }
.weo-case-section.is-hue-4 { --hue: var(--weo-trade-hue-4); }
.weo-case-section::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--hue), color-mix(in srgb, var(--hue) 20%, transparent)); }
.weo-case-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px 14px; padding: 20px 22px 14px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--hue) 7%, var(--weo-card)), var(--weo-card)); }
.weo-case-section-icon { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; color: var(--weo-on-primary);
  background: linear-gradient(140deg, color-mix(in srgb, var(--hue) 72%, var(--weo-card)), var(--hue) 62%); box-shadow: 0 10px 18px -10px var(--hue); }
.weo-case-section-titles { flex: 1 1 220px; min-width: 0; }
.weo-case-section-titles .weo-section-title { margin: 0; }
.weo-case-section-sub { margin: 3px 0 0; font-size: 12.5px; line-height: 1.45; color: var(--weo-muted); }
.weo-case-section-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.weo-case-section-body { display: grid; gap: 14px; padding: 4px 22px 22px; min-width: 0; }
.weo-case-error { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 12px 14px; border-radius: var(--weo-radius-inner); font-size: 13px;
  color: var(--weo-danger); background: var(--weo-danger-bg); }
.weo-case-loading { display: grid; gap: 10px; padding: 18px 20px; }
.weo-case-why { display: flex; align-items: flex-start; gap: 6px; margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--weo-label); }
.weo-case-why > svg { flex: none; margin-top: 2px; color: var(--weo-primary-text); }
.weo-case-empty { margin: 0; padding: 14px 16px; border-radius: var(--weo-radius-inner); font-size: 13px; color: var(--weo-muted); background: var(--weo-subtle); }
.weo-case-note { display: block; font-size: 12px; line-height: 1.45; color: var(--weo-muted); overflow-wrap: anywhere; }
.weo-case-warn { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 12.5px; font-weight: 550; color: var(--weo-warning); }
.weo-case-nodate { font-size: 12.5px; font-style: italic; color: var(--weo-muted); }
.weo-case-mark { margin: 0 6px 4px 0; }
.weo-case-subhead { margin: 6px 0 0; font-size: 13.5px; font-weight: 650; color: var(--weo-text); }
.weo-case-block { display: grid; gap: 10px; }
.weo-case-block + .weo-case-block { padding-top: 14px; border-top: 1px dashed var(--weo-line-strong); }
.weo-case-block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.weo-case-block-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; color: color-mix(in srgb, var(--hue) 40%, var(--weo-text)); overflow-wrap: anywhere; }
.weo-case-block-actions, .weo-case-links, .weo-case-leg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.weo-case-scroll { overflow-x: auto; max-width: 100%; border-radius: var(--weo-radius-inner); box-shadow: inset 0 0 0 1px var(--weo-line); }
.weo-case-scroll tr.is-ended td { color: var(--weo-muted); }
.weo-case-scroll tr.is-overdue td:first-child { box-shadow: inset 3px 0 0 var(--weo-danger-solid); }
.weo-case-num { text-align: right; white-space: nowrap; }
.weo-case-row-actions { white-space: nowrap; text-align: right; }
.weo-case-row-actions .weo-link-btn + .weo-link-btn { margin-left: 10px; }
@media (min-width: 721px) { .weo-case-table { min-width: 860px; } }

/* A form inside a section: fields in a grid that folds to one column. */
.weo-case-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); gap: 12px 14px; align-items: start; padding: 16px; border-radius: var(--weo-radius-inner);
  background: color-mix(in srgb, var(--hue, var(--weo-primary)) 5%, var(--weo-subtle)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--hue, var(--weo-primary)) 18%, var(--weo-line)); }
.weo-case-wide { grid-column: 1 / -1; }
.weo-case-form .weo-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0; }
.weo-case-check { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.weo-case-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px 14px; margin: 0; padding: 0; border: 0; }
.weo-case-checks legend { padding: 0 0 6px; font-size: 12.5px; font-weight: 600; color: var(--weo-label); }

/* Facts as label and value, in two columns that fold under 480px. */
.weo-case-facts { display: grid; grid-template-columns: minmax(120px, max-content) minmax(0, 1fr); gap: 8px 16px; margin: 0; font-size: 13.5px; }
.weo-case-facts dt { color: var(--weo-muted); }
.weo-case-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .weo-case-facts { grid-template-columns: minmax(0, 1fr); gap: 2px; } .weo-case-facts dd { margin-bottom: 8px; } }

/* A customs paper with its look-up. */
.weo-case-paper { display: grid; gap: 6px; padding: 12px 14px; border-radius: var(--weo-radius-inner); box-shadow: inset 0 0 0 1px var(--weo-line); }
.weo-case-paper-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 13.5px; }

/* A payment's card: the purchase side in the accent, the sale side in the brand, as the two sides are. */
.weo-case-legs { display: grid; gap: 12px; }
.weo-case-leg { --side: var(--weo-trade-hue-2); display: grid; gap: 10px; padding: 16px 18px; border-radius: var(--weo-radius-inner);
  background: linear-gradient(180deg, color-mix(in srgb, var(--side) 6%, var(--weo-card)), var(--weo-card) 60%); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--side) 22%, var(--weo-line)), inset 3px 0 0 var(--side); }
.weo-case-leg.is-sale { --side: var(--weo-trade-hue-1); }
.weo-case-leg-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 8px 12px; }
.weo-case-leg-head h3 { margin: 0; font-size: 14px; font-weight: 650; }
.weo-case-leg-amount { display: block; margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.02em; color: color-mix(in srgb, var(--side) 30%, var(--weo-text)); overflow-wrap: anywhere; }
.weo-case-leg-badges { display: flex; flex-wrap: wrap; gap: 6px; }

/* Deadlines and requests: the chip on every line. */
.weo-case-deadlines, .weo-case-requests, .weo-case-rules, .weo-case-steps, .weo-case-notes { list-style: none; margin: 0; padding: 0; display: grid; }
.weo-case-deadlines li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; padding: 10px 0; border-top: 1px solid var(--weo-line); }
.weo-case-deadlines li:first-child, .weo-case-requests li:first-child, .weo-case-rules li:first-child, .weo-case-notes li:first-child { border-top: 0; }
.weo-case-deadlines li.is-ended { opacity: .72; }
.weo-case-deadline-what { display: grid; gap: 2px; min-width: 0; font-size: 13.5px; }
.weo-case-requests li, .weo-case-notes li, .weo-case-steps li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; padding: 9px 0; border-top: 1px solid var(--weo-line); font-size: 13.5px; }
.weo-case-requests li > :last-child { margin-left: auto; }

/* Compliance: the screening and the purpose as two tiles, then each stage's run. */
.weo-case-checks-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.weo-case-check-tile { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--weo-radius-inner); font-size: 13px; background: var(--weo-subtle); }
.weo-case-check-tile > div { display: grid; gap: 2px; min-width: 0; }
.weo-case-check-tile > svg { flex: none; color: var(--weo-muted); }
.weo-case-check-tile.is-clear { background: var(--weo-success-bg); }
.weo-case-check-tile.is-clear > svg { color: var(--weo-success); }
.weo-case-check-tile.is-open { background: var(--weo-warning-bg); }
.weo-case-check-tile.is-open > svg { color: var(--weo-warning); }
.weo-case-run { display: grid; gap: 6px; }
.weo-case-run-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px; }
.weo-case-run-head h3 { margin: 0; font-size: 13.5px; font-weight: 650; }
.weo-case-rules li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--weo-line); }
.weo-case-rule { display: grid; gap: 4px; min-width: 0; font-size: 13px; }
.weo-case-rule p { margin: 0; color: var(--weo-label); overflow-wrap: anywhere; }
.weo-case-step-level { min-width: 64px; font-size: 12px; font-weight: 650; color: var(--weo-muted); }

/* A list of cases: the search and the filters as the band at the top of its card. */
.weo-case-filters { flex-wrap: wrap; gap: 8px; margin: 0; }
.weo-case-search { width: 300px; max-width: 100%; }
.weo-case-filter { width: 160px; max-width: 100%; }
.weo-case-filter.is-wide { width: 260px; }

/* The entry sheet's strip of the trader's profile and the ticket's lines. */
.weo-case-sheet { display: grid; gap: 12px; }
.weo-case-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 10px 12px; border-radius: var(--weo-radius-inner); font-size: 13px; background: var(--weo-subtle); }
.weo-case-ticket-lines { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; margin: 12px 0 0; font-size: 13px; }
.weo-case-ticket-lines dd { margin: 0; text-align: right; overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 720px) { .weo-case-head { padding: 18px; } .weo-case-section-head { padding: 16px 16px 10px; } .weo-case-section-body { padding: 4px 16px 18px; }
  .weo-case-head-actions { justify-content: flex-start; } .weo-case-head-actions .weo-case-why { justify-content: flex-start; } .weo-case-filter, .weo-case-filter.is-wide, .weo-case-search { width: 100%; } }

/* The shared case pieces, round 2: what still stands in the way of a closure (a merchanting trade's), the list's flag column ("Side
   open"), the AD Category II's cap meter on the payments section, "Plan it first" on a new payment's form, and a side's other
   currencies under the two sides' totals. Tokens only. */
.weo-case-unmet { margin: 6px 0 8px; padding-left: 18px; color: var(--weo-muted); }
.weo-case-unmet li { margin: 2px 0; overflow-wrap: anywhere; }
.weo-case-flag { white-space: normal; text-align: left; }
.weo-case-cap { display: grid; gap: 6px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--weo-radius-inner); background: var(--weo-subtle); border: 1px solid var(--weo-line); }
.weo-case-cap-head { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--weo-label); }
.weo-case-cap-head > svg { color: var(--weo-trade-hue-4); }
.weo-case-steps { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: var(--weo-radius-inner); font-size: 13px; color: var(--weo-label);
  background: color-mix(in srgb, var(--weo-trade-hue-4) 8%, var(--weo-card)); border: 1px dashed color-mix(in srgb, var(--weo-trade-hue-4) 40%, var(--weo-line)); }
.weo-legs-others { margin-top: 8px; padding-top: 8px; border-top-style: dashed; }
.weo-legs-others dd { font-weight: 500; overflow-wrap: anywhere; min-width: 0; }

/* The fifth by-hand check, part K. Nothing in a section is wider than the section (items 3): a section's body, the payments' cards and
   the cap's meter are one column that shrinks to the section, never a column as wide as a card's longest line; badges, links and
   sentences wrap. The entry sheet's ticket gives its labels their own column (item 4: "Handling" and "Deadlines" were overprinted).
   A warning waiting for a compliance officer's acknowledgement (item 2) and an act's refusal kept on the page (item 6). Tokens only. */
.weo-case-section-body, .weo-case-legs, .weo-case-leg, .weo-case-cap, .weo-case-run, .weo-case-block { grid-template-columns: minmax(0, 1fr); }
.weo-case-section-body > *, .weo-case-leg > *, .weo-case-cap > * { min-width: 0; max-width: 100%; }
.weo-case-leg-badges .weo-badge, .weo-case-cap .weo-case-note { white-space: normal; overflow-wrap: anywhere; text-align: left; }
.weo-case-leg-actions .weo-case-link, .weo-case-block-actions .weo-case-link { white-space: normal; min-width: 0; }
.weo-case-cap .weo-meter { width: 100%; min-width: 0; }
.weo-case-ticket-lines { grid-template-columns: max-content minmax(0, 1fr); }
.weo-case-ticket-lines dt { white-space: nowrap; }
.weo-case-ack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; border-radius: var(--weo-radius-inner);
  background: var(--weo-warning-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-warning) 30%, var(--weo-line)); }
.weo-case-ack-head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--weo-text); }
.weo-case-ack-head > svg { flex: none; color: var(--weo-warning); }
.weo-case-ack .weo-case-rules li { border-top-color: color-mix(in srgb, var(--weo-warning) 22%, var(--weo-line)); }
.weo-case-refusal { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: var(--weo-radius-inner);
  color: var(--weo-danger); background: var(--weo-danger-bg); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--weo-danger) 26%, var(--weo-line)); }
.weo-case-refusal > svg { flex: none; margin-top: 2px; }
.weo-case-refusal-text { flex: 1 1 240px; display: grid; gap: 2px; min-width: 0; font-size: 13.5px; }
.weo-case-refusal-text p { margin: 0; color: var(--weo-text); overflow-wrap: anywhere; }

/* The sixth by-hand check, part U, item 2. A merchanting trade's two sides follow the payments section's own width (a container), never the
   window's: one under the other, the band between, below 600px; side by side with the band across under them from 600px; the band between
   them from 840px. Within a side narrower than 380px a payment's day stands over its line, so its words keep their room beside the amount;
   the totals' figures wrap inside the side. Nothing in a side is wider than the side. Tokens only. */
.weo-case-sides { container: weo-case-sides / inline-size; min-width: 0; }
.weo-case-sides .weo-legs { grid-template-columns: minmax(0, 1fr); column-gap: 0; }
.weo-case-sides .weo-legs-side { container: weo-legs-side / inline-size; }
.weo-case-sides .weo-legs-band { grid-column: auto; grid-row: auto; padding: 14px 18px; }
.weo-case-sides .weo-legs-band::before { top: -2px; bottom: -2px; left: 50%; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--buy), var(--sell)); }
.weo-case-sides .weo-legs-band-card { width: 100%; max-width: 440px; margin-inline: auto; box-sizing: border-box; }
.weo-case-sides .weo-legs-totals { grid-template-columns: auto minmax(0, 1fr); }
.weo-case-sides .weo-legs-totals dd { min-width: 0; overflow-wrap: anywhere; }
@container weo-case-sides (min-width: 600px) {
  .weo-case-sides .weo-legs { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 16px; }
  .weo-case-sides .weo-legs-band { grid-column: 1 / -1; grid-row: 2; padding: 16px 0 0; }
  .weo-case-sides .weo-legs-band::before { top: calc(50% + 8px); bottom: auto; left: 0; right: 0; width: auto; height: 2px; background: linear-gradient(90deg, var(--buy), var(--sell)); }
}
@container weo-case-sides (min-width: 840px) {
  .weo-case-sides .weo-legs { grid-template-columns: minmax(0, 1fr) minmax(190px, 240px) minmax(0, 1fr); column-gap: 0; }
  .weo-case-sides .weo-legs-band { grid-column: auto; grid-row: auto; padding: 18px 10px; }
  .weo-case-sides .weo-legs-band::before { top: 50%; left: -2px; right: -2px; }
  .weo-case-sides .weo-legs-band-card { max-width: none; }
}
@container weo-legs-side (max-width: 379px) {
  .weo-case-sides .weo-legs-list li { grid-template-columns: minmax(0, 1fr) auto; }
  .weo-case-sides .weo-legs-list time, .weo-case-sides .weo-legs-warn { grid-column: 1 / -1; }
}

/* The breath of the current station and the live dot are still for people who ask for less motion, and on paper
   (theme.css's rule does not reach pseudo-elements). */
@media (prefers-reduced-motion: reduce) { .weo-station.is-current .weo-station-mark::before, .weo-due:is(.is-today, .is-overdue)::before { animation: none; } }
@media print { .weo-station.is-current .weo-station-mark::before, .weo-due:is(.is-today, .is-overdue)::before { animation: none; } .weo-timeline-card { background: none; } }
