/* Otium app: The ETF cards: contenders, core, holdings and watchlist cards, their rings, bars, strips, tiles, pills and the dip flame. Load order: see index.html. */
.pstrip .ct { font-size: 12px; margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(250px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; }   /* at most 3 a row */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px; cursor: pointer; }
.card:hover { border-color: var(--series); }
/* Holding, watchlist and scan cards: one small vertical bar per signal */
.sigs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 10px 0 2px; text-align: center; }
.sig .sl { display: block; font-size: 11px; color: var(--text-2); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sigs.bars .sig { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.sigs.bars b { font-size: 13px; }
.vbar { width: 14px; height: 34px; border-radius: 3px; background: var(--grid); display: flex; align-items: flex-end; overflow: hidden; }
.vbar > i { display: block; width: 100%; background: var(--text-2); border-radius: 3px 3px 0 0; }
.vbar > i.best { background: var(--best); } .vbar > i.pos { background: var(--good); } .vbar > i.warn { background: var(--warn); } .vbar > i.neg { background: var(--bad); }
.sigs.bars .sl { margin: 0; }
.addwatch { padding: 0; align-self: flex-start; }
.ctop { display: flex; align-items: center; gap: 10px; } .card button.rmwatch { padding: 0 2px; font-size: 16px; line-height: 1; color: var(--text-2); }   /* ✕ on a Watchlist signals card */
.card button.rmwatch:hover { color: var(--bad); }
/* Top picks */
.picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(260px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; }   /* at most 3 a row */
.pick { display: flex; flex-direction: column; gap: 12px; min-width: 0; }   /* min-width 0 (3.7.17): a one-line name is cut, it doesn't widen the card */
.pick.first { border: 2px solid var(--best); box-shadow: 0 4px 18px -8px var(--best); }
.pick .ph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pick .rank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-bg); color: var(--text); border: 1px solid var(--border); }
.pick.first .rank { background: var(--best); color: #fff; border-color: var(--best); }
.pick .pb { display: grid; grid-template-columns: 92px 1fr; gap: 14px; align-items: center; }
.pick .rw { position: relative; width: 92px; height: 92px; }
.ring { width: 92px; height: 92px; }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--grid); }
.ring .arc { stroke: var(--text-2); stroke-linecap: round; }
.ring .arc.best { stroke: var(--best); } .ring .arc.pos { stroke: var(--good); } .ring .arc.warn { stroke: var(--warn); } .ring .arc.neg { stroke: var(--bad); }
.pick .rv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.pick .rv b { font-size: 24px; }
.pick .bars { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.pick .sb { display: grid; grid-template-columns: 1fr auto; column-gap: 8px; }
.pick .sb .meter { grid-column: 1 / -1; }
.pick .meter.thin { height: 5px; margin: 2px 0 0; }
.card .t { font-weight: 600; } .pick .t, .cph .t { font-size: 18px; line-height: 1.35; }   /* contender and prospect cards (since 3.7.15) */ .card .n { color: var(--text-2); font-size: 13px; min-height: 2.6em; }
.badge { display: inline-flex; gap: 4px; align-items: center; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border); color: var(--text-2); white-space: nowrap; }
.badge.z-best { color: var(--best); border-color: var(--best); } .badge.z-pos { color: var(--good); border-color: var(--good); }
.badge.z-warn { color: var(--warn); border-color: var(--warn); } .badge.z-neg { color: var(--bad); border-color: var(--bad); }
.meter { height: 6px; border-radius: 3px; background: var(--grid); margin: 10px 0 4px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--series); border-radius: 3px; }
.kv { display: grid; grid-template-columns: 1fr auto; font-size: 13px; color: var(--text-2); }
.kv span:nth-child(even) { color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.hz { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-size: 14px; }
.hz b { font-size: 18px; }
.meter > i.best { background: var(--best); } .meter > i.pos { background: var(--good); } .meter > i.warn { background: var(--warn); } .meter > i.neg { background: var(--bad); }
.kv .sep { border-top: 1px solid var(--border); padding-top: 4px; margin-top: 2px; }
/* diversity apart from the horizon signals: for comparing ETFs with similar scores, not part of the score */
.dstrip { margin: 10px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--accent-bg); }
.dstrip .dh { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 13px; }
.dstrip .dh > span:last-child { white-space: nowrap; } .dstrip .dh b, .dstrip .dh > span:last-child > span:first-child { font-weight: 600; }
.dstrip .meter.thin { height: 5px; margin: 6px 0 0; }
.pick .dstrip { margin: 0; }
.pick .pf { display: flex; flex-direction: column; gap: 2px; }
.pick .px { font-size: 22px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.25; }
.pick .px span { font-size: 14px; font-weight: 400; }
.own, .pick .t .own { font-weight: 400; font-size: 13px; color: var(--text-2); margin-left: 6px; white-space: nowrap; }
.own { font-size: 11px; font-weight: 600; padding: 0 6px; border: 1px solid var(--border); border-radius: 99px; margin-left: 4px; vertical-align: 1px; }
.pick .t .own { border: 0; padding: 0; font-size: 13px; font-weight: 400; margin-left: 6px; }
.pick .tags, .cph .tags { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.tags .pot { margin-left: 0; }
.pick .ph > div, .card .nt > div { min-width: 0; } .pick .t, .pick .n, .card .nt > div { overflow-wrap: anywhere; }   /* long names wrap, the turnover badge stays inside */
.card .nt { display: flex; justify-content: space-between; align-items: flex-start; gap: 6px; }
.card .nt .badge { margin-top: 2px; }
.badge.mini { font-size: 11px; padding: 0 6px; margin-top: 2px; }
.pcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }   /* together as wide as the positions table */
@media (max-width: 640px) { .pcards { grid-template-columns: 1fr; } }
.pcards .card { cursor: default; } .pcards .hz { margin-top: 0; }
/* holding and watchlist cards: price, then off peak and turnover side by side, then the year on the podium */
.cprice { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--border); padding-top: 6px; }
.cprice b { font-size: 22px; font-variant-numeric: tabular-nums; } .cprice b + span { font-size: 14px; }
.tiles { display: flex; gap: 8px; margin-top: 6px; }
.tile { flex: 1; padding: 6px 8px; border-radius: 6px; background: var(--grid); }
.tile span { display: block; font-size: 11px; color: var(--text-2); } .tile b { font-size: 14px; font-variant-numeric: tabular-nums; }
.pstrip { margin-top: 10px; padding: 8px 6px; border: 1px solid var(--border); border-radius: 8px; }
.pstrip .dh { display: flex; justify-content: space-between; align-items: baseline; gap: 4px; font-size: 12px; white-space: nowrap; } .pstrip .dh .muted { font-size: 11px; }
.pbar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; background: var(--grid); margin-top: 6px; }
.pbar i { display: block; height: 100%; } .pbar .w, .pl .w { background: var(--best); } .pbar .p, .pl .p { background: var(--good); }
.pl { display: flex; justify-content: flex-end; gap: 6px; font-size: 11px; margin-top: 3px; white-space: nowrap; }
.pl i { font-style: normal; background: none !important; } .pl i.w { color: var(--best); } .pl i.p { color: var(--good); }
/* since 2.100.0: r next to the horizon score, the dip and timing strip, the turnover badge */
.pick .rv .r { font-size: 12px; color: var(--text-2); font-weight: 500; border-bottom: 1px dotted var(--text-2); }
.hz .r { font-size: 13px; color: var(--text-2); margin-left: 6px; border-bottom: 1px dotted var(--text-2); }
.zstrip { display: flex; gap: 10px; margin: 10px 0 8px; padding: 8px 10px; border-radius: 8px; background: var(--accent-bg); }
.zstrip .zd { flex: 1; min-width: 0; }
/* entry on the ranked cards (2.137.0): an upright bar of this month's range, high at the top, low at the bottom, filled up to today */
.ebar { flex: none; display: flex; gap: 5px; border-left: 1px solid var(--border); padding-left: 8px; }
.ebar .vt { position: relative; width: 8px; min-height: 36px; border-radius: 2px; background: color-mix(in srgb, var(--ref) 35%, transparent); }
.ebar .vt s { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 2px; background: var(--text-2); }
.ebar .vt s.best { background: var(--best); } .ebar .vt s.pos { background: var(--good); } .ebar .vt s.warn { background: var(--warn); } .ebar .vt s.neg { background: var(--bad); }
.ebar .vt i { position: absolute; left: -3px; right: -3px; height: 2px; border-radius: 1px; background: var(--text); }
.ebar .vl { display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; line-height: 1.1; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ebar .et { font-size: 13px; color: var(--text); } .ebar .et b { font-weight: 600; }
/* entry on the other cards (2.138.0): a semicircle filled to the entry score, this month's high and low under its ends */
.egauge { flex: none; width: 90px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-left: 1px solid var(--border); padding-left: 8px; }
.egauge svg { display: block; }
.egauge path { fill: none; stroke-width: 7; stroke-linecap: round; }
.egauge .tk { stroke: color-mix(in srgb, var(--ref) 35%, transparent); }
.egauge .ar { stroke: var(--text-2); } .egauge .ar.best { stroke: var(--best); } .egauge .ar.pos { stroke: var(--good); } .egauge .ar.warn { stroke: var(--warn); } .egauge .ar.neg { stroke: var(--bad); }
.egauge .dot { fill: var(--text); }
.egauge .num { font-size: 17px; font-weight: 600; fill: var(--text); } .egauge .num.best { fill: var(--best); } .egauge .num.pos { fill: var(--good); } .egauge .num.warn { fill: var(--warn); } .egauge .num.neg { fill: var(--bad); }
.egauge .ends { display: flex; justify-content: space-between; gap: 4px; width: 100%; font-size: 10px; color: var(--text-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick .zstrip { margin: 0; }
.zstrip .dh { display: flex; justify-content: space-between; align-items: center; gap: 6px; font-size: 13px; }
.zstrip .dh > :last-child { white-space: nowrap; }
.zstrip .dh b { font-weight: 600; } .zstrip .dh > span:first-child { white-space: nowrap; } .zstrip .badge { font-size: 11px; padding: 1px 7px; }
.zbar { position: relative; display: flex; gap: 2px; height: 6px; margin: 7px 0 3px; }
.zbar i { display: block; height: 100%; border-radius: 2px; opacity: .28; } .zbar i.on { opacity: 1; }
.zbar i.neg { background: var(--bad); } .zbar i.warn { background: var(--warn); } .zbar i.pos { background: var(--good); } .zbar i.best { background: var(--best); }
.zbar .mk { position: absolute; top: -3px; width: 2px; height: 12px; background: var(--text); border-radius: 1px; }
.zl { display: flex; font-size: 10px; color: var(--text-2); }
.tbadge { border-radius: 6px; }
/* since 2.107.0: warnings on picks, the warning dialog and the skip list */
.warnbtn { background: none; cursor: pointer; margin-left: 4px; vertical-align: 1px; }
.warnbtn.done { color: var(--ref); border-color: var(--ref); }
/* ISIN under the name, tap to copy (since 2.163.0) */
button.isin { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; padding: 2px 0; margin: 0; font: inherit; font-size: 11px; line-height: 1.3;
  color: var(--text-2); letter-spacing: .03em; font-variant-numeric: tabular-nums; cursor: copy; }
button.isin.isinline { display: flex; } button.isin svg { opacity: .75; flex: none; }
button.isin:hover { color: var(--series); } button.isin:hover svg { opacity: 1; }
button.isin { white-space: nowrap; overflow-wrap: normal; word-break: keep-all; max-width: none; }   /* the ISIN on one line (2.165.0) */

/* card names: at most 2 lines, the rest cut off with … (full name on hover); since 2.171.0 */
.card .n .nm2 { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: normal; word-break: normal; }
/* ---------- Core and satellite (2.239.0) ---------- */
.pot { display: inline-block; font-size: 11px; font-weight: 600; line-height: 16px; padding: 0 7px; border: 1px solid; border-radius: 99px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; text-transform: uppercase; }   /* all caps since 3.5.7 */
.pot.core { color: var(--best); border-color: var(--best); } .pot.sat { color: var(--good); border-color: var(--good); }
.cph { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
/* since 3.7.16 the contender and prospect cards: rank, ticker, pill and turnover on one row, the name below on one line, cut at the edge */
.pick .ph .pot, .cph .pot { margin-left: 0; } .ph .tvb, .cph .tvb { margin-left: auto; }
.card .n.one { min-height: 0; margin: 6px 0; } .pick .n.one { margin-top: -6px; }   /* the card's 12px gap less 6: the same 6px under the ticker row as a core card (3.7.18) */ .card .n.one .nm1 { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crank { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; background: var(--accent-bg); color: var(--text); border: 1px solid var(--border); }
.crank.first { background: var(--best); color: #fff; border-color: var(--best); }
.card .cgrp { display: flex; justify-content: space-between; gap: 8px; margin: 10px 0; white-space: nowrap; }
.card .cgrp b { color: var(--text); }
.card.core .tiles + .muted.small { margin-top: 8px; }
.picks.four, .cards.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }   /* the contenders: 4, 2 or 1 a row, never 3 */
@media (max-width: 1040px) { .picks.four, .cards.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .picks.four, .cards.four { grid-template-columns: minmax(0, 1fr); } }
.pot.big { font-size: 14px; line-height: 22px; padding: 0 10px; margin-left: 2px; vertical-align: 0; }   /* the Market tables' names (3.4.7) */
.cprice > span { white-space: nowrap; } .cprice .livep { vertical-align: 1px; }   /* the core cards: next to Price, on one line (3.4.15) */
.pick .px .livep { font-size: 12px; font-weight: 600; vertical-align: 3px; }   /* the satellite cards: the same small box (3.4.15) */
.pick .livep { color: var(--good); border-color: var(--good); } .card.core .livep { color: var(--best); border-color: var(--best); }   /* the live time in its pot's pill colour (3.4.15) */
.card.core { container-type: inline-size; }
.card.core .cprice { gap: 6px; } .card.core .cprice > span:last-child { margin-left: auto; }
.card.core .cprice b { font-size: clamp(16px, 8.2cqi, 22px); } .card.core .cprice b + span { font-size: clamp(11px, 5cqi, 14px); }   /* a narrow card shrinks the price, so the row stays on one line (3.4.15) */
.flame { display: inline-block; margin-left: 8px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }   /* the dip streak (3.4.16): flame, then the days, on the text's baseline */
.flame svg { display: inline-block; width: 0.8em; height: 0.95em; margin-right: 2px; vertical-align: -0.1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linejoin: round; }
td .flame { margin-left: 4px; }
.zstrip .dpct { display: block; margin-top: 1px; }   /* the cards: the % and the streak on a line under the level (3.4.16) */
.zstrip .dpct .flame { margin-left: 6px; }
.ebar .et { display: flex; flex-direction: column; gap: 4px; line-height: 1.05; font-size: 11px; color: var(--text-2); } .ebar .et b { font-size: 18px; font-weight: 600; line-height: 1; }   /* the satellite cards: Entry above, the score under it, larger (3.4.16) */
/* the core cards (3.4.16): the same two tiles side by side, each now two halves */
.tile.pair { display: flex; padding: 0; min-width: 0; } .tile.pair > div { flex: 1 1 auto; padding: 6px 6px; min-width: 0; } .tile.pair > div + div { border-left: 1px solid var(--border); }
.tile.pair b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.pair span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 300px) { .tile.pair span { font-size: 10px; } .tile.pair b { font-size: 12.5px; } .tile.pair > div { padding: 6px 4px; } .tiles.duo { gap: 5px; } }
.tiles.duo .tile { flex: 1 1 auto; } .tiles.duo { flex-wrap: nowrap; }
.ebar .vl { align-items: center; } .ebar .et { align-items: center; }   /* the satellite cards: Entry and its score centred with the prices (3.4.16) */
.egauge .elab { margin-top: 2px; font-size: 10px; font-weight: 700; line-height: 1; color: var(--text-2); }   /* a small Entry label under the gauge (3.4.16) */
.flame.long { color: var(--text-2); }   /* a long pullback, ranked as Peak (3.4.21): the flame in grey */
.zstrip .aspeak { font-weight: 600; color: var(--text-2); white-space: nowrap; }   /* "⇄ Peak" (3.4.21) */
.zstrip .ebar { width: 74px; justify-content: center; gap: 8px; } .zstrip .ebar .vl { flex: none; }   /* the satellite cards: a steady entry column, between its natural 57px and the core cards' 90px (3.4.22) */
