/* /freepmtools/upi-app-tracker: a calm, data-first layout. Flat cards, one accent (the site blue), green and red only for change, and a colour-blind-safe
   palette for the charts. Theme tokens only, so light and dark both work. Loaded on that page only (see tools/build-freepmtools.py). */
.pt-tool.up {
  --up-pos: #047857; --up-neg: #b91c1c; --up-r: 14px; --up-gap: 20px;
  --upi-c1: #0072B2; --upi-c2: #D55E00; --upi-c3: #009E73; --upi-c4: #CC79A7; --upi-c5: #B8860B; --upi-c6: #56B4E9; --upi-c7: #7C3AED; --upi-c8: #94A3B8;
}
html[data-theme="dark"] .pt-tool.up { --up-pos: #34d399; --up-neg: #f87171; --upi-c1: #56B4E9; --upi-c2: #F28E3F; --upi-c3: #2FBF95; --upi-c4: #E58FBF; --upi-c5: #F0C040; --upi-c6: #9AD1F5; --upi-c7: #A78BFA; --upi-c8: #64748B; }

/* the section is a plain stack of cards, not one big framed card */
.pt-tool.up.pt-tool { display: grid; gap: var(--up-gap); border: 0; background: transparent; padding: 0; border-radius: 0; min-width: 0; }
.pt-tool.up > * { min-width: 0; }
.up-card, .up-kpi, .up-explore, .up-bar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--up-r); }
.up-card { padding: 18px 20px; }
.up-kl, .up-h { margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-light); }
.up-note { margin: 12px 0 0; font-size: .76rem; color: var(--text-light); line-height: 1.5; }
.up-none, .up-empty { color: var(--text-light); font-size: .9rem; }
.up-warn { margin: 0; padding: .7rem .95rem; border: 1px solid #f59e0b; border-left-width: 4px; border-radius: 10px; background: rgba(245, 158, 11, .1); color: var(--text-primary); font-size: .86rem; line-height: 1.55; }
.up-warn[hidden] { display: none; }
.dl { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dl.up { color: var(--up-pos); } .dl.down { color: var(--up-neg); } .dl.nil { color: var(--text-light); font-weight: 400; }

/* header banner: flat card with key facts */
.pt-head.pt-head-l.pt-head-hero { max-width: none; margin: 0 0 1.4rem; padding: 1.5rem 1.7rem 1.3rem; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); }
.pt-head-hero .pt-lead { max-width: 820px; font-size: 1.04rem; line-height: 1.65; color: var(--text-secondary); }
.pt-facts { list-style: none; display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; margin: 1rem 0 .9rem; }
.pt-facts li { display: flex; flex-direction: column; gap: 2px; padding: .5rem .85rem; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-gray); }
.pt-facts b { font-size: .96rem; color: var(--text-primary); } .pt-facts span { font-size: .76rem; color: var(--text-light); }

/* refresh (top right) */
.up-top { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.up-status { font-size: .8rem; color: var(--text-light); }
.pt-btn[hidden] { display: none; }

/* control bar: stays in view while scrolling */
.up-bar { position: sticky; top: 62px; z-index: 6; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 28px; padding: 12px 16px; box-shadow: 0 8px 16px -14px rgba(15, 23, 42, .5); }
.up-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.up-fl { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-light); }
.up-step { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); overflow: hidden; }
.up-step button { width: 38px; height: 38px; border: 0; background: transparent; color: var(--text-secondary); font-size: 1.25rem; line-height: 1; cursor: pointer; }
.up-step button:hover:not(:disabled) { background: var(--bg-gray); color: var(--primary); } .up-step button:disabled { opacity: .3; cursor: default; }
.up-step select { height: 38px; width: 118px; border: 0; border-left: 1px solid var(--border); border-right: 1px solid var(--border); background: var(--surface); color: var(--text-primary); font: inherit; font-weight: 600; text-align: center; text-align-last: center; cursor: pointer; border-radius: 0; padding: 0 6px; }
.up-seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg-gray); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.up-seg::-webkit-scrollbar { display: none; }
.up-seg button { flex: none; padding: 7px 13px; border: 0; border-radius: 8px; background: transparent; color: var(--text-secondary); font: inherit; font-size: .86rem; cursor: pointer; white-space: nowrap; }
.up-seg button:hover { color: var(--text-primary); }
.up-seg button[aria-pressed="true"] { background: var(--primary); color: #fff; font-weight: 600; box-shadow: 0 1px 3px rgba(15, 23, 42, .25); }
html[data-theme="dark"] .up-seg button[aria-pressed="true"] { color: #0b1220; }
.up-seg button[aria-pressed="true"]:hover { color: #fff; } html[data-theme="dark"] .up-seg button[aria-pressed="true"]:hover { color: #0b1220; }
.up-step button:focus-visible, .up-seg button:focus-visible, .up-step select:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }

/* KPI strip */
.up-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--up-gap); }
.up-kpi { position: relative; padding: 16px 18px 14px; min-height: 128px; display: flex; flex-direction: column; } .up-kpi > :last-child { margin-top: auto; }
.up-kv { font-size: 1.85rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; color: var(--text-primary); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.up-kd { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 8px; font-size: .84rem; }
.up-kd small { color: var(--text-light); font-size: .74rem; margin-right: 8px; }
.up-ks { margin-top: 12px; line-height: 0; } .up-ks .spk { width: 100%; height: auto; max-height: 40px; }
.spk { display: block; fill: none; stroke: var(--primary); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; } .spk circle { fill: var(--primary); stroke: none; }
.up-mini { display: flex; height: 8px; margin-top: 14px; border-radius: 4px; overflow: hidden; gap: 2px; background: var(--bg-gray); } .up-mini span { display: block; height: 100%; }
.up-kc { margin: 8px 0 0; font-size: .78rem; color: var(--text-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* insights and fastest growing */
.up-row3 { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: var(--up-gap); }
.up-insights ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.up-insights li { position: relative; padding-left: 16px; font-size: .9rem; line-height: 1.5; color: var(--text-secondary); }
.up-insights li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
.up-insights b { color: var(--text-primary); font-weight: 600; }
.fc-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.fc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 1.05rem; font-weight: 600; color: var(--text-primary); }
.fc-pct { flex: none; font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; color: var(--up-pos); font-variant-numeric: tabular-nums; }
.fc-sub { margin: 2px 0 12px; font-size: .8rem; color: var(--text-light); }
.fc-list { list-style: none; margin: 0; padding: 0; counter-reset: fc 1; display: grid; gap: 8px; }
.fc-list li { counter-increment: fc; display: grid; grid-template-columns: minmax(0, 1.1fr) 1fr auto; align-items: center; gap: 10px; font-size: .84rem; color: var(--text-secondary); }
.fc-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .fc-n::before { content: counter(fc) "  "; color: var(--text-light); font-variant-numeric: tabular-nums; }
.fc-bar { height: 6px; border-radius: 3px; background: var(--bg-gray); overflow: hidden; } .fc-bar i { display: block; height: 100%; border-radius: 3px; background: var(--up-pos); opacity: .55; }
.fc-list b { color: var(--text-primary); font-variant-numeric: tabular-nums; }

/* explore: toolbar, plotted chips, table */
.up-explore { padding: 18px 20px 14px; }
.up-tools { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; margin-bottom: 12px; }
.up-tools-l { min-width: 0; } .up-tools-l .up-h { margin-bottom: 8px; }
.up-tools-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.up-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .84rem; color: var(--text-secondary); }
.spill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--bg-gray); border: 1px solid var(--border); color: var(--text-secondary); font-weight: 600; font-size: .76rem; }
.scount b { color: var(--text-primary); }
.up-search { position: relative; display: block; }
.up-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); fill: var(--text-light); pointer-events: none; }
.up-search input { width: 200px; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-primary); font: inherit; font-size: .9rem; -webkit-appearance: none; appearance: none; }
.up-search input::-webkit-search-cancel-button { display: none; } .up-search input:focus { outline: 2px solid var(--primary); outline-offset: 0; border-color: transparent; }
.up-subtools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; }
.up-plotted { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .82rem; color: var(--text-secondary); min-height: 30px; }
.plt-lbl { font-weight: 700; color: var(--text-primary); } .plt-none { color: var(--text-light); }
.plt-chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 3px 2px 9px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); font-weight: 600; color: var(--text-primary); }
.plt-chip i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
.plt-chip button { width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: var(--text-light); font-size: 15px; line-height: 1; cursor: pointer; } .plt-chip button:hover { background: var(--border); color: var(--text-primary); }
.plt-act { padding: 3px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-secondary); font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; } .plt-act:hover { border-color: var(--primary); color: var(--primary); }
.plt-go { font-weight: 600; color: var(--primary); text-decoration: none; margin-left: 4px; } .plt-go:hover { text-decoration: underline; }
.up-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0; font-size: .78rem; color: var(--text-light); } .up-key span { display: inline-flex; align-items: center; gap: 6px; }
#upi-chart-top { scroll-margin-top: 130px; }

.up-tblwrap { margin: 0; overflow-x: auto; }
.pt-upi.up-table { width: 100%; min-width: 860px; table-layout: fixed; border-collapse: collapse; font-size: .86rem; font-variant-numeric: tabular-nums; }
.up-table col.c-plot { width: 58px; } .up-table col.c-rank { width: 78px; } .up-table col.c-vol { width: 150px; } .up-table col.c-share { width: 68px; } .up-table col.c-mom { width: 86px; } .up-table col.c-yoy { width: 92px; } .up-table col.c-val { width: 102px; } .up-table col.c-tkt { width: 92px; }
.up-table th { padding: 0; border-bottom: 1px solid var(--border); background: var(--surface); font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-light); white-space: nowrap; }
.up-table td { height: 46px; padding: 4px 6px; border-bottom: 1px solid var(--border); vertical-align: middle; color: var(--text-secondary); line-height: 1.2; }
.up-table tbody tr:last-child td { border-bottom: 0; }
.up-table tbody tr:hover td { background: var(--bg-gray); } .up-table tbody tr.plotted td { background: rgba(37, 99, 235, .05); }
.up-table td.num, .up-table th.num { text-align: right; white-space: nowrap; } .up-table td.ctr, .up-table th.ctr { text-align: center; } .up-table td.rank, .up-table th.rank { text-align: left; white-space: nowrap; }
.up-table .srt { display: inline-flex; align-items: center; gap: 3px; width: 100%; padding: 10px 6px; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; white-space: nowrap; }
.up-table th.num .srt { justify-content: flex-end; } .up-table th.ctr .srt { justify-content: center; } .up-table .srt:hover { color: var(--primary); } .up-table .srt:focus-visible { outline: 2px solid var(--primary); outline-offset: -2px; }
.up-table .ar { font-size: 11px; opacity: .4; } .up-table th[aria-sort="ascending"] .ar, .up-table th[aria-sort="descending"] .ar { opacity: 1; color: var(--primary); }
.up-table td.app { white-space: nowrap; overflow: hidden; } .up-table td.app b { display: inline-block; max-width: calc(100% - 42px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; color: var(--text-primary); font-weight: 600; }
.up-table td.ctr .pl { display: inline-grid; grid-template-columns: 24px 10px; column-gap: 5px; align-items: center; justify-content: center; }
.up-table td.ctr input { grid-column: 1; width: 24px; height: 24px; margin: 0; accent-color: var(--primary); cursor: pointer; } .up-table .sw { grid-column: 2; width: 10px; height: 10px; border-radius: 3px; display: block; }
.up-table .rk { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 700; color: var(--text-secondary); vertical-align: middle; }
.up-table .rk1 { background: #fef3c7; color: #92400e; } .up-table .rk2 { background: #e2e8f0; color: #334155; } .up-table .rk3 { background: #ffedd5; color: #9a3412; }
html[data-theme="dark"] .up-table .rk1 { background: rgba(245, 158, 11, .22); color: #fcd34d; } html[data-theme="dark"] .up-table .rk2 { background: rgba(148, 163, 184, .22); color: #e2e8f0; } html[data-theme="dark"] .up-table .rk3 { background: rgba(251, 146, 60, .22); color: #fdba74; }
.mv { display: inline-block; width: 36px; margin-left: 6px; text-align: left; vertical-align: middle; font-size: 11px; color: var(--text-light); } .mv.up { color: var(--up-pos); } .mv.down { color: var(--up-neg); } .mv.new { color: var(--primary); font-weight: 600; }
.volc { display: inline-flex; align-items: center; justify-content: flex-end; gap: 10px; width: 100%; } .spkw { width: 56px; height: 22px; flex: none; } .volc i { font-style: normal; flex: none; width: 54px; text-align: right; color: var(--text-primary); }
.up-table .spk { stroke-width: 1.5; }
.up-more { display: flex; align-items: center; gap: 12px; margin: 12px 0 0; } .up-more .pt-btn[hidden] { display: none; }
.up-swipe { display: none; font-size: .78rem; color: var(--text-light); } @media (max-width: 960px) { .up-swipe { display: inline; } }
.pt-tblwrap.flash { animation: upflash .6s ease-out; } @keyframes upflash { from { box-shadow: 0 0 0 3px rgba(37, 99, 235, .3); } to { box-shadow: 0 0 0 3px rgba(37, 99, 235, 0); } }
@media (prefers-reduced-motion: reduce) { .pt-tblwrap.flash { animation: none; } }

/* app badges: one icon per type, same look for every app */
.av { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: 0 10px 0 2px; color: #fff; vertical-align: middle; }
.av svg { fill: #fff; display: block; }
.av-T { background: var(--primary); border-radius: 50%; } .av-B { background: #0f766e; border-radius: 8px; }
.up-key .av.key { width: 18px; height: 18px; margin: 0; } .up-key .av.key svg { width: 11px; height: 11px; }

/* share panels */
.up-row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--up-gap); }
.pt-donutwrap { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; min-height: 210px; }
.pt-donutwrap svg { width: 190px; height: 190px; max-width: 100%; flex: none; margin: 0 auto; } .pt-donutwrap .dnum { fill: var(--text-primary); font-size: 22px; font-weight: 700; } .pt-donutwrap .dlbl { fill: var(--text-light); font-size: 12px; }
.pt-dleg { list-style: none; margin: 0; padding: 0; flex: 1; min-width: 160px; }
.pt-dleg li { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: .84rem; color: var(--text-secondary); border-bottom: 1px solid var(--border); } .pt-dleg li:last-child { border-bottom: 0; }
.pt-dleg li span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .pt-dleg li b { color: var(--text-primary); font-variant-numeric: tabular-nums; } .pt-dleg i { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.srow { margin: 0 0 14px; } .slbl { font-size: .78rem; font-weight: 600; color: var(--text-secondary); margin: 0 0 5px; }
.sbar { display: flex; height: 30px; border-radius: 8px; overflow: hidden; gap: 2px; } .sbar .seg { display: flex; align-items: center; justify-content: center; color: #fff; font-size: .78rem; font-weight: 700; min-width: 0; }
.skey { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .78rem; color: var(--text-secondary); } .skey i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.ty-T { background: var(--primary); } .ty-B { background: #0f766e; }
.bkh { margin: 16px 0 6px; font-size: .72rem; font-weight: 700; color: var(--text-light); text-transform: uppercase; letter-spacing: .06em; }
.bk { display: grid; grid-template-columns: minmax(100px, 1.3fr) 2fr auto; gap: 10px; align-items: center; padding: 3px 0; font-size: .82rem; color: var(--text-secondary); }
.bk .bn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .bk .bt { height: 8px; border-radius: 4px; background: var(--bg-gray); overflow: hidden; } .bk .bt i { display: block; height: 100%; border-radius: 4px; background: #0f766e; opacity: .7; }
.bk b { color: var(--text-primary); font-variant-numeric: tabular-nums; min-width: 62px; text-align: right; }

/* trend chart */
.up-chead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 10px; } .up-chead .up-kl { margin: 0; }
.up-cctl { display: flex; flex-wrap: wrap; gap: 8px; }
.up-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; min-height: 22px; font-size: .82rem; color: var(--text-secondary); } .up-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.up-chart { position: relative; margin: 6px 0 4px; } .up-chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.up-chart .grid { stroke: var(--border); stroke-width: 1; } .up-chart .axl { fill: var(--text-light); font-size: 11px; } .up-chart .endl { fill: var(--text-primary); font-size: 11px; font-weight: 600; }
.up-chart .cross { stroke: var(--text-light); stroke-width: 1; stroke-dasharray: 3 3; } .up-chart .dot { stroke: var(--surface); stroke-width: 2; }
.up-tip { position: absolute; z-index: 2; min-width: 170px; max-width: 220px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text-secondary); font-size: 12px; line-height: 1.55; box-shadow: 0 8px 20px rgba(15, 23, 42, .16); pointer-events: none; }
.up-tip[hidden] { display: none; } .up-tip b { color: var(--text-primary); } .up-tip i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; }
.up-cdata { margin-top: 8px; } .up-cdata summary { cursor: pointer; font-size: .84rem; color: var(--primary); font-weight: 600; }
.up-cdata .pt-tblwrap { max-height: 320px; overflow: auto; } .up-cdata caption { text-align: left; font-size: .78rem; color: var(--text-light); padding: 6px 0; } .up-cdata td.num { text-align: right; font-variant-numeric: tabular-nums; }
.up-src { margin: 0; font-size: .8rem; color: var(--text-light); line-height: 1.6; } .up-src a { color: var(--primary); }

/* "How it works": neutral definition cards */
.pt-hgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; margin: .6rem 0 1rem; }
.pt-hcard { padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pt-hcard h3 { margin: 0 0 6px; font-size: .92rem; color: var(--text-primary); } .pt-how .pt-hcard p { margin: 0; font-size: .86rem; line-height: 1.6; color: var(--text-secondary); max-width: none; }

/* responsive */
@media (max-width: 1100px) { .up-row3 { grid-template-columns: 1fr 1fr; } .up-insights { grid-column: 1 / -1; } .up-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .up-bar { position: static; box-shadow: none; } .up-row2 { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .pt-tool.up.pt-tool { --up-gap: 14px; }
  .up-card, .up-explore { padding: 14px; } .up-kpi { padding: 12px 14px; min-height: 0; } .up-kv { font-size: 1.4rem; } .up-ks { display: none; }
  .up-row3 { grid-template-columns: 1fr; } .up-field, .up-seg { width: 100%; } .up-step { width: 100%; } .up-step select { flex: 1; width: auto; }
  .up-tools-r { width: 100%; } .up-search { flex: 1; min-width: 150px; } .up-search input { width: 100%; }
  .pt-head.pt-head-l.pt-head-hero { padding: 1.1rem 1rem; border-radius: 14px; } .pt-facts li { flex: 1 1 calc(50% - .6rem); }
}
/* phones: the table comes right after the filters and the four headline numbers; insights and fastest growers follow it */
@media (max-width: 760px) { .pt-tool.up > .up-top { order: 0; } .pt-tool.up > .up-bar { order: 1; } .pt-tool.up > .up-kpis { order: 2; } .pt-tool.up > .up-warn { order: 3; } .pt-tool.up > .up-explore { order: 4; } .pt-tool.up > .up-row3 { order: 5; } .pt-tool.up > .up-row2 { order: 6; } .pt-tool.up > .up-chartcard { order: 7; } .pt-tool.up > .up-src { order: 8; } }
/* the two chart switches wrap inside the card on narrow screens instead of widening the page */
.up-cctl { min-width: 0; max-width: 100%; } .up-cctl .up-seg { min-width: 0; }
@media (max-width: 600px) { .up-chead { display: block; } .up-chead .up-kl { margin-bottom: 10px; } .up-cctl { display: grid; gap: 8px; width: 100%; } .up-cctl .up-seg { width: 100%; } }

/* long indicator names must never widen the page: grid items may shrink, names truncate */
.up-row3 > * { min-width: 0; } .fc-top { min-width: 0; } .fc-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-fast, .up-fast .fc-list li { min-width: 0; } .fc-list .fc-n { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
