/* ---- Market logos (desk/logo-lib.js): the market's file masked to a circle, else its monogram in a tinted circle.
   Sized by --logo (a square) so each place sets one value; never taller than the line it sits on. ---- */
.mlogo { --logo: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--logo); height: var(--logo);
  font-size: calc(var(--logo) * 0.42); border-radius: 50%; overflow: hidden; vertical-align: middle; background: var(--surface-4); line-height: 1; }
.mlogo img { display: block; width: 100%; height: 100%; border-radius: 50%; }
.mlogo--mono { font-family: var(--font-ui); font-weight: 700; letter-spacing: 0; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }
.mlogo--mono::before { content: attr(data-mono); }
.mlogo--t0 { background: #3b5bdb; }
.mlogo--t1 { background: #0b7a75; }
.mlogo--t2 { background: #8a4fd1; }
.mlogo--t3 { background: #b4532a; }
.mlogo--t4 { background: #2b7bb9; }
.mlogo--t5 { background: #9c3d6b; }

/* where a market is named: the top bar, the picker (and the phone's markets tab), the positions and orders */
.mkt-btn .mlogo { --logo: 20px; }
.mk-row .sym { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mk-row .sym .mlogo { --logo: 20px; }
.mk-row .sym small { margin: 0; }
.term[data-form="phone"] .mk-row .sym .mlogo { --logo: 24px; }
.tbl td[data-sym] .mlogo { --logo: 16px; margin-inline-end: 7px; vertical-align: -3px; }
/* a phone's top bar is the tightest row of the screen (frames down to 292 px): a smaller logo, a tighter key */
.term[data-form="phone"] .mkt-btn .mlogo { --logo: 18px; }
@media (max-width: 340px) { .term[data-form="phone"] .mkt-btn { gap: 6px; } }
