/* 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(#1c1a17, #f3efe6);
  --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-accent-2: light-dark(#b38829, #e6b347);
  --uc-accent-deep: light-dark(#7a5e1f, #b38829);
  --uc-line-gold: light-dark(rgba(153,114,38,.55), rgba(204,153,51,.40));
  --uc-panel-2: light-dark(rgba(0,0,0,.04), rgba(255,255,255,.06));
  --uc-glow: 0 0 38px rgba(204,153,51,.20);
  --uc-success: light-dark(#1f9d55, #3fa66a);
  --uc-danger: light-dark(#c94f42, #d26565);
  --uc-warn: light-dark(#a16207, #febc2e);
  --uc-success-contrast: light-dark(#ffffff, #1a1300);
  --uc-danger-contrast: light-dark(#ffffff, #1a1300);
  --uc-warn-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;
  --uc-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "JetBrains Mono", monospace;
}

/* Ustrap = U.CASH design tokens + core UI patterns, one link. Same build as /ds/<major>/ (app-family shells pin separately). */
/* 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-chip. A content chip (filters, tags, meta labels) - the sentence-case counterpart to
   uc-badge's uppercase status pill. Default = tinted accent ground with ink text (soft, exempt
   from the filled-accent law); .uc-chip--solid = solid accent fill, text paired with
   --uc-accent-contrast per the LAW (never a hardcoded color for both themes). The plain
   var(--uc-accent-bg) line first means color-mix-less browsers degrade to the token tint
   instead of a transparent chip. Consumes only --uc-*. */
.uc-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 10px;border-radius:999px;font:500 12px/1.2 var(--uc-font,system-ui,sans-serif);white-space:nowrap;background:var(--uc-accent-bg);background:color-mix(in srgb,var(--uc-accent) 10%,var(--uc-surface-2));color:var(--uc-text);border:1px solid color-mix(in srgb,var(--uc-accent) 25%,var(--uc-border))}
.uc-chip--solid{background:var(--uc-accent);color:var(--uc-accent-contrast);border-color:var(--uc-accent)}
.uc-chip--muted{background:var(--uc-surface-2);color:var(--uc-text-dim);border-color:var(--uc-border)}

/* 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-footer. The standard site footer skeleton: a responsive column grid (auto-fit, collapses on
   narrow viewports without media queries), muted link styling, and a legal line. Structure:
   <footer class="uc-footer"><div class="uc-footer-grid"><div><h4 class="uc-footer-title">..
   </h4><a href>..</a></div>..</div><div class="uc-footer-legal">..</div></footer>. Consumes only
   --uc-*. */
.uc-footer{margin-top:auto;padding:28px 0 20px;border-top:1px solid var(--uc-border);font:400 13px/1.6 var(--uc-font,system-ui,sans-serif);color:var(--uc-text-dim)}
.uc-footer-grid{display:grid;gap:20px;grid-template-columns:repeat(auto-fit,minmax(160px,1fr))}
.uc-footer-title{font:700 12px/1.4 var(--uc-font,system-ui,sans-serif);letter-spacing:.05em;text-transform:uppercase;color:var(--uc-text);margin:0 0 8px}
.uc-footer a{color:var(--uc-text-dim);text-decoration:none}
.uc-footer a:hover{color:var(--uc-accent)}
.uc-footer-legal{margin-top:24px;padding-top:12px;border-top:1px solid var(--uc-border);font-size:12px}

/* 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-grid. A responsive content grid without per-site media queries: auto-fill columns that never
   shrink below --uc-grid-min and stretch to fill the row. Tune per placement with inline custom
   props (component knobs, not design tokens): <div class="uc-grid" style="--uc-grid-min:180px">.
   Pairs with uc-card children. Consumes only --uc-*. */
.uc-grid{display:grid;gap:var(--uc-grid-gap,12px);grid-template-columns:repeat(auto-fill,minmax(var(--uc-grid-min,240px),1fr))}

/* 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}

/* theme.css: the fleet shared theme layer, v30 (ds/7 carried forward + hub v3 value alignment
   + light skins for the dapp.css classes). ONE source for the light-mode override rules used by
   the Next.js dapp family (bridge / swap / buy / get / sell / send) + receive.u.cash, the ULINK
   wallet drawer skin and the 3-state theme toggle styling. Load AFTER dapp.css (and in the
   ustrap bundle the alphabetical pattern order already guarantees that).

  Hooks: the Tailwind dapp family drives `html.light` / `html.dark` classes (set pre-paint by
  each app's THEME_INIT from the `ucash-theme` cookie: light | dark | system). The hub family
  drives `[data-theme="light|dark"]`; base rules below answer BOTH hooks.
  v30 changes vs ds/7: light line/border values aligned to the hub v3 tokens (ds/29), .glass
  goes plateless (no blur), gold text hues match the hub light ramp, and the void backgrounds
  get their light opacity. Dark visuals are untouched: every changed rule is light-scoped.
  Version law: ds/N directories are immutable once published; ship fixes as the next major. */

/* ===== Base: light theme (both hooks) ===== */
html.light, [data-theme="light"] { color-scheme: light; }
html.light, html.light body, [data-theme="light"], [data-theme="light"] body { background: #ffffff; color: #0a0a0a; }
html.light ::selection, [data-theme="light"] ::selection { background: #cc9933; color: #000; }
/* hub v3 light gold ramp: --gold #997226 / --gold-2 #b38829 */
html.light .text-gold-2, [data-theme="light"] .text-gold-2 { color: #b38829; }
html.light .text-gold, [data-theme="light"] .text-gold { color: #997226; }
html.light .grad-gold, [data-theme="light"] .grad-gold {
  background: linear-gradient(100deg, #7a5e1f, #b38829 45%, #7a5e1f 70%, #b38829);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
/* hub v3 light lines: --line rgba(0,0,0,.22) / --line-gold rgba(153,114,38,.55) */
html.light .border-line, [data-theme="light"] .border-line { border-color: rgba(0, 0, 0, .22); }
html.light .border-line-gold, [data-theme="light"] .border-line-gold { border-color: rgba(153, 114, 38, .55); }
html.light .glass, [data-theme="light"] .glass {
  background: rgba(0, 0, 0, .015); border: 1px solid rgba(0, 0, 0, .10);
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html.light .shadow-card, [data-theme="light"] .shadow-card { box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .22); }
html.light .input-swap, [data-theme="light"] .input-swap {
  background: rgba(0, 0, 0, .04); border: 1px solid rgba(0, 0, 0, .12); color: #0a0a0a; border-radius: 0;
}
html.light .input-swap:focus, [data-theme="light"] .input-swap:focus { outline: none; border-color: #997226; }
/* Native <select> option popups: explicit colors keep the OS-rendered list on-theme. */
html.light .input-swap option, html.light select option, [data-theme="light"] select option { background-color: #ffffff; color: #0a0a0a; }
html.light .placeholder-white\/30::-moz-placeholder { color: rgba(10, 10, 10, .40); }
html.light .placeholder-white\/30::placeholder { color: rgba(10, 10, 10, .40); }
/* Sticky frosted family headers ride the white page in light mode. */
html.light .site-header, html.light .bridge-header { background-color: transparent; }
/* Void backgrounds: the gold glows read 50% lighter over the white page (hub law). */
html.light .dapp-void-bg, html.light #bg-canvas-lite { opacity: .5; }

/* ===== Tailwind utility remaps (html.light hook; the dapp family's dark-only utilities) ===== */
html.light .text-white { color: #0a0a0a; }
html.light .text-white\/85 { color: rgba(10, 10, 10, .82); }
html.light .text-white\/80 { color: rgba(10, 10, 10, .80); }
html.light .text-white\/70 { color: rgba(10, 10, 10, .68); }
html.light .text-white\/65 { color: rgba(10, 10, 10, .64); }
html.light .text-white\/60 { color: rgba(10, 10, 10, .60); }
html.light .text-white\/55 { color: rgba(10, 10, 10, .55); }
html.light .text-white\/50 { color: rgba(10, 10, 10, .52); }
html.light .text-white\/45 { color: rgba(10, 10, 10, .48); }
html.light .text-white\/40 { color: rgba(10, 10, 10, .44); }
html.light .text-white\/35 { color: rgba(10, 10, 10, .40); }
html.light .text-white\/30 { color: rgba(10, 10, 10, .38); }
html.light .text-white\/25 { color: rgba(10, 10, 10, .32); }
html.light .hover\:text-white:hover { color: #0a0a0a; }
html.light .hover\:text-white\/70:hover { color: rgba(10, 10, 10, .68); }
html.light .text-gold-2\/80 { color: rgba(179, 136, 41, .85); }
html.light .bg-black { background-color: #ffffff; }
html.light .bg-black\/30 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-black\/40 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-black\/50 { background-color: rgba(0, 0, 0, .05); }
html.light .bg-black\/60 { background-color: rgba(0, 0, 0, .02); }
/* /70 + /75 are scrim layers (drawer backdrop, sticky bars); headers opt out via .bridge-header
   above. Kept as a real dimmer so white pages still get contrast behind sheets. */
html.light .bg-black\/70 { background-color: rgba(10, 10, 10, .45); }
html.light .bg-black\/75 { background-color: rgba(10, 10, 10, .45); }
html.light .bg-black\/95 { background-color: #ffffff; }
html.light .bg-bg-2 { background-color: #f4efe6; }
html.light .bg-bg-2\/60 { background-color: rgba(244, 239, 230, .7); }
html.light .bg-bg-3 { background-color: #ece4d6; }
html.light .bg-white\/5 { background-color: rgba(0, 0, 0, .04); }
html.light .bg-white\/10 { background-color: rgba(0, 0, 0, .06); }
html.light .bg-white\/15 { background-color: rgba(0, 0, 0, .09); }
html.light .bg-white\/20 { background-color: rgba(0, 0, 0, .10); }
html.light .bg-white\/\[0\.02\] { background-color: rgba(0, 0, 0, .025); }
html.light .hover\:bg-white\/20:hover { background-color: rgba(0, 0, 0, .10); }
html.light .hover\:bg-panel:hover { background-color: rgba(0, 0, 0, .045); }
html.light .border-line\/60 { border-color: rgba(0, 0, 0, .14); }

/* ===== ULINK wallet drawer: light skin (dark visuals untouched; QR plate stays white in both) ===== */
html.light .uconnect-sheet {
  background-color: #ffffff;
  border-top-color: rgba(0, 0, 0, .10);
  box-shadow: 0 -24px 60px -30px rgba(0, 0, 0, .28);
}
/* Installed-badge check circle ring (hook class on the border-[#0b0b0b] element in Ulink.tsx). */
html.light .uconnect-badge-ring { border-color: #ffffff; }

/* ===== 3-state theme toggle (Light / Dark / System): shared chrome, theme-neutral ===== */
.uxc-theme-toggle {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  width: 36px; height: 36px; border: 1px solid; border-radius: 8px;
  color: inherit; background: transparent; cursor: pointer;
  transition: border-color .15s, color .15s;
}
.uxc-theme-toggle:hover { color: #cc9933; }
.uxc-theme-toggle.has-mode-label { width: auto; padding: 0 10px; }
.uxc-theme-toggle .theme-mode-label { font-size: 11px; letter-spacing: .02em; white-space: nowrap; }
html.light .uxc-theme-toggle, [data-theme="light"] .uxc-theme-toggle { border-color: rgba(0, 0, 0, .18); }

/* Theme-aware header logo/icon: show the variant that matches the page theme (off-theme hidden).
   logo-dark/icon-dark are white+gold (for dark bg); logo-light/icon-light are dark+gold (light bg). */
html.dark .uxc-logo-light, [data-theme="dark"] .uxc-logo-light { display: none !important; }
html.light .uxc-logo-dark, [data-theme="light"] .uxc-logo-dark { display: none !important; }

/* 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)}
/* Semantic variants carry a tinted status ground (operator 9/12: a success toast should read
   GREEN, not a neutral card with a hairline rail). color-mix on the token keeps it theme- and
   brand-safe: a solid token ground would fail text contrast in dark themes (#3fa66a + white)
   and under brand overrides; the 18% wash over --uc-surface-2 reads unmistakably green in
   light and dark while the message stays --uc-text. Browsers without color-mix degrade to the
   neutral card + rail (the pre-67 look) - never a broken sheet. */
.uc-toast--success{border-left:3px solid var(--uc-success);background:color-mix(in srgb,var(--uc-success) 18%,var(--uc-surface-2));border-color:color-mix(in srgb,var(--uc-success) 45%,var(--uc-border));border-left-color:var(--uc-success)}
.uc-toast--danger{border-left:3px solid var(--uc-danger);background:color-mix(in srgb,var(--uc-danger) 18%,var(--uc-surface-2));border-color:color-mix(in srgb,var(--uc-danger) 45%,var(--uc-border));border-left-color:var(--uc-danger)}
/* Warn mirrors the semantic success/danger treatment (rail + tinted ground); os.u.cash's local
   amber rail (#febc2e) is retired in favor of this. Requires a tokens sheet carrying --uc-warn
   (ds/70+); ds/3 tokens predate it, so warn-capable hosts must pair this sheet with ds/70 tokens. */
.uc-toast--warn{border-left:3px solid var(--uc-warn);background:color-mix(in srgb,var(--uc-warn) 18%,var(--uc-surface-2));border-color:color-mix(in srgb,var(--uc-warn) 45%,var(--uc-border));border-left-color:var(--uc-warn)}
.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}}

