/* Markets — Attio draft, layout B (2026-10-25), js/markets-attio-drafts.js. Values measured on app.attio.com's
   Companies table and the approved Screener (user: "a good table because there is some more color/icons and
   variety" — tinted icon squares, tinted tags, outlined pills). Attio's radii, so square_corners.py skips this file. */
html.at-done .mk3.mkad-on > .mk3-wrap { display: none !important; }
.mkad { --tint: #F7F7FD; color: var(--a-ink); font: 500 14px/20px Inter, system-ui, sans-serif; letter-spacing: -0.07px; }
html[data-theme="dark"] .mkad { --tint: #16171F; }
.mkad .sp { flex: 1; }
.mkad .mu { color: var(--a-faint, rgba(0,0,0,.4)); }
.mkad .mu2 { color: var(--a-label); }
.mkad .up { color: var(--a-pos-ink, #127A52); } .mkad .dn { color: var(--a-neg-ink, #B4213D); }
.mkad .cnt { display: inline-block; min-width: 16px; height: 16px; margin-left: 6px; padding: 0 4px; border-radius: 6px; background: rgba(0,0,0,.04); box-shadow: inset 0 0 0 1px var(--a-line);
  font: 500 11px/16px Inter, system-ui, sans-serif; color: #505155; text-align: center; font-variant-numeric: tabular-nums; }
html[data-theme="dark"] .mkad .cnt { background: rgba(255,255,255,.05); color: #D9DADE; }
.mkad-none { padding: 12px; color: var(--a-label); }

/* view row (Attio's 48px row: view switcher left, tools right) */
.mkad-vrow { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border-bottom: 1px solid var(--a-line); }
.mkad-vrow.mkad-off { border-bottom: 0; height: 40px; }
.mkad .mka-btn .v { color: var(--a-ink); }
.mkad-draft { height: 24px; padding: 0 8px; border: 1px dashed var(--a-ring); border-radius: 8px; background: none; color: var(--a-label); font: 500 12px/22px Inter, system-ui, sans-serif; cursor: pointer; }
.mkad-draft:hover { color: var(--a-ink); background: var(--a-hover); }

/* sections: stacked, full width; head = title 14/600 + count pill, ghost links right */
.mkad-s { border-bottom: 1px solid var(--a-line); }
.mkad-s > header { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; }
.mkad-s > header .mst { font: 600 14px/20px Inter, system-ui, sans-serif; color: var(--a-ink); }
.mkad-s > header .cnt { margin-left: 0; }
.mkad-gh { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 8px; border-radius: 8px; color: var(--a-label); font: 500 14px/20px Inter, system-ui, sans-serif; text-decoration: none; }
.mkad-gh:hover { background: var(--a-hover); color: var(--a-ink); }
.mkad-gh svg { width: 15px; height: 15px; }
.mkad-kv { font: 500 13px/20px Inter, system-ui, sans-serif; color: var(--a-label); margin-left: 12px; }
.mkad-kv b { font-weight: 500; color: var(--a-ink); margin-left: 4px; }

/* ── Attio table ── fixed layout; columns keep their proportions and fill the width (user: no white space), 40px head, 36px rows, hairlines both ways */
.mkad-tw { overflow-x: auto; border-top: 1px solid var(--a-line); }
.mkad-vrow + .mkad-tw { border-top: 0; } /* the row's own bottom rule is the line; both stacked read as a 2px bar */
.mkad-t { table-layout: fixed; border-collapse: separate; border-spacing: 0; font: 500 14px/20px Inter, system-ui, sans-serif; letter-spacing: -0.07px; font-variant-numeric: tabular-nums; color: var(--a-ink); }
.mkad-t th { height: 40px; padding: 0; text-align: left; font-weight: 500; border-bottom: 1px solid var(--a-line); border-right: 1px solid var(--a-line); white-space: nowrap; vertical-align: middle; }
.mkad-t td { height: 36px; padding: 8px 12px 0; vertical-align: top; border-bottom: 1px solid var(--a-line); border-right: 1px solid var(--a-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-sizing: border-box; }
.mkad-t tbody tr:last-child td { border-bottom: 0; }
.mkad-t .nr { text-align: right; }
.mkad-t td.mkad-none { padding: 8px 12px; color: var(--a-label); }
/* header cell = a button: hover tint, ⌄ appears, opens the column menu */
.mkad-t .th, .mkad-t .th0 { all: unset; box-sizing: border-box; display: flex; align-items: center; gap: 6px; width: 100%; height: 40px; padding: 0 12px; cursor: pointer; color: var(--a-ink); font: 500 14px/20px Inter, system-ui, sans-serif; letter-spacing: -0.07px; }
.mkad-t .th0 { cursor: default; display: block; line-height: 40px; }
.mkad-t th.nr .th { flex-direction: row-reverse; }
.mkad-t .th .tl { overflow: hidden; text-overflow: ellipsis; }
.mkad-t .th .tc { display: inline-flex; color: var(--a-faint); opacity: 0; }
.mkad-t th.nr .th .tc { margin-right: auto; }
.mkad-t th:not(.nr) .th .tc { margin-left: auto; }
.mkad-t .th svg { width: 14px; height: 14px; }
.mkad-t .th:hover, .mkad-t .th.open { background: var(--a-hover); }
.mkad-t .th:hover .tc, .mkad-t .th.open .tc { opacity: 1; }
.mkad-t .th:focus-visible { outline: 2px solid var(--a-blue); outline-offset: -2px; }
.mkad-t .th .sa { display: inline-flex; color: var(--a-blue); }
/* the Period column and the sorted column: Attio's faint lavender cell tint; a blue dot marks the Period column */
.mkad-t th.pp .tl::after { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 0 2px 6px; border-radius: 50%; background: var(--a-blue); vertical-align: middle; }
/* group band (Attio's grouped list): 32px, faint fill, 12/500 grey label + count pill */
.mkad-t tr.mkad-g td { height: 32px; padding: 0 12px; vertical-align: middle; color: var(--a-label); font: 500 12px/16px Inter, system-ui, sans-serif; border-right: 0; }
/* first column: record chip (20px tinted icon / logo / flag + name + grey sub), hover reveals icon buttons on the right */
.mkad-t .c0 { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.mkad .mkc { display: inline-flex; align-items: center; gap: 8px; min-width: 0; height: 20px; }
.mkad .mkc .cn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkad .mkc .mks { color: var(--a-faint); flex: none; font-size: 13px; }
.mkad .ic { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--tb, rgba(0,0,0,.04)); color: var(--tn, rgba(0,0,0,.55)); font-size: 12px; overflow: hidden; }
.mkad .ic.lg { object-fit: contain; background: #fff; box-shadow: inset 0 0 0 1px var(--a-line); }
.mkad .ic.fl { background: none; font-size: 15px; line-height: 20px; }
.mkad-t .ra { display: none; margin-left: auto; gap: 2px; flex: none; }
.mkad-t tr:hover .ra { display: inline-flex; }
.mkad-t tr:has(:focus-visible) .ra { display: inline-flex; }   /* own rule: no :has() support drops the whole list */
.mkad-t .mkrb { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; color: var(--a-label); box-shadow: var(--a-btn, inset 0 0 0 1px var(--a-ring)); background: var(--a-bg); }
.mkad-t .mkrb:hover { color: var(--a-ink); background: var(--a-hover); }
.mkad-t .mkrb svg { width: 13px; height: 13px; }
/* outlined pill (the Screener's "Custom" / "Ready-made") for fund tickers; tinted tags for categories */
.mkad .mono { display: inline-block; height: 20px; padding: 0 6px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--a-ring); background: var(--a-bg);
  font: 500 12px/20px Inter, system-ui, sans-serif; color: var(--a-ink); letter-spacing: 0; vertical-align: top; }
.mkad-t .at-tag-p { height: 20px; font-size: 12px; vertical-align: top; }
/* Attio checkbox: 16px, r6, faint ring; ticked = blue + white check; the chart line's colour = a dot after the name */
.mkad-t .pk { display: inline-flex; align-items: center; height: 20px; cursor: pointer; flex: none; }
.mkad-t .pk input { position: absolute; opacity: 0; pointer-events: none; }
.mkad-t .pk i.mkck { width: 16px; height: 16px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--a-check, rgba(0,0,0,.09)); background: var(--a-bg); }
.mkad-t .pk:hover i.mkck { box-shadow: inset 0 0 0 1px var(--a-ring); }
.mkad-t .pk input:checked + i.mkck { box-shadow: none; background: var(--a-blue, #266DF0) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat; }
.mkad-t .pk input:focus-visible + i.mkck { outline: 2px solid var(--a-blue); outline-offset: 1px; }
.mkad-t .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; margin-top: 6px; }

/* base.html forces every light-mode `thead th` (#f1f5f9) and `tbody tr` (white) with !important */
html[data-theme] .mkad .mkad-t:not(#_) > thead > tr > th { background: var(--a-bg) !important; color: var(--a-ink) !important; font-weight: 500 !important; }
html[data-theme] .mkad .mkad-t:not(#_) > tbody > tr:not(.mkad-g) > td { background: var(--a-bg) !important; }
html[data-theme] .mkad .mkad-t:not(#_) > tbody > tr:not(.mkad-g) > td:is(.pp, .srt) { background: var(--tint) !important; }
html[data-theme] .mkad .mkad-t:not(#_) > tbody > tr.mkad-g > td { background: var(--a-fill) !important; }

/* ── valuation & sentiment: selectable table left, the selected row's history chart right ── */
.mkad-split { display: grid; grid-template-columns: minmax(0, 560px) minmax(0, 1fr); border-top: 1px solid var(--a-line); }
.mkad-split .gtw { border-right: 1px solid var(--a-line); }
.mkad-t.gt { width: 100%; }
.mkad-t.gt tr.gsel { cursor: pointer; }
html[data-theme] .mkad .mkad-t.gt:not(#_) tr.gsel:hover td { background: var(--a-hover) !important; }
html[data-theme] .mkad .mkad-t.gt:not(#_) tr.gsel.on td { background: rgba(38,109,240,.06) !important; }
/* no blue left edge (user, 2026-10-26: "I don't like the way that you highlight on the left with a blue line"): tint only */
.mkad-t.gt tr.gsel:focus-visible { outline: 2px solid var(--a-blue); outline-offset: -2px; }
.mkad-t .pctb { display: inline-block; width: 44px; height: 4px; margin: 0 8px 3px 0; border-radius: 999px; background: rgba(0,0,0,.06); vertical-align: middle; overflow: hidden; }
html[data-theme="dark"] .mkad-t .pctb { background: rgba(255,255,255,.08); }
.mkad-t .pctb i { display: block; height: 100%; border-radius: 999px; background: var(--a-blue); }
.gchart { display: flex; flex-direction: column; min-width: 0; padding: 0 12px 8px; }
.gch-h { display: flex; align-items: center; gap: 10px; height: 41px; border-bottom: 1px solid var(--a-line); margin: 0 -12px; padding: 0 12px; }
.gch-h .gnow { font: 600 14px/20px Inter, system-ui, sans-serif; }
.gch { flex: 1; min-height: 260px; padding-top: 8px; }
.mkad-seg { display: inline-flex; height: 28px; padding: 2px; border-radius: 10px; background: rgba(0,0,0,.04); }
html[data-theme="dark"] .mkad-seg { background: rgba(255,255,255,.05); }
.mkad-seg button { height: 24px; padding: 0 8px; border: 0; border-radius: 8px; background: none; color: var(--a-label); font: 500 13px/24px Inter, system-ui, sans-serif; cursor: pointer; }
.mkad-seg button.on { background: var(--a-bg); color: var(--a-ink); box-shadow: 0 1px 2px -1px rgba(0,0,0,.04), 0 0 0 1px rgba(0,0,0,.06); }
.mkad-body { container-type: inline-size; }
@container (max-width: 900px) { .mkad-split { grid-template-columns: minmax(0, 1fr); } .mkad-split .gtw { border-right: 0; border-bottom: 1px solid var(--a-line); } }

/* charts */
.mkad-ch { padding: 0 12px 8px; min-height: 290px; border-top: 1px solid var(--a-line); }
.mkad svg { display: block; }
.mkad .gl { stroke: var(--a-line); stroke-dasharray: 3 3; }
.mkad .gl.z { stroke: var(--a-ring); stroke-dasharray: none; }
.mkad .avg { stroke: var(--a-label); stroke-dasharray: 4 4; opacity: .7; }
.mkad .mkax { font: 500 11px Inter, system-ui, sans-serif; fill: var(--a-label); font-variant-numeric: tabular-nums; }
.mkad .ed { stroke: var(--a-bg); stroke-width: 2; }
.mkad-lg { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 0 4px; }
.mkad-lg .lgi { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px 0 6px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--a-line); font: 500 13px/20px Inter, system-ui, sans-serif; }
.mkad-lg .lgi i { width: 8px; height: 8px; border-radius: 50%; }

/* column-menu icons */
.mkad-menu .aiq-mi { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; background: none; border: 0; cursor: pointer; }
.mkad-menu .mi-ic { display: inline-flex; color: var(--a-label); }
.mkad-menu .mi-ic svg { width: 16px; height: 16px; }

/* the tick box: the page's .cb (card body padding) once stretched it to 28x16 — now .mkck, a 16px rounded square */
.mkad-t .pk i.mkck { display: block; flex: none; width: 16px; min-width: 16px; height: 16px; padding: 0; border-radius: 5px; }
.mkad-t .pk { width: 16px; justify-content: center; }
/* index code squares (SPX, NDX, DAX …): 20px, region tint, 7.5px bold caps — the same icon on every index row */
.mkad .ic.code { width: 26px; font: 700 8px/20px Inter, system-ui, sans-serif; letter-spacing: -0.01em; }

/* charts, round 2 (user: valuation chart "doesn't look good", performance "could be better") */
.mkad-cw { position: relative; }
.mkad .base { stroke: var(--a-ring); }
.mkad .tk { stroke: var(--a-ring); }
.mkad .avg { stroke: var(--a-label); stroke-dasharray: 3 4; opacity: .55; }
.mkad .tag rect { fill: var(--a-ink); }
.mkad .tag text { font: 600 11px Inter, system-ui, sans-serif; fill: #fff; font-variant-numeric: tabular-nums; }
.mkad .tag.ghost rect { fill: var(--a-bg); stroke: var(--a-ring); }
.mkad .tag.ghost text { fill: var(--a-label); font-weight: 500; }
.mkad .ov { fill: transparent; cursor: crosshair; }
.mkad .hx { stroke: var(--a-label); stroke-width: 1; stroke-dasharray: 2 3; }
.mkad .hd { stroke: var(--a-bg); stroke-width: 2; }
.mkad-tip { position: absolute; z-index: 5; min-width: 168px; padding: 8px 10px; border-radius: 10px; background: var(--at-pop-bg, var(--a-bg)); box-shadow: var(--at-pop-sh, 0 4px 12px rgba(0,0,0,.12));
  font: 500 12px/18px Inter, system-ui, sans-serif; pointer-events: none; font-variant-numeric: tabular-nums; }
.mkad-tip[hidden] { display: none; }
.mkad-tip .td { color: var(--a-label); margin-bottom: 4px; }
.mkad-tip .tr { display: flex; align-items: center; gap: 6px; }
.mkad-tip .tr i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mkad-tip .tr .tl { flex: 1; color: var(--a-ink); white-space: nowrap; }
.mkad-tip .tr b { font-weight: 600; margin-left: 12px; }
.mkad-lgn { margin-left: auto; align-self: center; font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--a-label); }
.gch { overflow: hidden; }

/* Attio's "+ Add column": a blank last column; its header always reads "+ Add column" in grey (user's reference,
   2026-10-25 — the same cell the Watchlist/My stocks tables use) and lists the columns you can add */
.mkad-t th.addc .addb { flex-direction: row !important; gap: 8px; padding: 0 16px; color: var(--a-mute); }
.mkad-t th.addc .addb svg { width: 16px; height: 16px; }
.mkad-t th.addc .addb .tl { font: 500 14px/20px Inter, system-ui, sans-serif; letter-spacing: -0.07px; opacity: 1; }
.mkad-t th.addc .addb:hover, .mkad-t th.addc .addb.open { color: var(--a-ink); }
.mkad-t td.addc { padding: 0; }

/* charts on the site's engine (AiqChart, canvas). The engine's own layers: .aqc canvas / .aqc-legends */
.mkad-aq { position: relative; height: 320px; border-top: 1px solid var(--a-line); }
.mkad-aq.aqc canvas { position: absolute; inset: 0; }
.mkad-aq .aqc-top { cursor: crosshair; touch-action: none; }
.mkad-aq .aqc-legends { position: absolute; inset: 0; pointer-events: none; font: 500 12px/16px Inter, system-ui, sans-serif; }
.mkad-aq .aqc-text-editor { position: absolute; }
.gchart .mkad-aq { flex: 1; height: auto; min-height: 280px; border-top: 0; margin: 0 -12px -8px; }
/* chart toolbar row (Attio 44px row): index chips + Add on the left; range, type, scale, studies on the right */
.mkad-tb { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-top: 1px solid var(--a-line); flex-wrap: wrap; }
.mkad-pchips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mkad-pchip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 2px 0 8px; border-radius: 8px; box-shadow: inset 0 0 0 1px var(--a-line); font: 500 13px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
.mkad-pchip > i { width: 8px; height: 8px; border-radius: 50%; }
.mkad-pchip button { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 0; border-radius: 6px; background: none; color: var(--a-faint); cursor: pointer; font-size: 11px; }
.mkad-pchip button:hover { background: var(--a-hover); color: var(--a-ink); }
.mkad-padd { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 8px 0 6px; border: 1px dashed var(--a-ring); border-radius: 8px; background: var(--a-fill); color: var(--a-mute); font: 500 13px/20px Inter, system-ui, sans-serif; cursor: pointer; }
.mkad-padd:hover { color: var(--a-ink); }
.mkad-padd svg { width: 14px; height: 14px; }
.mkad .mkad-mb { height: 28px; }
.mkad .mkad-mb .cnt { margin-left: 2px; }
.gch-h { flex-wrap: wrap; height: auto; min-height: 44px; gap: 8px; }
.mkad-s > header .mkad-seg { margin-left: 4px; }
.mkad-menu { max-height: min(460px, 70vh); overflow-y: auto; }
/* no doubled rules (user: "avoid thick lines"): a table's last column has no right border — the panel edge or the
   next panel's rule draws it once */
.mkad-t :is(th, td):last-child { border-right: 0 !important; }
/* the engine's own legend line (study names, ◐ ✕ buttons) — the chips above already label each line */
.mkad-aq .aqc-legends { display: none; }
/* the views as a row of boxed tabs (user, 2026-10-29: "tabs in the way that Koyfin does it"); same look as the stock
   pages' section tabs (aiq-table-attio.css .at-ft-t): a tinted box per tab, the open one lifted. Ask AI is gone. */
.mkad-tabrow { gap: 6px; }
.mkad-tabs { display: flex; align-items: center; gap: 4px; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.mkad-tabs::-webkit-scrollbar { display: none; }
.mkad-tabs.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 48px), transparent); }
.mkad-tabs.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px); mask-image: linear-gradient(90deg, transparent, #000 48px); }
.mkad-tabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(90deg, transparent, #000 48px, #000 calc(100% - 48px), transparent); }
.mkad-tab { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border: 0; border-radius: 4px; cursor: pointer; white-space: nowrap;
  font: 500 14px Inter, system-ui, sans-serif; color: var(--a-mute); background: var(--a-fill, rgba(0,0,0,.04)); }
.mkad-tab:has(.ic) { padding-left: 6px; }
.mkad-tab .ic { width: 20px; height: 20px; font-size: 12px; }   /* the icon's Attio colour tile (sq(), user 2026-10-29) */
.mkad-tab:hover { color: var(--a-ink); background: var(--a-hover, rgba(0,0,0,.06)); }
.mkad-tab.on { background: var(--a-bg, #fff); color: var(--a-ink); box-shadow: inset 0 0 0 1px var(--a-line), 0 1px 2px rgba(0,0,0,.06); }
html[data-theme="dark"] .mkad-tab { background: rgba(255,255,255,.05); }
html[data-theme="dark"] .mkad-tab.on { background: transparent; box-shadow: inset 0 0 0 1px #455DDC; }
.mkad-tmore { flex: none; width: 28px; height: 28px; border: 0; border-radius: 50%; background: var(--a-fill, rgba(0,0,0,.04)); color: var(--a-ink); cursor: pointer; }
.mkad-tmore:hover { background: var(--a-hover); }
.mkad-tmore[hidden] { display: none; }
/* View settings = the page's one blue button (user, 2026-10-29), Attio primary */
.mkad .mka-btn.mkad-blue:not(#_) { background: #266DF0 !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 2px 4px -2px rgba(38,109,240,.12) !important; }
.mkad .mka-btn.mkad-blue:not(#_):hover, .mkad .mka-btn.mkad-blue.open:not(#_) { background: #215BC4 !important; }
.mkad .mka-btn.mkad-blue:not(#_) :is(svg, span, .v) { color: #fff !important; }
.mkad-rng { font: 500 13px/20px Inter, system-ui, sans-serif; color: var(--a-label); white-space: nowrap; }
/* News: the topics as a visible segmented row + a search box (user: News "hard to navigate") */
.mkad-ntop { overflow: hidden; }
.mkad-seg { display: flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--a-fill, rgba(0,0,0,.04)); overflow-x: auto; scrollbar-width: none; min-width: 0; }
.mkad-seg::-webkit-scrollbar { display: none; }
.mkad-seg button { flex: none; height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: none; color: var(--a-mute); font: 500 13px/20px Inter, system-ui, sans-serif; cursor: pointer; white-space: nowrap; }
.mkad-seg button:hover { color: var(--a-ink); }
.mkad-seg button.on { background: var(--a-bg, #fff); color: var(--a-ink); box-shadow: 0 0 0 1px var(--a-line), 0 1px 2px rgba(0,0,0,.06); }
html[data-theme="dark"] .mkad-seg button.on { background: rgba(255,255,255,.1); }
/* the seg's 2px padding + 26px buttons = 30px; the 28px from the old .mkad-seg rule clipped the pills' bottom edge */
.mkad-ntop .mkad-seg { height: auto; }
/* desktop: the topics are a second row of tabs like Superinvestors' Stock screens (user 2026-10-31) — plain words, the open
   one ink 600 with a 2px ink bar on the row's bottom rule; no pill box */
html.aiq-desk .mkad-ntop .mkad-seg:not(#_) { align-self: stretch; height: auto; gap: 2px; padding: 0; border-radius: 0; background: none; }
html.aiq-desk .mkad-ntop .mkad-seg button:not(#_) { position: relative; height: auto; padding: 0 9px; border-radius: 0; background: none; box-shadow: none; font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--a-label); }
html.aiq-desk .mkad-ntop .mkad-seg button:not(#_):hover { color: var(--a-ink); }
html.aiq-desk .mkad-ntop .mkad-seg button.on:not(#_) { color: var(--a-ink); font-weight: 600; }
html.aiq-desk .mkad-ntop .mkad-seg button.on:not(#_)::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--a-ink); }
.mkad-ntop .mkad-search { order: 2; } /* the spacer is order 1, the gear 3: search sits at the right, beside the gear */
/* search: a 28px icon until clicked, then it opens to a box (stays open while it holds text) */
.mkad-search { flex: none; display: inline-flex; align-items: center; gap: 6px; width: 28px; height: 28px; padding: 0 6px; border-radius: 8px; color: var(--a-label); cursor: pointer; overflow: hidden; }
.mkad-search:hover { background: var(--a-hover); color: var(--a-ink); }
.mkad-search:not(.open) input { width: 0; pointer-events: none; }
.mkad-search.open { width: 220px; padding: 0 8px; cursor: text; background: none; box-shadow: inset 0 0 0 1px var(--a-line); }
.mkad-search svg { width: 15px; height: 15px; flex: none; }
.mkad-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: none !important; box-shadow: none !important; padding: 0 !important; color: var(--a-ink); font: 500 13px/20px Inter, system-ui, sans-serif; }
@media (max-width: 767px) { .mkad-search.open { width: 140px; } }
/* calendar: releases already out read quieter; the actual figure is the one to see */
.mkad-t tr.mkad-past td { color: var(--a-label); }
.mkad-t b.act { font-weight: 600; color: var(--a-ink); }
/* News: the headline is the link */
.mkad-hl { color: var(--a-ink); text-decoration: none; }
.mkad-hl:hover { color: #266DF0; text-decoration: underline; text-underline-offset: 2px; }
/* row 3 on Today (Attio's Sorted by · Filter row): the chart's chips, then a dashed "+ Add" like Attio's Filter */
.mkad-vrow.mkad-r3 { gap: 6px; }
.mkad-vrow .mkad-pchips { gap: 6px; }
.mkad-vrow .mkad-pchip { height: 28px; }
.mkad-vrow .mkad-padd { height: 28px; border-style: dashed; }
.mkad-body > .mkad-aq:first-child { border-top: 0; }
/* the header ⌄ takes no room until hover, so labels aren't cut short ("Jobl…") */
.mkad-t .th .tc { display: none; }
.mkad-t .th:hover .tc, .mkad-t .th.open .tc { display: inline-flex; }

/* ── pop-ups (user, 2026-10-25: "please fix all popups") — Attio's popover, measured: white, r12, padding 4,
   a hairline ring + its layered shadow, 32px items, 12/500 grey group labels, full-width rules; long lists get
   Attio's borderless search on top. No see-through fade at the bottom. ── */
html .mkad-menu.aiq-menu:not(#_):not(#_):not(#_) { min-width: 220px; max-height: min(440px, 72vh); padding: 4px !important; overflow-y: auto; overscroll-behavior: contain;
  background: var(--at-pop-bg, #fff) !important; border: 0 !important; border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(16,17,18,.08), 0 4px 8px -4px rgba(28,40,64,.12), 0 8px 24px -4px rgba(24,41,75,.18) !important;
  -webkit-mask-image: none !important; mask-image: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; z-index: 1200; }
html[data-theme="dark"] .mkad-menu.aiq-menu:not(#_):not(#_):not(#_) { box-shadow: 0 0 0 1px rgba(255,255,255,.09), 0 8px 28px -4px rgba(0,0,0,.6) !important; }
.mkad-menu .aiq-mi:not(#_) { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 32px; padding: 6px 8px !important; border: 0; border-radius: 8px; background: none;
  font: 500 14px/20px Inter, system-ui, sans-serif !important; color: var(--a-ink) !important; text-align: left; cursor: pointer; }
.mkad-menu .aiq-mi:hover:not(#_), .mkad-menu .aiq-mi:focus-visible:not(#_) { background: var(--a-hover) !important; outline: none; }
.mkad-menu .aiq-mi.on:not(#_) { color: var(--a-blue) !important; }
.mkad-menu .aiq-mi.on svg { color: var(--a-blue); }
.mkad-menu .aiq-menu-lbl:not(#_) { padding: 8px 8px 4px !important; font: 500 12px/16px Inter, system-ui, sans-serif !important; color: var(--a-label) !important; text-transform: none !important; letter-spacing: 0 !important; }
.mkad-menu .aiq-menu-hr:not(#_) { height: 1px; margin: 4px -4px !important; background: var(--a-line) !important; }
.mkad-menu .mi-ic { display: inline-flex; flex: none; color: var(--a-label); }
.mkad-menu .mi-ic > svg { width: 16px; height: 16px; }
.mkad-menu .ic { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 6px; background: var(--tb, rgba(0,0,0,.04)); color: var(--tn, rgba(0,0,0,.55)); font-size: 12px; }
.mkad-menu .ic.code { width: 26px; font: 700 8px/20px Inter, system-ui, sans-serif; }
/* search-first menu: the input is fixed at the top, only the list scrolls */
.mkad-menu.has-q:not(#_):not(#_):not(#_) { padding: 0 !important; display: flex; flex-direction: column; overflow: hidden; width: 280px; }
.mkad-menu .mkad-q { flex: none; height: 40px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--a-line); background: transparent; outline: none;
  font: 500 14px/20px Inter, system-ui, sans-serif; color: var(--a-ink); }
.mkad-menu .mkad-q::placeholder { color: var(--a-mute); }
.mkad-menu .mkad-ml { padding: 4px; overflow-y: auto; min-height: 0; }
.mkad-menu [hidden] { display: none !important; }
/* the site's input:focus ring would turn the search rule blue; Attio keeps it a grey hairline */
html .mkad-menu .mkad-q:not(#_):not(#_), html .mkad-menu .mkad-q:not(#_):not(#_):focus { border: 0 !important; border-bottom: 1px solid var(--a-line) !important; box-shadow: none !important; outline: none !important; border-radius: 0 !important; background: transparent !important; }
/* alignment (user, 2026-10-25: "fix all spacing alignments"): the chart's head row is exactly the table head's
   height (40px + its 1px rule), so the two rules meet in one line across the split */
.mkad-split .gch-h { height: 41px; min-height: 0; flex-wrap: nowrap; box-sizing: border-box; padding: 0 12px; }
.mkad-split .gch-h .mka-btn { height: 28px; }
/* chips readout (change since the first bar in view, live on hover) + the hovered date */
.mkad-pchip .pv { font-weight: 500; font-variant-numeric: tabular-nums; margin-left: 2px; }
.mkad-pchip .pv.skel { display: inline-block; width: 38px; height: 11px; vertical-align: -1px; }
.mkad-pchip .pv.up { color: var(--a-pos-ink, #127A52); } .mkad-pchip .pv.dn { color: var(--a-neg-ink, #B4213D); }
.mkad-hd { font: 500 13px/20px Inter, system-ui, sans-serif; color: var(--a-label); font-variant-numeric: tabular-nums; margin-right: 8px; }

.mkad-r3 .mkad-src { font: 500 12px/16px Inter, system-ui, sans-serif; color: var(--a-label); margin-left: 4px; }

/* blue highlights, as on the Screener (user, 2026-10-25): tickers / codes in tinted blue pills, a light row hover,
   rows ticked onto the chart tinted blue, the company hover card on name chips */
.mkad .at-tag-p.mks:not(#_) { height: 20px; padding: 0 6px; border-radius: 6px; font: 500 12px/20px Inter, system-ui, sans-serif; color: var(--tn) !important; letter-spacing: 0; vertical-align: top; flex: none; }
.mkad .mkc .at-tag-p.mks { margin-left: 2px; }
html[data-theme] .mkad .mkad-t:not(#_) > tbody > tr:not(.mkad-g):hover > td { background: #F7F8FD !important; }
html[data-theme="dark"] .mkad .mkad-t:not(#_) > tbody > tr:not(.mkad-g):hover > td { background: rgba(255,255,255,.03) !important; }
html[data-theme] .mkad .mkad-t:not(#_) > tbody > tr.mk-on > td { background: rgba(38,109,240,.05) !important; }
.mkad .mkc[data-tk] .cn { cursor: default; }
.mkad .mkc[data-tk]:hover .cn { text-decoration: underline; text-decoration-color: rgba(38,109,240,.35); text-underline-offset: 3px; }

.mkad-t th.addc.nar .addb { padding: 0; justify-content: center; }
/* Attio colour tiles in dark mode (tab icons + table icons): the shared at-t-* tones only carry light values here,
   which read as near-black squares on the dark panel (2026-10-29); same weight as the Earnings view icon */
html[data-theme="dark"] .mkad .ic.at-t-blue   { --tb: rgba(69,93,220,.38);  --tn: #B4C1FF; }
html[data-theme="dark"] .mkad .ic.at-t-teal   { --tb: rgba(20,170,190,.32); --tn: #7FE3EF; }
html[data-theme="dark"] .mkad .ic.at-t-violet { --tb: rgba(150,70,239,.36); --tn: #D5B4FF; }
html[data-theme="dark"] .mkad .ic.at-t-green  { --tb: rgba(67,209,167,.30); --tn: #8EF0CF; }
html[data-theme="dark"] .mkad .ic.at-t-orange { --tb: rgba(255,134,46,.32); --tn: #FFBE8A; }
html[data-theme="dark"] .mkad .ic.at-t-amber  { --tb: rgba(255,170,40,.28); --tn: #FFC266; }
html[data-theme="dark"] .mkad .ic.at-t-rose   { --tb: rgba(247,52,99,.32);  --tn: #FF9BB2; }
html[data-theme="dark"] .mkad .ic.at-t-slate  { --tb: rgba(160,169,192,.24); --tn: #D2D8E6; }
html[data-theme="dark"] .mkad .ic.at-t-grey   { --tb: rgba(255,255,255,.12); --tn: #D9DADE; }
/* ── One row on desktop (user 2026-10-30, as Government Contracts / Congress: "tabs on the left, all the settings on the
   right, always one single row"; replaces the boxed tabs of 2026-10-29). markets-attio-drafts.js render() builds it when
   it isn't a phone. Tabs = Congress's .cg-vtab: plain 14/500 words, the open one ink + 600 + a 2px ink bar on the row's
   bottom edge; too many to fit → the strip scrolls (no scrollbar) and fades at the hidden side. Right: plain words. ── */
.mkad-vrow.mkad-one { gap: 2px; flex-wrap: nowrap; container-type: inline-size; }
.mkad-one .mkad-vtabs { align-self: stretch; align-items: stretch; gap: 2px; flex: 0 1 auto; }
.mkad-one .mkad-vtabs.fade-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
.mkad-one .mkad-vtabs.fade-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px); mask-image: linear-gradient(90deg, transparent, #000 28px); }
.mkad-one .mkad-vtabs.fade-l.fade-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, transparent, #000 28px, #000 calc(100% - 28px), transparent); }
.mkad-vt { position: relative; flex: none; display: inline-flex; align-items: center; padding: 0 9px; border: 0; border-radius: 0; background: none; cursor: pointer;
  color: var(--a-label); font: 500 14px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
.mkad-vt:hover { color: var(--a-ink); }
.mkad-vt.on { color: var(--a-ink); font-weight: 600; }
.mkad-vt.on::after { content: ''; position: absolute; left: 9px; right: 9px; bottom: 0; height: 2px; border-radius: 2px 2px 0 0; background: var(--a-ink); }
.mkad-one > .sp { flex: 1; min-width: 8px; }
.mkad-w { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 9px; border: 0; border-radius: 8px; background: none; cursor: pointer;
  color: var(--a-ink); font: 500 14px/20px Inter, system-ui, sans-serif; white-space: nowrap; }
.mkad-w:hover, .mkad-w.open { background: var(--a-fill, rgba(0,0,0,.04)); }
.mkad-w .n { color: var(--a-label); font-variant-numeric: tabular-nums; }
.mkad-w[hidden] { display: none; }
/* View settings = a small sliders icon at the top right of the chart / first section (the header is navigation only,
   user 2026-10-31) */
.mkad-gear { flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; margin-left: 8px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; }
/* blue = the house primary (.at-btn.at-pri, aiq-table-attio.css), icon-only: no label room (user 2026-10-31) */
html.at-shell.at-done main .mkad .mkad-gear.at-btn:not(#_):not(#_) { width: 28px; height: 28px; min-width: 0; padding: 0 !important; gap: 0; justify-content: center; }
.mkad-gear svg { width: 17px; height: 17px; }
/* ‹ › beside the tab strip while views hide past that edge (as the Financials statements row, fin-stmts-one-row.css) */
.mkad-ar { display: inline-flex; align-items: center; justify-content: center; align-self: center; flex: none; width: 24px; height: 24px;
  padding: 0; border: 0; border-radius: 4px; background: none; cursor: pointer; color: var(--a-label); }
.mkad-ar:hover { color: var(--a-ink); background: var(--a-fill, rgba(0,0,0,.04)); }
.mkad-ar i { font-size: 14px; }
.mkad-ar[hidden] { display: none; }
.mkad-lg { padding-right: 8px; }
/* the row is in the template (no flash on load); phones get their own header from the script */
html:not(.aiq-desk) .mkad-one { display: none; }
@container (max-width: 1000px) { .mkad-vt { padding: 0 7px; } .mkad-vt.on::after { left: 7px; right: 7px; } .mkad-w { padding: 0 6px; } }
/* the chart's legend (was the chips row): colour · name · change over the view, hover date + range on the right */
.mkad-lg { display: flex; align-items: center; gap: 14px; height: 36px; padding: 0 14px; white-space: nowrap; overflow: hidden; }
.mkad-lg .mkad-pchip { height: auto; padding: 0; box-shadow: none; color: var(--a-ink); }
.mkad-lg .sp { flex: 1; }
.mkad-lg .mkad-hd { margin-right: 0; }
.mkad-body > .mkad-lg + .mkad-aq { border-top: 0; }
.mkad-menu .mkad-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; }
