/* Terminal — fomo's layout on QPRIME tokens. Scoped under .fm so nothing here leaks. */

.fm { padding: 10px 14px 0; font-size: 13px; color: var(--text); }
.fm .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fm .dim { color: var(--text-dim); }
.fm .faint { color: var(--text-faint); }
.fm .up { color: var(--positive); }
.fm .down { color: var(--negative); }
.fm button { font-family: var(--sans); }
.fm a { color: inherit; text-decoration: none; }

/* ---------- three columns ---------- */
.fm-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr) 380px; gap: 12px; align-items: start; }
@media (max-width: 1440px) { .fm-grid { grid-template-columns: 300px minmax(0, 1fr) 340px; } }
@media (max-width: 1220px) { .fm-grid { grid-template-columns: 280px minmax(0, 1fr); } .fm-side { grid-column: 1 / -1; } }
@media (max-width: 860px)  { .fm-grid { grid-template-columns: 1fr; } .fm-rail { max-height: none; } }

.fm-rail, .fm-main, .fm-side > section, .fm-card {
  border: 1px solid var(--border); border-radius: 16px; background: var(--panel);
}
.fm-rail { display: flex; flex-direction: column; overflow: hidden; max-height: calc(100vh - 150px); position: sticky; top: 92px; }
.fm-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 92px; }

/* ---------- left rail ---------- */
.fm-tabs {
  display: flex; align-items: center; gap: 4px; padding: 10px 12px 0; border-bottom: 1px solid var(--border);
}
.fm-tabs button {
  border: 0; background: none; cursor: pointer; color: var(--text-dim); font-size: 14.5px; font-weight: 600;
  padding: 6px 8px 12px; position: relative; transition: color .18s ease;
}
.fm-tabs button:hover { color: var(--text); }
.fm-tabs button[aria-selected="true"] { color: var(--text); }
.fm-tabs button[aria-selected="true"]::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; background: var(--text);
}
.fm-tabs .sep { width: 1px; height: 16px; background: var(--border); margin: 0 4px 6px; }
.fm-prod { margin-left: auto; margin-bottom: 8px; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; background: var(--sunken); }
.fm-prod button {
  border: 0; background: none; cursor: pointer; color: var(--text-dim); font-family: var(--mono);
  font-size: 11px; letter-spacing: .6px; padding: 4px 12px; border-radius: 999px; transition: all .18s ease;
}
.fm-prod button[aria-selected="true"] { background: var(--text); color: var(--bg); }

.fm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.fm-chips button {
  flex: 0 0 auto; border: 1px solid var(--border); background: var(--sunken); color: var(--text-dim);
  border-radius: 999px; padding: 5px 11px; font-size: 12px; cursor: pointer; transition: all .18s ease; white-space: nowrap;
}
.fm-chips button:hover { color: var(--text); border-color: var(--border-strong); }
.fm-chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); font-weight: 600; }

.fm-list { overflow-y: auto; flex: 1; scrollbar-width: thin; }
.fm-row {
  width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 11px; align-items: center;
  padding: 10px 14px; border: 0; border-bottom: 1px solid var(--border); background: none; text-align: left;
  color: var(--text); cursor: pointer; transition: background .14s ease;
}
.fm-row:hover { background: var(--sunken); }
.fm-row[aria-selected="true"] { background: var(--chip); }
.fm-row .nm { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; min-width: 0; }
.fm-row .nm span { font-weight: 400; color: var(--text-faint); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-row .nm .pair { color: var(--text); font-size: 12.5px; opacity: .85; }
.fm-head .sb .pairto { color: var(--text-dim); }
.fm-head .sb .pairto b { color: var(--text); font-weight: 600; }
.fm-row .sb { font-size: 11.5px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-row .rt { text-align: right; }
.fm-row .rt b { display: block; font-size: 13.5px; font-weight: 500; }
.fm-row .rt small { display: block; font-size: 11px; margin-top: 2px; }
.fm-logo {
  width: 38px; height: 38px; border-radius: 50%; background: var(--chip); border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0;
}
.fm-logo img { width: 62%; height: 62%; object-fit: contain; }
.fm-logo.cover img { width: 100%; height: 100%; object-fit: cover; }
.fm-logo.sm { width: 28px; height: 28px; }
.fm-logo.lg { width: 44px; height: 44px; }
.fm-av {
  width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 11px; font-weight: 500; color: #fff; flex-shrink: 0;
}
.fm-av.sm { width: 28px; height: 28px; font-size: 9px; }
.fm-av.lg { width: 44px; height: 44px; font-size: 12px; }

/* leaderboard rail */
.fm-lb-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid var(--border); font-size: 14px; font-weight: 700; }
.fm-lb-head a { font-size: 12px; font-weight: 400; color: var(--text-dim); }
.fm-win { display: inline-flex; gap: 4px; padding: 10px 14px; border-bottom: 1px solid var(--border); width: 100%; }
.fm-win button { border: 1px solid var(--border); background: var(--sunken); color: var(--text-dim); border-radius: 8px; padding: 4px 11px; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.fm-win button[aria-pressed="true"] { background: var(--chip); color: var(--text); border-color: var(--border-strong); }
.fm-me { display: grid; grid-template-columns: 38px 1fr auto; gap: 11px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--sunken); }
.fm-me .k { font-size: 11px; color: var(--text-faint); }
.fm-me .v { font-size: 15px; font-weight: 600; }
.fm-lb-row { grid-template-columns: 26px 38px minmax(0,1fr) auto; }
.fm-rank { font-family: var(--mono); font-size: 11.5px; color: var(--text-faint); text-align: center; }
.fm-rank.top { width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 10.5px; }
.fm-stack { display: inline-flex; align-items: center; margin-top: 3px; }
.fm-stack .fm-logo { width: 16px; height: 16px; margin-right: -5px; border-color: var(--panel); }
.fm-stack em { font-style: normal; font-family: var(--mono); font-size: 10px; color: var(--text-faint); margin-left: 9px; }

/* ---------- centre ---------- */
.fm-main { overflow: hidden; }
.fm-main { container-type: inline-size; }
/* One line, always. The identity block yields (its sub-line truncates), the stat boxes do not
   shrink; instead the least important boxes drop out as the centre column narrows. */
.fm-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 14px 18px 10px; }
.fm-head .id { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 auto; }
.fm-head .id > div { min-width: 0; }
.fm-head .nm { display: flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 700; white-space: nowrap; }
.fm-head .nm .ico { display: inline-flex; gap: 4px; margin-left: 4px; }
.fm-head .nm .ico span { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 11px; }
.fm-head .sb { font-size: 12px; color: var(--text-faint); margin-top: 3px; display: flex; gap: 8px; align-items: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-head .sb > * { flex: 0 0 auto; }
.fm-head .sb .addr { font-family: var(--mono); }
.fm-stats { display: flex; gap: 6px; flex: 0 0 auto; margin-left: auto; }
.fm-stat { border: 1px solid var(--border); border-radius: 10px; background: var(--sunken); padding: 6px 11px; white-space: nowrap; }
.fm-stat span { display: block; font-size: 10.5px; color: var(--text-faint); margin-bottom: 3px; }
.fm-stat b { font-size: 13.5px; font-weight: 500; }
@container (max-width: 880px) { .fm-stat.opt3 { display: none; } }
@container (max-width: 800px) { .fm-stat.opt2 { display: none; } }
@container (max-width: 700px) { .fm-stat.opt1 { display: none; } .fm-head .nm .ico { display: none; } .fm-head .sb .addr, .fm-head .sb .addr + span { display: none; } }

.fm-toolbar { display: flex; align-items: center; gap: 4px; padding: 6px 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.fm-toolbar button, .fm-toolbar .tb { border: 0; background: none; color: var(--text-dim); font-size: 12px; padding: 5px 8px; border-radius: 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.fm-toolbar button:hover { color: var(--text); background: var(--sunken); }
.fm-toolbar button[aria-pressed="true"], .fm-toolbar .on { color: var(--text); }
.fm-toolbar .tsep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.fm-toolbar .grow { flex: 1; }

.fm-ohlc { display: flex; gap: 12px; align-items: center; padding: 8px 14px 0; font-family: var(--mono); font-size: 11px; color: var(--text-dim); flex-wrap: wrap; }
.fm-ohlc b { color: var(--text); font-weight: 400; }
.fm-ohlc .t { color: var(--text); font-family: var(--sans); font-size: 12px; }

.fm-chart { position: relative; padding: 4px 6px 0 6px; }
.fm-chart canvas { display: block; width: 100%; height: 380px; cursor: crosshair; }
.fm-tv { position: absolute; left: 14px; bottom: 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--chip); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 9px; color: var(--text-dim); pointer-events: none; }

.fm-tfbar { display: flex; align-items: center; gap: 2px; padding: 6px 12px 8px; font-size: 12.5px; color: var(--text-dim); }
.fm-tfbar button { border: 0; background: none; color: var(--text-dim); font-size: 12.5px; padding: 4px 9px; border-radius: 6px; cursor: pointer; }
.fm-tfbar button:hover { color: var(--text); }
.fm-tfbar button[aria-pressed="true"] { color: var(--text); background: var(--chip); }
.fm-tfbar .clock { margin-left: auto; font-family: var(--mono); font-size: 12px; margin-right: 8px; }
.fm-tfbar .tsep { width: 1px; height: 14px; background: var(--border); margin: 0 4px; }

.fm-overlays { display: flex; align-items: center; gap: 18px; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text); flex-wrap: wrap; }
.fm-overlays .lbl { font-weight: 600; }
.fm-check { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; user-select: none; }
.fm-check input { appearance: none; width: 16px; height: 16px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--sunken); position: relative; cursor: pointer; }
.fm-check input:checked { background: var(--text); border-color: var(--text); }
.fm-check input:checked::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--bg); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fm-check input:disabled { opacity: .4; cursor: not-allowed; }
.fm-check.dis { color: var(--text-faint); }
.fm-handle { height: 4px; width: 30px; border-radius: 2px; background: var(--border-strong); margin: 4px auto 0; opacity: .6; }

.fm-tabhead { display: flex; align-items: center; gap: 4px; padding: 10px 14px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.fm-tabhead button { border: 0; background: none; color: var(--text-dim); font-size: 14px; font-weight: 600; padding: 4px 8px; cursor: pointer; }
.fm-tabhead button[aria-selected="true"] { color: var(--text); }
.fm-tabhead .tsep { width: 1px; height: 16px; background: var(--border); margin: 0 4px; }
.fm-tabhead .right { margin-left: auto; display: flex; gap: 16px; font-size: 12.5px; }

.fm-th, .fm-tr {
  display: grid; gap: 14px; align-items: center; padding: 0 18px;
  grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr) 40px minmax(0, 1.8fr);
  grid-template-areas: "who pos pnl entry lk th";
}
.fm-th { height: 36px; font-size: 12px; color: var(--text-faint); }
.fm-tr { min-height: 66px; padding-top: 10px; padding-bottom: 10px; border-top: 1px solid var(--border); transition: background .14s ease; }
.fm-tr:hover { background: var(--sunken); }
.fm-tr[data-jump] { cursor: pointer; }
.fm-tr > * { min-width: 0; }
.fm-tr .who { grid-area: who; display: flex; align-items: center; gap: 11px; }
.fm-tr .who > span { min-width: 0; }
.fm-tr .who b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-tr .who small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--text-faint); margin-top: 3px; white-space: nowrap; overflow: hidden; }
.fm-tr .who small svg { width: 11px; height: 11px; flex-shrink: 0; }
.fm-tr .c b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-tr .c small { display: block; font-size: 11.5px; color: var(--text-faint); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-tr .c.pnl small { color: inherit; opacity: .85; }
.fm-tr .c:nth-child(2) { grid-area: pos; } .fm-tr .c:nth-child(3) { grid-area: pnl; } .fm-tr .c:nth-child(4) { grid-area: entry; }
.fm-tr .lk { grid-area: lk; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--text-faint); font-family: var(--mono); font-size: 11px; }
.fm-tr .lk svg { width: 15px; height: 15px; }
.fm-tr .th { grid-area: th; font-size: 13px; line-height: 19px; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.fm-tr .th.none { color: var(--text-faint); font-style: italic; }
/* Below this the centre column cannot fit six columns, so the thesis takes its own line. */
@media (max-width: 1500px) {
  .fm-th, .fm-tr { grid-template-columns: minmax(150px, 1.4fr) minmax(110px, 1fr) minmax(120px, 1fr) minmax(110px, 1fr) 40px; grid-template-areas: "who pos pnl entry lk" "th th th th th"; row-gap: 8px; }
  .fm-th > :last-child { display: none; }
  .fm-tr .th { padding-left: 49px; }
}
@media (max-width: 1320px) {
  .fm-th, .fm-tr { grid-template-columns: minmax(140px, 1.4fr) minmax(100px, 1fr) minmax(110px, 1fr) 40px; grid-template-areas: "who pos pnl lk" "th th th th"; }
  .fm-th > :nth-child(4), .fm-tr .c:nth-child(4) { display: none; }
}
.fm-th.swaps, .fm-tr.swaps { grid-template-columns: minmax(0,1.6fr) 90px minmax(0,1fr) minmax(0,1fr) minmax(0,1fr); }
.fm-side-pill { font-family: var(--mono); font-size: 10.5px; letter-spacing: .4px; padding: 3px 8px; border-radius: 6px; }
.fm-side-pill.buy { background: rgba(69,196,138,.14); color: var(--positive); }
.fm-side-pill.sell { background: rgba(240,100,95,.14); color: var(--negative); }
.fm-empty { padding: 34px 18px; text-align: center; color: var(--text-faint); font-size: 13px; }
.fm-rows { max-height: 560px; overflow-y: auto; scrollbar-width: thin; }

/* ---------- right rail ---------- */
.fm-side > section { padding: 16px; }
.fm-bs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.fm-bs button { border: 1px solid var(--border); background: var(--sunken); color: var(--text-dim); border-radius: 10px; padding: 11px; font-size: 15px; font-weight: 600; cursor: pointer; transition: all .16s ease; }
.fm-bs button[aria-pressed="true"] { background: var(--chip); color: var(--text); border-color: var(--border-strong); }
.fm-bs button[aria-pressed="true"].buy { color: var(--positive); border-color: rgba(69,196,138,.45); }
.fm-bs button[aria-pressed="true"].sell { color: var(--negative); border-color: rgba(240,100,95,.45); }
.fm-amt { margin-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--sunken); padding: 0 16px; height: 68px; }
.fm-amt input { border: 0; background: none; color: var(--text); font-family: var(--mono); font-size: 30px; font-weight: 300; width: 60%; outline: none; letter-spacing: -1px; }
.fm-amt input::placeholder { color: var(--text-faint); }
.fm-amt span { color: var(--text-faint); font-size: 13px; }
.fm-quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.fm-quick button { border: 1px solid var(--border); background: var(--sunken); color: var(--text); border-radius: 9px; padding: 9px 0; font-family: var(--mono); font-size: 12.5px; cursor: pointer; }
.fm-quick button:hover { border-color: var(--border-strong); }
.fm-quick button.gear { color: var(--text-dim); }
.fm-avail { margin-top: 10px; font-size: 12.5px; color: var(--text-dim); }
.fm-go { width: 100%; margin-top: 12px; border: 0; border-radius: 12px; padding: 14px; font-size: 15px; font-weight: 700; background: var(--text); color: var(--bg); cursor: pointer; transition: opacity .16s ease; }
.fm-go:hover { opacity: .9; }
.fm-go:disabled { opacity: .35; cursor: not-allowed; }
.fm-split { margin-top: 12px; border-top: 1px solid var(--border); padding-top: 8px; }
.fm-split div { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-dim); padding: 3px 0; }
.fm-split div b { font-family: var(--mono); font-weight: 400; color: var(--text); }
.fm-frozen { border: 1px solid rgba(224,169,59,.4); background: rgba(224,169,59,.06); border-radius: 12px; padding: 14px; margin-top: 12px; }
.fm-frozen b { font-family: var(--mono); font-size: 11.5px; letter-spacing: .5px; color: var(--warn); }
.fm-frozen p { margin: 6px 0 0; font-size: 12.5px; line-height: 18px; color: var(--text-dim); }

.fm-vault { border-left: 2px solid var(--border-strong); }
.fm-vault header { display: flex; align-items: center; gap: 10px; }
.fm-vault header b { display: block; font-size: 14px; }
.fm-vault header span { display: block; font-size: 11px; color: var(--text-faint); }
.fm-vault .amt { margin: 12px 0 10px; display: flex; align-items: baseline; justify-content: space-between; }
.fm-vault .amt b { font-family: var(--mono); font-size: 22px; font-weight: 300; }
.fm-vault .amt span { font-size: 11px; color: var(--text-faint); }
.fm-vault .dep { width: 100%; border: 1px solid var(--border); background: var(--sunken); color: var(--text); border-radius: 10px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.fm-vault .dep:hover { border-color: var(--border-strong); }
.fm-vault p { margin: 10px 0 0; font-size: 11px; line-height: 16px; color: var(--text-faint); }

.fm-about h3 { margin: 0 0 8px; font-size: 16px; font-weight: 700; }
.fm-about p { margin: 0 0 12px; font-size: 13px; line-height: 19px; color: var(--text-dim); }
.fm-tf { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.fm-tf div { border: 1px solid var(--border); border-radius: 10px; background: var(--sunken); padding: 8px 4px; text-align: center; }
.fm-tf div span { display: block; font-size: 11px; color: var(--text-faint); margin-bottom: 3px; }
.fm-tf div b { font-family: var(--mono); font-size: 12px; font-weight: 500; }
.fm-tf div[aria-pressed="true"] { border-color: var(--border-strong); background: var(--chip); }
.fm-bar { margin-top: 12px; }
.fm-bar .lbls { display: flex; justify-content: space-between; font-size: 12.5px; margin-bottom: 5px; }
.fm-bar .lbls span:first-child { color: var(--positive); } .fm-bar .lbls span:last-child { color: var(--negative); }
.fm-bar .lbls b { font-family: var(--mono); font-weight: 500; color: var(--text); }
.fm-bar .track { display: flex; gap: 3px; height: 4px; }
.fm-bar .track i { display: block; border-radius: 2px; }
.fm-bar .track i.g { background: var(--positive); } .fm-bar .track i.r { background: var(--negative); }
.fm-links { display: flex; gap: 8px; margin-top: 14px; }
.fm-links a { border: 1px solid var(--border); border-radius: 999px; padding: 6px 12px; font-size: 12px; color: var(--text); background: var(--sunken); }
.fm-more { display: block; margin: 12px auto 0; border: 0; background: var(--sunken); color: var(--text-dim); border-radius: 8px; padding: 6px 12px; font-size: 12px; cursor: pointer; }

.fm-pos h3 { margin: 0; font-size: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.fm-pos h3 em { font-style: normal; font-size: 12px; color: var(--text-faint); font-weight: 400; }
.fm-pos .oc { margin-left: auto; display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--border); border-radius: 999px; }
.fm-pos .oc span { font-size: 11px; padding: 3px 9px; border-radius: 999px; color: var(--text-faint); }
.fm-pos .oc span.on { background: var(--chip); color: var(--text); }
.fm-pos .row { display: grid; grid-template-columns: 34px minmax(0,1fr) auto; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--border); }
.fm-pos .row:first-of-type { margin-top: 12px; }
.fm-pos .row b { display: block; font-size: 13.5px; }
.fm-pos .row small { display: block; font-size: 11px; color: var(--text-faint); }
.fm-pos .row .v { text-align: right; }

.fm-profile header { display: flex; align-items: center; gap: 12px; }
.fm-profile header b { display: block; font-size: 15px; }
.fm-profile header span { display: block; font-size: 11.5px; color: var(--text-faint); }
.fm-follow { margin-left: auto; border: 1px solid var(--border); background: var(--sunken); color: var(--text); border-radius: 999px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.fm-kv { display: flex; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-dim); margin-top: 6px; }
.fm-kv b { font-family: var(--mono); font-weight: 400; color: var(--text); }

/* ---------- bottom ticker ---------- */
.fm-bottom {
  position: sticky; bottom: 0; margin: 12px -14px 0; padding: 9px 22px; display: flex; gap: 26px; align-items: center;
  border-top: 1px solid var(--border); background: rgba(10,10,11,.9); backdrop-filter: blur(10px);
  font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); overflow-x: auto; scrollbar-width: none; white-space: nowrap;
}
.fm-bottom b { color: var(--text); font-weight: 400; }
.fm-bottom .pip { width: 6px; height: 6px; border-radius: 50%; background: var(--live); display: inline-block; margin-right: 6px; }
.fm-bottom a { color: var(--text-dim); }
.fm-bottom a:hover { color: var(--text); }

/* header icons are controls now */
.fm-head .nm .ico .ib { width: 24px; height: 24px; border: 1px solid var(--border); border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 11px; background: none; cursor: pointer; text-decoration: none; padding: 0; font-family: var(--sans); transition: color .16s ease, border-color .16s ease; }
.fm-head .nm .ico .ib:hover { color: var(--text); border-color: var(--border-strong); }
.fm-head .nm .ico .ib.on { color: var(--text); border-color: var(--text); }
.fm-head .nm .ico .chip { cursor: default; }
.fm-head .sb .ib { border: 0; background: none; color: var(--text-faint); cursor: pointer; font-size: 12px; padding: 0; font-family: var(--mono); }
.fm-head .sb .ib:hover { color: var(--text); }
.fm-toolbar .tb { color: var(--text); }
.fm-facts { margin-top: 12px; border-top: 1px solid var(--border); }
.fm-facts div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 12px; color: var(--text-dim); }
.fm-facts div b { font-family: var(--mono); font-weight: 400; color: var(--text); text-align: right; }
.fm-dep { margin-top: 12px; }
.fm-dep .fm-amt { height: 52px; margin-top: 0; } .fm-dep .fm-amt input { font-size: 22px; }
.fm-follow.on { background: var(--chip); border-color: var(--text); }
.fm-pos .oc button { border: 0; background: none; font-family: var(--sans); font-size: 11px; padding: 3px 9px; border-radius: 999px; color: var(--text-faint); cursor: pointer; }
.fm-pos .oc button.on { background: var(--chip); color: var(--text); }
