/* ==========================================================================
   Caldrant site: the remaining desk views
   Working Orders, Event Radar, Exposure, Exec Quality, Positions & Risk,
   Order Ticket, Tiering, Vol / Range, Breach Board, Blotter, Quote Health.
   Every size and colour was read from the widget XAML and its view model
   (src/Widgets/Caldrant.Wpf.<Widget>), plus the shell's implicit control styles
   for the order ticket. Uiw.* keys resolve to the --uiw-* tokens in desk.css.
   ========================================================================== */

/* Uiw keys desk.css does not declare yet (Themes/Dark.xaml, Light.xaml). */
[data-look] { --uiw-row-alt: #181D26; --uiw-row-flash: #3A3320; --uiw-pulse: #28C58C; }
[data-look$=":light"] { --uiw-row-alt: #F7F9FC; --uiw-row-flash: #FFEFC2; --uiw-pulse: #28C58C; }

/* ---- shared ----------------------------------------------------------- */
.wbtn--danger { color: var(--uiw-down); border-color: var(--uiw-down); }
@keyframes mx-blink { from { opacity: 1; } to { opacity: .35; } }

/* ---- Working Orders ---------------------------------------------------- */
.wo { padding: 10px 12px; }
.wo__row { --c: var(--uiw-up); display: grid; grid-template-columns: auto 66px minmax(0, 1fr) auto 4px; align-items: center;
  margin-bottom: 8px; padding: 8px 12px; background: var(--uiw-surface); border: 1px solid var(--uiw-border); border-radius: 10px; }
.wo__row.ask { --c: var(--uiw-down); }
.wo__side { position: relative; min-width: 46px; text-align: center; }
.wo__side i { position: absolute; inset: 0; border-radius: 6px; background: var(--c); opacity: .16; }
.wo__side b { position: relative; display: inline-block; padding: 2px 7px; border: 1px solid var(--c); border-radius: 6px;
  font-size: 9px; font-weight: 700; color: var(--c); }
.wo__px { margin-left: 10px; font-family: var(--uiw-mono); font-size: 11.5px; font-weight: 700; color: var(--c); }
.wo__mid { margin: 0 10px 0 8px; min-width: 0; }
.wo__line { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: var(--uiw-fg); }
.wo__line b { font-weight: 600; }
.wo__age { color: var(--uiw-muted); }
.wo__dist { flex: none; font-family: var(--uiw-mono); font-size: 9.5px; color: var(--uiw-fg); }
.wo__track { height: 5px; margin-top: 3px; border-radius: 3px; background: var(--uiw-alt); }
.wo__track i { display: block; height: 100%; border-radius: 3px; background: var(--uiw-accent); transform-origin: left; }
.wo__near { position: relative; margin-right: 8px; text-align: center; }
.wo__near i { position: absolute; inset: 0; border-radius: 6px; background: var(--uiw-warn); opacity: .16; }
.wo__near b { position: relative; display: none; padding: 2px 7px; border: 1px solid var(--uiw-warn); border-radius: 6px;
  font-size: 8.5px; font-weight: 600; color: var(--uiw-warn); }
.wo__row.near .wo__near b { display: inline-block; }
.wo__end { color: transparent; }

/* ---- Event Radar ------------------------------------------------------- */
.er { padding: 12px; }
.er__hero { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px;
  background: var(--uiw-surface); border: 1px solid var(--uiw-border); border-radius: 10px; }
.er__hero.warn { border-color: var(--uiw-warn); } .er__hero.red { border-color: var(--uiw-down); }
.er__region { font-size: 9.5px; font-weight: 600; color: var(--uiw-muted); }
.er__hero.red .er__region { color: var(--uiw-down); }
.er__name { margin-top: 2px; font-size: 14px; font-weight: 600; color: var(--uiw-fg); }
.er__fc { margin-top: 2px; font-size: 9.5px; color: var(--uiw-muted); }
.er__cd { flex: none; text-align: right; }
.er__cd b { display: block; font-family: var(--uiw-mono); font-size: 25px; font-weight: 700; line-height: 1.2; color: var(--uiw-fg); }
.er__hero.warn .er__cd b { color: var(--uiw-warn); } .er__hero.red .er__cd b { color: var(--uiw-down); }
.er__cd span { display: block; font-size: 8px; color: var(--uiw-muted); }
.er__list { margin-top: 12px; }
.er__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; margin-bottom: 7px; padding: 7px 10px;
  background: var(--uiw-surface); border: 1px solid var(--uiw-border); border-radius: 8px; }
.er__row[hidden] { display: none; }
.er__t { font-family: var(--uiw-mono); font-size: 11px; color: var(--uiw-fg); }
.er__n { font-size: 11.5px; font-weight: 600; color: var(--uiw-fg); }
.er__s { font-size: 9px; color: var(--uiw-muted); }
.er__stars { font-size: 10px; white-space: nowrap; }
.er__stars b { font-weight: 400; color: var(--uiw-warn); }
.er__stars span { color: var(--uiw-muted); opacity: .35; }

/* ---- Currency Exposure ------------------------------------------------- */
.xp { padding: 10px 12px; }
.xp__row { --c: var(--uiw-accent); display: grid; grid-template-columns: 48px minmax(0, 1fr) 112px; align-items: center; margin: 6px 0; }
.xp__row.l1 { --c: var(--uiw-warn); } .xp__row.l2 { --c: var(--uiw-down); }
.xp__ccy { font-size: 12px; font-weight: 600; color: var(--uiw-fg); }
.xp__net { font-size: 10.5px; color: var(--uiw-muted); }
.xp__track { height: 8px; margin: 3px 10px 0 0; border-radius: 4px; background: var(--uiw-alt); }
.xp__track i { display: block; height: 100%; border-radius: 4px; background: var(--c); transform-origin: left; }
.xp__meta { display: grid; justify-items: end; }
.xp__badge { padding: 3px 8px; border-radius: 6px; background: var(--c); font-size: 10px; font-weight: 700; color: #fff; }
.xp__limit { margin-top: 2px; font-size: 8.5px; color: var(--uiw-muted); }

/* ---- Execution Quality ------------------------------------------------- */
.eq { max-width: 460px; margin: 0 auto; padding: 12px; }
.eq__kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.eq__kpi { padding: 8px 10px; background: var(--uiw-alt); border: 1px solid var(--uiw-border); border-radius: 8px; }
.eq__kpi.bad { border-color: var(--uiw-down); }
.eq__label { font-size: 9px; font-weight: 600; color: var(--uiw-muted); }
.eq__val { display: flex; align-items: flex-end; margin-top: 2px; }
.eq__val b { font-family: var(--uiw-mono); font-size: 17px; font-weight: 700; line-height: 1.2; color: var(--uiw-fg); }
.eq__val span { margin: 0 0 2px 3px; font-size: 10px; color: var(--uiw-muted); }
.eq__delta { margin-top: 2px; font-size: 9.5px; font-weight: 700; color: var(--uiw-up); }
.eq__kpi.bad .eq__delta { color: var(--uiw-down); }
.eq__trend { margin-top: 12px; overflow: hidden; background: var(--uiw-surface); border: 1px solid var(--uiw-border); border-radius: 10px; }
.eq__thead { display: flex; justify-content: space-between; padding: 8px 12px; background: var(--uiw-alt);
  font-size: 10.5px; font-weight: 600; color: var(--uiw-fg); }
.eq__thead span { font-size: 8.5px; font-weight: 400; color: var(--uiw-muted); }
.eq__plot { height: 66px; padding: 6px 10px 4px; }
.eq__plot svg { width: 100%; height: 100%; overflow: visible; }
.eq__plot polyline { fill: none; stroke: var(--uiw-up); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.eq__foot { margin-top: 8px; padding: 7px 12px; border-radius: 8px; background: var(--uiw-alt);
  font-family: var(--uiw-mono); font-size: 10px; color: var(--uiw-muted); }

/* ---- Positions & Risk -------------------------------------------------- */
.pos__act { display: flex; align-items: center; gap: 10px; flex: none; }
.pos__tot { font-size: 13px; font-weight: 600; color: var(--uiw-up); }
.pos__tot.down { color: var(--uiw-down); }
.pos { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pos__t { --s: var(--uiw-up); position: relative; margin: 5px; overflow: hidden; background: var(--uiw-surface);
  border: 1px solid var(--uiw-border); border-radius: 6px; }
.pos__t.warn { --s: var(--uiw-warn); } .pos__t.breach { --s: var(--uiw-down); }
.pos__b { padding: 10px 12px; border-left: 3px solid var(--s); border-radius: 10px; }
.pos__h { display: flex; justify-content: space-between; align-items: center; gap: 4px; }
.pos__sym { font-family: var(--uiw-mono); font-size: 13px; font-weight: 600; color: var(--uiw-fg); }
.pos__pill { flex: none; padding: 1px 5px; border-radius: 3px; background: var(--uiw-down);
  font-size: 9px; font-weight: 600; color: #fff; animation: mx-blink .8s ease-in-out infinite alternate; }
.pos__net { display: flex; align-items: flex-end; margin: 10px 0 6px; }
.pos__dir { margin-right: 8px; font-size: 12px; font-weight: 600; color: var(--uiw-up); }
.short .pos__dir { color: var(--uiw-down); }
.pos__val { font-family: var(--uiw-mono); font-size: 15px; font-weight: 600; line-height: 1.2; color: var(--uiw-fg); }
.pos__base { margin: 2px 0 0 5px; font-size: 11px; color: var(--uiw-muted); }
.pos__row { display: flex; align-items: center; margin: 2px 0; font-size: 11px; color: var(--uiw-muted); }
.pos__row > span { flex: none; width: 40px; }
.pos__row > b { flex: none; font-family: var(--uiw-mono); font-size: 11px; font-weight: 400; color: var(--uiw-fg); }
.pos__track { flex: 1; min-width: 0; height: 8px; margin: 0 8px 0 6px; border-radius: 4px; background: var(--uiw-alt); }
.pos__track i { display: block; height: 100%; border-radius: 4px; background: var(--s); transform-origin: left; }
.pos__limit { margin: 2px 0 0 46px; font-size: 11px; color: var(--uiw-muted); }
.pos__pnl { margin-top: 8px; } .pos__pnl b { font-size: 13px; font-weight: 600; }
.pos__pnl.up b { color: var(--uiw-up); } .pos__pnl.down b { color: var(--uiw-down); }
.pos__flash { position: absolute; inset: 0; border-radius: 6px; background: var(--uiw-down); opacity: 0; pointer-events: none; }
.pos__t.flash .pos__flash { animation: mx-flash .6s ease-out; }
@keyframes mx-flash { from { opacity: .35; } to { opacity: 0; } }

/* ---- Order Ticket: the reference app's sample view. Its stock TextBox, ----
   ComboBox and Button take the shell's implicit styles (Shell/Themes/Controls.xaml). */
.view.tk { padding: 14px; background: var(--sh-surface); color: var(--sh-text); }
.tk__t { margin-bottom: 10px; font-size: 14px; font-weight: 700; }
.tk__l { display: block; margin: 6px 0 2px; font-size: 11px; opacity: .7; }
.tk__in, .tk__sel { display: block; width: 100%; height: 23px; margin-bottom: 2px; padding: 0 8px;
  border: 1px solid var(--sh-line-strong); border-radius: var(--sh-radius); background: var(--sh-sunken);
  color: var(--sh-text); font: 400 11px/1 var(--uiw-sans); outline: none; }
.tk__in { padding: 0 6px; }
.tk__in:hover, .tk__sel:hover { border-color: var(--sh-dim); }
.tk__in:focus, .tk__sel:focus { border-color: var(--sh-accent); }
.tk__sel { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='8' height='4'%3E%3Cpath d='M0 0l4 3.5L8 0z' fill='%238B93A8'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; }
.desk .tk__send { margin: 10px 0 6px; padding: 6px 14px; border: 1px solid var(--sh-line-strong); border-radius: var(--sh-radius);
  background: var(--sh-surface); color: var(--sh-text); font: 400 12px/1.33 var(--uiw-sans); cursor: pointer; }
.desk .tk__send:hover { background: var(--sh-soft); border-color: var(--sh-accent); }
.tk__status { opacity: .75; overflow-wrap: anywhere; }
.tk__rt { margin: 12px 0 4px; font-size: 11px; opacity: .7; }
.tk__recent { font-family: Consolas, "Cascadia Mono", "Cascadia Code", monospace; font-size: 11px; }

/* ---- NDF Tiering ------------------------------------------------------- */
.ti__bar { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 6px 10px; background: var(--uiw-alt);
  border: 1px solid var(--uiw-border); border-radius: 6px; }
.ti__bar b { font-size: 13px; font-weight: 600; color: var(--uiw-fg); white-space: nowrap; }
.ti__count { font-family: var(--uiw-mono); font-size: 11px; color: var(--uiw-muted); white-space: nowrap; }
.ti__bar .wbtn { margin-left: auto; }
.ti__cards { display: flex; flex-wrap: wrap; margin: 0 -14px -14px 0; }
.ti__card { max-width: 100%; margin: 0 14px 14px 0; overflow: hidden; background: var(--uiw-surface);
  border: 1px solid var(--uiw-border); border-radius: 8px; }
.ti__name { padding: 6px 10px; background: var(--uiw-alt); font-size: 12px; font-weight: 600; color: var(--uiw-fg); }
.ti__scroll { padding: 10px; overflow-x: auto; }
.ti__grid { display: grid; grid-auto-rows: 34px; width: max-content; font-family: var(--uiw-mono); }
.ti__c { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: 0 6px;
  background: var(--uiw-surface); box-shadow: inset 0 0 0 .5px var(--uiw-grid); font-size: 11px; font-weight: 600; color: var(--uiw-fg); }
.ti__c.corner { padding: 6px; font-family: var(--uiw-sans); font-size: 9px; line-height: 1.2; color: var(--uiw-muted); text-align: center; }
.ti__c.mat { justify-content: flex-start; padding: 0 10px; white-space: nowrap; }
.ti__c.alt { background: var(--uiw-row-alt); }
.ti__c.on { background: var(--uiw-alt); }
.ti__h.on { color: var(--uiw-accent); }
.ti__cell { width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--uiw-fg);
  font: 500 13px var(--uiw-mono); text-align: center; outline: none; }
.ti__status { display: flex; justify-content: space-between; gap: 10px; margin-top: 8px; font-size: 11px; color: var(--uiw-muted); }
.ti__status .l { display: flex; align-items: center; gap: 5px; font-family: var(--uiw-mono); }
.ti__dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--uiw-accent); opacity: 0; }
.ti.dirty .ti__dot { opacity: 1; }

/* ---- Volatility · Day Range -------------------------------------------- */
.vr { padding: 10px 12px; }
.vr__row { --c: var(--uiw-accent); --t: var(--uiw-fg); display: grid; grid-template-columns: 64px minmax(0, 1fr) 122px; align-items: center; margin: 7px 0; }
.vr__row.l1 { --c: var(--uiw-warn); --t: var(--uiw-warn); } .vr__row.l2 { --c: var(--uiw-down); --t: var(--uiw-down); }
.vr__sym { font-family: var(--uiw-mono); font-size: 11px; font-weight: 600; color: var(--uiw-fg); }
.vr__box { position: relative; height: 12px; margin: 3px 12px 16px 0; }
.vr__track { position: absolute; inset: 0; border: 1px solid var(--uiw-border); border-radius: 3px; background: var(--uiw-alt); }
.vr__band { position: absolute; top: 2px; bottom: 2px; left: 1px; right: 0; border-radius: 2px; background: var(--c); opacity: .35; transform-origin: 0 50%; }
.vr__cur { position: absolute; top: -2px; bottom: -2px; left: 0; right: 0; }
.vr__cur i { position: absolute; top: 0; bottom: 0; left: calc((100% - 3.5px) * var(--f, .5)); width: 3.5px; background: var(--t); }
.vr__lo, .vr__hi { position: absolute; top: 5.4px; font-size: 8px; line-height: 1.33; color: var(--uiw-muted); }
.vr__lo { left: 2px; } .vr__hi { right: 2px; }
.vr__used { font-size: 12px; font-weight: 700; color: var(--t); }
.vr__note { font-size: 8.5px; color: var(--uiw-muted); }

/* ---- Breach / Limit Board ---------------------------------------------- */
.bb { padding: 10px 12px; }
.bb__row { --c: var(--uiw-warn); display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; margin-bottom: 8px;
  padding: 9px 12px; background: var(--uiw-surface); border: 1px solid var(--uiw-border); border-radius: 10px; transition: opacity .15s; }
.bb__row.breach { --c: var(--uiw-down); border-color: var(--uiw-down); }
.bb__row.acked { opacity: .45; }
.bb__sev { position: relative; min-width: 64px; text-align: center; }
.bb__sev i { position: absolute; inset: 0; border-radius: 6px; background: var(--c); opacity: .16; }
.bb__sev b { position: relative; display: inline-block; padding: 3px 8px; border: 1px solid var(--c); border-radius: 6px;
  font-size: 9.5px; font-weight: 700; color: var(--c); }
.bb__txt { margin: 0 8px 0 10px; min-width: 0; }
.bb__rule { font-size: 11.5px; font-weight: 600; color: var(--uiw-fg); }
.bb__detail { font-size: 9px; color: var(--uiw-muted); }
.bb__use { margin-right: 10px; font-family: var(--uiw-mono); font-size: 11px; font-weight: 600; color: var(--uiw-fg); }
.bb__ack { height: 24px; min-width: 56px; padding: 0 12px; font-size: 9.5px; cursor: pointer; }

/* ---- DataTable (Blotter) ----------------------------------------------- */
.dt__feeds { display: flex; flex: 0 1 250px; flex-wrap: wrap; justify-content: flex-end; gap: 4px 6px; }
.wbtn.is-on { background: var(--uiw-accent); border-color: var(--uiw-accent); color: var(--uiw-on-accent); }
.wbtn.is-on:hover { background: var(--uiw-accent-hover); border-color: var(--uiw-accent-hover); }
.dt { --cols: 124px 116px 120px 124px 128px 124px 170px; overflow: hidden; background: var(--uiw-surface);
  border: 1px solid var(--uiw-border); border-radius: 8px; }
.dt__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 8px; padding: 8px 10px;
  background: var(--uiw-surface); border-bottom: 1px solid var(--uiw-border); }
.dt__drop { font-size: 12px; color: var(--uiw-muted); }
.dt__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.dt__scroll { overflow-x: auto; scrollbar-width: none; }
.dt__scroll::-webkit-scrollbar { display: none; }
.dt__head, .dt__filter, .dt__tr { display: grid; grid-template-columns: var(--cols); min-width: 100%; width: max-content; }
.dt__th { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; overflow: hidden; background: var(--uiw-alt);
  box-shadow: inset -1px -1px var(--uiw-border); }
.dt__th .l { align-self: center; min-width: 0; margin: 4px 4px 4px 8px; }
.dt__th .t { display: flex; align-items: center; min-width: 0; font-size: 12px; font-weight: 600; color: var(--uiw-fg); white-space: nowrap; }
.dt__th .t b { overflow: hidden; text-overflow: ellipsis; }
.dt__th .t i { flex: none; margin-left: 3px; font-size: 10px; font-style: normal; color: var(--uiw-accent); }
.dt__th .l > span { display: block; margin-top: 2px; font-size: 9px; color: var(--uiw-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt__th .r { display: grid; justify-items: start; align-self: center; margin: 4px 8px 4px 0; }
.dt__th .r u { margin-left: 4px; padding: 1px 4px; font-size: 11px; line-height: 1.25; text-decoration: none; color: var(--uiw-muted); }
.dt__th em { position: absolute; top: 0; right: 0; bottom: 0; width: 6px; background: var(--uiw-grid); }
.dt__agg, .dt__op { display: flex; align-items: center; justify-content: space-between; height: 21px; padding: 0 8px;
  border: 1px solid var(--sh-line-strong); border-radius: var(--sh-radius); background: var(--sh-sunken); color: var(--sh-text); font-size: 10px; }
.dt__agg { min-width: 56px; margin-top: 2px; }
.dt__agg::after, .dt__op::after { content: ""; flex: none; width: 8px; height: 3.5px; margin-left: 6px; background: var(--sh-dim);
  clip-path: polygon(0 0, 100% 0, 50% 100%); }
.dt__filter { display: grid; }
.dt--compact .dt__th .r, .dt--compact .dt__th em, .dt--compact .dt__th .l > span, .dt--nofilter .dt__filter { display: none; }
.dt__fc { display: flex; align-items: center; overflow: hidden; background: var(--uiw-surface); box-shadow: inset -1px 0 var(--uiw-grid); }
.dt__op { flex: none; width: 46px; margin: 2px 2px 2px 4px; }
.dt__fc input { flex: 1; min-width: 0; height: 21px; margin: 2px 4px 2px 2px; padding: 0 6px; border: 1px solid var(--sh-line-strong);
  border-radius: var(--sh-radius); background: var(--sh-sunken); color: var(--sh-text); font: 400 11px/1 var(--uiw-sans); outline: none; }
.dt__fc input:focus { border-color: var(--sh-accent); }
.dt__body { position: relative; height: 168px; overflow: hidden auto; background: var(--uiw-surface); scrollbar-width: none; }
.dt__body::-webkit-scrollbar { display: none; }
.dt__tr { height: 28px; background: var(--uiw-surface); box-shadow: inset 0 -1px var(--uiw-grid); }
.dt__tr.alt { background: var(--uiw-row-alt); }
.dt__tr.flash { animation: mx-rowflash .35s ease-out; }
@keyframes mx-rowflash { from { background-color: var(--uiw-row-flash); } }
.dt__c { display: flex; align-items: center; min-width: 0; padding: 4px 8px; font-size: 12px; color: var(--uiw-fg);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt__c.num { justify-content: flex-end; font-family: var(--uiw-mono); }
.dt__c.ts { font-family: var(--uiw-mono); color: var(--uiw-muted); }
.dt__empty { padding: 8px 10px; font-size: 12px; font-style: italic; color: var(--uiw-muted); }
.dtv .dot { opacity: .4; }
.dtv.live .dot { animation: mx-pulse 1s ease-in-out infinite alternate; }
@keyframes mx-pulse { from { opacity: .3; } to { opacity: 1; } }

/* ---- Quote Health ------------------------------------------------------ */
.qh { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.qh__t { --s: var(--uiw-up); position: relative; margin: 5px; overflow: hidden; background: var(--uiw-surface);
  border: 1px solid var(--uiw-border); border-radius: 6px; }
.qh__t.warn { --s: var(--uiw-warn); } .qh__t.alert { --s: var(--uiw-down); }
.qh__b { padding: 10px 12px; border-left: 3px solid var(--s); border-radius: 10px; }
.qh__h { display: flex; align-items: center; gap: 8px; }
.qh__sym { flex: 1; min-width: 0; font-family: var(--uiw-mono); font-size: 13px; font-weight: 600; color: var(--uiw-fg); }
.qh__dot { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--s); }
.qh__stale { flex: none; padding: 1px 5px; border-radius: 3px; background: var(--uiw-down);
  font-size: 9px; font-weight: 600; color: #fff; animation: mx-blink .45s ease-in-out infinite alternate; }
.qh__sp { display: flex; align-items: flex-end; margin: 10px 0 6px; }
.qh__k { font-size: 9px; color: var(--uiw-muted); }
.qh__v { font-family: var(--uiw-mono); font-size: 12px; color: var(--uiw-fg); }
.qh__mkt { margin-right: 14px; }
.qh__delta { margin-left: auto; padding: 2px 6px; border-radius: 3px; background: var(--uiw-up);
  font-family: var(--uiw-mono); font-size: 11px; font-weight: 600; color: #fff; }
.qh__delta.down { background: var(--uiw-down); }
.qh__g { display: flex; align-items: center; margin-top: 4px; font-size: 11px; color: var(--uiw-muted); }
.qh__g > span { flex: none; width: 52px; }
.qh__g.up { --c: var(--uiw-up); } .qh__g.warn { --c: var(--uiw-warn); } .qh__g.down { --c: var(--uiw-down); }
.qh__g > b { flex: none; font-family: var(--uiw-mono); font-size: 11px; font-weight: 400; color: var(--uiw-fg); }
.qh__track { flex: 1; min-width: 0; height: 6px; margin: 0 8px 0 6px; border-radius: 3px; background: var(--uiw-alt); }
.qh__track i { display: block; height: 100%; border-radius: 3px; background: var(--c, var(--uiw-up)); transform-origin: left; }
.qh__foot { margin-top: 8px; font-size: 11px; color: var(--uiw-muted); }

/* ---- phone: tiles drop to two columns ---------------------------------- */
@container desk (max-width: 640px) {
  .pos, .qh { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
