/* Chartix site. Calm, dense, product-first: black canvas, one accent, thin rules, big type, real visuals. */
:root {
  --bg: #fff;
  --bg-1: #f7f7f7;
  --bg-2: #f2f2f2;
  --bg-3: #e6e6e7;
  --line: #e0e3eb;
  --line-2: #d1d4dc;
  --text: #0f1115;
  --text-2: #3d4250;
  --muted: #6a6f7d;
  --dim: #757a86;  /* 18.11: was #9598a1, 2.9:1 on white; now 4.5:1 */
  --ink: #0f1115;
  --accent: #3b6cff;
  --accent-h: #5a84ff;
  --up: #26a269;
  --down: #e5484d;
  --up-t: #089981;
  --down-t: #f23645;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --w: 1440px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; }
.wrap { max-width: var(--w); margin: 0 auto; padding: 0 40px; }
@media (max-width: 760px) { .wrap { padding: 0 18px; } }

/* ---------------- header ---------------- */
.top { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .9); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.top-in { max-width: var(--w); margin: 0 auto; padding: 0 40px; height: 64px; display: flex; align-items: center; gap: 32px; }
.logo { display: flex; align-items: center; gap: 10px; font: 700 20px/1 var(--display); letter-spacing: -.02em; }
.logo svg { width: 26px; height: 26px; }
.search { display: flex; align-items: center; gap: 10px; height: 40px; width: 280px; padding: 0 14px; border-radius: 999px; background: var(--bg-2); color: var(--muted); font-size: 14px; border: 1px solid transparent; }
.search:hover { border-color: var(--line-2); }
.search kbd { margin-left: auto; font: 500 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 5px; padding: 1px 6px; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.nav a:hover { background: var(--bg-2); color: var(--text); }
.nav a.on { color: var(--text); }
.top .sp { flex: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 22px; border-radius: 999px; font: 600 15px/1 var(--body); color: var(--text); background: var(--bg-2); border: 0; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--bg-3); }
.btn.white { background: var(--ink); color: #fff; }
.btn.white:hover { background: #2a2e39; }
.btn.blue { background: var(--accent); color: #fff; }
.btn.blue:hover { background: var(--accent-h); }
.btn.sm { height: 38px; padding: 0 18px; font-size: 14px; }
@media (max-width: 1100px) { .search { display: none; } }
@media (max-width: 860px) { .nav { display: none; } .top-in { padding: 0 18px; } }

/* ---------------- ticker ---------------- */
.ticker { border-bottom: 1px solid var(--line); background: var(--bg); overflow: hidden; }
.ticker-in { display: flex; gap: 0; max-width: var(--w); margin: 0 auto; padding: 0 40px; }
.tk { display: flex; align-items: baseline; gap: 10px; padding: 12px 28px 12px 0; margin-right: 28px; border-right: 1px solid var(--line); white-space: nowrap; font-size: 14px; cursor: pointer; }
.tk:last-child { border-right: 0; }
.tk b { font-weight: 600; }
.tk .p { font-variant-numeric: tabular-nums; color: var(--text-2); }
.tk .c { font-variant-numeric: tabular-nums; font-weight: 500; }
.pos { color: var(--up-t); } .neg { color: var(--down-t); }

/* ---------------- hero ---------------- */
.hero { padding: 72px 0 0; }
.hero h1 { font: 700 clamp(40px, 5.4vw, 76px)/1.02 var(--display); letter-spacing: -.035em; margin: 0; max-width: 980px; }
.hero h1 span { display: block; font-size: .5em; line-height: 1.2; font-weight: 600; letter-spacing: -.02em; margin-top: 14px; }
.hero h1 span { color: var(--muted); }
.hero-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; margin-top: 40px; flex-wrap: wrap; }
.hero p.lead { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 560px; margin: 0; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

.stage { margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.stage-bar { max-width: var(--w); margin: 0 auto; padding: 0 40px; display: flex; align-items: center; gap: 6px; height: 56px; overflow-x: auto; }
.sym { display: flex; align-items: baseline; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: 600 14px/38px var(--body); cursor: pointer; white-space: nowrap; }
.sym:hover { background: var(--bg-2); color: var(--text); }
.sym.on { background: var(--bg-3); color: var(--text); }
.sym small { font: 500 12px var(--body); }
.stage-bar .sp { flex: 1; }
.stage-bar .note { color: var(--dim); font-size: 13px; white-space: nowrap; }
.chart-frame { position: relative; height: min(78vh, 820px); min-height: 480px; background: #fff; }
.chart-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.chart-frame .loading { position: absolute; inset: 0; display: grid; place-items: center; color: var(--dim); font-size: 14px; }
.ind-row { max-width: var(--w); margin: 0 auto; padding: 14px 40px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ind-row .lbl { color: var(--dim); font-size: 13px; margin-right: 6px; }
.ind { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text-2); font: 500 13.5px/1 var(--body); cursor: pointer; }
.ind:hover { border-color: var(--muted); color: var(--text); }
.ind.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------------- sections ---------------- */
.sec { padding: 140px 0 0; }
.sec h2 { font: 700 clamp(34px, 4.2vw, 60px)/1.04 var(--display); letter-spacing: -.035em; margin: 0 0 24px; max-width: 1100px; }
.sec h2 span { color: var(--muted); }
.sec .sub { font-size: 20px; color: var(--text-2); max-width: 640px; margin: 0 0 40px; }
.link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 16px; color: var(--text); }
.link::after { content: "→"; transition: transform .15s; }
.link:hover::after { transform: translateX(4px); }

.big-num { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-top: 56px; }
.big-num div { padding: 28px 24px 0 0; }
.big-num b { display: block; font: 700 clamp(40px, 4.6vw, 64px)/1 var(--display); letter-spacing: -.04em; }
.big-num i { font-style: normal; color: var(--muted); font-size: 15px; }
@media (max-width: 760px) { .big-num { grid-template-columns: repeat(2, 1fr); } }

/* indicator mini charts */
.minis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.mini { background: var(--bg-1); padding: 22px 22px 18px; cursor: pointer; }
.mini:hover { background: var(--bg-2); }
.mini h3 { font: 600 16px/1.2 var(--display); margin: 0 0 4px; }
.mini p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; }
.mini canvas { width: 100%; height: 130px; }
@media (max-width: 1100px) { .minis { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .minis { grid-template-columns: 1fr; } }
.all-inds { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* split blocks */
.split { display: grid; grid-template-columns: 1fr 1.25fr; gap: 72px; align-items: center; }
@media (max-width: 1000px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.panel { border: 1px solid var(--line); border-radius: 20px; background: var(--bg-1); overflow: hidden; }
.panel-head { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.panel-head .dots { display: flex; gap: 6px; margin-right: 8px; }
.panel-head .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.panel-head .tab { color: var(--text); background: var(--bg-3); padding: 4px 10px; border-radius: 6px; }
.panel pre { margin: 0; border: 0; border-radius: 0; background: transparent; padding: 20px 22px; }
.panel canvas { width: 100%; height: 190px; border-top: 1px solid var(--line); }

/* chat mock */
.chat { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.msg { max-width: 82%; padding: 12px 16px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; }
.msg.me { align-self: flex-end; background: var(--bg-3); border-bottom-right-radius: 4px; }
.msg.ai { align-self: flex-start; color: var(--text-2); padding-left: 0; }
.msg-card { align-self: stretch; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; }
.msg-card .mc-h { display: flex; justify-content: space-between; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--line); }
.msg-card canvas { height: 170px; width: 100%; }

/* marketplace tiles on home */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile { border-radius: 20px; background: var(--bg-1); border: 1px solid var(--line); padding: 26px; min-height: 220px; display: flex; flex-direction: column; transition: background .15s; }
.tile:hover { background: var(--bg-2); }
.tile .k { color: var(--muted); font-size: 13px; font-weight: 500; }
.tile h3 { font: 600 22px/1.2 var(--display); letter-spacing: -.01em; margin: 10px 0 8px; }
.tile p { color: var(--muted); font-size: 14.5px; margin: 0; }
.tile .f { margin-top: auto; padding-top: 20px; display: flex; justify-content: space-between; font-size: 13px; color: var(--dim); }
.tile .f b { color: var(--text); font-weight: 600; }
@media (max-width: 1000px) { .tiles { grid-template-columns: 1fr; } }

/* closing band */
.close { margin-top: 160px; border-top: 1px solid var(--line); padding: 120px 0; text-align: center; }
.close h2 { margin: 0 auto 28px; }
.close .cta { justify-content: center; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 56px 0 48px; color: var(--muted); font-size: 14px; }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 2fr repeat(4, 1fr); gap: 40px; }
.foot h4 { color: var(--text); font-size: 14px; margin: 0 0 14px; font-weight: 600; }
.foot a { display: block; padding: 4px 0; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .copy { margin-top: 18px; color: var(--dim); font-size: 13px; }
@media (max-width: 760px) { .foot-in { grid-template-columns: 1fr 1fr; padding: 0 18px; } }

/* code */
pre, code { font-family: var(--mono); }
code { font-size: .87em; background: var(--bg-2); border-radius: 5px; padding: .12em .4em; }
pre { background: var(--bg-1); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; overflow: auto; font-size: 13.5px; line-height: 1.65; margin: 0 0 22px; }
pre code { background: none; padding: 0; font-size: inherit; }
.tk-k { color: #a626a4; } .tk-f { color: #2962d9; } .tk-s { color: #3a7d3a; } .tk-n { color: #c2410c; } .tk-c { color: #737884; font-style: italic; } .tk-b { color: #016a96; }

/* ---------------- docs ---------------- */
.docs { max-width: var(--w); margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 64px; }
.side { position: sticky; top: 64px; align-self: start; height: calc(100vh - 64px); overflow: auto; padding: 36px 16px 40px 0; border-right: 1px solid var(--line); font-size: 14px; }
.side .grp-t { font: 600 12px/1 var(--body); color: var(--dim); margin: 26px 0 10px 10px; }
.side .grp-t:first-child { margin-top: 0; }
.side a { display: block; color: var(--text-2); padding: 6px 10px; border-radius: 8px; line-height: 1.35; }
.side a:hover { color: var(--text); background: var(--bg-2); }
.side a.on { color: var(--text); background: var(--bg-2); font-weight: 600; }
.side input { width: 100%; height: 38px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--text); font: 14px var(--body); margin-bottom: 8px; outline: none; }
.doc { padding: 48px 0 80px; min-width: 0; max-width: 860px; }
.doc h1 { font: 700 clamp(38px, 4.6vw, 60px)/1.02 var(--display); letter-spacing: -.035em; margin: 0 0 18px; }
.doc .lead { font-size: 20px; color: var(--text-2); margin: 0 0 12px; }
.doc h2 { font: 700 30px/1.15 var(--display); letter-spacing: -.02em; margin: 64px 0 16px; scroll-margin-top: 84px; }
.doc h3 { font: 600 20px/1.3 var(--display); margin: 38px 0 10px; scroll-margin-top: 84px; }
.doc h4 { font: 600 16px/1.3 var(--display); margin: 26px 0 8px; scroll-margin-top: 84px; }
.doc p, .doc li { color: var(--text-2); }
.doc strong, .doc b { color: var(--text); }
.doc a { color: var(--accent-h); }
.doc ul, .doc ol { padding-left: 22px; }
.doc table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 14px; display: block; overflow-x: auto; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; white-space: nowrap; }
.doc td code { white-space: nowrap; }
.doc blockquote { margin: 0 0 20px; padding: 14px 18px; border-left: 2px solid var(--accent); background: var(--bg-1); color: var(--text-2); }
.doc .anchor { opacity: 0; margin-left: 10px; color: var(--dim); font-weight: 400; }
.doc h2:hover .anchor, .doc h3:hover .anchor { opacity: 1; }
.doc .pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 28px; border-top: 1px solid var(--line); }
.doc .pager a { border-radius: 16px; background: var(--bg-1); border: 1px solid var(--line); padding: 16px 20px; flex: 1; color: var(--text); font-weight: 600; }
.doc .pager a:hover { background: var(--bg-2); }
.doc .pager small { display: block; color: var(--dim); font-size: 12px; font-weight: 500; margin-bottom: 4px; }
.doc .pager .next { text-align: right; }
.doc .feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 8px 0 12px; }
.doc .feat div { background: var(--bg-1); padding: 20px; }
.doc .feat h3 { margin: 0 0 6px; font-size: 16px; }
.doc .feat p { margin: 0; font-size: 14px; }
@media (max-width: 900px) { .docs { grid-template-columns: 1fr; padding: 0 18px; } .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); } .doc .feat { grid-template-columns: 1fr; } }
.pagehead { padding: 88px 0 48px; border-bottom: 1px solid var(--line); }
.pagehead h1 { font: 700 clamp(40px, 5vw, 72px)/1 var(--display); letter-spacing: -.045em; margin: 0 0 22px; }
.pagehead p { font-size: 20px; color: var(--text-2); max-width: 640px; margin: 0; }

/* ---------------- product cards (indicator grid) ---------------- */
.pcards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 24px; }
@media (max-width: 1200px) { .pcards { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .pcards { grid-template-columns: 1fr; } }
.pc { display: flex; flex-direction: column; cursor: pointer; color: var(--text); }
.pc-img { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0d12; }
.pc-img.light { background: #fff; outline: 1px solid var(--line); outline-offset: -1px; }
.pc-img canvas { width: 100%; height: 100%; }
.badge { position: absolute; top: 8px; right: 8px; font: 700 10px/1 var(--body); letter-spacing: .04em; padding: 4px 6px; border-radius: 3px; background: #e3f6ef; color: #067a63; }
.badge.skill { background: #e8eefe; color: #2952c8; }
.pc h3 { font: 700 16px/1.3 var(--body); margin: 12px 0 6px; }
.pc:hover h3 { color: var(--accent); }
.pc p { margin: 0; color: var(--text-2); font-size: 14px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.pc-f { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.pc-f b { color: var(--text); font-weight: 600; }
.pc-f .sp { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; font: 600 12.5px var(--body); color: var(--text); }
.pill svg { width: 14px; height: 14px; }

/* ---------------- wide marketplace cards ---------------- */
.wcards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 1000px) { .wcards { grid-template-columns: 1fr; } }
.wc { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: #fff; }
.wc-h { display: flex; gap: 12px; align-items: center; }
.ava { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 700 15px var(--body); color: #fff; flex: none; }
.wc-h h3 { font: 700 17px/1.2 var(--body); margin: 0; }
.wc-h .by { font-size: 13px; color: var(--muted); }
.wc-h .tag { display: inline-block; margin-left: 6px; font: 700 9.5px/1 var(--body); letter-spacing: .04em; background: var(--ink); color: #fff; padding: 3px 5px; border-radius: 3px; vertical-align: 1px; }
.wc-h .price { margin-left: auto; font: 700 16px var(--body); white-space: nowrap; }
.wc-h .price small { font-weight: 500; color: var(--muted); }
.wc > p { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 14px 0 16px; }
.wc-imgs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wc-imgs .pc-img { aspect-ratio: 16 / 9.4; }
.tabs { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }
.tabs button { height: 40px; padding: 0 18px; border-radius: 999px; border: 0; background: var(--bg-2); color: var(--text); font: 600 14px var(--body); cursor: pointer; }
.tabs button.on { background: var(--ink); color: #fff; }
.center { text-align: center; }
.center h1, .center p { margin-left: auto; margin-right: auto; }

/* "Chartix" over the chart, bottom left, clear of the chart's own toolbar and time axis */
.wm { position: absolute; left: 64px; bottom: 44px; font: 700 26px/1 var(--display); letter-spacing: -.03em; color: rgba(15, 17, 21, .22); pointer-events: none; user-select: none; }
.chart-frame:fullscreen .wm { font-size: 32px; }

[hidden] { display: none !important; }

/* Andrei 11.11: the home chart sits inside the page grid, not edge to edge */
.stage { max-width: var(--w); margin: 64px auto 0; padding: 0 40px; border: 0; }
.stage-bar { padding: 0; }
.stage .chart-frame { height: min(62vh, 600px); min-height: 440px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ind-row { padding: 14px 0; }
@media (max-width: 760px) { .stage { padding: 0 18px; } }

/* header: menu in the middle */
.top-in { display: grid; grid-template-columns: 1fr auto 1fr; }
.top-in .nav { justify-self: center; }
.top-in .sp { display: none; }
.top-in > .btn { justify-self: end; }
.top-in > .btn + .btn { justify-self: auto; }
.top-right { justify-self: end; display: flex; gap: 10px; }

/* chart cover: the page scrolls over the chart until the reader clicks into it */
.ck-cover { position: absolute; inset: 0; z-index: 3; cursor: pointer; display: grid; place-items: end center; padding-bottom: 18px; }
.ck-cover span { opacity: 0; transition: opacity .15s; background: rgba(15, 17, 21, .8); color: #fff; font: 600 13px var(--body); padding: 8px 14px; border-radius: 999px; }
.ck-cover:hover span { opacity: 1; }
.live > .ck-cover { display: none; }
.more-row { display: flex; justify-content: center; margin-top: 40px; }

/* indicator page */
.ip { padding-top: 36px; }
.crumb { font-size: 14px; color: var(--muted); margin-bottom: 26px; }
.crumb a:hover { color: var(--text); }
.crumb span { margin: 0 6px; color: var(--dim); }
.ip-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; margin-bottom: 26px; }
.ip-head h1 { font: 700 clamp(34px, 4vw, 52px)/1.05 var(--display); letter-spacing: -.03em; margin: 10px 0 10px; }
.ip-lead { font-size: 18px; color: var(--text-2); margin: 0; max-width: 720px; }
.ip-meta { margin-top: 12px; font-size: 14px; color: var(--muted); }
.ip-meta b { color: var(--text); }
.badge-inline { font: 700 11px/1 var(--body); letter-spacing: .04em; padding: 4px 7px; border-radius: 4px; background: #e3f6ef; color: #067a63; }
.ckbox { position: relative; height: min(62vh, 560px); min-height: 420px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.ckbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ip-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; }
.ip-doc { padding-top: 8px; max-width: none; }
.ip-side { padding-top: 64px; }
.ip-box { border: 1px solid var(--line); border-radius: 14px; padding: 20px; position: sticky; top: 90px; }
.ip-box h4 { margin: 0 0 12px; font-size: 15px; }
.ip-box dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: 14px; }
.ip-box dt { color: var(--muted); } .ip-box dd { margin: 0; }
.ip-rel { font: 700 28px/1.2 var(--display); letter-spacing: -.02em; margin: 72px 0 24px; }
@media (max-width: 900px) { .ip-grid { grid-template-columns: 1fr; } .ip-side { padding-top: 0; } }

/* watermark: black, bold (Andrei 11.11) */
.wm { left: 84px !important; bottom: 46px !important; font: 800 30px/1 var(--display) !important; letter-spacing: -.035em; color: #0f1115 !important; }
#ckwrap .wm { left: 88px !important; }

/* blog */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1000px) { .posts { grid-template-columns: 1fr; } }
.post { border: 1px solid var(--line); border-radius: 16px; padding: 26px; display: flex; flex-direction: column; min-height: 260px; }
.post:hover { border-color: var(--line-2); background: var(--bg-1); }
.post-tag { font: 700 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: #2f5ce6; }
.post-tag + .post-tag { margin-left: 10px; }
.post h2, .post h3 { font: 700 21px/1.25 var(--display); letter-spacing: -.015em; margin: 14px 0 10px; }
.post p { color: var(--text-2); font-size: 15px; margin: 0; }
.post-meta { margin-top: auto; padding-top: 18px; color: var(--muted); font-size: 13px; }
.article { max-width: 820px; padding-top: 40px; }
.article h1 { font: 700 clamp(34px, 4.4vw, 54px)/1.06 var(--display); letter-spacing: -.03em; margin: 0 0 16px; }
.article-lead { font-size: 20px; color: var(--text-2); margin: 0 0 16px; }
.article .post-meta { padding: 0 0 28px; border-bottom: 1px solid var(--line); }
.article-body { padding-top: 8px; max-width: none; }
.article-body p, .article-body li { font-size: 17px; line-height: 1.7; }
.article-next { display: block; margin-top: 56px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; font-weight: 700; }
.article-next:hover { background: var(--bg-1); }
.article-next small { display: block; color: var(--muted); font-weight: 500; font-size: 12px; margin-bottom: 4px; }

/* header wordmark, larger (Andrei 11.11) */
.top .logo { font: 800 26px/1 var(--display); letter-spacing: -.035em; }
.cbar .logo { font-size: 22px !important; }

/* scroll performance: a blurred translucent sticky header repaints the whole page on every scroll frame */
.top { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
.sec, .close, .foot { content-visibility: auto; contain-intrinsic-size: auto 800px; }

.top .logo svg { width: 30px; height: 30px; flex: none; }
.cbar .logo svg { width: 24px; height: 24px; }

/* skills: a different card from indicators. No chart picture; the command, then what you ask and what comes back */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1100px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .skills { grid-template-columns: 1fr; } }
.sk { border: 1px solid var(--line); border-radius: 18px; padding: 22px; display: flex; flex-direction: column; background: #fff; }
.sk:hover { border-color: var(--line-2); box-shadow: 0 8px 30px rgba(15, 17, 21, .06); }
.sk-top { display: flex; align-items: center; gap: 10px; }
.sk-cmd { font: 600 13px var(--mono); background: var(--ink); color: #fff; padding: 5px 10px; border-radius: 7px; }
.sk-price { margin-left: auto; font: 700 14px var(--body); }
.sk h3 { font: 700 19px/1.25 var(--display); letter-spacing: -.015em; margin: 16px 0 8px; }
.sk-text { color: var(--text-2); font-size: 14.5px; line-height: 1.5; margin: 0 0 16px; }
.sk-demo { background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 13.5px; }
.sk-ask { display: flex; gap: 10px; align-items: baseline; color: var(--text); font-weight: 500; padding-bottom: 10px; border-bottom: 1px dashed var(--line-2); }
.sk-ask span { flex: none; font: 700 10.5px var(--body); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.sk-out { list-style: none; margin: 10px 0 0; padding: 0; }
.sk-out li { position: relative; padding: 3px 0 3px 18px; color: var(--text-2); font-family: var(--mono); font-size: 12.5px; }
.sk-out li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.sk-foot { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; font-size: 13px; color: var(--muted); }
.sk-foot b { color: var(--text); }
.sk-foot .sp { flex: 1; }
.sk-demo { margin-bottom: 0; }
.sk-text { flex: none; }
.sk > .sk-demo { margin-top: auto; }

/* tiles in docs pages (Thesis overview "Why Thesis", "Where to go next") */
.doc .grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 8px 0 12px; }
@media (max-width: 1000px) { .doc .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .doc .grid { grid-template-columns: 1fr; } }
.doc .card { display: block; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-1); padding: 22px; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.doc a.card:hover { border-color: var(--line-2); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(15, 17, 21, .06); }
.doc .card h3 { font: 700 17px/1.3 var(--display); margin: 0 0 8px; }
.doc .card p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.doc .card .more { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 600; }

/* embed page */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px) { .ways { grid-template-columns: 1fr; } }
.way { border: 1px solid var(--line); border-radius: 18px; padding: 24px; display: flex; flex-direction: column; min-height: 200px; }
.way:hover { border-color: var(--line-2); box-shadow: 0 10px 30px rgba(15, 17, 21, .06); }
.way-n { font: 700 13px var(--mono); color: var(--accent); }
.way h3 { font: 700 24px/1.2 var(--display); margin: 10px 0 8px; letter-spacing: -.02em; }
.way p { color: var(--text-2); margin: 0; font-size: 15px; }
.way-t { margin-top: auto; padding-top: 18px; font-size: 13px; color: var(--muted); }
.ip-demo { margin-top: 32px; }
.ip-demo [data-chartix] { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.demo-cap { color: var(--muted); font-size: 13px; margin: 10px 0 0; }
.docs-flat { max-width: 900px; padding-top: 24px; }

/* secondary buttons in the chart's own grey (--ck-button-background-secondary #f2f2f2, text #2b2b2c) */
.btn { background: #f2f2f2; color: #2b2b2c; }
.btn:hover { background: #e6e6e7; }
.tabs button { background: #f2f2f2; color: #2b2b2c; }

/* indicators: bigger cards, three a row */
.pcards { grid-template-columns: repeat(3, 1fr); gap: 36px 28px; }
.pc h3 { font-size: 18px; }
.pc p { font-size: 15px; }
@media (max-width: 1000px) { .pcards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .pcards { grid-template-columns: 1fr; } }

/* skills with a picture on top */
.sk-img { margin: -22px -22px 18px; aspect-ratio: 16 / 8; border-radius: 18px 18px 0 0; overflow: hidden; position: relative; background: #0b0d12; }
.sk-img.light { background: #fff; border-bottom: 1px solid var(--line); }
.sk-img canvas { width: 100%; height: 100%; }
.sk { overflow: hidden; }

/* space between the last section and the footer */
.foot { margin-top: 140px; }
.docs + .foot, .article + .foot { margin-top: 80px; }
.foot .logo { color: var(--text); font: 800 24px/1 var(--display); letter-spacing: -.035em; padding: 0; }

/* blog images */
.post { padding: 0; overflow: hidden; }
.post-img { width: 100%; aspect-ratio: 1200 / 630; display: block; border-bottom: 1px solid var(--line); }
.post .post-tag, .post h2, .post h3, .post p, .post .post-meta { margin-left: 24px; margin-right: 24px; }
.post .post-tag { margin-top: 22px; display: inline-block; }
.post .post-tag + .post-tag { margin-left: 0; }
.post .post-meta { padding-bottom: 22px; }
.article-img { width: 100%; border-radius: 16px; margin: 28px 0 8px; display: block; }
.article .post-meta { border-bottom: 0; padding-bottom: 0; }
.article-next { display: flex; gap: 18px; align-items: center; }
.article-next img { width: 160px; border-radius: 10px; flex: none; }

/* skill sample replies: body font, not monospace (Andrei 11.11) */
.sk-out li { font-family: var(--body); font-size: 13.5px; }

/* skill sample exchange as a small chat: the request on the right, the skill's answer below it */
.sk-demo { background: transparent; border: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sk-ask { align-self: flex-end; max-width: 88%; display: block; padding: 10px 14px; border: 0; border-radius: 16px 16px 4px 16px; background: var(--ink); color: #fff; font-size: 13.5px; font-weight: 500; line-height: 1.4; }
.sk-ask span { display: none; }
.sk-reply { align-self: stretch; border: 1px solid var(--line); border-radius: 4px 16px 16px 16px; background: #fff; padding: 12px 14px; box-shadow: 0 1px 2px rgba(15, 17, 21, .04); }
.sk-who { display: block; font: 700 11px var(--body); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.sk-out { margin: 0; }
.sk-out li { padding: 6px 0 6px 0; border-top: 1px solid var(--line); color: var(--text-2); font-size: 13.5px; line-height: 1.4; }
.sk-out li:first-child { border-top: 0; padding-top: 0; color: var(--text); font-weight: 600; font-size: 14px; }
.sk-out li::before { display: none; }

/* MCP page: one tile per assistant, each jumps to its setup steps */
.ai-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 26px 0 8px; }
@media (max-width: 760px) { .ai-tiles { grid-template-columns: repeat(2, 1fr); } }
.doc a.ai { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.doc a.ai:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(15, 17, 21, .07); transform: translateY(-1px); }
.ai-i { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; font: 800 15px var(--body); letter-spacing: -.02em; }
.ai b { font-size: 15.5px; }
.ai i { font-style: normal; color: var(--muted); font-size: 12.5px; }

/* skill chat, round 2 (Andrei 11.11): grey request bubble; the reply a narrow message bubble, no table lines */
.sk-ask { background: #f2f2f2; color: #2b2b2c; border-radius: 18px 18px 4px 18px; }
.sk-reply { align-self: flex-start; max-width: 86%; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; padding: 10px 14px 11px; box-shadow: none; }
.sk-who { font-size: 10.5px; margin-bottom: 4px; }
.sk-out li { border-top: 0; padding: 1px 0; font-size: 13.5px; }
.sk-out li:first-child { padding: 0 0 3px; font-size: 13.5px; }
/* the reply keeps its points as a list */
.sk-out li { position: relative; padding: 2px 0 2px 16px; }
.sk-out li::before { display: block !important; content: ""; position: absolute; left: 2px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: #9598a1; }
.sk-out li:first-child { padding: 0 0 3px 16px; }
.sk-out li:first-child::before { top: 8px; background: #0f1115; }
.sk-who { display: none !important; }
/* assistant tiles with the real logos, monochrome like a partner strip */
.ai-i { background: #f2f2f2 !important; color: #0f1115; }
.ai-i svg { width: 24px; height: 24px; }
.doc a.ai:hover .ai-i { background: #e6e6e7 !important; }

.sk-demo { display: none !important; }
.sk .sk-foot { margin-top: auto; }

/* indicator cards in a frame, like the skill cards (Andrei 11.11) */
.pc { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; padding-bottom: 18px; transition: border-color .15s, box-shadow .15s; }
.pc:hover { border-color: var(--line-2); box-shadow: 0 8px 30px rgba(15, 17, 21, .06); }
.pc-img { border-radius: 0; outline: 0 !important; border-bottom: 1px solid var(--line); }
.pc h3, .pc p, .pc .pc-f { margin-left: 18px; margin-right: 18px; }
.pc h3 { margin-top: 16px; }

/* card borders a little more visible (Andrei 11.11) */
.pc, .sk, .post, .way, .doc a.ai, .wc, .tile, .doc .card, .ip-box, .article-next { border-color: #d1d4dc !important; }
.pc:hover, .sk:hover, .post:hover, .way:hover, .doc a.ai:hover, .wc:hover, .tile:hover, .doc a.card:hover { border-color: #b2b5be !important; }
.pc-img, .sk-img.light { border-bottom-color: #d1d4dc !important; }

/* card bottom half grey: the picture on white, the text on the chart grey (Andrei 11.11) */
.pc, .sk { background: #f7f7f7 !important; }
.pc-img.light, .sk-img.light { background: #fff !important; }
.pc .pill { background: #fff; }
.pc, .sk { background: #fbfbfb !important; }
.pc, .sk { background: #fff !important; }


/* the skill's command sits on the picture, top left (Andrei 11.11) */
.sk { position: relative; }
.sk .sk-cmd { position: absolute; top: 12px; left: 12px; z-index: 2; box-shadow: 0 2px 8px rgba(15, 17, 21, .18); }
.sk-top { justify-content: flex-end; }

/* skill cards, the second design: an icon tile, stars, a slug name, tags and installs */
.sk2 { border: 1px solid #d1d4dc; border-radius: 18px; padding: 22px; background: #fff; display: flex; flex-direction: column; cursor: default; transition: border-color .15s, box-shadow .15s; }
.sk2:hover { border-color: #b2b5be; box-shadow: 0 8px 30px rgba(15, 17, 21, .06); }
.sk2-top { display: flex; align-items: center; justify-content: space-between; }
.sk2-ico { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; }
.sk2-ico svg { width: 24px; height: 24px; }
.sk2-rate { display: flex; align-items: center; gap: 2px; }
.sk2-rate svg { width: 16px; height: 16px; }
.sk2-rate b { margin-left: 6px; font-weight: 500; color: var(--text-2); font-size: 15px; }
.sk2 h3 { font: 600 19px/1.3 var(--body); letter-spacing: -.01em; margin: 18px 0 8px; }
.sk2 p { color: var(--muted); font-size: 15px; line-height: 1.5; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sk2-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 14px; }
.sk2-tags span { background: #f2f2f2; color: #2b2b2c; font-size: 13px; padding: 4px 10px; border-radius: 6px; }
.sk2-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.sk2-foot b { color: var(--text); font-weight: 600; }
.sk2-foot .sp { flex: 1; }
.sk2-price { font-weight: 700; color: var(--text); }
.skills { align-items: stretch; }

/* indicator cards in the skill-card layout: picture, stars, name, text, hashtags, installs */
.pc2 { padding-bottom: 0 !important; }
.pc2-body { padding: 16px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.pc2 h3, .pc2 p { margin-left: 0 !important; margin-right: 0 !important; }
.pc2 h3 { font: 600 18px/1.3 var(--body); margin: 12px 0 6px !important; }
.pc2 p { color: var(--muted); font-size: 14.5px; -webkit-line-clamp: 3; }
.pc2 .sk2-rate svg { width: 15px; height: 15px; }
.pc2 .sk2-rate b { font-size: 14px; }
/* rating in the picture's top right corner, instead of the INDICATOR word (Andrei 11.11) */
.pc2-rate { position: absolute; top: 10px; right: 10px; background: rgba(255, 255, 255, .92); border: 1px solid #e0e3eb; border-radius: 999px; padding: 4px 10px 4px 8px; }
.pc2-rate svg { width: 13px !important; height: 13px !important; }
.pc2-rate b { font-size: 13px !important; margin-left: 4px !important; }
.pc2 h3 { margin-top: 2px !important; }
/* price on the picture, top left (Andrei 11.11) */
.pc2-price { position: absolute; top: 10px; left: 10px; background: #0f1115; color: #fff; font: 700 13px/1 var(--body); padding: 7px 11px; border-radius: 999px; }
.star1 { width: 16px !important; height: 16px !important; }

/* hero second line like the section headings: same size and weight, grey (Andrei 11.11) */
.hero h1 span { font-size: 1em !important; font-weight: 700 !important; letter-spacing: -.035em !important; line-height: 1.02 !important; margin-top: 0 !important; color: var(--muted); }
.hero h1 { max-width: 1300px !important; }


/* the home headline at the size of the section headings (Andrei 11.11) */
.hero h1 { font-size: clamp(34px, 4.2vw, 60px) !important; line-height: 1.04 !important; letter-spacing: -.035em !important; }

/* 11.11: audience buttons up, level with the headline */
.hero-top { margin-top: 0; align-items: center; }
.hero-top h1 { flex: 0 1 auto; }
.hero p.lead.hero-lead { margin-top: 32px; }

/* home stage, 12.11: who it is for (trader / developer / AI) in place of the symbol chips */
.aud-bar { justify-content: flex-start; }
.aud { display: inline-flex; gap: 4px; background: #f7f7f8; border-radius: 999px; padding: 4px; }
.aud .sym { height: 36px; line-height: 36px; padding: 0 18px; }
.aud .sym.on { background: #fff; box-shadow: 0 1px 3px rgba(15, 17, 21, .12); }
.aud-pane[hidden], .stage .chart-frame[hidden], .stage .ind-row[hidden] { display: none !important; }
.aud-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 900px) { .aud-grid { grid-template-columns: 1fr; } }
.aud-grid .panel { display: flex; flex-direction: column; }
.aud-grid pre { flex: 1; margin: 0; }
.aud-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.aud-foot .link { white-space: nowrap; }
.aud-ai { display: grid; grid-template-columns: minmax(280px, 5fr) 7fr; gap: 32px; align-items: start; border: 1px solid var(--line); border-radius: 16px; padding: 28px; min-height: 440px; }
@media (max-width: 900px) { .aud-ai { grid-template-columns: 1fr; } }
.aud-ai h3 { font: 700 26px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 10px; }
.aud-ai p { color: var(--text-2); margin: 0 0 16px; }
.aud-ai ol { margin: 0 0 18px; padding-left: 20px; color: var(--text-2); line-height: 1.7; }
.aud-url { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; margin-bottom: 16px; }
.aud-url code { flex: 1; font-size: 14px; background: none; }
.aud-ai .ai-tiles { margin: 0; }
.aud-ai a.ai { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 14px; padding: 14px; color: var(--text); text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s, transform .15s; }
.aud-ai a.ai:hover { border-color: var(--line-2); box-shadow: 0 8px 24px rgba(15, 17, 21, .07); transform: translateY(-1px); }
.aud-grid pre { white-space: pre-wrap; word-break: break-all; }
/* 12.11 round 2: the switcher centred, halfway between the title and the chart; developers see only the library and Thesis; AI is one phrase and two columns of tiles */
.hero-top { justify-content: flex-start; }
.stage { margin-top: 36px; }
.aud-bar { justify-content: center; height: auto; padding: 0 0 36px; }
.aud-grid { margin-top: 0; }
.aud-ai { display: block; min-height: 0; padding: 32px; }
.aud-ai p.aud-ai-say { font: 600 22px/1.4 var(--display); letter-spacing: -.01em; color: var(--text); margin: 0 auto 24px; max-width: 960px; text-align: center; }
.aud-ai .ai-tiles { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 600px) { .aud-ai .ai-tiles { grid-template-columns: 1fr; } }
/* 12.11 round 3: the switcher on the left and larger; the subtitle on one line */
.aud-bar { justify-content: flex-start; }
.aud { padding: 5px; }
.aud .sym { height: 46px; line-height: 46px; padding: 0 24px; font-size: 17px; }
.hero p.lead.hero-lead { max-width: none; white-space: nowrap; }
@media (max-width: 900px) { .hero p.lead.hero-lead { white-space: normal; } }
/* 12.11 round 4: title and subtitle closer; the switcher back on the right, in the subtitle's row */
.hero p.lead.hero-lead { margin-top: 0; }
.hero-sub { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 18px; flex-wrap: wrap; }
.stage { margin-top: 40px; }
.hero-top { justify-content: space-between; align-items: center; }
.hero-top { flex-wrap: nowrap; gap: 24px; }
.hero-top h1 { white-space: nowrap; }
.hero-top .aud { flex: none; }
.hero-top .aud .sym { height: 44px; line-height: 44px; padding: 0 20px; font-size: 16px; }
@media (max-width: 1100px) { .hero-top { flex-wrap: wrap; } }
/* 12.11 round 5: the switcher on the right, centred on the height of the title and the subtitle together */
.hero-top { align-items: center; }
.hero-text { min-width: 0; }
.hero-text .hero-lead { margin-top: 18px !important; }
/* 12.11: AI view, three columns of three, larger tiles and icons */
.aud-ai .ai-tiles { grid-template-columns: repeat(3, 1fr); max-width: none; gap: 16px; }
@media (max-width: 900px) { .aud-ai .ai-tiles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .aud-ai .ai-tiles { grid-template-columns: 1fr; } }
.aud-ai a.ai { grid-template-columns: 64px 1fr; column-gap: 16px; padding: 22px; border-radius: 16px; }
.aud-ai .ai-i { width: 64px; height: 64px; border-radius: 16px; }
.aud-ai .ai-i svg { width: 34px; height: 34px; }
.aud-ai .ai b { font-size: 19px; }
.aud-ai .ai i { font-size: 14px; }
/* Thesis pages: "best with AI" informer on top (12.11) */
.doc a.th-ai { display: flex; align-items: center; gap: 14px; padding: 14px 16px; margin: 0 0 28px; border: 1px solid var(--line); border-radius: 14px; background: #f7f7f8; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.doc a.th-ai:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgba(15, 17, 21, .06); }
.th-ai-i { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #131722; color: #fff; }
.th-ai-t { flex: 1; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.th-ai-t b { color: var(--text); }
.th-ai-b { flex: none; height: 36px; line-height: 36px; padding: 0 16px; border-radius: 999px; background: #131722; color: #fff; font: 600 14px var(--body); }
@media (max-width: 640px) { .th-ai-b { display: none; } }
.th-ai-b { display: inline-flex; align-items: center; white-space: nowrap; line-height: 1; }

/* 16.11: assistants logo strip under the home chart */
.mq { overflow: hidden; padding: 30px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.mq-track { display: flex; width: max-content; animation: mq 40s linear infinite; }
.mq:hover .mq-track { animation-play-state: paused; }
.mq-i { display: inline-flex; align-items: center; gap: 12px; margin-right: 72px; color: var(--muted); font: 600 26px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; filter: grayscale(1); opacity: .85; transition: opacity .2s, color .2s; }
.mq-i:hover { color: var(--text); opacity: 1; }
.mq-i svg { width: 32px; height: 32px; flex: none; }
.mq-i svg, .mq-i svg * { fill: currentColor; }
@keyframes mq { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .mq-track { animation: none; } }
@media (max-width: 640px) { .mq { padding: 20px 0; } .mq-i { font-size: 20px; margin-right: 44px; } .mq-i svg { width: 24px; height: 24px; } }
/* 16.11 (Andrei): the strip sits in the hero, on the right, in place of the three audience buttons */
.hero-top .mq { flex: 1 1 auto; min-width: 0; max-width: 640px; padding: 6px 0; border: 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hero-top .mq-i { font-size: 22px; margin-right: 56px; }
.hero-top .mq-i svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .hero-top { flex-wrap: wrap; } .hero-top h1 { white-space: normal; } .hero-top .mq { flex-basis: 100%; max-width: none; } }
.hero-top .hero-text { flex: none; }
.hero-top .mq { margin-left: auto; max-width: 560px; }
@media (max-width: 900px) { .hero-top .hero-text { flex: 1 1 100%; } }
/* 16.11: larger icons in the hero strip (Andrei msg 1309) */
.hero-top .mq-i { gap: 14px; }
.hero-top .mq-i svg { width: 36px; height: 36px; }
@media (max-width: 640px) { .hero-top .mq-i svg { width: 30px; height: 30px; } }
/* 16.11: smaller home H1 (Andrei msg 1315) */
.hero h1, .hero-top h1 { font-size: clamp(34px, 4vw, 56px) !important; }
/* 16.11 mobile (Andrei msg 1319): burger left of the logo, MCP on the right edge, no quick add */
.burger { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; margin-left: -8px; border: 0; border-radius: 999px; background: none; color: var(--text); cursor: pointer; }
.burger:hover { background: var(--bg-2); }
.mnav { display: none; }
@media (max-width: 860px) {
  .burger { display: inline-flex; }
  .top-in { grid-template-columns: auto 1fr auto; gap: 8px; }
  .top-right { grid-column: 3; }
  .mnav:not([hidden]) { display: flex; flex-direction: column; padding: 8px 10px 14px; border-top: 1px solid var(--line); background: var(--bg); }
  .mnav a { padding: 13px 10px; border-radius: 12px; font: 500 17px/1 var(--body); color: var(--text); }
  .mnav a:hover, .mnav a.on { background: var(--bg-2); }
  #inds { display: none; }
}
/* 16.11 (msg 1322): once the strip wraps under the heading, it takes the whole row */
@media (max-width: 1279px) { .hero-top { flex-wrap: wrap; } .hero-top .mq { flex-basis: 100%; max-width: none; margin-left: 0; } .hero-top .hero-text { flex: 1 1 100%; } }
/* 16.11 (msg 1324): more air above and below the hero on desktop */
@media (min-width: 861px) { section.hero { padding-top: 72px !important; padding-bottom: 32px !important; } }
/* 16.11 (msg 1326): mobile hero: less space above, much smaller H1 */
@media (max-width: 860px) { section.hero { padding-top: 28px !important; } .hero h1, .hero-top h1 { font-size: 34px !important; } }
@media (max-width: 860px) { .hero p.lead.hero-lead { font-size: 16px !important; } }
/* 16.11 (msg 1329): no divider under the top menu */
header.top { border-bottom: 0 !important; }
/* 16.11 (msg 1334): mobile chart logo further left, greyer, smaller */
@media (max-width: 760px) { .wm, #ckwrap .wm { left: 60px !important; bottom: 40px !important; font-size: 20px !important; color: rgba(15, 17, 21, .3) !important; } }
/* 16.11 (msg 1338): when the strip sits under the heading, equal space above and below it */
@media (min-width: 861px) and (max-width: 1279px) { section.hero { padding-bottom: 2px !important; } .hero-top .mq { margin-top: 18px; } }
@media (max-width: 860px) { .hero-top .mq { margin-top: 16px; } }
/* 16.11 (msg 1352): no blue tap flash, no circle behind the burger, quieter mobile menu */
html { -webkit-tap-highlight-color: transparent; }
.burger:hover, .burger:active, .burger:focus { background: none !important; }
.burger:focus-visible { outline: 2px solid var(--line-2); outline-offset: 2px; }
.mnav a:hover, .mnav a.on { background: none !important; }
.mnav a:hover { color: var(--muted); }
.mnav a.on { font-weight: 600; }
.mnav:not([hidden]) { border-top: 0 !important; }
/* 16.11 (msg 1363): close the numbers block with a line below as well */
.big-num { border-bottom: 1px solid var(--line); }
.big-num { padding-bottom: 28px; }
/* 16.11 (msg 1365): phone chart bottom bar and sheets (js/ckmobile.js) */
.cxbar { display: none; }
@media (max-width: 760px) {
  .cxbar:not([hidden]) { display: flex; position: absolute; left: 0; right: 0; bottom: 0; height: 56px; align-items: center; justify-content: space-around; background: var(--bg); border-top: 1px solid var(--line); z-index: 6; }
  .cxbar button { flex: 1; height: 100%; border: 0; background: none; color: var(--text-2); display: inline-flex; align-items: center; justify-content: center; font: 700 16px/1 var(--body); }
  .cxbar button.t { color: var(--text); }
  .cxbar button[aria-pressed="true"] { color: var(--text); }
  .cxbar button[aria-pressed="true"] svg { stroke-width: 2.4; }
  .chart-frame iframe, #ckwrap iframe { height: calc(100% - 56px) !important; }
  .tosite { display: none !important; }
}
.cxsheet[hidden] { display: none; }
.cxsheet { position: fixed; inset: 0; z-index: 100; }
.cxsheet-bg { position: absolute; inset: 0; background: rgba(15, 17, 21, .35); }
.cxsheet-in { position: absolute; left: 0; right: 0; bottom: 0; max-height: 70vh; overflow: auto; background: var(--bg); border-radius: 18px 18px 0 0; padding: 10px 8px calc(16px + env(safe-area-inset-bottom)); }
.cxsheet-h { font: 700 17px/1 var(--display); padding: 14px 14px 10px; }
.cxsheet-i { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px; padding: 14px; border: 0; background: none; border-radius: 12px; font: 500 16px/1 var(--body); color: var(--text); text-align: left; }
.cxsheet-i span { color: var(--muted); font-size: 14px; }
.cxsheet-i.on { font-weight: 700; background: var(--bg-1); }

/* 16.11: mobile chart scroll lock (ckmobile.js opts.lock) */
.cxlock { display: none; }
@media (max-width: 760px) {
  .cxlock:not([hidden]) { display: flex; position: absolute; left: 0; right: 0; top: 0; bottom: 56px; z-index: 7; touch-action: pan-y; align-items: flex-end; justify-content: center; padding-bottom: 48px; background: transparent; cursor: pointer; }
  .cxlock span { font: 600 13px/1 var(--body); color: var(--text-2); background: rgba(255,255,255,.92); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; }
}

/* 16.11: docs sidebar collapsed on phones */
.side-tg { display: none; }
@media (max-width: 900px) {
  .side { padding: 12px 0; }
  .side-tg { display: flex; width: 100%; align-items: center; justify-content: space-between; height: 44px; padding: 0 2px; border: 0; background: none; font: 600 15px/1 var(--body); color: var(--text); cursor: pointer; }
  .side-tg::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px,-2px); transition: transform .15s; }
  .side.open .side-tg::after { transform: rotate(-135deg) translate(-2px,-2px); }
  .side:not(.open) .side-l { display: none; }
  .side-l { padding: 8px 0 12px; }
}

/* 16.11 (Andrei msg 1431/1432): on phones the home page shows only two indicator cards and two skill cards */
@media (max-width: 640px) {
  #minis > .pc:nth-child(n+3), .sec .skills > .sk2:nth-child(n+3) { display: none; }
}

/* 16.11 (Andrei msg 1434/1435): no page contents on phones at all */
@media (max-width: 900px) { .docs > .side { display: none !important; } }

/* 16.11 (Andrei msg 1438): no Claude Code tile on phones */
@media (max-width: 760px) { a.ai[href$="#claude-code"] { display: none !important; } }

/* 16.11 (Andrei msg 1441-1443): Thesis "best with AI" banner: secondary (white) button so the page has one black CTA; on phones no icon, text on top, button below */
.th-ai-b { background: #fff !important; color: var(--text) !important; border: 1px solid #d1d4dc; }
.doc a.th-ai:hover .th-ai-b { border-color: #b2b5be; }
@media (max-width: 760px) {
  .doc { padding-top: 24px; }
  .doc a.th-ai { flex-direction: column; align-items: flex-start; gap: 14px; padding: 18px; }
  .th-ai-i { display: none !important; }
  .th-ai-t { font-size: 15px; }
  .th-ai-b { display: inline-flex !important; height: 40px; }
}

/* 18.11 blog: topics bar, pager, related posts (Webmaster review P1-1) */
.post-img { height: auto; }
.article-img { height: auto; }
.tagbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 32px; }
.tagbar a { padding: 8px 16px; border-radius: 999px; background: var(--bg-2); font-size: 14px; font-weight: 600; color: var(--text-2); }
.tagbar a:hover { background: var(--bg-3); }
.tagbar a.on { background: var(--ink); color: #fff; }
.bpager { display: flex; justify-content: space-between; align-items: center; margin: 40px 0 0; font-size: 15px; color: var(--muted); }
.bpager a { font-weight: 700; color: var(--text); }
.rel-h { font: 700 24px/1.2 var(--display); margin: 64px 0 18px; }
.rels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.rel { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-weight: 700; line-height: 1.3; }
.rel img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.rel span { display: block; padding: 14px 16px 16px; }
.rel small { display: block; font: 700 11px/1 var(--body); letter-spacing: .05em; text-transform: uppercase; color: #2f5ce6; margin-bottom: 8px; }
@media (max-width: 760px) { .rels { grid-template-columns: 1fr; } }
.post { position: relative; }
.post h2 a::after { content: ""; position: absolute; inset: 0; }
.post .post-tags { margin: 22px 24px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; position: relative; z-index: 1; }
.post .post-tags .post-tag { margin: 0; }
/* 18.11 legal pages and the footer risk line */
.foot-risk { max-width: var(--w); margin: 40px auto 0; padding: 18px 40px 0; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
@media (max-width: 760px) { .foot-risk { padding: 16px 18px 28px; } }
.legal .doc h1 { font: 800 44px/1.1 var(--display); letter-spacing: -.02em; margin: 0 0 18px; }
.draft-bar { background: #fff4e6; color: #8a4b00; text-align: center; font-weight: 700; padding: 10px 16px; }

/* ================= 18.11 dark theme: follows the device (Andrei, Telegram 1577: «Сделай темную тему на сайте. Тему бери устройства») */
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0f1115; --bg-1: #151820; --bg-2: #1c2029; --bg-3: #262b36;
    --line: #262a34; --line-2: #343a47;
    --text: #eceef2; --text-2: #c2c6cf; --muted: #9ba1ad; --dim: #848a97;
    --ink: #eceef2; --accent: #6b8dff; --accent-h: #86a1ff;
  }
  body { background: var(--bg); color: var(--text); }
  .top, .top[class] { background: rgba(15, 17, 21, .92) !important; }
  .btn.white, .ind.on, .tabs button.on, .tagbar a.on, .wc-h .tag, .sk-cmd, .sk-ask:not(.x) { color: #0f1115; }
  .btn.white:hover { background: #ffffff; }
  .btn, .tabs button, .sk-ask, .sk2-tags span { background: #1f232c !important; color: #d7dae1 !important; }
  .btn:hover { background: #2a2f3a !important; }
  .btn.white { background: var(--ink) !important; color: #0f1115 !important; }
  .btn.blue { background: var(--accent) !important; color: #fff !important; }
  .chart-frame, .wc, .sk, .sk2, .pc, .sk-reply, .pc .pill, .aud .sym.on, .doc a.ai, .aud-ai a.ai { background: var(--bg-1) !important; }
  .pc-img.light, .sk-img.light { background: #fff !important; }
  .pc, .sk, .post, .way, .doc a.ai, .wc, .tile, .doc .card, .ip-box, .article-next, .sk2, .rel { border-color: var(--line-2) !important; }
  .pc:hover, .sk:hover, .post:hover, .way:hover, .doc a.ai:hover, .wc:hover, .tile:hover, .doc a.card:hover, .sk2:hover { border-color: #4a5160 !important; box-shadow: none !important; }
  .pc-img, .sk-img.light { border-bottom-color: var(--line-2) !important; }
  .post:hover { background: var(--bg-1); }
  .badge, .badge-inline { background: #10352c; color: #4fd1a7; }
  .badge.skill { background: #1b2a52; color: #93b0ff; }
  .post-tag, .rel small { color: #8aa6ff; }
  .ai-i { background: #1f232c !important; color: var(--text); }
  .doc a.ai:hover .ai-i { background: #2a2f3a !important; }
  .sk-out li::before { background: #6b7280; }
  .sk-out li:first-child::before { background: var(--text); }
  .pc2-rate { background: rgba(15, 17, 21, .9); border-color: var(--line-2); }
  .pc2-price { background: var(--ink); color: #0f1115; }
  .aud { background: var(--bg-2); }
  .doc a.th-ai { background: var(--bg-1); }
  .th-ai-i { background: var(--bg-3); }
  .th-ai-b { background: var(--bg-2) !important; color: var(--text) !important; border-color: var(--line-2) !important; }
  .cxlock span { background: rgba(15, 17, 21, .92); }
  .wm, #ckwrap .wm { color: rgba(236, 238, 242, .22) !important; }
  .draft-bar { background: #3a2a12; color: #ffcf8a; }
  .doc pre, .doc code { background: var(--bg-2); border-color: var(--line); }
  .tk-k { color: #d38ae6; } .tk-f { color: #82a8ff; } .tk-s { color: #8fd18a; } .tk-n { color: #f0a46b; } .tk-c { color: #8a909c; } .tk-b { color: #5fc4e8; }
  img.post-img, .article-img, .rel img { filter: brightness(.92); }
}
