:root {
  --bg: #0d0f13; --panel: #14171d; --panel2: #191d25; --line: #232834; --line2: #2e3442;
  --fg: #dfe3ea; --dim: #8a92a3; --faint: #5b6373;
  --mint: #3ecf8e; --coral: #f0616d; --green: #3ecf8e;
  --sky: #5ab4ff; --amber: #f5b942; --orchid: #c77dff;
  --font: "Söhne", "Soehne", "Inter", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { height: 100%; } body { min-height: 100%; }   /* (body grows with the page, so the pinned banner stays pinned all the way down) */
body { margin: 0; background: var(--bg); color: var(--fg); font: 14px/1.4 var(--font); font-variant-numeric: tabular-nums; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }

/* top bar */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 10px 18px;
  background: var(--glass, rgba(13, 15, 19, .82)); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.brand { font-size: 17px; letter-spacing: .01em; }
.brand b { color: var(--green); font-weight: inherit; }
.tabs { display: flex; gap: 4px; }
.tabs a { padding: 6px 12px; border-radius: var(--r-sm, 7px); color: var(--dim); border-bottom: 2px solid transparent; }
.tabs a.on { color: var(--fg); background: var(--panel2); border-bottom-color: var(--green); }
.tabs a:hover { color: var(--fg); }
.spacer { flex: 1; }
.note { color: var(--dim); font-size: 12.5px; }

/* controls */
.ctl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.grp { display: flex; align-items: center; gap: 2px; padding: 2px; border: 1px solid var(--line2); border-radius: var(--r, 9px); background: var(--panel); }
.grp > span.lab { padding: 0 8px 0 9px; color: var(--dim); font-size: 12.5px; }
.chip { padding: 5px 10px; border: 0; border-radius: var(--r-sm, 7px); background: transparent; color: var(--dim); cursor: pointer; white-space: nowrap; }
.chip:hover { color: var(--fg); }
.chip.on { background: var(--panel2); color: var(--fg); box-shadow: inset 0 0 0 1px var(--line2); }
.chip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.in { height: 32px; padding: 0 10px; border: 1px solid var(--line2); border-radius: var(--r, 9px); background: var(--panel); outline: none; }
.in:focus { border-color: var(--faint); }
.in.num { width: 64px; border: 0; background: transparent; padding: 0 6px; height: 28px; }
select.in { padding-right: 6px; }
.cap { padding: 6px 12px; border-radius: var(--r, 9px); background: rgba(62, 207, 142, .12); color: var(--green); white-space: nowrap; }
.btn { height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r, 9px); background: var(--panel); cursor: pointer; color: var(--fg); }
.btn:hover { border-color: var(--faint); }
.btn[disabled] { opacity: .5; cursor: default; }

/* setups table */
.wrap { padding: 0 18px 40px; overflow-x: auto; }
table.setups { width: 100%; border-collapse: collapse; min-width: 1080px; }
.setups th { position: sticky; top: 0; text-align: left; font-weight: inherit; font-size: 12.5px; color: var(--dim); padding: 10px 10px 8px;
  border-bottom: 1px solid var(--line); cursor: pointer; user-select: none; white-space: nowrap; background: var(--bg); }
.setups th.r, .setups td.r { text-align: right; }
.setups th.sorted { color: var(--fg); }
.setups td { padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; vertical-align: middle; }
.setups tbody tr { cursor: pointer; }
.setups tbody tr:hover { background: var(--panel); }
.rank { color: var(--faint); width: 34px; }
.sym { font-size: 15px; }
.nm { color: var(--dim); font-size: 12.5px; max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
.pat i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; }
.tf { display: inline-block; min-width: 34px; text-align: center; padding: 1px 6px; border-radius: var(--r-sm, 5px); background: var(--panel2); color: var(--dim); font-size: 12.5px; }
.conf { display: inline-flex; align-items: center; gap: 8px; }
.conf .track { width: 54px; height: 4px; border-radius: 2px; background: var(--line2); overflow: hidden; }
.conf .fill { height: 100%; background: var(--green); }
.st { font-size: 12.5px; padding: 2px 8px; border-radius: 20px; }
.st.live { color: var(--dim); box-shadow: inset 0 0 0 1px var(--line2); }
.st.up { color: var(--mint); background: rgba(62, 207, 142, .12); }
.st.dn { color: var(--coral); background: rgba(240, 97, 109, .12); }
.gauge { position: relative; width: 90px; height: 14px; }
.gauge::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--line2); }
.gauge::after { content: ""; position: absolute; left: 0; top: 2px; bottom: 2px; width: 100%; border-left: 2px solid var(--faint); border-right: 2px solid var(--faint); }
.gauge b { position: absolute; top: 3px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--fg); }
.gauge b.out { background: var(--amber); }
.dimtxt { color: var(--dim); }
svg.spark { display: block; width: 150px; height: 34px; }
.more { display: block; margin: 18px auto; }
.empty { padding: 60px 0; text-align: center; color: var(--dim); }

/* chart page */
.chartpage { display: grid; grid-template-rows: auto auto 1fr; height: 100vh; }
.stage { display: grid; grid-template-columns: 1fr 280px; min-height: 0; }
#chart { position: relative; min-width: 0; min-height: 0; }
.legend { position: absolute; left: 12px; top: 8px; z-index: 5; pointer-events: none; font-size: 13px; }
.legend .t { font-size: 15px; }
.legend .t span { color: var(--dim); font-size: 13px; margin-left: 6px; }
.legend .o { color: var(--dim); margin-top: 2px; }
.legend .o b { font-weight: inherit; color: var(--fg); margin-right: 8px; }
.side { border-left: 1px solid var(--line); overflow-y: auto; padding: 12px; }
.side h3 { margin: 4px 0 10px; font: inherit; color: var(--dim); font-size: 12.5px; }
.card { padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r, 10px); margin-bottom: 8px; cursor: pointer; background: var(--panel); }
.card:hover { border-color: var(--line2); }
.card .h { display: flex; align-items: center; gap: 8px; }
.card .h i { width: 8px; height: 8px; border-radius: 50%; }
.card .h .c { margin-left: auto; color: var(--green); }
.card .d { color: var(--dim); font-size: 12.5px; margin-top: 5px; line-height: 1.55; }
.card.off { opacity: .45; }
.livedot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); margin-right: 6px; }
.livedot.on { background: var(--green); box-shadow: 0 0 0 3px rgba(62, 207, 142, .18); }
.msg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--dim); z-index: 6; pointer-events: none; }
@media (max-width: 900px) { .stage { grid-template-columns: 1fr; } .side { display: none; } }

/* setups as a mosaic of tiles */
.mosaic { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 10px; padding-top: 14px; }
.tile { display: block; border: 1px solid var(--line); border-radius: var(--r-lg, 11px); background: var(--panel); padding: 9px 10px 8px; cursor: pointer; min-width: 0; }
.tile:hover { border-color: var(--faint); }
.tile .top { display: flex; align-items: baseline; gap: 7px; white-space: nowrap; }
.tile .top .n { color: var(--faint); font-size: 12px; }
.tile .top .s { font-size: 15px; }
.tile .top .nm { flex: 1; min-width: 0; max-width: none; }
.tile .top .p { color: var(--fg); }
.tile canvas { display: block; width: 100%; height: 150px; margin: 8px 0 8px; }
.tile .bot { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--dim); white-space: nowrap; overflow: hidden; }
.tile .bot i { flex: none; width: 8px; height: 8px; border-radius: 50%; }
.tile .bot b { font-weight: inherit; color: var(--fg); }
.tile .bot .c { color: var(--green); }
.tile .bot .sp { flex: 1; }
.tile .bot .up { color: var(--mint); } .tile .bot .dn { color: var(--coral); }
table.setups[hidden], .mosaic[hidden] { display: none; }
.tile .bot > * { flex: none; }
.tile .bot .near { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.mosaic { gap: 12px; }
.tile { padding: 11px 12px 10px; }
.tile .bot { font-size: 13.5px; color: var(--fg); }
.tile .bot .conf .track { width: 60px; }
.tile .meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 9px 10px; margin-top: 10px; padding-top: 9px; border-top: 1px solid var(--line); }
.tile .meta > div { min-width: 0; }
.tile .meta span { display: block; color: var(--faint); font-size: 11.5px; margin-bottom: 1px; }
.tile .meta b { display: block; font-weight: inherit; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .meta b.up { color: var(--mint); } .tile .meta b.dn { color: var(--coral); }
.tile .meta .gauge { width: 100%; max-width: 70px; margin-top: 3px; }
.tile .meta .gauge b { overflow: visible; }

/* nothing on a tile is cut short: text wraps instead */
.tile .full { color: var(--dim); font-size: 12.5px; margin-top: 1px; overflow-wrap: anywhere; }
.tile .top .sp { flex: 1; }
.tile .bot { flex-wrap: wrap; overflow: visible; white-space: normal; row-gap: 4px; }
.tile .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile .meta b { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.tile canvas { height: 160px; }

/* the five statuses */
.s-forming { color: var(--dim); }
.s-established { color: var(--fg); }
.s-deviating { color: var(--amber); }
.s-broke_up { color: var(--mint); }
.s-broke_down { color: var(--coral); }
.s-ended { color: var(--dim); }
.st.s-forming, .st.s-established, .st.s-ended { box-shadow: inset 0 0 0 1px var(--line2); }
.st.s-deviating { background: rgba(245, 185, 66, .12); }
.st.s-broke_up { background: rgba(62, 207, 142, .12); }
.st.s-broke_down { background: rgba(240, 97, 109, .12); }


/* support / resistance on the chart */
#heat { position: absolute; top: 0; z-index: 3; pointer-events: none; display: none; }
.card.lv { cursor: default; padding: 8px 11px; }
.card.lv .h .c { font-size: 12.5px; }
.legend { left: 64px; }

/* heat map behind the candles; volume by price down the left edge */
#chart { background: var(--bg); }
#chart > .tv-lightweight-charts { position: relative; z-index: 1; }
#heat { left: 0; z-index: 0; }
#vprof { position: absolute; left: 0; top: 0; z-index: 2; pointer-events: none; display: none; }
.legend { left: 82px; }

/* tiles: one line of details under the chart */
.tile .meta { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 0; }

/* tiles: confidence as a small tablet; one standard line of five details (the two dots match the marks on the chart) */
.mosaic { grid-template-columns: repeat(auto-fill, minmax(372px, 1fr)); }
.tile .pill { flex: none; min-width: 38px; text-align: center; padding: 2px 9px; border-radius: 999px; font-size: 13px;
  color: var(--green); background: rgba(62, 207, 142, .12); box-shadow: inset 0 0 0 1px rgba(62, 207, 142, .28); }
.tile .meta { grid-template-columns: 1.5fr 1.6fr .7fr .7fr .9fr; column-gap: 8px; }
.tile .meta b.s-broke_up, .tile .meta b.s-broke_down { white-space: nowrap; }
.tile .meta .mk { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.tile .meta .mk.touch { background: #dfe3ea; border: 1px solid var(--sky); box-sizing: content-box; width: 5px; height: 5px; }
.tile .meta .mk.dev { background: var(--amber); }

/* ================= chart page: settings column | chart and indicator panes | pattern list ================= */
.stage3 { display: grid; grid-template-columns: auto 1fr 280px; min-height: 0; }
.stack { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.stack #chart { flex: 1 1 auto; min-height: 220px; }
#panes { flex: none; }
.pane { position: relative; height: 150px; border-top: 1px solid var(--line); background: var(--bg); }
.pane .ptitle { position: absolute; left: 12px; top: 6px; z-index: 4; font-size: 12px; color: var(--dim); pointer-events: none; }
.panel { width: 272px; border-right: 1px solid var(--line); overflow-y: auto; padding: 8px 8px 24px; }
.sec { border-bottom: 1px solid var(--line); }
.sec header { display: flex; align-items: center; gap: 8px; min-height: 40px; }
.sec .exp { flex: 1; display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 4px; border: 0; background: none; color: var(--fg); text-align: left; cursor: pointer; }
.sec .exp span { flex: 1; }
.sec .exp i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.sec .exp em { font-style: normal; color: var(--faint); transition: transform .12s; }
.sec.open .exp em { transform: rotate(90deg); }
.sec .cnt { color: var(--green); font-size: 12.5px; padding-right: 6px; }
.sec .body { display: none; padding: 2px 4px 12px; }
.sec.open .body { display: block; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 32px; color: var(--dim); font-size: 13px; }
.row > span:first-child { flex: 1; min-width: 0; }
.sw { flex: none; position: relative; width: 34px; height: 19px; border-radius: 999px; border: 1px solid var(--line2); background: var(--panel2); cursor: pointer; padding: 0; }
.sw::after { content: ""; position: absolute; left: 2px; top: 2px; width: 13px; height: 13px; border-radius: 50%; background: var(--faint); transition: left .12s, background .12s; }
.sw.on { background: rgba(62, 207, 142, .2); border-color: rgba(62, 207, 142, .5); }
.sw.on::after { left: 17px; background: var(--green); }
.pn { width: 68px; height: 28px; padding: 0 7px; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); background: var(--panel); color: var(--fg); outline: none; }
.pn:focus { border-color: var(--faint); }
.pn.nw { width: 44px; }
.panel input[type="color"] { flex: none; width: 34px; height: 26px; padding: 0; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); background: var(--panel); cursor: pointer; }
.panel input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.panel input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 4px; }
.seg2 { display: inline-flex; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); overflow: hidden; }
.seg2 button { padding: 4px 9px; border: 0; background: none; color: var(--dim); cursor: pointer; font-size: 12.5px; white-space: nowrap; }
.seg2 button.on { background: var(--panel2); color: var(--fg); }
.ma { display: flex; align-items: center; gap: 6px; padding: 4px 0; }
.ma .x { margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: var(--r-sm, 6px); background: none; color: var(--faint); cursor: pointer; font-size: 16px; }
.ma .x:hover { color: var(--coral); background: var(--panel2); }
.panel .btn.add { margin-top: 8px; width: 100%; }
.panel .btn.reset { margin: 16px 4px 0; width: calc(100% - 8px); color: var(--dim); }
.legend .o + .o { margin-top: 2px; }
@media (max-width: 1100px) { .stage3 { grid-template-columns: auto 1fr; } .stage3 .side { display: none; } }
.panel { width: 304px; }
.ma .pn { width: 58px; } .ma .pn.nw { width: 40px; } .ma select.pn { width: 62px !important; padding: 0 3px; }
.ma input[type="color"] { width: 30px; }

/* the layer list on the chart: a row per layer, an eye to show or hide it (as on TradingView) */
#layers { margin-top: 6px; pointer-events: auto; display: inline-flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.lrow { display: flex; align-items: center; gap: 8px; height: 24px; padding: 0 4px 0 2px; border-radius: var(--r-sm, 5px); font-size: 13px; color: var(--fg); white-space: nowrap; }
.lrow .nm em { font-style: normal; color: var(--dim); }
.lrow .val { min-width: 0; }
.lrow.hid, .lrow.hid .nm em { color: var(--faint); }
.lrow .acts { display: inline-flex; gap: 1px; visibility: hidden; }
.lrow:hover { background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.lrow:hover .acts, .lrow.hid .acts { visibility: visible; }
.lrow.hid:not(:hover) .acts button:not([data-eye]) { display: none; }
.lrow .acts button { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: var(--r-sm, 5px); background: none; color: var(--dim); cursor: pointer; }
.lrow .acts button:hover { background: var(--panel2); color: var(--fg); }
.lrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
#layers .fold { margin-top: 3px; width: 28px; height: 20px; border: 1px solid var(--line2); border-radius: var(--r-sm, 5px); background: var(--panel); color: var(--dim); cursor: pointer; line-height: 1; padding: 0; }
#layers .fold:hover { color: var(--fg); }

.pane { height: clamp(96px, 16vh, 170px); }

/* settings column: each layer's details and current value sit beside its toggle (nothing is written on the chart) */
.sec .exp .ttl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sec .exp .sub { color: var(--dim); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sec header .val, .ma .val { flex: none; font-size: 12.5px; font-family: var(--num, inherit); }
.sec header { min-height: 48px; }
.ma .val { min-width: 44px; text-align: right; margin-left: auto; }
.ma .x { margin-left: 0; }
.panel { width: 330px; }

/* ================= ONE GLASS BANNER on every page: brand, pages, search, then icons that open drop-downs ================= */
.glassbar { position: sticky; top: 10px; z-index: 40; display: flex; align-items: center; gap: 8px; min-height: 54px; margin: 10px 14px 6px; padding: 7px 12px 7px 16px;
  border-radius: calc(var(--r-lg, 11px) + 6px); border: 1px solid rgba(255, 255, 255, .09);
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)), var(--glass, rgba(17, 21, 28, .7));
  -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
  box-shadow: 0 10px 34px rgba(0, 0, 0, .34), inset 0 1px 0 rgba(255, 255, 255, .10); }
[data-theme="paper"] .glassbar, [data-theme="swiss"] .glassbar { border-color: rgba(0, 0, 0, .10); box-shadow: 0 8px 26px rgba(0, 0, 0, .10), inset 0 1px 0 rgba(255, 255, 255, .7); }
.glassbar .brand { font-size: 17px; margin-right: 6px; white-space: nowrap; }
.glassbar .tabs { gap: 2px; margin-right: 6px; }
.glassbar .tabs a { padding: 6px 11px; border-radius: 999px; border-bottom: 0; white-space: nowrap; }
.glassbar .tabs a.on { background: rgba(255, 255, 255, .09); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .10); border-bottom: 0; }
.glassbar svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.gsearch { display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px; min-width: 150px; flex: 0 1 250px; border-radius: 999px; color: var(--dim);
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); cursor: text; }
.gsearch:focus-within { box-shadow: inset 0 0 0 1px var(--green); color: var(--fg); }
.gsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--fg); }
.gsearch input::placeholder { color: var(--faint); }
.gsep { width: 1px; align-self: stretch; margin: 6px 4px; background: rgba(255, 255, 255, .09); }
.ib { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px; border: 0; border-radius: 999px; background: none; color: var(--dim); cursor: pointer; white-space: nowrap; font: inherit; }
.ib:hover, .dd.open > .ib { background: rgba(255, 255, 255, .08); color: var(--fg); }
.ib .lbl { color: var(--fg); }
.ib .lbl em { font-style: normal; color: var(--green); margin-left: 4px; }
.ib .chev { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.ib.icononly { width: 36px; padding: 0; justify-content: center; }
.ib[disabled] { opacity: .45; cursor: default; }
.ib.idle { opacity: .5; }   /* a control that has no effect with the current choices (e.g. intraday hours on D/W/M) */
.dd { position: relative; }
.pop { display: none; position: absolute; left: 0; top: calc(100% + 10px); z-index: 50; min-width: 230px; padding: 12px; border-radius: calc(var(--r-lg, 11px) + 2px);
  border: 1px solid rgba(255, 255, 255, .10); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--panel);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.pop.wide { min-width: 300px; }
.dd.open > .pop { display: block; }
.pop h5 { margin: 0 0 9px; font: inherit; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pop h5 .muted { text-transform: none; letter-spacing: 0; }
.pop .subh { flex-basis: 100%; margin: 10px 0 4px; font: inherit; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.pop .opts { display: grid; gap: 3px; }
.pop .opts.two { grid-template-columns: 1fr 1fr; }
.pop .opts.row2 { grid-template-columns: 1fr 1fr; }
.pop .chip { display: flex; align-items: center; gap: 9px; width: 100%; padding: 8px 10px; border-radius: var(--r, 9px); text-align: left; color: var(--dim); }
.pop .chip:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
.pop .chip.on { background: rgba(255, 255, 255, .09); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.pop .chip i { margin: 0; }
.pop .chip b { font-weight: inherit; min-width: 30px; color: var(--fg); }
.pop .chip em { font-style: normal; margin-left: auto; color: var(--faint); font-size: 12px; }
.pop .chip.on::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 8px; flex: none; }
.pop .chip em + .none, .pop .chip.on em { margin-left: auto; }
.pop .chip.on em + * { margin-left: 8px; }
.cards { display: grid; grid-template-columns: repeat(3, 118px); gap: 8px; }
.pcard { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border: 1px solid rgba(255, 255, 255, .09); border-radius: var(--r, 9px); background: rgba(255, 255, 255, .03);
  color: var(--dim); cursor: pointer; font: inherit; text-align: left; opacity: .55; }
.pcard svg { width: 96px; height: 48px; stroke: var(--c); stroke-width: 1.6; }
.pcard svg .px { stroke: var(--dim); stroke-width: 1.1; }
.pcard b { font-weight: inherit; color: var(--fg); }
.pcard em { font-style: normal; font-size: 12px; color: var(--faint); }
.pcard:hover { opacity: .85; }
.pcard.on { opacity: 1; border-color: var(--c); background: rgba(255, 255, 255, .06); box-shadow: 0 0 0 1px var(--c) inset; }
.frow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 38px; color: var(--dim); }
.frow .in { height: 30px; border-radius: var(--r-sm, 7px); border: 1px solid var(--line2); background: var(--panel2); }
.frow .in.num { width: 74px; padding: 0 8px; }
.frow select.in { max-width: 170px; }
.pop input[type="range"] { width: 100%; accent-color: var(--green); margin: 0 0 8px; }
.quick { display: flex; gap: 4px; margin: 0 0 8px; }
.quick button { flex: 1; padding: 5px 0; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); background: none; color: var(--dim); cursor: pointer; font: inherit; font-size: 12.5px; }
.quick button.on { background: rgba(62, 207, 142, .14); border-color: var(--green); color: var(--fg); }
.glassbar .cap { white-space: nowrap; border-radius: 999px; padding: 6px 13px; }
.glassbar .note { white-space: nowrap; }
.wrap { padding-top: 4px; }
.setups th { top: 74px; }
.chartpage { grid-template-rows: auto 1fr; }
.chartpage .glassbar { position: relative; top: 0; margin-bottom: 10px; }
.chartpage .stage3 { border-top: 1px solid var(--line); }
@media (max-width: 1250px) { .glassbar { flex-wrap: wrap; } .glassbar .note { display: none; } }
@media (max-width: 760px) { .cards { grid-template-columns: 1fr; } .glassbar .tabs a { padding: 6px 8px; } }

/* the market clock in the banner */
.mkt { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 13px; border-radius: 999px; white-space: nowrap; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mkt:empty { display: none; }
.mkt i { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.mkt b { font-weight: inherit; color: var(--fg); }
.mkt span { color: var(--dim); font-family: var(--num, inherit); font-variant-numeric: tabular-nums; }
.mkt.open i { background: var(--mint); box-shadow: 0 0 0 4px rgba(62, 207, 142, .18); }
.mkt.pre i, .mkt.after i { background: var(--amber); box-shadow: 0 0 0 4px rgba(245, 185, 66, .16); }
.glassbar .note:empty { display: none; }
.pop .opts.scroll { max-height: 360px; overflow-y: auto; min-width: 250px; }
.tile .top .chg { font-size: 12.5px; color: var(--dim); font-family: var(--num, inherit); }
.tile .top .chg.up { color: var(--mint); } .tile .top .chg.dn { color: var(--coral); }
@media (max-width: 1250px) { .mkt span { display: none; } }

/* a price that has just changed glows for a moment */
@keyframes tick { from { text-shadow: 0 0 10px var(--green); } to { text-shadow: none; } }
.tile .top .p.tick { animation: tick .9s ease-out; }

.tile .top .tf { align-self: center; font-size: 11.5px; min-width: 0; padding: 1px 7px; border-radius: 999px; }

/* ================= chart page: a thin rail of icons on the left (each icon is that layer's switch; its arrow, or a
   right-click, opens the layer's options in a panel OVER the chart - the chart never moves) ================= */
.rail { width: 50px; padding: 8px 0 12px; border-right: 1px solid var(--line); display: flex; flex-direction: column; align-items: center; gap: 2px; overflow-y: auto; overflow-x: hidden; }
.rail .rsep { width: 26px; height: 1px; margin: 6px 0; background: var(--line2); flex: none; }
.ri { position: relative; width: 40px; height: 36px; flex: none; }
.ri .rb { width: 36px; height: 36px; padding: 0; border: 0; border-radius: var(--r, 9px); background: none; color: var(--faint); cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ri .rb svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.ri .rb:hover { background: rgba(255, 255, 255, .07); color: var(--fg); }
.ri.on .rb { color: var(--c, var(--fg)); }
.ri.on .rb::after { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--c, var(--green)); }
.ri.open .rb { background: rgba(255, 255, 255, .10); }
.ri .rc { position: absolute; right: -3px; top: 10px; width: 13px; height: 16px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--faint); font-size: 9px; line-height: 16px; cursor: pointer; opacity: 0; }
.ri:hover .rc, .ri.open .rc { opacity: 1; }
.ri .rc:hover { color: var(--fg); background: rgba(255, 255, 255, .12); }
.stack { position: relative; }
.fly { display: none; position: absolute; left: 8px; top: 8px; z-index: 30; width: 318px; max-height: calc(100% - 16px); overflow-y: auto; padding: 4px 12px 10px;
  border: 1px solid rgba(255, 255, 255, .10); border-right: 1px solid rgba(255, 255, 255, .10); border-radius: calc(var(--r-lg, 11px) + 2px);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--panel);
  -webkit-backdrop-filter: blur(22px) saturate(1.5); backdrop-filter: blur(22px) saturate(1.5); box-shadow: 0 18px 48px rgba(0, 0, 0, .45); }
.fly .sec { border-bottom: 0; }
.fly .sec .exp { cursor: default; }
.fly .sec .exp em { display: none; }
.fly .sec header { border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.stage3 { grid-template-columns: auto 1fr 280px; }

/* a layer's options: one panel in the middle of the chart, with everything behind it greyed out */
#veil { display: none; position: absolute; inset: 0; z-index: 28; background: rgba(8, 10, 14, .5); -webkit-backdrop-filter: grayscale(1) blur(1.5px); backdrop-filter: grayscale(1) blur(1.5px); }
.fly { left: 50%; top: 46%; transform: translate(-50%, -50%); width: min(430px, calc(100% - 32px)); max-height: calc(100% - 40px); padding: 8px 18px 14px; z-index: 30; }
.fly .sec header { min-height: 56px; padding-right: 30px; }
.fly .sec .exp .ttl { font-size: 16px; }
.fly .sec .exp .sub { font-size: 12.5px; }
.fly .row { min-height: 40px; font-size: 14px; }
.flyx { position: absolute; right: 10px; top: 12px; width: 28px; height: 28px; border: 0; border-radius: var(--r-sm, 7px); background: none; color: var(--dim); font-size: 19px; line-height: 1; cursor: pointer; }
.flyx:hover { background: rgba(255, 255, 255, .08); color: var(--fg); }
.flyfoot { display: flex; justify-content: flex-end; padding-top: 10px; margin-top: 6px; border-top: 1px solid var(--line); }
.flyfoot .btn { height: 34px; padding: 0 18px; border-radius: var(--r, 9px); }

/* switches: a tablet-shaped slider, not a round dot */
.sw { width: 40px; height: 22px; border-radius: 7px; }
.sw::after { left: 3px; top: 3px; width: 16px; height: 14px; border-radius: 4px; }
.sw.on::after { left: 19px; }

/* options: candle colour sets, saved designs */
.row.col { flex-direction: column; align-items: stretch; gap: 6px; padding: 6px 0; }
.csets { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; }
.csets button { display: flex; height: 30px; padding: 0; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); overflow: hidden; cursor: pointer; background: none; }
.csets button:hover { border-color: var(--fg); }
.csets i { flex: 1; }
.psave { display: flex; gap: 8px; padding: 6px 0 10px; }
.psave .pn { flex: 1; width: auto; height: 34px; }
.psave .btn, .prow .btn { height: 34px; padding: 0 14px; border-radius: var(--r, 9px); }
.prow { display: flex; align-items: center; gap: 8px; min-height: 42px; border-top: 1px solid var(--line); }
.prow span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.prow .x { width: 28px; height: 28px; border: 0; border-radius: var(--r-sm, 7px); background: none; color: var(--faint); cursor: pointer; font-size: 17px; }
.prow .x:hover { color: var(--coral); background: rgba(255, 255, 255, .06); }
.fly .seg2 button { padding: 5px 10px; }

/* drop-downs in the app's own style (the browser's own list is never used) */
.cs { position: relative; display: inline-block; }
.csb { display: inline-flex; align-items: center; gap: 9px; height: 30px; padding: 0 11px; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); background: var(--panel2); color: var(--fg); cursor: pointer; font: inherit; font-size: 13px; white-space: nowrap; }
.csb i { width: 6px; height: 6px; border-right: 1.5px solid var(--dim); border-bottom: 1.5px solid var(--dim); transform: rotate(45deg) translateY(-2px); }
.csb:hover, .cs.open .csb { border-color: var(--faint); }
.csm { display: none; position: absolute; right: 0; top: calc(100% + 6px); z-index: 70; min-width: 100%; padding: 5px; border-radius: var(--r, 9px); border: 1px solid rgba(255, 255, 255, .10);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--panel); box-shadow: 0 14px 36px rgba(0, 0, 0, .5); }
.cs.open .csm { display: grid; gap: 2px; }
.csm button { padding: 7px 10px; border: 0; border-radius: var(--r-sm, 7px); background: none; color: var(--dim); text-align: left; white-space: nowrap; cursor: pointer; font: inherit; font-size: 13px; }
.csm button:hover { background: rgba(255, 255, 255, .07); color: var(--fg); }
.csm button.on { background: rgba(255, 255, 255, .10); color: var(--fg); }
.fly { overflow: visible; }

/* a layer's options, structured: ready-made settings, a small picture, then groups under headings */
.fly { width: min(480px, calc(100% - 32px)); overflow-y: auto; }
.fly h6 { margin: 0 0 7px; font: inherit; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.fly h6.grp-h { margin: 14px 0 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.pre { padding: 8px 0 2px; }
.pre h6 + .pchips { margin-bottom: 12px; }
.pchips { display: flex; flex-wrap: wrap; gap: 6px; }
.pch { display: inline-flex; align-items: center; border: 1px solid var(--line2); border-radius: 999px; background: rgba(255, 255, 255, .03); overflow: hidden; }
.pch button { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border: 0; background: none; color: var(--dim); cursor: pointer; font: inherit; font-size: 12.5px; white-space: nowrap; }
.pch button:hover { color: var(--fg); }
.pch.on { border-color: var(--green); background: rgba(62, 207, 142, .12); }
.pch.on button { color: var(--fg); }
.pch .px { padding: 5px 9px 5px 2px; color: var(--faint); }
.pch .two { display: inline-flex; width: 22px; height: 12px; border-radius: 3px; overflow: hidden; }
.pch .two i { flex: 1; }
.pchips .none { color: var(--faint); font-size: 12.5px; }
.pre .psave { padding: 0 0 4px; }
.pv { margin: 12px 0 0; padding: 8px 10px 6px; border: 1px solid var(--line); border-radius: var(--r, 9px); background: var(--bg); color: var(--dim); }
.pv svg { display: block; width: 100%; height: 56px; }
.pv small { display: block; text-align: center; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.mx { display: grid; grid-template-columns: 1fr 64px 64px; align-items: center; gap: 8px 10px; padding: 6px 0 2px; color: var(--dim); font-size: 14px; }
.mx em { font-style: normal; font-size: 12px; color: var(--faint); text-align: center; }
.mx input[type="color"] { justify-self: center; }

/* ready-made settings as a grid of same-sized buttons; the user's own, and the save box, at the foot */
.pgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.pgrid .pch { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 46px; padding: 7px 6px; border: 1px solid var(--line2); border-radius: var(--r, 9px);
  background: rgba(255, 255, 255, .03); color: var(--dim); cursor: pointer; font: inherit; font-size: 12.5px; text-align: center; line-height: 1.25; overflow: visible; }
.pgrid .pch > span { overflow-wrap: anywhere; }
.pgrid .pch:hover { color: var(--fg); border-color: var(--faint); }
.pgrid .pch.on { color: var(--fg); border-color: var(--green); background: rgba(62, 207, 142, .12); }
.pgrid.pics .pch { min-height: 72px; }
.pgrid .pch svg { width: 54px; height: 26px; }
.pgrid .pch.own { position: relative; padding: 0; }
.pgrid .pch.own > button:first-child { flex: 1; width: 100%; padding: 7px 20px 7px 8px; border: 0; background: none; color: inherit; cursor: pointer; font: inherit; }
.pgrid .pch.own .px { position: absolute; right: 2px; top: 2px; padding: 2px 5px; border: 0; background: none; color: var(--faint); cursor: pointer; font-size: 14px; }
.pgrid .pch.own .px:hover { color: var(--coral); }
.fly .none { color: var(--faint); font-size: 12.5px; padding: 2px 0 4px; }
.fly .psave { padding: 10px 0 2px; }
.pv.tall svg { height: 130px; }
.pv svg { height: 60px; }

/* options with a picture: on the left the large picture (held in view), the ready-made settings and the user's own;
   on the right the detailed settings - two columns of about the same height, so no space is left empty */
.fly.wide { width: min(1040px, calc(100% - 32px)); }
.split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 26px; align-items: start; padding-top: 8px; }
.split .big, .split .opts { min-width: 0; }
.split .pic { position: sticky; top: 0; z-index: 3; padding: 2px 0 4px; background: var(--panel); }
.split .pic h6 { margin: 0 0 8px; }
.split .pic .pv { margin: 0; padding: 10px; }
.split .pic .pv svg, .split .pic .pv.tall svg { width: 100%; height: auto; }
.split .big .pre { padding-top: 12px; }
.split .opts > h6.grp-h:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
@media (max-width: 1000px) {                      /* a narrow window: one column, the picture on top and still held in view */
  .split { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .split .big { display: contents; }
  .split .pic .pv.tall svg { max-height: 34vh; }
  .split .opts { order: 2; } .split .big > .pre { order: 1; } .split .big > :not(.pic):not(.pre) { order: 3; }
  .split .opts > h6.grp-h:first-child { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
}

/* the picture in every options panel: a sharp board at its exact size, with a key underneath */
.split .pic .pv { margin: 0; padding: 0; border: 0; background: none; color: var(--dim); }
.pv .board { border: 1px solid var(--line2); border-radius: var(--r, 9px); overflow: hidden; line-height: 0; }
.split .pic .pv .board svg { display: block; width: auto; height: auto; max-width: 100%; }
.pv .keys { display: flex; flex-wrap: wrap; gap: 4px 16px; padding: 8px 2px 0; font-size: 12px; color: var(--dim); line-height: 1.3; }
.pv .keys span { display: inline-flex; align-items: center; gap: 7px; }
.pv .keys svg { width: 34px; height: 8px; flex: none; }
@media (max-width: 1000px) { .split .pic .pv .board svg { max-height: none; } }

.split .pic .pv .keys svg { width: 34px; height: 8px; flex: none; }
.split .opts > .pre:first-child { padding-top: 0; }
@media (max-width: 1000px) { .split .opts > .pre { order: 0; } }

/* the order of the layers: a list, the front of the chart at the top; rows can be dragged or moved with their arrows */
.fly .hint { margin: 10px 0 12px; font-size: 13px; line-height: 1.45; color: var(--dim); }
.ord { display: flex; flex-direction: column; gap: 6px; }
.orow { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 8px 0 10px; border: 1px solid var(--line2); border-radius: var(--r, 9px); background: rgba(255, 255, 255, .03); cursor: grab; font-size: 14px; }
.orow .grip { color: var(--faint); letter-spacing: -2px; font-size: 13px; }
.orow svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--dim); stroke-width: 1.45; stroke-linecap: round; stroke-linejoin: round; }
.orow .on { flex: 1; min-width: 0; color: var(--fg); }
.orow em { font-style: normal; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.orow .ob { width: 28px; height: 26px; padding: 0; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px); background: none; color: var(--dim); font-size: 10px; cursor: pointer; }
.orow .ob:hover:not(:disabled) { color: var(--fg); border-color: var(--faint); }
.orow .ob:disabled { opacity: .3; cursor: default; }
.orow.over { border-color: var(--green); background: rgba(62, 207, 142, .10); }
.orow.drag { opacity: .5; }

/* the ready-made candle sets: two rows in view, the rest by scrolling inside the box */
.pgrid.pics { max-height: 162px; overflow-y: auto; padding-right: 6px; scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
.pgrid.pics::-webkit-scrollbar { width: 8px; }
.pgrid.pics::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; }
.pgrid.pics::-webkit-scrollbar-thumb:hover { background: var(--faint); }

.pv h6.pvcap { margin: 0 0 6px; }
.pv .keys + h6.pvcap { margin-top: 12px; }

.fly .ma { flex-wrap: wrap; row-gap: 6px; }
.fly .ma .cs .csb { min-width: 0; padding: 0 8px; height: 28px; font-size: 12.5px; }
.fly .ma { flex-wrap: nowrap; }
.fly .ma .val { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: right; }
.fly .ma .x { flex: none; }

.flyfoot { justify-content: space-between; align-items: center; gap: 12px; }
.flyfoot .btn.quiet { border-color: transparent; background: none; color: var(--dim); padding: 0 10px; }
.flyfoot .btn.quiet:hover { color: var(--fg); background: rgba(255, 255, 255, .06); }
/* the foot of an options panel (reset, Done) stays in view while a long panel scrolls */
.fly .flyfoot { position: sticky; bottom: -14px; z-index: 4; padding-bottom: 14px; margin-bottom: -14px; background: var(--panel); }

/* a moving average's second line: which price, and its shift */
.fly .ma2 { display: flex; align-items: center; gap: 8px; margin: -2px 0 10px 54px; font-size: 12.5px; color: var(--dim); }
.fly .ma2 .cs .csb { height: 28px; padding: 0 8px; font-size: 12.5px; }
.fly .ma2 .pn { width: 62px; }
/* a pane's top edge can be dragged */
.pane .pgrab { position: absolute; left: 0; right: 0; top: -3px; height: 7px; z-index: 6; cursor: row-resize; }
.pane .pgrab:hover, body.resizing .pane .pgrab { background: rgba(120, 160, 255, .28); }
body.resizing { cursor: row-resize; user-select: none; }

/* a setting that does nothing with the current choice: faded, but still there to set */
.fly .faded { opacity: .36; transition: opacity .15s; }
.fly .faded:hover, .fly .faded:focus-within { opacity: .8; }

.pv .board svg { cursor: crosshair; }

/* ---------------------------------------------------------------- time frame: the first button of the settings rail */
.stage3, .lstage { position: relative; }
.ri .rb.tfb { width: 36px; font: 600 12.5px var(--num, inherit); color: var(--fg); letter-spacing: .02em; }
.tfpop { left: 54px; top: 6px; z-index: 60; }
.tfpop.show { display: block; }

/* ---------------------------------------------------------------- a chart inside a layout frame (/chart?slot=...)
   just the chart: the banner, settings rail, panel, time frames and search belong to the layout page */
.embed .chartpage { grid-template-rows: 1fr; }
.embed .chartpage .glassbar { display: none; }
.embed .stage3 { grid-template-columns: 1fr; border-top: 0; }
.embed .stage3 .side { display: none; }

/* ---------------------------------------------------------------- the layout page (/charts): edge to edge, thin gaps */
.layoutpage { display: grid; grid-template-rows: auto 1fr; height: 100vh; }
.layoutpage .glassbar { position: relative; top: 0; margin: 6px 8px; min-height: 44px; padding: 4px 10px 4px 14px; }
.lstage { display: grid; grid-template-columns: auto 1fr; min-height: 0; border-top: 1px solid var(--line); }
.lwrap { position: relative; min-width: 0; min-height: 0; display: flex; }
#grid { flex: 1; min-width: 0; min-height: 0; display: flex; background: var(--line); }
.lnode { display: flex; min-width: 0; min-height: 0; flex: 1 1 0; }
.lnode.lr { flex-direction: row; } .lnode.lc { flex-direction: column; }
.lcell { position: relative; flex: 1 1 0; min-width: 0; min-height: 0; overflow: hidden; background: var(--bg); }
.lcell iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
/* the charts: a fixed layer of frames, each moved over its place in the grid (never reloaded by grid changes) */
#frames { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.lframe { position: absolute; left: 0; top: 0; overflow: hidden; background: var(--bg); pointer-events: auto; will-change: transform; contain: strict; }
.lframe iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.lframe.active::after { content: ""; position: absolute; inset: 0; border: 2px solid rgba(214, 220, 231, .62); pointer-events: none; z-index: 2; }   /* the selected chart: a clear grey frame */
.lframe.active .lacts { display: flex; }
.lwrap > #veil, .lwrap > .fly { z-index: 30; }
.lwrap > #veil { z-index: 28; }
.lsplit { flex: 0 0 3px; position: relative; z-index: 3; background: var(--line); }
.lsplit::before { content: ""; position: absolute; inset: 0 -4px; }      /* a wider grip than the visible gap */
.lc > .lsplit::before { inset: -4px 0; }
.lr > .lsplit { cursor: col-resize; } .lc > .lsplit { cursor: row-resize; }
.lsplit:hover, .dragging .lsplit.live { background: var(--green, #5cc28c); }
.dragging iframe { pointer-events: none; }                       /* the frames would swallow the drag */
.dragging { user-select: none; }
/* the selected chart's own buttons: split it right / down, close it - in the empty corner under its price axis */
.lacts { position: absolute; right: 2px; bottom: 2px; z-index: 4; display: none; gap: 1px; }
.lcell.active .lacts { display: flex; }
.lacts button { width: 22px; height: 22px; padding: 0; border: 0; border-radius: 5px; background: var(--panel2); color: var(--dim); cursor: pointer; display: grid; place-items: center; }
.lacts button:hover { color: var(--fg); background: var(--line2); }
.lacts svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
/* drawing a grid: hover to choose rows x columns */
.gpick { display: grid; grid-template-columns: repeat(6, 26px); gap: 4px; margin: 2px 0 6px; }
.gpick i { height: 20px; border: 1px solid var(--line2); border-radius: 4px; cursor: pointer; }
.gpick i.on { background: color-mix(in srgb, var(--green, #5cc28c) 35%, transparent); border-color: var(--green, #5cc28c); }
.gsize { font-size: 12.5px; color: var(--dim); margin-bottom: 10px; }
.tpls { display: grid; grid-template-columns: repeat(4, 56px); gap: 6px; }
.tpl { height: 38px; padding: 3px; border: 1px solid var(--line2); border-radius: 6px; background: transparent; cursor: pointer; display: flex; }
.tpl .lnode, .tpl .lcell { border-radius: 2px; }
.tpl #x, .tpl .lcell { background: var(--faint); opacity: .55; }
.tpl:hover .lcell { opacity: .85; }
.tpl .lsplit { flex-basis: 2px; background: transparent; cursor: inherit; }
.tpl .lsplit::before { display: none; }
.links { display: grid; gap: 2px; }
.links label { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 6px 0; font-size: 13px; color: var(--fg); cursor: pointer; }
.links label small { display: block; color: var(--dim); font-size: 11.5px; }
.links input { width: 34px; height: 20px; accent-color: var(--green, #5cc28c); }
.lsave { display: flex; gap: 6px; margin-bottom: 10px; }
.lsave input { flex: 1; min-width: 0; }
.lrow { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 13px; }
.lrow span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrow em { font-style: normal; color: var(--faint); font-size: 11.5px; }
.lrow.on span { color: var(--green, #5cc28c); }
.pop .hint { margin: 10px 0; font-size: 12.5px; line-height: 1.45; color: var(--dim); max-width: 300px; }
.pop .lrow .btn { height: 28px; padding: 0 10px; }
.pop .lrow .x { width: 26px; height: 26px; border: 0; border-radius: var(--r-sm, 7px); background: none; color: var(--faint); cursor: pointer; font-size: 17px; }
.pop .lrow .x:hover { color: var(--fg); }
.ib .lnk { display: inline-flex; gap: 3px; margin-left: 5px; }
.ib .lnk b { font: 600 10.5px var(--num, inherit); padding: 1px 4px; border-radius: 4px; background: color-mix(in srgb, var(--green, #5cc28c) 22%, transparent); color: var(--green, #5cc28c); }
/* the Link menu: a switch per link, and a small map of the grid to pick which charts share it */
.links { gap: 0; min-width: 300px; }
.lk { padding: 9px 0; border-top: 1px solid var(--line); }
.lk:first-child { border-top: 0; }
.lkh { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 13px; color: var(--fg); }
.lkh small { display: block; color: var(--dim); font-size: 11.5px; }
.lmap { display: flex; height: 92px; margin: 8px 0 6px; padding: 3px; border-radius: 7px; background: var(--line); }
.lmap .lsplit { flex-basis: 3px; cursor: default; background: transparent; }
.lmap .lsplit::before { display: none; }
.lcell.mc { display: grid; place-items: center; cursor: pointer; border-radius: 4px; background: var(--panel); color: var(--faint); font: 11px var(--num, inherit); text-align: center; padding: 2px; transition: background .12s; }
.lcell.mc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.lcell.mc.on { background: color-mix(in srgb, var(--green, #5cc28c) 26%, var(--panel)); color: var(--fg); }
.lcell.mc.sel { box-shadow: inset 0 0 0 1px var(--fg); }
.lcell.mc:hover { filter: brightness(1.2); }
.lmapf { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--dim); }
.lmapf span { flex: 1; }
.lmapf .btn { height: 24px; padding: 0 9px; font-size: 12px; }
/* the market clock never squeezes (it used to spill out of its pill); click it for what refreshes how often */
.mkt { flex: none; cursor: pointer; }
.mktdd { position: relative; flex: none; }
.mktdd > .pop { left: auto; right: 0; min-width: 360px; cursor: default; }
.rates { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; font-size: 12.5px; }
.rates span { color: var(--dim); } .rates b { font-weight: 500; color: var(--fg); text-align: right; font-family: var(--num, inherit); font-variant-numeric: tabular-nums; }
.rates .ok { color: var(--mint, #3ecf8e); } .rates .bad { color: var(--amber, #f5b942); }

/* cleaner menus (user 2026-12-01: no explanatory snippets) */
.gpick { grid-template-columns: repeat(4, 30px); }
.gpick i { height: 22px; }
.gsize { min-height: 16px; margin: 0 0 8px; }
.pop .even { margin-top: 10px; width: 100%; }
.pop .lsh { margin-top: 14px; }
.lsave.files { margin: 10px 0 0; }
.lsave.files .btn { flex: 1; height: 28px; font-size: 12.5px; }
#llist:empty { display: none; }
.lkh { font-size: 13.5px; }
.lmapf { justify-content: flex-end; }
.ib.lit svg { color: var(--green, #5cc28c); stroke: var(--green, #5cc28c); }
.tfpop h5 + .opts { margin-bottom: 10px; }
.tfpop .opts.idle { opacity: .45; }

/* hover notes: the app's own small panel (ui.js), not the browser's grey box */
.tip { position: fixed; left: 0; top: 0; z-index: 1000; max-width: 280px; padding: 6px 9px; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px);
  background: var(--panel2); color: var(--fg); font: 12.5px/1.4 var(--font); box-shadow: 0 6px 20px rgba(0, 0, 0, .35);
  pointer-events: none; opacity: 0; visibility: hidden; transform: translateY(2px); transition: opacity .12s ease, transform .12s ease, visibility 0s linear .12s; }
.tip.show { opacity: 1; visibility: visible; transform: none; transition: opacity .12s ease, transform .12s ease; }

/* ================= POLISH (2026-12-01): one set of controls, one height, everything on the same lines ================= */
/* switches: a smooth pill with a round knob that slides; green when on */
.sw { width: 34px; height: 20px; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--fg) 14%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--fg) 6%, transparent); transition: background .18s ease, box-shadow .18s ease; vertical-align: middle; }
.sw::after { left: 3px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--fg) 72%, transparent);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .18s cubic-bezier(.3, .7, .4, 1), background .18s ease; }
.sw:hover { background: color-mix(in srgb, var(--fg) 20%, transparent); }
.sw.on { background: var(--green); box-shadow: none; }
.sw.on:hover { background: color-mix(in srgb, var(--green) 88%, #fff); }
.sw.on::after { left: 3px; transform: translateX(14px); background: #fff; }
/* keyboard focus: one quiet ring everywhere (never on a mouse click) */
:focus { outline: none; }
:focus-visible { outline: 2px solid color-mix(in srgb, var(--green) 70%, transparent); outline-offset: 2px; }
.in:focus-visible, .pn:focus-visible, .gsearch input:focus-visible { outline: none; }
/* every small control in a settings panel is 28px tall, so rows line up */
.fly .row { gap: 12px; }
.fly .pn, .fly .csb, .fly .ma .cs .csb, .fly .ma2 .cs .csb { height: 28px; }
.fly .seg2 { height: 28px; align-items: stretch; }
.fly .seg2 button { display: inline-flex; align-items: center; padding: 0 10px; }
.fly .seg2 button + button { box-shadow: inset 1px 0 0 var(--line2); }
.fly input[type="color"] { width: 34px; height: 28px; }
.pn { text-align: right; font-variant-numeric: tabular-nums; }
.psave .pn, .lsave .in { text-align: left; }
.pn::-webkit-inner-spin-button, .in.num::-webkit-inner-spin-button { opacity: .35; }
/* headings in panels and menus: one style */
.fly h6, .pop h5 { font-size: 11px; font-weight: 500; letter-spacing: .09em; color: var(--faint); }
/* thin scrollbars in the app's colours */
* { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line2); border-radius: 8px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--faint); }
/* menus: the same inner spacing; a switch row and a choice row the same height */
.pop { padding: 12px 14px; }
.lk { padding: 8px 0; }
.lkh { min-height: 28px; }
.lkh > span { line-height: 1.3; }
.lmapf { margin-top: 2px; }
.lmapf .btn { height: 24px; border-radius: 999px; }
.lsave .in, .lsave .btn { height: 32px; }
.pop .btn.even, .lsave.files .btn { height: 32px; border-radius: var(--r, 9px); }
/* the banner: every item keeps its size; on narrower screens the drop-downs show just their icon and current choice */
.glassbar > * { flex: none; }
.glassbar > .gsearch { flex: 0 1 250px; }
.glassbar > .spacer { flex: 1 1 0; min-width: 4px; }
.ib.icononly { flex: none; }
@media (max-width: 1840px) {
  .glassbar:has(#cap) .dd > .ib { gap: 6px; padding: 0 9px; }
  .glassbar:has(#cap) .dd > .ib .chev { display: none; }
  .glassbar:has(#cap) .dd > .ib .lbl:has(em) { font-size: 0; }
  .glassbar:has(#cap) .dd > .ib .lbl:has(em) em { font-size: 14px; margin-left: 0; color: var(--fg); }
}
@media (max-width: 1700px) { #banner .gsearch { flex-basis: 190px; } }
@media (max-width: 1350px) { .glassbar { flex-wrap: wrap; row-gap: 4px; } }
@media (max-width: 1700px) { #banner .gsearch { flex-basis: 150px; min-width: 120px; } .cap .capst { display: none; } }
@media (max-width: 1350px) { .glassbar { flex-wrap: nowrap; } }
@media (max-width: 1279px) { .glassbar { flex-wrap: wrap; row-gap: 4px; } }
@media (max-width: 1700px) { .glassbar:has(#cap) .dd > .ib { padding: 0 8px; gap: 5px; } }
/* the Layout menu: the grid picker and the ready-made layouts share the same four columns, edge to edge */
.pop .gpick, .pop .tpls { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.pop .gpick i { height: 26px; border-radius: 6px; }
.pop .tpl { height: 42px; border-radius: 8px; }
.pop .gsize { min-height: 0; height: 18px; margin: 0 0 6px; line-height: 18px; text-align: right; font-variant-numeric: tabular-nums; }
.pop .even { margin-top: 12px; }
/* the dot on a chosen option always sits at the right edge, in line down the list */
.pop .chip.on::after { margin-left: auto; }
.pop .chip.on:has(em)::after { margin-left: 8px; }

/* one name in the banner: the wordmark "Setups" is the link home */
.glassbar .brand { font-size: 17px; font-weight: 600; letter-spacing: .01em; color: var(--fg); margin-right: 10px; padding: 4px 2px; }
.glassbar .brand:hover { color: #fff; }

/* the tiles hold still; a new live order is offered by this button (setups.js offerOrder) */
.reorder { position: fixed; left: 50%; top: 84px; z-index: 45; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 6px 0 14px;
  border: 1px solid var(--line2); border-radius: 999px; background: var(--panel2); color: var(--fg); font: 13px var(--font); cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translate(-50%, -6px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s; }
.reorder.show { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .18s ease, transform .18s ease; }
.reorder svg { width: 16px; height: 16px; fill: none; stroke: var(--dim); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.reorder em { font-style: normal; color: var(--dim); }
.reorder span { height: 26px; padding: 0 12px; border-radius: 999px; background: var(--green); color: #0b0f14; font-weight: 600; display: inline-flex; align-items: center; }
.reorder:hover span { filter: brightness(1.08); }
.mktdd .rescanbtn { width: 100%; margin-top: 12px; height: 32px; }
#rescan[hidden] { display: none; }
@media (max-width: 1700px) { #banner .gsearch { flex-basis: 118px; min-width: 104px; } }

/* the Setups bar's menus as icons (user 2026-12-01): name and current choice on hover; a green dot when not at the default */
#banner .ib.iconic { position: relative; width: 36px; padding: 0; justify-content: center; }
#banner .ib.iconic .lbl, #banner .ib.iconic .chev { display: none; }
#banner .ib.iconic.set::after { content: ""; position: absolute; top: 6px; right: 6px; width: 7px; height: 7px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 2px var(--panel); }

/* ONE BANNER (user 2026-12-01): exactly the same size, spacing and positions on the Setups page, the charts page and a
   single chart - the brand, the tabs, the search and the market clock never move when switching between them */
#banner.glassbar { position: relative; top: 0; margin: 8px 10px; min-height: 50px; padding: 6px 10px 6px 14px; gap: 6px; }
body:not(.layoutpage):not(.chartpage) > #banner.glassbar { position: sticky; top: 8px; }
.layoutpage #banner.glassbar, .chartpage #banner.glassbar { margin: 8px 10px; }
#banner .tabs a { padding: 6px 10px; }
#banner .brand { margin-right: 4px; }
.setups th { top: 66px; }
/* the time frame the setups come from, on its own at the right of the banner (user 2026-12-02): not part of the name */
.tfpill { order: 99; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 11px 0 9px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .02em; color: var(--accent, #34d399); background: color-mix(in srgb, var(--accent, #34d399) 12%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, #34d399) 35%, transparent); white-space: nowrap; cursor: help; flex: none; }
.tfpill svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

/* the Clip and TradingView windows (chart.js clipChart / toTradingView) */
.clipveil { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 20px; background: rgba(8, 10, 14, .6);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.clipbox { position: relative; width: min(980px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 16px 18px 16px; border-radius: calc(var(--r-lg, 11px) + 4px);
  border: 1px solid rgba(255, 255, 255, .10); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)), var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.cliph { margin: 0 40px 12px 0; font: inherit; font-size: 15px; font-weight: 600; color: var(--fg); }
.clipimg { display: block; width: 100%; height: auto; border-radius: 0; border: 0;   /* the picture exactly as saved: square corners */ }
.clipacts { display: flex; align-items: center; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.clipacts .btn { display: inline-flex; align-items: center; gap: 7px; height: 34px; text-decoration: none; }
.clipacts .btn svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.clipacts .xpost { background: var(--fg); color: #0b0f14; border-color: var(--fg); font-weight: 600; }
.clipacts .xpost:hover { filter: brightness(.92); }
.clipmsg { margin-left: 4px; font-size: 12.5px; color: var(--dim); }
html { scrollbar-gutter: stable; }        /* the same width on every page, scrolling or not: the banner never shifts */

/* sharing a setup: two small buttons on a tile's chart, only while the tile is hovered */
.tile .tchart { position: relative; }
.tile .tacts { position: absolute; top: 2px; right: 2px; display: flex; gap: 4px; opacity: 0; transform: translateY(-2px); transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.tile:hover .tacts, .tile:focus-within .tacts { opacity: 1; transform: none; pointer-events: auto; }
.tile .tacts button { width: 28px; height: 28px; padding: 0; display: grid; place-items: center; border: 1px solid var(--line2); border-radius: var(--r-sm, 7px);
  background: color-mix(in srgb, var(--panel2) 88%, transparent); color: var(--dim); cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tile .tacts button:hover { color: var(--fg); border-color: var(--faint); }
.tile .tacts svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
/* the "draw on your TradingView chart?" prompt */
.clipbox.ask { width: min(460px, 100%); }
.askp { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; color: var(--dim); }
.askp b { color: var(--fg); font-weight: 600; }
.askp code { font: 12px ui-monospace, Consolas, monospace; color: var(--fg); background: var(--bg); padding: 1px 5px; border-radius: 5px; }
.clipbox .lsh { margin: 14px 0 8px; font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); font-weight: 500; }
.tile .tacts svg.tvlogo { width: 17px; height: 14px; fill: currentColor; stroke: none; }
.tile .tacts button[data-tv]:hover { color: #fff; background: #2962ff; border-color: #2962ff; }

/* THE BANNER PILLS (user 2026-12-02): the setup count, the market clock and the Daily label are one family - the same
   height, the same rounded shape and text size, centred on one line */
.glassbar .cap, .glassbar .mkt, .tfpill { box-sizing: border-box; display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border-radius: 999px; font-size: 13px; line-height: 1; align-self: center; }
.tfpill { padding: 0 13px 0 11px; }

/* THE TILE HEADER (user 2026-12-02): two tidy lines, two columns, no rules. Left: rank, ticker and company name, then
   sector › industry. Right, lined up under each other: today's change and the live price, then the live market cap. */
.tile .top { display: flex; align-items: flex-start; gap: 10px; white-space: nowrap; }
.tile .top .who { flex: 1; min-width: 0; }
.tile .top .l1 { display: flex; align-items: baseline; gap: 7px; min-width: 0; line-height: 20px; }
.tile .top .l2 { font-size: 11.5px; line-height: 16px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; }
.tile .top .who .nm { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--dim); font-size: 12.5px; }
.tile .top .who .l2 { padding-left: 0; }
.tile .top .q { flex: none; text-align: right; }
.tile .top .q .l1 { justify-content: flex-end; }
.tile .top .q .l2 b { font-weight: 500; color: var(--dim); font-family: var(--num, inherit); font-variant-numeric: tabular-nums; }
.tile canvas { margin-top: 10px; }
td .nm.ind { font-size: 11.5px; color: var(--faint); }

/* THE SECTOR MENU (user 2026-12-02): every sector with its industries indented under it; tick any mix of both */
.secpop { min-width: 330px; }
.secpop .secfind { width: 100%; box-sizing: border-box; margin: 0 0 8px; }
.secpop .opts.scroll { max-height: 440px; }
.pop .chip.sechead { color: var(--fg); font-weight: 600; margin-top: 4px; }
.pop .chip.sechead.part::before { content: ""; width: 7px; height: 2px; background: var(--green); flex: none; }
.pop .chip.indrow { padding: 6px 10px 6px 24px; font-size: 12.5px; }

/* THE TILE, TIDIED (user 2026-12-02): a little bigger; the rank sits in its own column so the ticker, the sector line,
   the chart and the figures below all start on one edge; the hover buttons sit in the chart's top-right corner, in
   one neat row, clear of the price */
.mosaic { grid-template-columns: repeat(auto-fill, minmax(430px, 1fr)); gap: 14px; }
.tile { padding: 14px 16px 13px; }
.tile .top { gap: 10px; }
.tile .top > .n { flex: none; min-width: 18px; line-height: 20px; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.tile .top .s { font-size: 16px; font-weight: 600; }
.tile .tchart { margin: 12px 0 10px; }
.tile .tchart canvas { height: 190px; margin: 0; }
.tile .tchart .tacts { top: 0; right: 0; gap: 6px; }
.tile .tchart .tacts button { width: 30px; height: 28px; border-radius: 8px; }
.tile .bot { margin-top: 0; }
.tile .meta { grid-template-columns: 1.25fr 1.7fr .8fr .8fr 1fr; column-gap: 10px; margin-top: 11px; padding-top: 11px; }
.tile .meta b { white-space: nowrap; }
.tile .meta span { margin-bottom: 3px; }
/* while a tile is being drawn for a clip: no rank, no hover buttons */
.tile.clipping .top > .n, .tile.clipping .tacts { display: none !important; }

/* THE BIG CHART over the Setups page (user 2026-12-02): nearly the whole window, the tiles dimmed behind */
.bigwrap { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(6, 8, 12, .62);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: bigin .16s ease-out; }
@keyframes bigin { from { opacity: 0; } to { opacity: 1; } }
.bigbox { width: min(1500px, 100%); height: min(920px, 100%); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; border: 1px solid var(--line2);
  border-radius: var(--r-lg, 14px); background: var(--bg); box-shadow: 0 24px 60px rgba(0, 0, 0, .45); }
.bighead { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.bighead b { font-size: 16px; font-weight: 600; }
.bighead span { color: var(--dim); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.bighead .bigsec { color: var(--faint); font-size: 12px; }
.bighead .sp { flex: 1; }
.bighead button { width: 34px; height: 32px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line2); border-radius: 8px;
  background: transparent; color: var(--dim); cursor: pointer; font-size: 20px; line-height: 1; }
.bighead button:hover { color: var(--fg); border-color: var(--faint); }
.bighead .bigtv svg { width: 18px; height: 15px; fill: currentColor; }
.bighead .bigtv:hover { color: #fff; background: #2962ff; border-color: #2962ff; }
.bigstage { position: relative; min-height: 0; cursor: grab; touch-action: none; background: var(--panel); }
.bigstage.dragging { cursor: grabbing; }
.bigstage canvas { position: absolute; inset: 0; display: block; }
.bighead .bigdot { width: 9px; height: 9px; border-radius: 50%; flex: none; margin-left: 6px; }
.bighead .bigk { color: var(--fg); }
.bighead .bighint { color: var(--faint); font-size: 12px; margin-right: 4px; }
@media (max-width: 900px) { .bighead .bighint, .bighead .bigsec { display: none; } }
body.bigopen { overflow: hidden; }
/* the big chart never grows wider than the window: the header gives way (the hint shortens) */
.bigbox { grid-template-columns: minmax(0, 1fr); }
.bighead { min-width: 0; }
.bighead .bighint { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bighead button { flex: none; }
/* the big chart's cursor says what a drag will do: move the chart, stretch the prices, or widen the dates */
.bigstage[data-zone="price"] { cursor: ns-resize; }
.bigstage[data-zone="time"] { cursor: ew-resize; }

/* SAVED VIEWS (user 2026-12-02): one row of chips under the banner - Board, All setups, the user's views, Save view */
.viewsbar { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin: 0 14px 4px; padding: 2px 4px; min-height: 34px; }
.vchip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line2);
  background: transparent; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.vchip:hover { color: var(--fg); border-color: var(--faint); }
.vchip.on { color: var(--fg); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .22); }
.vchip.vboard svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.vchip.vboard.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 12%, transparent); }
.vchip.save { border-style: dashed; color: var(--faint); }
.vchip.save:hover { color: var(--green); border-color: var(--green); }
.vsep { width: 1px; height: 18px; background: var(--line2); margin: 0 4px; }
.vwrap { position: relative; display: inline-flex; }
.vwrap .vchip { padding-right: 28px; }
.vmenu { position: absolute; right: 3px; top: 3px; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--faint);
  cursor: pointer; opacity: 0; transition: opacity .12s; font-size: 14px; line-height: 1; }
.vwrap:hover .vmenu, .vmenu:focus { opacity: 1; }
.vmenu:hover { color: var(--fg); background: rgba(255, 255, 255, .08); }
.vpop { position: absolute; z-index: 120; width: 280px; padding: 12px; border-radius: 13px; border: 1px solid var(--line2); background: var(--panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: grid; gap: 4px; }
.vpop h5 { margin: 0 0 6px; font: inherit; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.vpop .in { width: 100%; box-sizing: border-box; }
.vpop .vrow { display: flex; gap: 6px; margin-top: 8px; }
.vpop .vnote { margin: 6px 0 0; font-size: 11.5px; color: var(--faint); }
.vpop .chip { display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 8px; color: var(--dim); }
.vpop .chip:hover:not([disabled]) { background: rgba(255, 255, 255, .06); color: var(--fg); }
.vpop .chip[disabled] { opacity: .35; cursor: default; }
.vpop .chip.danger:hover { color: var(--coral); }
/* THE BOARD: each view a lane - its name and count, then a row of its best tiles you can scroll across */
.board { display: grid; gap: 22px; padding-top: 10px; }
.lane > header { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; }
.lane > header b { font-size: 16px; font-weight: 600; }
.lane > header span { color: var(--faint); font-size: 13px; }
.lane > header .sp { flex: 1; }
.lane > header .btn { height: 30px; }
.lanerow { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 8px; scroll-snap-type: x proximity; scrollbar-width: thin; }
.lanerow > .tile { flex: 0 0 430px; scroll-snap-align: start; }
.lanemore { flex: 0 0 170px; display: grid; place-content: center; gap: 6px; border: 1px dashed var(--line2); border-radius: var(--r-lg, 18px);
  background: transparent; color: var(--dim); font: inherit; font-size: 14px; cursor: pointer; text-align: center; }
.lanemore span { font-size: 22px; }
.lanemore:hover { color: var(--fg); border-color: var(--faint); }
.laneempty { padding: 26px 6px; color: var(--faint); }
/* hidden always means hidden (some components set their own display) */
[hidden] { display: none !important; }
/* the big chart's header and footer: the tile's own details, laid out the same way */
.bighead { height: auto; min-height: 60px; padding: 10px 12px 10px 20px; gap: 14px; }
.bighead .bigwho { min-width: 0; display: grid; gap: 2px; }
.bighead .bigwho > div:first-child { display: flex; align-items: baseline; gap: 9px; min-width: 0; }
.bighead .bigwho b { font-size: 19px; }
.bighead .bigwho span { font-size: 14px; }
.bighead .bigsec { font-size: 12.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile.bigq { border: 0; padding: 0; background: transparent; box-shadow: none; cursor: default; flex: none; margin-right: 6px; }
.tile.bigq .top .q .l1 { line-height: 24px; }
.tile.bigq .top .p { font-size: 19px; font-weight: 600; }
.tile.bigq .top .chg { font-size: 14px; }
.tile.bigq .top .l2 { font-size: 12.5px; }
.tile.bigfoot { border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 12px 22px 14px; cursor: default; background: var(--panel); }
.tile.bigfoot .meta { grid-template-columns: repeat(5, minmax(0, 200px)); }
.tile.bigfoot .bot { font-size: 15px; }

/* WATCHLISTS (user 2026-12-02): the menu (lists, each with an edit box) and the star on a tile */
.wlpop { min-width: 360px; }
.wlpop .opts.scroll { max-height: 480px; }
.wlrow { display: flex; align-items: center; gap: 4px; }
.wlrow .chip { flex: 1; min-width: 0; }
.wledit { flex: none; width: 30px; height: 30px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--faint); cursor: pointer; }
.wledit:hover, .wledit.open { color: var(--fg); border-color: var(--line2); }
.wlbox { display: grid; gap: 8px; margin: 4px 0 8px 8px; padding: 10px; border-radius: 10px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); }
.wlsyms { display: flex; flex-wrap: wrap; gap: 5px; }
.wlsym { display: inline-flex; align-items: center; gap: 2px; height: 24px; padding: 0 2px 0 9px; border-radius: 999px; background: rgba(255, 255, 255, .07); font-size: 12.5px; }
.wlsym button { width: 20px; height: 20px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; }
.wlsym button:hover { color: var(--coral); }
.wlbox .vrow, .wlnew { display: flex; gap: 6px; }
.wlbox .vrow .in, .wlnew .in { flex: 1; min-width: 0; }
.wlnew { margin-top: 8px; }
.wlpop .vnote { margin: 4px 2px; font-size: 11.5px; color: var(--faint); }
.wlpop .chip.danger:hover { color: var(--coral); }
.tile .tacts button.star.starred { color: #f5b942; border-color: color-mix(in srgb, #f5b942 45%, transparent); }
.tile .tacts button.star.starred svg { fill: #f5b942; }
/* a starred stock keeps its star showing even when the tile is not hovered */
.tile:has(.star.starred) .tacts { opacity: 1; pointer-events: auto; }
.tile:has(.star.starred) .tacts button:not(.star) { opacity: 0; transition: opacity .15s; }
.tile:hover .tacts button:not(.star) { opacity: 1; }
.boardhelp { max-width: 640px; margin: 30px auto; padding: 22px 26px; border: 1px dashed var(--line2); border-radius: 16px; color: var(--dim); line-height: 1.55; }
.boardhelp b { color: var(--fg); }
.boardhelp a { color: var(--green); }
/* hover explanations read as a small speech bubble: room for a sentence or two */
.tip { max-width: 300px; padding: 9px 12px; font-size: 12.5px; line-height: 1.45; border-radius: 10px; background: var(--panel2, #191d25);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .4); color: var(--fg); white-space: normal; }

/* THE BOARD'S LAYOUTS (user 2026-12-02): grid sections, lanes, or views side by side; a view's title stays in sight */
.board .lane > header { position: sticky; top: var(--below-banner, 70px); z-index: 6; margin: 0 0 8px; padding: 10px 4px 8px;
  background: color-mix(in srgb, var(--bg, #11151c) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.board.bl-grid .lanegrid { display: grid; grid-template-columns: repeat(var(--across, 4), minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; }
.board.bl-lanes .lanerow > .tile { flex: 0 0 calc((100% - (var(--across, 4) - 1) * 14px) / var(--across, 4)); }
.board.bl-side { grid-template-columns: repeat(var(--views, 2), minmax(280px, 1fr)); align-items: start; gap: 16px; }
/* (the page itself must not be a scroll box around the board, or the view titles could not stay at the top) */
.wrap:has(> .board:not([hidden])) { overflow: visible; }
.board.bl-side .lanecol { display: grid; gap: 12px; }
.board.bl-side .lanemore { min-height: 70px; }
.board.bl-side .lane > header { flex-wrap: wrap; }
.viewsbar .sp { flex: 1; }
.vchip.blayout svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.vpop.bpop { width: 360px; gap: 6px; }
.bpop label { margin: 8px 0 2px; font-size: 11.5px; color: var(--faint); }
.bseg { display: flex; flex-wrap: wrap; gap: 4px; }
.bseg button { flex: 1 1 auto; min-width: 34px; height: 30px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--dim);
  font: inherit; font-size: 12.5px; cursor: pointer; white-space: nowrap; }
.bseg button:hover { color: var(--fg); border-color: var(--faint); }
.bseg button.on { color: var(--fg); background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .25); }
/* TILES THAT FIT ANY WIDTH: the tile is its own size reference; the chart keeps a sensible shape, and a narrow tile
   (many across) tightens its text and puts its figures on two rows instead of squeezing them */
.tile { container-type: inline-size; min-width: 0; }
.tile .tchart canvas { height: clamp(110px, 44cqw, 200px); }
@container (max-width: 380px) {
  .tile .top .who .nm { display: none; }
  .tile .top .l2, .tile .top .q .l2 { font-size: 11px; }
  .tile .meta { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 8px; }
  .tile .meta b { font-size: 12px; }
  .tile .bot { font-size: 12.5px; }
  .tile .tacts button { width: 26px !important; height: 24px !important; }
}
@container (max-width: 230px) {
  .tile .top .q .l2, .tile .top > .n { display: none; }
  .tile .meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
.board .tile { padding: 12px 13px 11px; }

/* WATCHLISTS IN THE VIEWS BAR, and their editor (user 2026-12-02) */
.vlabel { display: inline-flex; color: #f5b942; }
.vlabel svg { width: 15px; height: 15px; fill: #f5b942; }
.vchip.wlchip em { font-style: normal; font-size: 11.5px; color: var(--faint); }
.vchip.wlchip.on { border-color: color-mix(in srgb, #f5b942 55%, transparent); background: color-mix(in srgb, #f5b942 10%, transparent); }
.lstar { font-style: normal; color: #f5b942; margin-right: 6px; }
.wlmake { width: 100%; margin-top: 8px; height: 34px; }
.wlmodal { position: fixed; inset: 0; z-index: 210; display: grid; place-items: start center; padding: 10vh 16px 16px; background: rgba(6, 8, 12, .55);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); }
.wlcard { width: min(560px, 100%); max-height: 80vh; display: grid; grid-template-rows: auto auto auto 1fr auto auto; gap: 10px; padding: 18px 20px 14px;
  border: 1px solid var(--line2); border-radius: 16px; background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.wlhead { display: flex; align-items: center; gap: 10px; }
.wlhead svg { width: 20px; height: 20px; fill: #f5b942; flex: none; }
.wlname { flex: 1; min-width: 0; border: 0; border-bottom: 1px solid transparent; background: transparent; color: var(--fg); font: inherit; font-size: 19px; font-weight: 600; padding: 4px 2px; }
.wlname:hover, .wlname:focus { border-bottom-color: var(--line2); outline: none; }
.wlx { width: 32px; height: 32px; border: 1px solid var(--line2); border-radius: 8px; background: transparent; color: var(--dim); font-size: 18px; cursor: pointer; }
.wlsearch { position: relative; }
.wlsearch .in { width: 100%; box-sizing: border-box; height: 40px; font-size: 14px; }
.wlsugg { display: grid; margin-top: 4px; }
.wlsugg button { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: inherit; text-align: left; cursor: pointer; }
.wlsugg button:hover, .wlsugg button.first { background: rgba(255, 255, 255, .06); color: var(--fg); }
.wlsugg b { min-width: 58px; color: var(--fg); }
.wlsugg span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlsugg em { font-style: normal; font-size: 12px; color: var(--green); }
.wlcount { font-size: 12px; color: var(--faint); }
.wlmembers { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 6px; overflow-y: auto; min-height: 40px; }
.wlm { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 4px 0 11px; border-radius: 999px; background: rgba(255, 255, 255, .06); font-size: 13px; max-width: 260px; }
.wlm span { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlm button { flex: none; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; font-size: 14px; }
.wlm button:hover { color: var(--coral); background: rgba(255, 255, 255, .06); }
.wlfoot { display: flex; align-items: center; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.wlfoot .sp { flex: 1; }
.wlboard { display: inline-flex; align-items: center; gap: 7px; color: var(--dim); font-size: 13px; cursor: pointer; }
.btn.danger:hover { color: var(--coral); border-color: var(--coral); }
.wlcard .vnote { margin: 0; font-size: 11.5px; color: var(--faint); }
/* SLICES: the sections of a sliced page (same pinned titles as the board); market-cap chips */
.board.groups .lanegrid { grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr)); }   /* the columns the rows were filled for */
.board.groups .lane > header b em { font-style: normal; font-weight: 400; font-size: 13px; color: var(--faint); margin-left: 6px; }
#capopts .chip .dimtxt { color: var(--faint); font-size: 12px; margin-left: 6px; }
/* the watchlist's companies as a straight list, one row each (user 2026-12-02) */
.wlcard .wlmembers { display: block; flex-wrap: nowrap; }
.wlcard .wlm { display: grid; grid-template-columns: 62px minmax(0, 1.3fr) minmax(0, 1.2fr) 86px 26px; align-items: center; gap: 10px; height: 38px; max-width: none;
  padding: 0 4px 0 8px; border-radius: 0; background: transparent; border-bottom: 1px solid var(--line); font-size: 13px; }
.wlcard .wlm:hover { background: rgba(255, 255, 255, .03); }
.wlcard .wlm b { font-weight: 600; }
.wlcard .wlm .wlmn { color: var(--fg); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlcard .wlm .wlms { color: var(--faint); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlcard .wlm .wlmc { color: var(--dim); font-size: 12px; text-align: right; }
.wlcard { width: min(720px, 100%); }
/* the watchlist editor: rows without counts; the user's sections as headings with a rename box (user 2026-12-02) */
.wlcard .wlm { grid-template-columns: 62px minmax(0, 1.3fr) minmax(0, 1.2fr) auto 26px; }
.wlmsec { height: 26px; max-width: 130px; border: 1px solid var(--line2); border-radius: 7px; background: var(--panel2, #191d25); color: var(--dim); font: inherit; font-size: 12px; padding: 0 4px; }
.wlsec { display: flex; align-items: center; gap: 6px; margin: 14px 0 2px; padding: 0 4px 4px 2px; border-bottom: 1px solid var(--line2); }
.wlsec input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 13.5px; font-weight: 600; padding: 3px 2px; }
.wlsec input:hover, .wlsec input:focus { outline: none; background: rgba(255, 255, 255, .05); border-radius: 6px; }
.wlsec button { height: 26px; border: 1px solid transparent; border-radius: 7px; background: transparent; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; padding: 0 8px; }
.wlsec button:hover { color: var(--fg); border-color: var(--line2); }
.wlsec .wladdto.on { color: var(--green); border-color: color-mix(in srgb, var(--green) 45%, transparent); }
.wlsec.plain span { font-size: 12px; color: var(--faint); padding: 3px 2px; }
.wlempty { padding: 8px 6px; }
.wlfilters { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 10px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.wlfilters .wlfsum { flex: 1; min-width: 0; font-size: 12.5px; color: var(--dim); line-height: 1.4; }
.wlfilters .wlfsum b { color: var(--fg); font-weight: 600; }
.wlfilters .btn { flex: none; height: 32px; }
/* "Set filters": the banner glows briefly to show where the filters are */
#banner.pulse { box-shadow: 0 0 0 2px color-mix(in srgb, var(--green) 70%, transparent), 0 0 24px color-mix(in srgb, var(--green) 35%, transparent); transition: box-shadow .3s; }

/* THE HOVER BUTTONS (user 2026-12-02): small, on the first line just left of the price, over the end of the name,
   only while the tile is hovered; the watchlist mark is a quiet bookmark, never gold, never stuck on */
.tile .top .q { position: relative; }
.tile .top .q > .tacts { position: absolute; right: calc(100% + 6px); top: -1px; display: flex; gap: 3px; padding-left: 10px; margin: 0;
  background: linear-gradient(90deg, transparent, var(--panel) 10px); opacity: 0; transform: none; pointer-events: none; transition: opacity .12s ease; }
.tile:hover .top .q > .tacts, .tile:focus-within .top .q > .tacts { opacity: 1; pointer-events: auto; }
.tile .top .q > .tacts button { width: 24px !important; height: 22px !important; border-radius: 6px; opacity: 1 !important; }
.tile .top .q > .tacts svg { width: 13px; height: 13px; }
.tile .top .q > .tacts svg.tvlogo { width: 14px; height: 11px; }
.tile:has(.star.starred) .tacts { opacity: 0; pointer-events: none; }
.tile:hover:has(.star.starred) .top .q > .tacts { opacity: 1; pointer-events: auto; }
.tile .tacts button.star.starred { color: var(--fg); border-color: var(--line2); }
.tile .tacts button.star.starred svg { fill: currentColor; }
.vlabel, .vlabel svg { color: var(--faint); fill: none; stroke: currentColor; stroke-width: 1.5; }
.vchip.wlchip.on { border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); }
.lstar { color: var(--faint); }
.wlhead svg { fill: none; stroke: var(--dim); stroke-width: 1.5; }
.lstar { width: 13px; height: 13px; margin-right: 6px; vertical-align: -1px; fill: none; stroke: var(--faint); stroke-width: 1.6; }
/* Save / Save as (user 2026-12-02) */
.vchip.save.now { border-style: solid; color: var(--green); border-color: color-mix(in srgb, var(--green) 50%, transparent); }
.vchip.save.saved { border-style: solid; opacity: .55; cursor: default; }
.vchip .vdot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber, #f5b942); margin-left: 2px; }

/* ON THE BOARD the banner carries the board's controls instead of the list's filter icons (user 2026-12-02) */
body.onboard #banner .dd[data-dd] { display: none; }
.boardbar { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; white-space: nowrap; }
.boardbar .blab { font-size: 12px; color: var(--faint); margin-left: 6px; }
.boardbar .blab:first-child { margin-left: 2px; font-size: 12.5px; font-weight: 600; color: var(--green); letter-spacing: .02em; }
.boardbar .bgroup { display: inline-flex; padding: 2px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
.boardbar .bgroup button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border: 0; border-radius: 8px; background: transparent;
  color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.boardbar .bgroup button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.boardbar .bgroup button:hover { color: var(--fg); }
.boardbar .bgroup button.on { color: var(--fg); background: rgba(255, 255, 255, .12); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.boardbar .bstep { display: inline-flex; align-items: center; border-radius: 10px; background: rgba(255, 255, 255, .05); padding: 2px; }
.boardbar .bstep button { width: 28px; height: 30px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font-size: 16px; cursor: pointer; }
.boardbar .bstep button:hover:not([disabled]) { color: var(--fg); background: rgba(255, 255, 255, .08); }
.boardbar .bstep button[disabled] { opacity: .3; cursor: default; }
.boardbar .bstep b { min-width: 20px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 1250px) { .boardbar .bgroup button { padding: 0 8px; } .boardbar .bgroup button svg + * { display: none; } }

/* THE VIEWS ROW IN THE BANNER (user 2026-12-02): on the right, compact; it scrolls sideways if there are many */
#banner .viewsbar { display: flex; flex-wrap: nowrap; align-items: center; gap: 4px; margin: 0 4px 0 0; padding: 0; min-height: 0; min-width: 0;
  max-width: 46vw; overflow-x: auto; scrollbar-width: none; }
#banner .viewsbar::-webkit-scrollbar { display: none; }
#banner .vchip { height: 30px; padding: 0 11px; font-size: 12.5px; flex: none; }
#banner .vwrap .vchip { padding-right: 24px; }
#banner .vmenu { top: 3px; right: 2px; }
#banner .vsep { height: 16px; margin: 0 3px; flex: none; }
#banner .vlabel { flex: none; }
#banner .vchip.vboard { padding: 0 10px; }
#banner .cap { padding: 0 11px; }
#banner .tfpill { padding: 0 10px 0 9px; }
/* the watchlist editor's two ways in: Search, or From filters (user 2026-12-02) */
.wltabs { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: rgba(255, 255, 255, .05); justify-self: start; }
.wltabs button { height: 30px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; }
.wltabs button.on { color: var(--fg); background: rgba(255, 255, 255, .12); }
.wlfrom { display: grid; gap: 8px; }
.wlfsum2 { font-size: 12.5px; color: var(--dim); line-height: 1.45; }
.wlfsum2 b { color: var(--fg); }
.wlfsum2 span { display: block; color: var(--faint); margin-top: 2px; }
.wladdall { justify-self: start; height: 32px; }
.wlpick { display: grid; max-height: 34vh; overflow-y: auto; }
.wlpick button { display: grid; grid-template-columns: 62px minmax(0, 1.2fr) minmax(0, 1fr) auto; align-items: center; gap: 10px; height: 34px; padding: 0 8px;
  border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.wlpick button:hover { background: rgba(255, 255, 255, .04); }
.wlpick span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wlpick .wlms { color: var(--faint); font-size: 12px; }
.wlpick em { font-style: normal; font-size: 12px; color: var(--green); }
.wlcard { grid-template-rows: none; }

/* VIEWS and WATCHLISTS: two icons, two menus (user 2026-12-02) */
#banner .viewsbar { overflow: visible; max-width: none; }
#banner .vdd { position: relative; flex: none; }
#banner .vdd > .vchip { gap: 7px; max-width: 220px; }
#banner .vdd > .vchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#banner .vdd > .vchip svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; flex: none; }
#banner .vdd > .vchip .chev { margin-left: 1px; }
#banner .vdd > .pop { left: auto; right: 0; width: 360px; }
.vlist { display: none; }
.dd.open > .vlist { display: grid; gap: 2px; }
.vlist .vrowwrap { position: relative; }
.vlist .vrow { display: grid; width: 100%; gap: 1px; padding: 8px 34px 8px 10px; border: 0; border-radius: 9px; background: transparent; color: var(--dim); font: inherit; text-align: left; cursor: pointer; }
.vlist .vrow span { color: var(--fg); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.vlist .vrow em { font-style: normal; font-size: 11.5px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vlist .vrow:hover { background: rgba(255, 255, 255, .06); }
.vlist .vrow.on { background: rgba(255, 255, 255, .09); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); }
.vlist .vmenu { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); opacity: .6; }
.vlist .vmenu:hover { opacity: 1; }
.vlist .vnote { margin: 6px 4px 0; font-size: 11.5px; color: var(--faint); }
.vlist .wlmake { margin-top: 6px; }

/* THE PRICE BLOCK IN THE BIG CHART'S HEADER: not a size container (it collapsed to nothing and sat over the buttons) */
.tile.bigq, .tile.bigfoot { container-type: normal; }
.bighead .tile.bigq { flex: none; min-width: 120px; }
/* THE FILTERS BUTTON: labelled, with the number of filters set */
#banner .fbtn { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 10px; flex: none; }
#banner .fbtn .lbl { display: inline-flex !important; align-items: center; gap: 6px; font-size: 13px; }
#banner .fbtn svg { width: 16px; height: 16px; }
#banner .fbtn.set { color: var(--green); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent); background: color-mix(in srgb, var(--green) 9%, transparent); }
#banner .fbtn .fn { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--green); color: #0d1117; font-size: 11px; font-weight: 700; }
body.onboard #filtersbtn { display: none; }
/* THE VIEWS MENU: hover a view for Edit and Delete */
.vlist .vacts { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: none; gap: 4px; }
.vlist .vrowwrap:hover .vacts { display: flex; }
.vlist .vrowwrap:hover .vrow em { padding-right: 120px; }
.vlist .vacts button { height: 26px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 7px; background: var(--panel2, #191d25); color: var(--dim); font: inherit; font-size: 12px; cursor: pointer; }
.vlist .vacts button:hover { color: var(--fg); border-color: var(--faint); }
.vlist .vacts button.del:hover { color: var(--coral); border-color: var(--coral); }
/* THE FILTER EDITOR: a big box with every filter */
.femodal { position: fixed; inset: 0; z-index: 215; display: grid; place-items: center; padding: 18px; background: rgba(6, 8, 12, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fecard { width: min(1100px, 100%); max-height: min(900px, 100%); display: grid; grid-template-rows: auto 1fr auto; border: 1px solid var(--line2); border-radius: 16px;
  background: var(--panel); box-shadow: 0 24px 60px rgba(0, 0, 0, .5); overflow: hidden; }
.fehead { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fehead h3 { margin: 0; font-size: 18px; }
.fehead p { margin: 2px 0 0; font-size: 12.5px; color: var(--faint); }
.fehead .fename { margin-top: 4px; width: 320px; max-width: 100%; border: 0; border-bottom: 1px solid var(--line2); background: transparent; color: var(--fg); font: inherit; font-size: 15px; padding: 3px 1px; }
.fehead .fename:focus { outline: none; border-bottom-color: var(--green); }
.fehead .sp, .fefoot .sp { flex: 1; }
.fecount { text-align: right; font-size: 13px; color: var(--dim); }
.fecount b { font-size: 22px; color: var(--green); font-variant-numeric: tabular-nums; margin-right: 4px; }
.fecount span { display: block; font-size: 11.5px; color: var(--faint); }
.febody { overflow-y: auto; padding: 6px 20px 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-content: start; }
.febody section { grid-column: 1 / -1; padding: 14px 0 12px; border-bottom: 1px solid var(--line); }
.febody section.half { grid-column: auto; }
.febody h4 { margin: 0 0 9px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.febody h4 em, .febody summary em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--green); font-weight: 500; }
.febody h4 .muted { text-transform: none; letter-spacing: 0; font-weight: 400; }
.febody .fval { color: var(--fg); font-size: 13px; letter-spacing: 0; }
.frow2 { display: flex; flex-wrap: wrap; gap: 6px; }
.fchip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; background: transparent;
  color: var(--dim); font: inherit; font-size: 13px; cursor: pointer; white-space: nowrap; }
.fchip:hover { color: var(--fg); border-color: var(--faint); }
.fchip.on { color: var(--fg); background: color-mix(in srgb, var(--green) 14%, transparent); border-color: color-mix(in srgb, var(--green) 55%, transparent); }
.fchip i { width: 8px; height: 8px; border-radius: 50%; }
.fchip em { font-style: normal; font-size: 11px; color: var(--green); }
.frange { width: 100%; margin: 2px 0 10px; accent-color: var(--green); }
.febody details { margin-top: 10px; }
.febody summary { cursor: pointer; font-size: 12.5px; color: var(--dim); margin-bottom: 8px; }
.fsecs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px 14px; }
.fsec.open { grid-column: 1 / -1; }
.fsech { display: flex; align-items: center; gap: 8px; }
.finds { margin: 8px 0 4px 14px; }
.finds .fchip { height: 28px; font-size: 12.5px; }
.flink { border: 0; background: transparent; color: var(--faint); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 4px; text-transform: none; letter-spacing: 0; }
.flink:hover { color: var(--fg); }
.fefoot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line); }
@media (max-width: 760px) { .febody { grid-template-columns: 1fr; } .febody section.half { grid-column: 1 / -1; } }
/* A NARROWER WINDOW: the banner tightens step by step so nothing is pushed off the edge (user 2026-12-02) */
@media (max-width: 1560px) {
  #banner .vdd > .vchip span { max-width: 110px; }
  #banner .fbtn { padding: 0 10px; }
}
@media (max-width: 1420px) {
  #banner .vchip.vboard { font-size: 0; gap: 0; padding: 0 9px; }
  #banner .vchip.vboard svg { margin: 0; }
  #banner .vdd[data-vdd="lists"] > .vchip span { display: none; }
  #banner .vdd > .vchip span { max-width: 90px; }
  #banner .mkt span { display: none; }
  #banner .gsearch { flex-basis: 120px; min-width: 100px; }
  #banner .tfpill { font-size: 0; gap: 0; padding: 0 9px; }
  #banner .tfpill svg { margin: 0; }
}
@media (max-width: 1180px) {
  #banner .vdd[data-vdd="views"] > .vchip span { display: none; }
  #banner .fbtn .lbl { font-size: 0 !important; gap: 0 !important; }
  #banner .fbtn .lbl .fn { font-size: 11px; margin-left: 4px; }
  #banner .vchip.save { padding: 0 8px; }
}
@media (max-width: 1100px) {
  #banner .mkt b { display: none; }
  #banner .mkt { padding: 0 11px; }
  #banner .vchip.save.saved { display: none; }
  #banner .gsearch { flex-basis: 96px; min-width: 80px; }
  #banner .dd > .ib.iconic { width: 32px; }
}

/* LISTS, NOT PILLS (user 2026-12-02): in the Filters box and every menu, an option is a row - a tick box (several
   allowed) or a round button (one of), the name, and its count on the right */
.febody { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 26px; }
.febody section, .febody section.half { grid-column: auto; border-bottom: 0; padding: 14px 0 6px; }
.febody section.wide { grid-column: 1 / -1; border-top: 1px solid var(--line); margin-top: 8px; }
.febody h4.sub { margin-top: 16px; }
.frow3 { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 32px; padding: 5px 8px; border: 0; border-radius: 7px; background: transparent;
  color: var(--dim); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.frow3:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.frow3.on { color: var(--fg); }
.frow3 > span { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.frow3 > span small { color: var(--faint); font-size: 11.5px; }
.frow3 > em { font-style: normal; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.frow3 .fmark { flex: none; width: 15px; height: 15px; border: 1.5px solid var(--line2); border-radius: 4px; display: grid; place-items: center; }
.frow3.r .fmark { border-radius: 50%; }
.frow3.on .fmark { border-color: var(--green); background: var(--green); }
.frow3.c.on .fmark::after { content: ""; width: 7px; height: 4px; border: 2px solid #0d1117; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.frow3.r.on .fmark { background: transparent; }
.frow3.r.on .fmark::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.frow3.part .fmark { border-color: var(--green); }
.frow3.part .fmark::after { content: ""; width: 7px; height: 2px; background: var(--green); }
.frow3 .fdot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.frow3 .in.num { width: 76px; height: 28px; flex: none; }
label.frow3 > span { flex: none; }
.fnum { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; }
.fnum .frange { margin: 0; flex: 1; }
.fnum .in.num { width: 64px; height: 30px; }
.fsecs { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 24px; }
.fsec.open { grid-column: auto; }
.fsech { gap: 2px; }
.fsech .flink { width: 26px; height: 26px; font-size: 12px; }
.finds { margin: 0 0 6px 18px; border-left: 1px solid var(--line); padding-left: 6px; }
.finds .frow3 { min-height: 28px; font-size: 12.5px; }
@media (max-width: 1100px) { .febody { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .febody { grid-template-columns: 1fr; } }
/* the banner menus: the same rows - a tick box or a round button on the left, no green dot, no rounded tiles */
.pop .chip { border-radius: 7px; padding: 7px 8px; }
.pop .chip.on { background: transparent; box-shadow: none; }
.pop .chip:hover { background: rgba(255, 255, 255, .05); }
.pop .chip.on::after { display: none; }
.pop .opts .chip::before, #fam .pcard::before { content: ""; flex: none; width: 15px; height: 15px; box-sizing: border-box; border: 1.5px solid var(--line2); border-radius: 4px; }
#rankopts .chip::before, #resort .chip::before, #sliceopts .chip::before { border-radius: 50%; }
.pop .opts .chip.on::before, #fam .pcard.on::before { border-color: var(--green); background: var(--green) center / 10px no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpath d='M2 5.2 4.2 7.4 8 3' fill='none' stroke='%230d1117' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
#rankopts .chip.on::before, #resort .chip.on::before, #sliceopts .chip.on::before { background: radial-gradient(circle, var(--green) 0 3.5px, transparent 4px); }
#sectoropts .chip.sechead.part::before { background: linear-gradient(var(--green), var(--green)) center / 7px 2px no-repeat; border-color: var(--green); width: 15px; height: 15px; }
.pop .chip i { flex: none; }
#fam { display: grid; gap: 2px; min-width: 230px; }
#fam .pcard { flex-direction: row; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 7px; background: transparent; box-shadow: none; opacity: 1; color: var(--dim); }
#fam .pcard:hover { background: rgba(255, 255, 255, .05); }
#fam .pcard.on { color: var(--fg); border: 0; box-shadow: none; background: transparent; }
#fam .pcard b { flex: 1; text-align: left; }
#fam .pcard .fdot { width: 8px; height: 8px; border-radius: 50%; }
#fam .pcard em { margin-left: auto; }
.pop .bseg button { border-radius: 6px; }
#fam.cards { display: grid !important; grid-template-columns: 1fr !important; gap: 2px; min-width: 240px; }
#fam .pcard { display: flex !important; flex-direction: row !important; min-width: 0; }
#fam .pcard em { font-size: 12px; color: var(--faint); white-space: nowrap; }
#fam .pcard .fdot { display: inline-block; flex: none; }

/* SETUPS | BOARD: one switch, side by side (user 2026-12-02) */
#banner .vseg { display: inline-flex; flex: none; padding: 2px; gap: 2px; border-radius: 10px; background: rgba(255, 255, 255, .05); }
#banner .vseg button { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent;
  color: var(--dim); font: inherit; font-size: 12.5px; cursor: pointer; }
#banner .vseg button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }
#banner .vseg button:hover { color: var(--fg); }
#banner .vseg button.on { color: var(--fg); background: rgba(255, 255, 255, .13); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
@media (max-width: 1420px) { #banner .vseg button span { display: none; } #banner .vseg button { padding: 0 8px; } }
/* THE BIG BOX: a title, the name it is saved under, and a line on what it does */
.fetitle { min-width: 0; display: grid; gap: 4px; }
.fetitle p { margin: 0; }
.fehead .fename { width: 380px; font-size: 16px; font-weight: 600; }
.fehead .fename.need { border-bottom-color: var(--coral); }
/* sectors: every industry listed under its sector, in newspaper columns - nothing hidden */
.fsecs { display: block !important; columns: 4 230px; column-gap: 26px; }
.fsec { break-inside: avoid; margin: 0 0 12px; }
.fsech .frow3 b { font-weight: 600; color: var(--fg); }
.finds { margin: 0 0 0 10px !important; border-left: 1px solid var(--line); padding-left: 6px; }
/* a watchlist's companies, at the top of the box */
.febody section.coms { grid-column: 1 / -1; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.cotools { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cosearch { position: relative; flex: 1 1 320px; max-width: 460px; }
.cosearch .in { width: 100%; box-sizing: border-box; height: 36px; }
.cosugg { position: absolute; left: 0; right: 0; top: 40px; z-index: 5; display: grid; background: var(--panel2, #191d25); border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.cosugg:empty { display: none; }
.cosugg button { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border: 0; background: transparent; color: var(--dim); font: inherit; text-align: left; cursor: pointer; }
.cosugg button:hover, .cosugg button.first { background: rgba(255, 255, 255, .06); color: var(--fg); }
.cosugg b { min-width: 56px; color: var(--fg); }
.cosugg span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cosugg em { font-style: normal; font-size: 12px; color: var(--green); }
.cotools .btn { height: 36px; }
.colist { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 0 24px; max-height: 220px; overflow-y: auto; }
.corow { display: grid; grid-template-columns: 58px minmax(0, 1fr) minmax(0, 1fr) 24px; align-items: center; gap: 8px; height: 32px; border-bottom: 1px solid var(--line); font-size: 13px; }
.corow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.corow .dim { color: var(--faint); font-size: 12px; }
.corow button { width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; color: var(--faint); cursor: pointer; }
.corow button:hover { color: var(--coral); background: rgba(255, 255, 255, .06); }

/* THE FILTERS BOX IN TWO PANES (user 2026-12-02): sections down the left with a summary of each, the chosen section's
   choices on the right */
.fecard { grid-template-rows: auto minmax(0, 1fr) auto; height: min(760px, calc(100vh - 36px)); width: min(980px, 100%); }
.fe2 { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 0; }
.fenav { display: grid; align-content: start; gap: 2px; padding: 12px 10px; border-right: 1px solid var(--line); overflow-y: auto; background: rgba(255, 255, 255, .015); }
.fenav button { position: relative; display: grid; gap: 2px; width: 100%; padding: 9px 12px 9px 14px; border: 0; border-radius: 9px; background: transparent;
  color: var(--dim); font: inherit; text-align: left; cursor: pointer; }
.fenav button:hover { background: rgba(255, 255, 255, .05); color: var(--fg); }
.fenav button.on { background: rgba(255, 255, 255, .09); color: var(--fg); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.fenav .fnt { font-size: 13.5px; font-weight: 600; color: var(--fg); }
.fenav .fns { font-size: 12px; color: var(--faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fenav button.set .fns { color: var(--green); }
.fenav button.set::before { content: ""; position: absolute; left: 4px; top: 14px; width: 5px; height: 5px; border-radius: 50%; background: var(--green); }
.fepane { overflow-y: auto; padding: 16px 22px 18px; min-height: 0; }
.fepane .fept { margin: 0 0 12px; font-size: 16px; }
.fepane h4 { margin: 0 0 8px; font-size: 12px; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.fepane h4.sub { margin-top: 18px; }
.fepane > .frow3, .fepane > label.frow3 { max-width: 520px; }
.fepane .vnote { margin: 10px 2px 0; font-size: 12px; color: var(--faint); line-height: 1.45; max-width: 560px; }
.fepane .fnum { max-width: 520px; }
.fcols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; max-width: 640px; }
.fsech2 { margin: 0 0 10px; font-size: 12.5px; }
.fsech2 em { font-style: normal; color: var(--green); }
.fepane .fsecs { columns: 2 260px; }
.fepane .cotools { margin-bottom: 10px; }
.fepane .colist { max-height: none; grid-template-columns: 1fr; }
@media (max-width: 720px) { .fe2 { grid-template-columns: 1fr; } .fenav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); } }
.fenav { gap: 1px; padding: 10px 8px; } .fenav button { padding: 7px 12px 7px 14px; } .fenav button.set::before { top: 12px; }

/* THE SECTOR PANE: the tree on the left, the companies in the row under the mouse on the right (user 2026-12-02) */
.secwrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
.fepane .fsecs.one { columns: 1; }
.fsecs .frow3.peeking { background: rgba(255, 255, 255, .06); color: var(--fg); }
.peek { position: sticky; top: 0; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .02); max-height: calc(min(760px, 100vh - 36px) - 190px); display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.peekh { display: grid; gap: 2px; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.peekh b { font-size: 14px; }
.peekh span { font-size: 12px; color: var(--faint); }
.peekh em { font-style: normal; font-size: 12px; color: var(--green); }
.peekl { overflow-y: auto; padding: 4px 6px 8px; }
.peekr { display: grid; grid-template-columns: 54px minmax(0, 1fr) 62px 64px; align-items: center; gap: 8px; height: 28px; padding: 0 8px; border-radius: 6px; font-size: 12.5px; }
.peekr:hover { background: rgba(255, 255, 255, .04); }
.peekr span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--dim); }
.peekr i { font-style: normal; text-align: right; color: var(--faint); font-variant-numeric: tabular-nums; }
.peekr em { font-style: normal; text-align: right; color: var(--green); font-size: 12px; }
.peekr.quiet b, .peekr.quiet span { opacity: .6; }
.peekr.quiet em { color: var(--faint); }
.peekr { grid-template-columns: 50px minmax(0, 1fr) 58px 42px; }
.peekcols { height: 24px; margin: 4px 6px 0; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 11px; }
.peekcols b, .peekcols span, .peekcols i, .peekcols em { color: var(--faint) !important; font-weight: 500; opacity: 1 !important; }
.peek { grid-template-rows: auto auto minmax(0, 1fr); }
@media (max-width: 1100px) { .fe2 { grid-template-columns: 210px minmax(0, 1fr); } .secwrap { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); } }

/* EXPANDED BOXES USE THE WINDOW (user 2026-12-02): the Filters box, the watchlist editor and the big chart fill
   nearly all of it, leaving a slim margin so the page behind still shows they sit on top */
.femodal, .wlmodal, .bigwrap { padding: 18px 22px; }
.fecard { width: min(1560px, 100%); height: calc(100vh - 36px); max-height: none; }
.fe2 { grid-template-columns: 300px minmax(0, 1fr); }
.secwrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px; }
.peek { max-height: calc(100vh - 36px - 210px); }
.fepane > .frow3, .fepane > label.frow3, .fepane .fnum { max-width: 640px; }
.fcols { max-width: 820px; }
.fepane .fsecs.one { max-width: none; }
.wlmodal { place-items: center; }
.wlcard { width: min(1100px, 100%); max-height: calc(100vh - 36px); }
.bigbox { width: min(1840px, 100%); height: calc(100vh - 36px); }

/* find a company in the Sector pane (user 2026-12-02) */
.secfind2 { position: relative; max-width: 560px; margin: 0 0 14px; }
.secfind2 .in { width: 100%; box-sizing: border-box; height: 36px; }
.secfound { position: absolute; left: 0; right: 0; top: 40px; z-index: 6; display: grid; background: var(--panel2, #191d25); border-radius: 10px; box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.secfound:empty { display: none; }
.secfound button { display: grid; grid-template-columns: 56px minmax(0, 1fr); grid-template-areas: "t n" "t s"; align-items: center; column-gap: 10px; padding: 7px 10px;
  border: 0; background: transparent; color: var(--dim); font: inherit; text-align: left; cursor: pointer; }
.secfound button:hover { background: rgba(255, 255, 255, .06); color: var(--fg); }
.secfound b { grid-area: t; color: var(--fg); }
.secfound span { grid-area: n; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.secfound em { grid-area: s; font-style: normal; font-size: 12px; color: var(--green); }
.secfound .vnote { padding: 8px 10px; margin: 0; }
.peekr.me { background: color-mix(in srgb, var(--green) 16%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--green) 45%, transparent); }

/* ---------------------------------------------------------------- PHONES (user 2026-12-02: fully usable on a phone) */
/* no hover on a touch screen: the tile buttons and other hover-only controls are always shown */
@media (hover: none) {
  .tile .tacts, .tile .top .q > .tacts, .tile:has(.star.starred) .tacts { opacity: 1; transform: none; pointer-events: auto; }
  .tile .tacts button:not(.star) { opacity: 1 !important; }
  .vwrap .vmenu, .ri .rc { opacity: 1; }
}
@media (max-width: 640px) {
  .mosaic { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .tile { min-width: 0; }
  .tile .meta { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; row-gap: 8px; }
  /* boxes that open over the page fill the phone's screen */
  .fecard, .bigbox { width: 100% !important; height: calc(100dvh - 16px) !important; border-radius: 14px; }
  .clipbox { width: calc(100vw - 24px) !important; max-width: none; box-sizing: border-box; }
}
@media (max-width: 640px) {
  .bigwrap, .femodal, .wlmodal, .clipveil { padding: 8px !important; }
  .bigbox, .fecard { height: calc(100dvh - 16px) !important; }
  /* the expanded chart's header: the ticker keeps its room, the price block wraps under it, the close button stays on screen */
  .bighead { flex-wrap: wrap; gap: 8px; padding: 8px 8px 8px 14px; min-height: 0; }
  .bighead .bigwho { flex: 1 1 auto; min-width: 0; }
  .bighead .sp { display: none; }
  .bighead .tile.bigq { min-width: 0; flex: 0 0 auto; }
  .bighead button { width: 32px; height: 30px; }
  .bighead button[data-z]:not([data-z="0"]) { display: none; }        /* zoom with two fingers instead */
}
@media (max-width: 640px) {
  /* the Filters box: the sections as a strip you swipe sideways, the chosen section's options below it */
  .fe2 { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto minmax(0, 1fr); }
  .fenav { grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; overflow-y: hidden; border-right: 0 !important;
    border-bottom: 1px solid var(--line); max-height: none; align-self: start; }
  .fepane { min-width: 0; }
  .secwrap { grid-template-columns: minmax(0, 1fr) !important; }
  .secwrap .peek { position: static; max-height: 320px; }
}
@media (max-width: 640px) {
  .fefoot { padding: 10px 12px; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
  .fefoot .sp { display: none; }
  .fefoot button, .fefoot .btn { white-space: nowrap; padding-left: 11px; padding-right: 11px; }
  .fehead { padding-left: 16px !important; padding-right: 12px !important; }
}
@media (max-width: 640px) { .fcols, .febody { grid-template-columns: minmax(0, 1fr) !important; } .fsecs { grid-template-columns: minmax(0, 1fr) !important; } }
@media (max-width: 640px) {
  /* the Views and Watchlists menus: across the whole width, under their buttons, rather than off the left edge */
  .vdd .pop.vlist { position: fixed; left: 8px !important; right: 8px !important; width: auto !important; max-width: none; transform: none;
    max-height: 70vh; overflow-y: auto; }
}
@media (max-width: 640px) {
  .fecard { grid-template-columns: minmax(0, 1fr); }                 /* never wider than the phone, whatever is inside */
  .cotools button, .cotools .btn { white-space: normal; text-align: left; height: auto; min-height: 36px; }
}
@media (max-width: 640px) {
  /* the box's header: the title, name and description take the full width; the count and the close button sit above */
  .fecard { overflow-x: hidden; }
  .fehead { flex-wrap: wrap; row-gap: 6px; align-items: flex-start; }
  .fehead .fetitle { order: 2; flex: 1 1 100%; min-width: 0; }
  .fehead .fetitle * { white-space: normal; max-width: 100%; }
  .fehead .fetitle input { width: 100%; box-sizing: border-box; }
  .fehead .sp { order: 0; }
  .fehead .fecount { order: 0; text-align: left; }
  .fehead .fecount small, .fehead .fecount .fecsub { display: none; }
  .fehead > button { order: 1; margin-left: auto; }
}
@media (max-width: 640px) { .fehead .fecount { flex: 1 1 0; min-width: 0; } .fehead .sp { display: none; } }
@media (max-width: 640px) {
  /* the Board on a phone: one setup per row (the Columns setting is for wider screens), its bar wraps onto lines */
  .boardbar { flex-wrap: nowrap; }
  .boardbar .bgroup:has([data-across]), .boardbar [data-bset="across"] { display: none; }
  .board.groups .lanegrid { grid-template-columns: minmax(0, 1fr) !important; }
  .board .lane header { flex-wrap: wrap; }
}

/* THE BANNER'S TOOLS (user 2026-12-02): on a computer the wrapper is invisible - the tools sit in the banner as before */
.gtools { display: contents; }
.gtools > * { flex: none; }
.gtools > .spacer { flex: 1 1 0; min-width: 4px; }
/* on a phone: the name and the search on top, every tool in one strip below that slides sideways; each menu opens
   across the banner's full width just under it */
@media (max-width: 640px) {
  .glassbar { flex-wrap: wrap; row-gap: 8px; margin: 8px 8px 6px; padding: 8px 10px; top: 6px; min-height: 0; }
  .glassbar > .brand { flex: none; }
  .glassbar > .gsearch { flex: 1 1 0 !important; min-width: 0 !important; }
  .gtools { display: flex; align-items: center; gap: 6px; flex: 1 1 100%; min-width: 0; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 1px 0;
}
  .gtools::-webkit-scrollbar { display: none; }
  .gtools > .gsep, .gtools > .spacer { display: none; }
  .gtools > *:last-child { margin-right: 28px; }
  .glassbar .dd, .glassbar .vdd { position: static; }
  .glassbar .dd .pop, .vdd .pop.vlist { position: absolute; left: 0 !important; right: 0 !important; top: calc(100% + 6px) !important;
    width: auto !important; min-width: 0; max-width: none; transform: none; max-height: 70vh; overflow-y: auto; box-sizing: border-box; }
}
@media (max-width: 640px) { .glassbar .dd.vdd, .viewsbar .dd { position: static !important; } }
@media (max-width: 640px) {
  /* a soft fade at the right end of the tool strip: there is more to slide to (drawn on the banner, not the strip, so
     the menus that open from the strip are never faded) */
  .glassbar::after { content: ""; position: absolute; right: 1px; bottom: 1px; width: 34px; height: 46px; pointer-events: none;
    border-radius: 0 0 16px 0; background: linear-gradient(90deg, rgba(22, 26, 34, 0), rgba(22, 26, 34, .95)); }
  .glassbar:has(.dd.open)::after, .glassbar:has(.pop:hover)::after { display: none; }
}

/* the same tiles everywhere (user 2026-12-02): sections and the Board use the Setups grid's 14 px gap */
.board.groups .lanegrid { gap: 14px; }

/* THE FILTERS BOX AS A PANEL (user 2026-12-02): a medium panel centred over the blurred page, never a full-height
   page; inside the Sector section the tree and the company preview scroll on their own */
@media (min-width: 641px) {
  .femodal { background: rgba(6, 8, 12, .55); -webkit-backdrop-filter: blur(12px) saturate(1.1); backdrop-filter: blur(12px) saturate(1.1); padding: 40px; }
  .fecard { width: min(1180px, 100%) !important; height: min(780px, calc(100vh - 80px)) !important; max-height: none;
    box-shadow: 0 30px 90px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .03); }
  .fe2 { grid-template-columns: 250px minmax(0, 1fr) !important; }
  .fepane:has(.secwrap) { display: flex; flex-direction: column; overflow: hidden; }
  .fepane:has(.secwrap) > * { flex: none; }
  .fepane:has(.secwrap) > .secwrap { flex: 1 1 auto; min-height: 0; align-items: stretch; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) !important; gap: 18px; }
  .secwrap > .fsecs { overflow-y: auto; min-height: 0; padding-right: 6px; scrollbar-width: thin; columns: auto !important; column-count: auto !important; display: block !important; }
  .secwrap > .peek { position: static; max-height: none !important; min-height: 0; }
  .peek .peekl { scrollbar-width: thin; }
}

/* the share card's preview: the full 16:9 picture (user 2026-12-02) */
.clipbox.wide { width: min(980px, calc(100vw - 48px)); }
.clipbox.wide .clipimg { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 10px; border: 1px solid var(--line2); display: block; }

/* the marks' legend on the tiles (user 2026-12-02): solid dots, the same colours as on the charts */
.tile .meta .mk.touch { background: #33d6ff; border: 0; width: 8px; height: 8px; }
.tile .meta .mk.dev { width: 8px; height: 8px; }
.tile .meta .mk.dev { background: #ff8a2a; }

/* THE PATTERN CHIP everywhere (user 2026-12-02): the pattern's name in its family's colour with the confidence beside
   it - the same chip as on the share card, on every tile, on the Board and under the expanded chart */
.tile .bot .pchip { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; min-width: 0; padding: 4px 5px 4px 11px; border-radius: 999px;
  background: color-mix(in srgb, var(--pc) 12%, transparent); border: 1px solid color-mix(in srgb, var(--pc) 50%, transparent); }
.tile .bot .pchip > i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }
.tile .bot .pchip > b { font-weight: 650; color: var(--fg); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tile .bot .pchip > .pill { margin: 0; min-width: 0; padding: 1px 9px; font-style: normal; font-weight: 650; font-size: 12.5px; }
.tile.bigfoot .bot .pchip { padding: 5px 6px 5px 13px; gap: 10px; }
.tile.bigfoot .bot .pchip > b { font-size: 15px; }

/* THE PATTERN IN THE STATS BANNER (user 2026-12-02: subtler, built into the bottom banner): Pattern and Confidence are two
   more figures in the same grid and type as the others - row 1: Pattern (two columns), Confidence, Status; row 2: Nearest
   line, Candles, Touches, Deviations. The expanded chart's footer has the room for all seven in one row. */
.tile .meta { grid-template-columns: 1.2fr 1.15fr .85fr .95fr !important; row-gap: 10px !important; column-gap: 10px !important; }
.tile .meta > .pat { grid-column: span 2; }
.tile .meta .pdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; }
.tile .meta b.confv { color: var(--mint); }
.tile.bigfoot .meta { grid-template-columns: 1.6fr repeat(6, minmax(0, 1fr)) !important; max-width: 1500px; }
.tile.bigfoot .meta > .pat { grid-column: auto; }
@media (max-width: 640px) { .tile .meta { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .tile .meta > .pat { grid-column: span 2; } }
.tile.bigfoot .meta { border-top: 0 !important; margin-top: 0 !important; padding-top: 2px !important; }   /* (the footer has its own line) */

/* THE FIGURES IN ONE ROW (user 2026-12-02): six figures spread edge to edge - small tracked capitals for the labels, crisp
   values underneath; the pattern carries its confidence beside its name and gives way (…) if a name is very long */
.tile .meta { display: flex !important; align-items: flex-start; justify-content: space-between; gap: 10px !important; }
.tile .meta > div { flex: none; min-width: 0; }
.tile .meta > .pat { flex: 0 1 auto; grid-column: auto !important; }
.tile .meta span { font-size: 9.5px !important; text-transform: uppercase; letter-spacing: .045em; color: var(--faint); margin-bottom: 4px !important; white-space: nowrap; }
.tile .meta b { font-size: 12.5px !important; font-weight: 500; white-space: nowrap !important; overflow: visible; }
.tile .meta > .pat b { display: flex; align-items: center; min-width: 0; overflow: hidden; }
.tile .meta .patn { font-style: normal; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile .meta .pdot { flex: none; margin-right: 6px !important; vertical-align: 0 !important; }
.tile .meta .confv { flex: none; margin-left: 6px; padding: 0 5px; border-radius: 5px; font-size: 11px; font-weight: 600; line-height: 16px; color: var(--mint);
  background: rgba(62, 207, 142, .12); }
.tile .meta b.out { color: #f5b942; }
.tile .meta .mk { margin-right: 5px !important; }
.tile.bigfoot .meta { justify-content: flex-start; gap: 56px !important; max-width: none; }
.tile.bigfoot .meta span { font-size: 10.5px !important; } .tile.bigfoot .meta b { font-size: 14px !important; }
@media (max-width: 640px) { .tile .meta { flex-wrap: wrap; justify-content: flex-start; gap: 10px 18px !important; } }

/* (fitting the whole pattern name on one row at desktop widths) */
.tile .meta { gap: 8px !important; }
.tile .meta b { font-size: 12px !important; }
.tile .meta .confv { background: none; padding: 0; margin-left: 5px; font-size: 11.5px; }
.tile .meta .pdot { margin-right: 5px !important; }

/* ---------------------------------------------------------------- THE TILE: FLOATING GLASS (user 2026-12-02) */
#tiles .tile, #board .tile { padding: 8px !important; }
.tile .top.thead, .tile .meta {
  background: linear-gradient(180deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028)); border: 1px solid rgba(255, 255, 255, .08) !important;
  border-radius: 12px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 6px 18px rgba(0, 0, 0, .25);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
.tile .top.thead { display: block !important; padding: 10px 13px 9px; white-space: nowrap; }
.tile .thead .hr1, .tile .thead .hr2 { display: flex; align-items: center; gap: 9px; min-width: 0; }
.tile .thead .hr2 { margin-top: 4px; align-items: baseline; }
.tile .thead .n { flex: none; font-size: 11px; color: var(--faint); min-width: 0; }
.tile .thead .s { flex: none; font-weight: 700; font-size: 15.5px; color: var(--fg); }
.tile .thead .nm { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--dim); font-size: 12.5px; }
.tile .thead .hsp { flex: 1 1 4px; }
.tile .thead .hpat { flex: none; display: flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--fg); }
.tile .thead .hpat i, .bighead .hpat i { width: 8px; height: 8px; border-radius: 50%; background: var(--pc); box-shadow: 0 0 8px var(--pc); }
.tile .thead .hpat em, .bighead .hpat em { font-style: normal; color: var(--mint); font-size: 11.5px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: rgba(62, 207, 142, .13); }
.tile .thead .hsec { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--faint); font-size: 11.5px; }
.tile .thead .q { flex: none; display: flex !important; align-items: baseline; gap: 7px; position: static !important; text-align: left; }
.tile .thead .q .chg { font-size: 11.5px; font-weight: 600; }
.tile .thead .q .p { font-size: 15.5px; font-weight: 700; color: var(--fg); }
.tile .thead .q .hcap { font-size: 11.5px; color: var(--faint); margin-left: 2px; } .tile .thead .q .hcap b { color: var(--dim); font-weight: 500; }
.tile .tchart { margin: 8px -8px !important; position: relative; }
.tile .tchart > .tacts { position: absolute !important; top: 2px; right: 10px; left: auto !important; z-index: 3; display: flex; gap: 5px; padding: 0 !important; }
.tile .tchart > .tacts button { background: rgba(20, 24, 32, .82) !important; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.tile .meta { margin: 0 !important; padding: 9px 13px 10px !important; }
.tile .meta span { font-size: 9.5px !important; }
.tile.bigfoot .meta { border-radius: 0; background: none; border: 0 !important; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.bighead .hpat { flex: none; display: flex; align-items: center; gap: 7px; margin-left: 18px; font-size: 14px; font-weight: 600; color: var(--fg); }
.tile.bigq .q { display: flex; align-items: baseline; gap: 8px; } .tile.bigq .q .p { font-size: 17px; font-weight: 700; }
@media (max-width: 640px) { .tile .thead .q .hcap { display: none; } }

/* ---------------------------------------------------------------- THE TILE: HAIRLINE PANELS (user 2026-12-02) */
/* no glass: each panel is marked by a faint outline only; the chart sits inside the same edges as the panels */
.tile .top.thead, .tile .meta { background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, .10) !important; }
.tile .tchart { margin: 8px 0 !important; }
.tile .tchart > .tacts { top: 4px; right: 4px; }
.tile .thead .hcap { flex: none; font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.tile .thead .hcap i, .bigsec .hcap i { font-style: normal; margin: 0 7px 0 0; color: var(--faint); }
.tile .thead .hcap b, .bigsec .hcap b { color: var(--dim); font-weight: 500; }
.bigsec .hcap { margin-left: 7px; }
.bigsec .hcap, .bigsec .hcap b { font-size: inherit !important; }
/* text too long for its tile: drifts to its end and back (setups.js) */
.thead .mq { text-overflow: clip !important; margin-left: -8px; padding-left: 8px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 6px), transparent); mask-image: linear-gradient(90deg, transparent 0, #000 8px, #000 calc(100% - 6px), transparent); }
.thead .mqi { display: inline-block; animation: mq var(--mqt, 8s) ease-in-out infinite alternate; will-change: transform; }
@keyframes mq { 0%, 20% { transform: translateX(0); } 80%, 100% { transform: translateX(var(--mq)); } }
@media (prefers-reduced-motion: reduce) { .thead .mqi { animation: none; } }
/* the sector and the market cap a little closer; the pattern dot solid, no glow */
.tile .thead .hcap { margin-left: -4px; }
.tile .thead .hcap i, .bigsec .hcap i { margin-right: 5px; }
.tile .thead .hpat i, .bighead .hpat i { box-shadow: none !important; }

/* ---------------------------------------------------------------- SMALLER TYPE ON A PHONE (user 2026-12-02) */
/* the whole app a size or two smaller on a phone, so a tile's name, sector, cap and price fit in the width */
@media (max-width: 640px) {
  .glassbar > .brand { font-size: 15px !important; }
  #banner .gsearch { height: 32px; font-size: 13px; } #banner .gsearch input { font-size: 13px !important; }
  .tile .top.thead { padding: 8px 10px 7px; }
  .tile .thead .hr1, .tile .thead .hr2 { gap: 6px; }
  .tile .thead .hr2 { margin-top: 3px; }
  .tile .thead .n { font-size: 9.5px; }
  .tile .thead .s { font-size: 13.5px; }
  .tile .thead .nm { font-size: 11px; }
  .tile .thead .hpat { font-size: 11px; gap: 5px; }
  .tile .thead .hpat i { width: 7px; height: 7px; }
  .tile .thead .hpat em { font-size: 10px; padding: 1px 5px; }
  .tile .thead .hsec, .tile .thead .hcap { font-size: 10px; }
  .tile .thead .hcap { margin-left: -3px; }
  .tile .thead .q { gap: 5px; }
  .tile .thead .q .chg { font-size: 10px; }
  .tile .thead .q .p { font-size: 13.5px; }
  .tile .meta { padding: 7px 10px 8px !important; }
  .tile .meta span { font-size: 8.5px !important; }
  .tile .meta b { font-size: 11px !important; }
  .tile .tacts button { width: 28px; height: 26px; }
  .bighead .bigwho b { font-size: 15px; } .bighead .bigwho span, .bighead .hpat { font-size: 11.5px; }
  .tile.bigq .q .p { font-size: 14.5px; }
  .tile.bigfoot .meta span { font-size: 8.5px !important; } .tile.bigfoot .meta b { font-size: 11px !important; }
}

/* ---------------------------------------------------------------- A SHADE SMALLER (user 2026-12-02) */
/* the tiles a shade smaller on a computer and a touch smaller again on a phone, so names and sectors fit without moving */
.tile .thead .n { font-size: 10.5px; }
.tile .thead .s { font-size: 14.5px; }
.tile .thead .nm { font-size: 12px; }
.tile .thead .hpat { font-size: 12px; }
.tile .thead .hpat em { font-size: 11px; }
.tile .thead .hsec, .tile .thead .hcap, .tile .thead .q .chg { font-size: 12px;   /* one shade up (user 2026-12-03) */ }
.tile .thead .q .p { font-size: 14.5px; }
.tile .meta span { font-size: 9px !important; }
.tile .meta b { font-size: 12px !important; }
.thead .fitcut { text-overflow: ellipsis !important; }
@media (max-width: 640px) {
  .tile .thead .n { font-size: 9px; }
  .tile .thead .s { font-size: 12.5px; }
  .tile .thead .nm, .tile .thead .hpat { font-size: 10.5px; }
  .tile .thead .hpat em { font-size: 9.5px; }
  .tile .thead .hsec, .tile .thead .hcap, .tile .thead .q .chg { font-size: 9.5px; }
  .tile .thead .q .p { font-size: 12.5px; }
  .tile .meta { justify-content: space-between !important; gap: 6px !important; }      /* spread edge to edge, as on a computer */
  .tile .meta span { font-size: 8px !important; }
  .tile .meta b { font-size: 10.5px !important; }
  .glassbar > .brand { font-size: 14px !important; }
  #banner .gsearch { height: 30px; font-size: 12.5px; } #banner .gsearch input { font-size: 12.5px !important; }
}

/* ---------------------------------------------------------------- CONFIDENCE OUT OF 100 (user 2026-12-03) */
/* the pill shows the score alone (hover or tap explains it); its text (not its tinted box) ends level with the price and the figures below,
   so the box reaches into the panel's padding by its own padding */
.tile .thead .hpat em, .bighead .hpat em { margin-right: -6px; white-space: nowrap; }
.hpat em small { font-size: .9em; font-weight: 500; opacity: .75; color: inherit; }
@media (max-width: 640px) { .tile .thead .hpat em { margin-right: -5px; } }
.tile .thead .hpat em, .bighead .hpat em { cursor: help; }

/* ---------------------------------------------------------------- LEFT RAIL WITH NAMES (user 2026-12-03) */
/* the tile's buttons sit in a column down the chart's left edge, over older history rather than the live pattern.
   Pointing at the tile slides them in one after another; pointing at one opens it to show its name. If there are ever
   more buttons than fit, the column scrolls (wheel or drag) inside the chart. A watched stock keeps its mark showing. */
.tile .tchart > .tacts { position: absolute !important; top: 4px !important; left: 4px !important; right: auto !important; z-index: 3;
  display: flex; flex-direction: column; align-items: flex-start; gap: 5px; width: 150px; max-height: calc(100% - 8px);
  overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; padding: 0 !important;
  opacity: 1 !important; transform: none !important; pointer-events: none !important; }
.tile .tchart > .tacts::-webkit-scrollbar { display: none; }
.tile .tchart > .tacts button { pointer-events: auto; flex: none; display: flex; align-items: center; justify-content: flex-start;
  width: auto !important; min-width: 28px; height: 26px !important; padding: 0 5px; gap: 0; border-radius: 7px;
  border: 1px solid transparent !important; background: rgba(20, 24, 32, .66) !important; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  color: var(--dim); opacity: 0 !important; transform: translateX(-10px);
  transition: opacity .22s ease, transform .32s cubic-bezier(.2, .8, .2, 1), background .15s, border-color .15s, color .15s; }
.tile .tchart > .tacts button svg { flex: none; width: 16px; height: 16px; }
.tile .tchart > .tacts button svg.tvlogo { width: 17px; height: 14px; }
.tile:hover .tchart > .tacts button, .tile:focus-within .tchart > .tacts button { opacity: 1 !important; transform: none; }
.tile:hover .tchart > .tacts button:nth-child(2) { transition-delay: .04s, .04s, 0s, 0s, 0s; }
.tile:hover .tchart > .tacts button:nth-child(3) { transition-delay: .08s, .08s, 0s, 0s, 0s; }
.tile:hover .tchart > .tacts button:nth-child(4) { transition-delay: .12s, .12s, 0s, 0s, 0s; }
.tile:hover .tchart > .tacts button:nth-child(n+5) { transition-delay: .16s, .16s, 0s, 0s, 0s; }
.tile .tchart > .tacts button.star.starred { opacity: 1 !important; transform: none; color: #f5b942; }
.tile .tchart > .tacts button.star.starred svg { fill: #f5b942; }
.tile .tchart > .tacts .lb { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; font-size: 11.5px; font-weight: 500;
  transition: max-width .28s cubic-bezier(.2, .8, .2, 1), margin .28s cubic-bezier(.2, .8, .2, 1); }
.tile .tchart > .tacts button:hover, .tile .tchart > .tacts button:focus-visible, .tile .tchart > .tacts button[data-tv]:hover {
  background: rgba(51, 214, 255, .13) !important; border-color: rgba(51, 214, 255, .38) !important; color: #fff; }
.tile .tchart > .tacts button:hover .lb, .tile .tchart > .tacts button:focus-visible .lb { max-width: 110px; margin-left: 6px; }
@media (hover: none) {                                          /* phones: no hover, so the column always shows (icons only) */
  .tile .tchart > .tacts button { opacity: 1 !important; transform: none; }
  .tile .tchart > .tacts button:hover .lb { max-width: 0; margin-left: 0; }
}

/* ---------------------------------------------------------------- TILE ZOOM AND DRAG (user 2026-12-03) */
/* a tile's chart can be dragged sideways and zoomed with the wheel; ⟲ (top right of the chart, when moved) puts it back */
/* (user 2026-12-03) hovering never takes over; a click switches the chart on: a ring, a hint, and the grab hand */
.tile .tchart canvas[data-i] { cursor: pointer; }
.tile.tnavon .tchart canvas[data-i] { cursor: grab; }
.tile.tnavon .tchart canvas.tnavdrag { cursor: grabbing; }
.tile.tnavon { box-shadow: 0 0 0 1.5px rgba(51, 214, 255, .55), 0 10px 30px rgba(0, 0, 0, .35) !important; }
.tile .tchart .tnavhint { position: absolute; left: 50%; top: 4px; transform: translateX(-50%); z-index: 3; pointer-events: none;
  padding: 3px 9px; border-radius: 999px; background: rgba(13, 17, 25, .82); border: 1px solid var(--line2); color: var(--dim);
  font-size: 11px; white-space: nowrap; opacity: 0; transition: opacity .2s; }
.tile .tchart .tnavhint b { color: var(--fg); font-weight: 600; }
.tile.tnavon .tchart .tnavhint { opacity: 1; animation: tnavhint 3.2s ease forwards; }
@keyframes tnavhint { 0%, 70% { opacity: 1; } 100% { opacity: 0; } }
.tile .tchart .tnavreset { position: absolute; top: 4px; right: 4px; z-index: 3; width: 28px; height: 26px; padding: 0; display: grid; place-items: center;
  border: 1px solid var(--line2); border-radius: 7px; background: rgba(20, 24, 32, .78); color: var(--dim); font-size: 15px; cursor: pointer; }
.tile .tchart .tnavreset:hover { color: #fff; border-color: rgba(51, 214, 255, .38); background: rgba(51, 214, 255, .13); }
.tile .tchart .tnavreset[hidden] { display: none; }

/* ---------------------------------------------------------------- THE CHANGE, LIKE A BROKER (user 2026-12-03) */
/* the day's change, then before the open / after the close the move since the 4 pm close ("Pre" / "AH") */
.chg .up { color: var(--mint); } .chg .dn { color: var(--coral); }
/* THE SESSION PILL (user 2026-12-03): PRE in blue, AH in violet; the move itself in green or red */
.chg .xchg { margin-left: 7px; display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 7px 1px 6px; border-radius: 999px;
  font-size: .92em; line-height: 1.35; vertical-align: 1px; cursor: help; }
.chg .xchg.pre { background: rgba(108, 182, 255, .14); } .chg .xchg.ah { background: rgba(199, 155, 255, .15); }
.chg .xchg i { font-style: normal; font-weight: 800; font-size: .82em; letter-spacing: .04em; }
.chg .xchg.pre i { color: #6cb6ff; } .chg .xchg.ah i { color: #c79bff; }
.chg .xchg em { font-style: normal; font-weight: 700; }

/* ---------------------------------------------------------------- EVEN SPACING AND CENTRED ICONS (user 2026-12-03) */
/* the gap from the banner to the first row of tiles = the gap between tiles (14 px), and the tiles' outer edges line up
   with the banner's (wider screens; the phone layout keeps its own) */
@media (min-width: 761px) {
  .wrap { padding-top: 0; padding-left: 10px; padding-right: 10px; }
  #tiles.mosaic { padding-top: 6px; }
  #board { padding-top: 6px; }
}
.bighead button svg, .tile .tchart .tnavreset svg { width: 16px; height: 16px; display: block; fill: none; stroke: currentColor;
  stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tile .tchart .tnavreset svg { width: 14px; height: 14px; }

/* ---------------------------------------------------------------- PRICE ROW CENTRED (user 2026-12-03) */
/* the change (and the session pill) sit on the middle of the price, not on its text baseline */
.tile .thead .q, .tile.bigq .q { align-items: center !important; }
.tile .thead .q .chg, .tile.bigq .q .chg { display: inline-flex; align-items: center; line-height: 1; }
.tile .thead .q .p, .tile.bigq .q .p { line-height: 1; }
.chg .xchg { vertical-align: middle; align-items: center; }
