/* U.CASH design tokens (generated; do not edit). One --uc-* var per intent; themed tokens auto-flip
   via light-dark() against the active color-scheme. Source: tokens/*.json (W3C DTCG). */
:root{
  color-scheme: light dark;
  --uc-surface: light-dark(#ffffff, #0a0a0a);
  --uc-surface-2: light-dark(#f6f7f9, #141417);
  --uc-text: light-dark(#1a1a1a, #e6e8ec);
  --uc-text-dim: light-dark(#5b6470, #9aa3af);
  --uc-border: light-dark(rgba(0,0,0,.10), rgba(255,255,255,.10));
  --uc-accent: light-dark(#a37a29, #cc9933);
  --uc-accent-contrast: light-dark(#ffffff, #1a1300);
  --uc-accent-hover: light-dark(#cc9933, #e2b719);
  --uc-accent-bg: light-dark(rgba(163,122,41,.12), rgba(204,153,51,.14));
  --uc-success: light-dark(#1f7a4d, #3fa66a);
  --uc-danger: light-dark(#b44545, #d26565);
  --uc-success-contrast: light-dark(#ffffff, #1a1300);
  --uc-danger-contrast: light-dark(#ffffff, #1a1300);
  --uc-radius: 8px;
  --uc-banner-h: 34px;
  --uc-font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Inter, Helvetica, Arial, sans-serif;
}

/* Ustrap = U.CASH design tokens + UI patterns, one link. Same build as /ds/<major>/. */
/* uc-alert. An inline callout for outcome/status messaging INSIDE content (the uc-banner is the
   site-wide top bar - different job). Consumes only --uc-*; semantic variants tint the BORDER and
   the text accent only, the fill stays --uc-surface-2 so body copy keeps contrast in both themes
   (the filled-accent text law governs solid fills, which alerts deliberately avoid).
   .uc-alert-dismiss is an optional closer the host wires (uc-dialog's closers do not auto-bind
   here); omit it for non-dismissable messages. role=alert only for time-sensitive failures. */
.uc-alert{display:flex;align-items:flex-start;gap:10px;box-sizing:border-box;width:100%;padding:12px 14px;border:1px solid var(--uc-border);border-left-width:3px;border-radius:var(--uc-radius);background:var(--uc-surface-2);color:var(--uc-text);font:400 14px/1.5 var(--uc-font,system-ui,sans-serif)}
.uc-alert--accent{border-left-color:var(--uc-accent)}
.uc-alert--success{border-left-color:var(--uc-success)}
.uc-alert--danger{border-left-color:var(--uc-danger)}
.uc-alert--accent .uc-alert-title{color:var(--uc-accent)}
.uc-alert--success .uc-alert-title{color:var(--uc-success)}
.uc-alert--danger .uc-alert-title{color:var(--uc-danger)}
.uc-alert-title{font:700 13px/1.4 var(--uc-font,system-ui,sans-serif);margin:0 0 2px;color:var(--uc-text)}
.uc-alert-body{margin:0;color:var(--uc-text-dim)}
.uc-alert-dismiss{margin-left:auto;flex:0 0 auto;padding:0 4px;border:0;background:none;color:var(--uc-text-dim);font:600 16px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer}
.uc-alert-dismiss:hover{color:var(--uc-text)}

/* uc-badge. A status/indicator pill. Consumes only --uc-* (theme + brand aware). Default = subtle
   accent tint; .uc-badge--accent = solid accent; .uc-badge--success/--danger = status.
   LAW: solid fills pair their text with a *-contrast token (light-dark(#fff, #1a1300)) - NEVER a
   hardcoded color for both themes. White on deep fills (light theme), near-black on bright fills
   (dark theme). The var(..., #fff) fallback keeps mixed-version consumption (old tokens + this
   badge.css) rendering exactly as before the token existed. */
.uc-badge{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:999px;font:700 10px/1 var(--uc-font,system-ui,sans-serif);letter-spacing:.04em;text-transform:uppercase;white-space:nowrap;background:var(--uc-accent-bg);color:var(--uc-accent);border:1px solid var(--uc-accent)}
.uc-badge--accent{background:var(--uc-accent);color:var(--uc-accent-contrast);border-color:var(--uc-accent)}
.uc-badge--success{background:var(--uc-success);color:var(--uc-success-contrast, #fff);border-color:var(--uc-success)}
.uc-badge--danger{background:var(--uc-danger);color:var(--uc-danger-contrast, #fff);border-color:var(--uc-danger)}

/* uc-banner: dismissible status banner. Consumes ONLY --uc-* tokens, so it themes (light-dark) and
   brands (brand layer) automatically. Dismiss: the inline script adds .uc-banner-off to <html> and
   sets --uc-banner-h:0 (apps that offset fixed panels by the banner height collapse cleanly). */
.uc-banner{display:flex;align-items:center;gap:10px;box-sizing:border-box;height:var(--uc-banner-h,34px);padding:7px 16px;background:var(--uc-surface-2);color:var(--uc-text);border-bottom:1px solid var(--uc-border);font:500 12.5px/1.3 var(--uc-font, ui-sans-serif, system-ui, sans-serif)}
html.uc-banner-off .uc-banner,.uc-banner.is-off{display:none}
.uc-banner-msg{flex:1 1 auto;text-align:center;min-width:0}
.uc-banner strong{flex:0 0 auto;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;padding:3px 7px;border-radius:4px;background:var(--uc-accent);color:var(--uc-accent-contrast);margin-right:4px}
.uc-banner-close{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--uc-text);font-size:15px;line-height:1;cursor:pointer;padding:0;opacity:.65}
.uc-banner-close:hover{opacity:1}

/* uc-button. Consumes only --uc-* (theme + brand aware). Default = outline; .uc-button--accent =
   filled accent. Pair with --uc-accent/--uc-accent-contrast for branded buttons.
   Variants: --danger/--success filled status; --icon = square icon-only (REQUIRES aria-label,
   the visible text is the icon); sizes --sm/--lg; --block = full width. .is-loading pairs with a
   .uc-spinner inside and blocks pointer events while busy (host swaps icon<->spinner). */
.uc-button{display:inline-flex;align-items:center;justify-content:center;gap:8px;box-sizing:border-box;padding:9px 16px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:transparent;color:var(--uc-text);font:600 14px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;text-decoration:none;transition:border-color .15s,opacity .15s}
.uc-button:hover{border-color:var(--uc-text-dim)}
.uc-button:active{opacity:.85}
.uc-button:disabled{opacity:.5;cursor:not-allowed}
.uc-button--accent{background:var(--uc-accent);color:var(--uc-accent-contrast);border-color:var(--uc-accent)}
.uc-button--accent:hover{border-color:var(--uc-accent);opacity:.9}
.uc-button--danger{background:var(--uc-danger);color:var(--uc-danger-contrast, #fff);border-color:var(--uc-danger)}
.uc-button--danger:hover{border-color:var(--uc-danger);opacity:.9}
.uc-button--success{background:var(--uc-success);color:var(--uc-success-contrast, #fff);border-color:var(--uc-success)}
.uc-button--success:hover{border-color:var(--uc-success);opacity:.9}
.uc-button--sm{padding:5px 10px;font-size:12px;gap:6px}
.uc-button--lg{padding:12px 22px;font-size:16px}
/* icon-only: square hit area, icon centered; the accessible name MUST come from aria-label
   (or title) because no text is rendered. SVG icons size to the button's font. */
.uc-button--icon{padding:9px;width:36px;flex:0 0 auto}
.uc-button--icon.uc-button--sm{padding:5px;width:28px}
.uc-button--icon.uc-button--lg{padding:12px;width:46px}
.uc-button svg{width:16px;height:16px;flex:0 0 auto}
.uc-button--sm svg{width:13px;height:13px}
.uc-button--lg svg{width:20px;height:20px}
/* loading: host swaps content to <span class="uc-spinner"></span> + sets aria-busy="true";
   pointer-events:none stops double submits without disabling (keeps :disabled styling to the host). */
.uc-button.is-loading{pointer-events:none;opacity:.75}
.uc-button .uc-spinner{font-size:14px}
.uc-button--lg .uc-spinner{font-size:16px}
.uc-button--block{display:flex;width:100%}

/* uc-card. Consumes only --uc-* (theme + brand aware). A surface container with title + body.
   Simple use: .uc-card > .uc-card-title + .uc-card-body (padding lives on the card).
   Sectioned use: .uc-card.uc-card--flush (padding:0) > .uc-card-header / .uc-card-body /
   .uc-card-footer - headers/footers carry their own padding and hairline dividers, the body
   pads itself (18px) so sectioned and simple cards share one rhythm. */
.uc-card{box-sizing:border-box;background:var(--uc-surface-2);border:1px solid var(--uc-border);border-radius:var(--uc-radius);padding:18px;color:var(--uc-text)}
.uc-card-title{font:700 16px/1.3 var(--uc-font,system-ui,sans-serif);margin:0 0 6px}
.uc-card-body{font:400 14px/1.5 var(--uc-font,system-ui,sans-serif);color:var(--uc-text-dim);margin:0}
.uc-card--flush{padding:0;overflow:hidden}
.uc-card--flush .uc-card-title{margin:0}
.uc-card-header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 18px;border-bottom:1px solid var(--uc-border)}
.uc-card-footer{display:flex;align-items:center;gap:8px;padding:12px 18px;border-top:1px solid var(--uc-border)}
.uc-card--flush .uc-card-body{padding:18px}

/* uc-controls: the form controls uc-input does not cover. Consumes only --uc-*.
   uc-select: native appearance KEPT ON PURPOSE - the OS arrow and the OS <option> popup follow the
   element's color-scheme, and explicit option colors pin the popup list background/text so it never
   renders light-on-light or dark-on-dark (operator law: ALL dropdowns, content and backgrounds
   follow the light/dark theme). Do not add appearance:none without replacing both.
   uc-textarea: referenced by form-field.css has-error since v3; min-height + vertical resize.
   uc-check / uc-radio: native inputs recoloured via accent-color - the check itself, the focus
   ring and the checked state all track --uc-accent in both themes, no sprite/fake UI to maintain. */
.uc-select{box-sizing:border-box;width:100%;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.4 var(--uc-font,system-ui,sans-serif)}
.uc-select:focus{outline:none;border-color:var(--uc-accent)}
.uc-select option,.uc-select optgroup{background:var(--uc-surface);color:var(--uc-text)}
.uc-textarea{box-sizing:border-box;width:100%;min-height:96px;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.5 var(--uc-font,system-ui,sans-serif);resize:vertical}
.uc-textarea::placeholder{color:var(--uc-text-dim)}
.uc-textarea:focus{outline:none;border-color:var(--uc-accent)}
.uc-check,.uc-radio{box-sizing:border-box;width:16px;height:16px;flex:0 0 auto;margin:0;accent-color:var(--uc-accent);cursor:pointer}
.uc-check:focus-visible,.uc-radio:focus-visible,.uc-select:focus-visible,.uc-textarea:focus-visible{outline:2px solid var(--uc-accent);outline-offset:1px}

/* uc-dialog: a modal built on the native <dialog> element (focus-trap + Esc + top-layer for free),
   themed via --uc-*. The backdrop is a neutral scrim (literal rgba; it is not a branded surface, so
   it does not consume an accent token). Open via dialog.showModal(); runtime/uc-dialog.js wires
   [data-uc-dialog-open] triggers + .uc-dialog-close + focus restore + scroll lock. */
.uc-dialog{border:0;border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);padding:0;max-width:min(92vw,460px);box-shadow:0 20px 60px rgba(0,0,0,.35);font-family:var(--uc-font,system-ui,sans-serif)}
.uc-dialog::backdrop{background:rgba(0,0,0,.5)}
.uc-dialog[open]{animation:uc-dialog-in .16s ease}
.uc-dialog-title{box-sizing:border-box;margin:0;padding:18px 48px 6px 20px;font:700 17px/1.3 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-dialog-body{box-sizing:border-box;padding:6px 20px 18px;font:400 14px/1.55 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-dialog-body>:last-child{margin-bottom:0}
.uc-dialog-close{position:absolute;top:12px;right:12px;width:30px;height:30px;border:0;border-radius:6px;background:transparent;color:var(--uc-text-dim);font-size:18px;line-height:1;cursor:pointer}
.uc-dialog-close:hover{color:var(--uc-text);background:var(--uc-surface-2)}
@keyframes uc-dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.uc-dialog[open]{animation:none}}

/* uc-field: a labeled form field wrapper (label + control + optional hint/error). Consumes only --uc-*.
   The control itself is .uc-input (or a select/button); .uc-field is the grouping/spacing wrapper.
   .has-error recolours the control border to --uc-danger. */
.uc-field{display:flex;flex-direction:column;gap:5px;margin-bottom:14px;font-family:var(--uc-font,system-ui,sans-serif)}
.uc-field-label{font:600 13px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-field-hint{font:400 12px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text-dim)}
.uc-field-error{font:600 12px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-danger);display:none}
.uc-field.has-error .uc-field-error{display:block}
.uc-field.has-error .uc-input,.uc-field.has-error .uc-textarea{border-color:var(--uc-danger)}

/* uc-input + uc-label. Consumes only --uc-* (theme + brand aware; focus ring uses --uc-accent). */
.uc-label{display:block;font:600 13px/1.4 var(--uc-font,system-ui,sans-serif);color:var(--uc-text);margin:0 0 5px}
.uc-input{box-sizing:border-box;width:100%;padding:9px 12px;border:1px solid var(--uc-border);border-radius:var(--uc-radius);background:var(--uc-surface);color:var(--uc-text);font:400 14px/1.4 var(--uc-font,system-ui,sans-serif);transition:border-color .15s}
.uc-input::placeholder{color:var(--uc-text-dim)}
.uc-input:focus{outline:none;border-color:var(--uc-accent)}

/* uc-spinner. A loading indicator. Consumes only --uc-* (theme + brand aware). Pure CSS, no JS:
   a border ring with the accent arc, spinning. Honors prefers-reduced-motion (slows). Size scales
   with font-size; .uc-spinner--sm/--lg override. Markup: <span class="uc-spinner" role="status"
   aria-label="Loading"></span> (role/label only if it conveys status; aria-hidden if decorative). */
.uc-spinner{display:inline-block;width:1em;height:1em;font-size:18px;vertical-align:-.125em;border:2px solid var(--uc-border);border-top-color:var(--uc-accent);border-radius:50%;animation:uc-spin .7s linear infinite}
.uc-spinner--sm{font-size:14px}
.uc-spinner--lg{font-size:28px}
@keyframes uc-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.uc-spinner{animation-duration:1.6s}}

/* uc-table. A data table: wrap for horizontal scroll, gold hover law, mobile card-stack.
   Consumes only --uc-* (theme + brand aware).
   LAWS (from the pay console table, hard-won):
   - Row hover NEVER swaps in a grey/dark background (it disturbs reading text). Hover = background
     stays transparent, border-color + color go accent. Badges/pills keep their semantic colors:
     they carry their own color rules which beat td inheritance, so they never flip gold - do not
     "fix" them by unsetting their colors (that strips the pill AND inherits the hover gold).
   - Nested cell-text wrappers that carry their own color (e.g. a host .uc-title/.uc-text class)
     BEAT td inheritance. If a host nests colored wrappers, it must add its own deep hover rule
     (target the wrapper under tr:hover). VERIFY BY READING THE TEXT NODE'S computed color, never
     the td's - the td can be gold while every visible glyph stays grey.
   - The stack breakpoint is a constant, not a token: @media cannot read var(). 768px = fleet
     convention (pay consoles); hosts with a different grid override .uc-table--stack behavior.
   - transition is limited to border-color + color. `transition: all` on cells makes whole-row
     reflows on hover and interacts badly with the stacked-card layout. */
.uc-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;width:100%}
.uc-table{width:100%;max-width:100%;border-collapse:collapse;text-align:left;font:400 13px/1.5 var(--uc-font,system-ui,sans-serif);color:var(--uc-text)}
.uc-table th{font:700 10.5px/1.2 var(--uc-font,system-ui,sans-serif);letter-spacing:.06em;text-transform:uppercase;color:var(--uc-text-dim);padding:9px 12px;border-bottom:1px solid var(--uc-border);white-space:nowrap}
.uc-table td{padding:10px 12px;border-bottom:1px solid var(--uc-border);transition:border-color .15s,color .15s;vertical-align:middle}
.uc-table tbody tr:last-child td{border-bottom:0}
/* row hover law: transparent bg, accent border + text. Badges/pills with their own color rule
   (e.g. .uc-badge) already beat td inheritance and keep their semantic colors - do NOT unset
   them; only naked text and borderless wrappers take the hover accent. */
.uc-table tbody tr:hover{background-color:transparent}
.uc-table tbody tr:hover > td{border-color:var(--uc-accent);color:var(--uc-accent)}
/* opt-in sticky header. Sticky traps the header on the overflow-x axis of .uc-table-wrap; keep it
   opt-in and only use it in panels that scroll vertically as the page, not inside the wrap. */
.uc-table--sticky th{position:sticky;top:0;background:var(--uc-surface-2);z-index:1}
/* numeric + actions columns */
.uc-table .uc-num{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.uc-table .uc-table-actions{text-align:right;white-space:nowrap}
/* empty state: no ::before label, block-wide, dim */
.uc-table td.uc-table-empty{display:block;width:100%;text-align:center;padding:18px 0;color:var(--uc-text-dim);font-style:italic}
/* mobile card-stack. Auto-detect: tables whose cells carry data-label stack automatically below
   768px. .uc-table--stack forces the layout on (any width) for hosts without :has() or for
   always-stacked lists; .uc-table--no-stack opts a data-label table out. */
@media (max-width:768px){
  .uc-table:has(tbody td[data-label]),.uc-table--stack{display:block;width:100%}
  .uc-table:has(tbody td[data-label]) thead,.uc-table--stack thead{display:none}
  .uc-table:has(tbody td[data-label]) tbody,.uc-table--stack tbody{display:block}
  .uc-table:has(tbody td[data-label]) tr,.uc-table--stack tr{display:flex;flex-wrap:wrap;gap:2px 0;border:1px solid var(--uc-border);border-radius:var(--uc-radius);padding:12px;margin:0 0 12px}
  .uc-table:has(tbody td[data-label]) td,.uc-table--stack td{display:flex;justify-content:space-between;align-items:baseline;gap:12px;width:100%;border:0;padding:4px 0}
  .uc-table:has(tbody td[data-label]) td[data-label]::before,.uc-table--stack td[data-label]::before{content:attr(data-label);color:var(--uc-text-dim);font:600 10.5px/1.4 var(--uc-font,system-ui,sans-serif);letter-spacing:.05em;text-transform:uppercase;flex:0 0 auto}
  .uc-table:has(tbody td[data-label]) td[data-label]:not(.uc-table-empty),.uc-table--stack td[data-label]:not(.uc-table-empty){text-align:right}
  .uc-table:has(tbody td[data-label]) tbody tr:hover,.uc-table--stack tbody tr:hover{border-color:var(--uc-accent)}
  .uc-table:has(tbody td[data-label]) tbody tr:hover > td,.uc-table--stack tbody tr:hover > td{border-color:transparent;color:inherit}
}
.uc-table--no-stack thead{display:table-header-group}
.uc-table--no-stack tr{display:table-row}
.uc-table--no-stack td{display:table-cell}

/* uc-tabs: ARIA tabs. .uc-tablist holds .uc-tab buttons; .uc-tabpanel panels follow. The active tab
   is [aria-selected=true] (accent text + underline); inactive panels are [hidden]. Consumes only
   --uc-* (themes + brands). Behaviour (roving tabindex + arrow/Home/End keys + click) is in
   runtime/uc-tabs.js; without JS the first tab/panel show (graceful no-op). */
.uc-tabs{font-family:var(--uc-font,system-ui,sans-serif)}
.uc-tablist{display:flex;gap:4px;border-bottom:1px solid var(--uc-border);flex-wrap:wrap}
.uc-tab{appearance:none;background:transparent;border:0;border-bottom:2px solid transparent;padding:9px 14px;margin-bottom:-1px;color:var(--uc-text-dim);font:600 14px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;transition:border-color .15s,color .15s}
.uc-tab:hover{color:var(--uc-text)}
.uc-tab[aria-selected="true"]{color:var(--uc-accent);border-bottom-color:var(--uc-accent)}
.uc-tab:focus-visible{outline:2px solid var(--uc-accent);outline-offset:2px;border-radius:4px}
.uc-tabpanel{padding:16px 2px;color:var(--uc-text);font:400 14px/1.55 var(--uc-font,system-ui,sans-serif)}
.uc-tabpanel[hidden]{display:none}

/* uc-toast: transient notifications. A viewport-anchored .uc-toast-stack holds one or more .uc-toast
   cards (message + optional action + close). Consumes only --uc-* (themes + brands automatically).
   Variants --success/--danger/--accent tint the left rail. .is-leaving animates the exit.
   Behaviour (stack create, auto-dismiss, pause-on-hover, close) lives in runtime/uc-toast.js
   (window.ucToast); the CSS also styles a static, no-JS toast. */
.uc-toast-stack{position:fixed;z-index:9000;right:16px;bottom:16px;display:flex;flex-direction:column;gap:10px;max-width:min(92vw,380px);pointer-events:none}
.uc-toast-stack>*{pointer-events:auto}
.uc-toast{position:relative;display:flex;align-items:center;gap:10px;box-sizing:border-box;padding:11px 14px;background:var(--uc-surface-2);color:var(--uc-text);border:1px solid var(--uc-border);border-radius:var(--uc-radius);box-shadow:0 6px 20px rgba(0,0,0,.18);font:500 13.5px/1.4 var(--uc-font,system-ui,sans-serif);animation:uc-toast-in .18s ease}
.uc-toast-msg{flex:1 1 auto;min-width:0}
.uc-toast-action{flex:0 0 auto;background:transparent;border:0;color:var(--uc-accent);font:700 13px/1 var(--uc-font,system-ui,sans-serif);cursor:pointer;padding:2px;text-decoration:underline}
.uc-toast-close{flex:0 0 auto;width:22px;height:22px;border:0;border-radius:5px;background:transparent;color:var(--uc-text-dim);font-size:16px;line-height:1;cursor:pointer;padding:0}
.uc-toast-close:hover{color:var(--uc-text)}
.uc-toast--success{border-left:3px solid var(--uc-success)}
.uc-toast--danger{border-left:3px solid var(--uc-danger)}
.uc-toast--accent{border-left:3px solid var(--uc-accent)}
.uc-toast.is-leaving{opacity:0;transform:translateX(8px);transition:opacity .2s ease,transform .2s ease}
@keyframes uc-toast-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.uc-toast{animation:none}.uc-toast.is-leaving{transition:none}}

