/* BullnBull public site. Look from the owner's Stitch design ("QuantCrest"):
   white canvas, obsidian text, hairline rules, emerald/crimson only for
   direction, amber for notices; Hanken Grotesk + JetBrains Mono.
   Mobile first; tablet from 768px; desktop from 1080px with a 300px ad rail.
   Logical properties (margin-inline, inset-inline) so Arabic/Urdu mirror. */
:root {
  --bg: #ffffff;
  --cloud: #f8fafc;
  --raised: #f1f5f9;
  --ink: #0b111e;
  --ink-2: #1e293b;
  --slate: #64748b;
  --slate-2: #94a3b8;
  --rule: #e2e8f0;
  --rule-2: #cbd5e1;
  --up: #047857;
  --up-bg: #ecfdf5;
  --down: #b91c1c;
  --down-bg: #fef2f2;
  --amber: #b45309;
  --amber-bg: #fffbeb;
  --mint: #6cf8bb;
  --focus: #2563eb;
  --radius: 8px;
  --radius-sm: 4px;
  --rail: 300px;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b111e; --cloud: #111827; --raised: #1a2333; --ink: #e8eef7; --ink-2: #cbd5e1;
    --slate: #94a3b8; --slate-2: #64748b; --rule: #1f2a3b; --rule-2: #334155;
    --up: #34d399; --up-bg: #052e22; --down: #f87171; --down-bg: #3b1212;
    --amber: #fbbf24; --amber-bg: #2d2208; --focus: #93c5fd; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b111e; --cloud: #111827; --raised: #1a2333; --ink: #e8eef7; --ink-2: #cbd5e1;
  --slate: #94a3b8; --slate-2: #64748b; --rule: #1f2a3b; --rule-2: #334155;
  --up: #34d399; --up-bg: #052e22; --down: #f87171; --down-bg: #3b1212;
  --amber: #fbbf24; --amber-bg: #2d2208; --focus: #93c5fd; color-scheme: dark;
}

/* scripts other than Latin get their own Noto face first (loaded per language) */
:lang(zh-Hans) { --sans: "Hanken Grotesk", "Noto Sans SC", sans-serif; }
:lang(zh-Hant) { --sans: "Hanken Grotesk", "Noto Sans TC", sans-serif; }
:lang(ja) { --sans: "Hanken Grotesk", "Noto Sans JP", sans-serif; }
:lang(ko) { --sans: "Hanken Grotesk", "Noto Sans KR", sans-serif; }
:lang(th) { --sans: "Hanken Grotesk", "Noto Sans Thai", sans-serif; }
:lang(hi) { --sans: "Hanken Grotesk", "Noto Sans Devanagari", sans-serif; }
:lang(bn) { --sans: "Hanken Grotesk", "Noto Sans Bengali", sans-serif; }
:lang(ar) { --sans: "Noto Sans Arabic", "Hanken Grotesk", sans-serif; }
:lang(ur) { --sans: "Noto Nastaliq Urdu", "Noto Sans Arabic", sans-serif; }
:lang(ur) body { line-height: 2; }

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); font-variant-numeric: tabular-nums lining-nums;
  padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); /* room for the phone menu */
}
@media (min-width: 768px) { body { padding-bottom: 0; } }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: var(--radius-sm); }
.mono { font-family: var(--mono); }
.muted { color: var(--slate); }
.small { font-size: 13px; }
.caps { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); }
:lang(zh-Hans) .caps, :lang(zh-Hant) .caps, :lang(ja) .caps, :lang(ko) .caps, :lang(ar) .caps, :lang(ur) .caps,
:lang(th) .caps, :lang(hi) .caps, :lang(bn) .caps { letter-spacing: 0; font-size: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--rule); }
.top-in { max-width: 1440px; margin: 0 auto; height: 60px; padding: 0 16px; display: flex; align-items: center; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand .logo { width: 34px; height: 34px; display: grid; place-items: center; flex: none; }
.brand .logo img { display: block; }
.brand b { font-size: 18px; letter-spacing: -.01em; }
.brand .status { display: flex; align-items: center; gap: 6px; font: 11px/1 var(--mono); color: var(--slate); margin-top: 3px; }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--slate-2); display: inline-block; }
.dot.open { background: var(--up); }
.top nav { display: none; gap: 4px; margin-inline-start: 12px; }
.top nav a { text-decoration: none; padding: 7px 11px; border-radius: var(--radius-sm); color: var(--slate); font-weight: 600; font-size: 14px; }
.top nav a:hover { color: var(--ink); background: var(--raised); }
.top nav a[aria-current="page"] { color: var(--ink); background: var(--raised); }
.top .spacer { flex: 1; }
.lang { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); max-width: 128px; }
.iconbtn { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--slate);
  border-radius: var(--radius-sm); cursor: pointer; text-decoration: none; }
.iconbtn:hover { color: var(--ink); background: var(--raised); }
@media (min-width: 768px) { .top nav { display: flex; } .top-in { padding: 0 24px; } }
/* a long menu never runs under the logo or pushes the buttons off: it scrolls sideways instead */
.top nav { min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { white-space: nowrap; flex: none; }
@media (min-width: 768px) { .top .brand, .top .iconbtn, .top-in > .btn { flex: none; } }
@media (min-width: 768px) and (max-width: 1279px) { .top nav a { padding: 7px 7px; font-size: 13px; } .top-in { gap: 10px; } }
@media (max-width: 479px) {
  .hide-xs { display: none !important; } .lang { max-width: 84px; } .top-in { gap: 8px; }
  .brand .status { display: none; } }
@media (min-width: 768px) and (max-width: 1079px) { .brand .status { display: none; } .top nav a { padding: 7px 8px; } }

/* ---------- phone bottom menu ---------- */
.tabbar { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr);
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--rule); padding-bottom: env(safe-area-inset-bottom, 0px); }
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px;
  text-decoration: none; color: var(--slate); font-size: 11px; font-weight: 600; text-align: center; padding: 0 2px; }
.tabbar a[aria-current="page"] { color: var(--ink); }
.tabbar svg { width: 22px; height: 22px; }
@media (min-width: 768px) { .tabbar { display: none; } }

/* ---------- page grid: content + ad rail on desktop ---------- */
.page { max-width: 1440px; margin: 0 auto; padding: 16px; display: grid; gap: 24px; }
@media (min-width: 768px) { .page { padding: 24px; } }
@media (min-width: 768px) and (max-width: 899px) { .page { padding: 20px; } }
@media (min-width: 1080px) { .page { grid-template-columns: minmax(0, 1fr) var(--rail); gap: 32px; } }
.main { min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.rail { display: none; }
@media (min-width: 1080px) { .rail { display: block; } .rail-in { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 16px; } }

/* ---------- type ---------- */
h1 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.15; letter-spacing: -.025em; font-weight: 700; margin: 0; max-width: 24ch; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.015em; font-weight: 650; margin: 0; }
h3 { font-size: 17px; line-height: 1.35; font-weight: 650; margin: 0; }
p { margin: 0; max-width: 72ch; }
.lede { font-size: 16px; color: var(--slate); max-width: 60ch; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.sec-head p { font-size: 13px; color: var(--slate); margin-top: 2px; }
.prose p, .prose ul { margin-bottom: 12px; }
.prose li { margin-bottom: 6px; max-width: 70ch; }

/* ---------- hero + search ---------- */
.hero { display: flex; flex-direction: column; gap: 12px; }
/* home: the dark first screen, and the four "what changed this week" cards */
.hero-dark { background: #0f1b2d; color: #f1f5f9; border-radius: var(--radius); padding: 28px 20px; }
@media (min-width: 768px) { .hero-dark { padding: 40px 36px; } }
.hero-dark .badge { background: rgba(108, 248, 187, .12); }
.hero-dark .badge .caps { color: #6cf8bb; }
.hero-dark h1 { color: #fff; max-width: 22ch; }
.hero-dark .lede, .hero-dark .hero-trust { color: #cbd5e1; }
.hero-dark .search-box { background: #1e2b40; border-color: #334155; }
.hero-dark .search-box input { color: #fff; }
.hero-dark .search-box input::placeholder, .hero-dark .search-box svg { color: #94a3b8; }
.hero-dark .pill { background: #1e2b40; border-color: #334155; color: #e2e8f0; }
.hero-dark .suggest { color: var(--ink); }
.watch { display: grid; gap: 12px; }
.watch-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1080px) { .watch-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.watch-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--rule); border-radius: var(--radius);
  border-top-width: 4px; text-decoration: none; color: inherit; min-width: 0; }
.watch-card.good { border-top-color: var(--up); } .watch-card.bad { border-top-color: var(--down); }
.watch-card:hover { background: var(--cloud); }
.watch-card b { font: 700 30px/1.1 var(--mono); }
.watch-see { margin-top: auto; padding-top: 6px; font-weight: 650; color: var(--ink); }
.badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--raised); }
.search { position: relative; max-width: 640px; }
.search-box { display: flex; align-items: center; gap: 8px; height: 48px; padding: 0 12px; border: 1px solid var(--rule-2); border-radius: var(--radius);
  background: var(--bg); }
.search-box:focus-within { border-color: var(--ink); }
.search-box input { flex: 1; align-self: stretch; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 16px; color: var(--ink); }
.kbd { font: 11px var(--mono); color: var(--slate); background: var(--raised); padding: 2px 6px; border-radius: var(--radius-sm); }
.suggest { list-style: none; margin: 4px 0 0; padding: 4px; position: absolute; inset-inline: 0; z-index: 30; background: var(--bg);
  border: 1px solid var(--rule-2); border-radius: var(--radius); box-shadow: 0 10px 25px -5px rgba(11, 17, 30, .08); }
.suggest:empty { display: none; }
.suggest a { display: flex; gap: 12px; align-items: baseline; padding: 9px 10px; text-decoration: none; border-radius: var(--radius-sm); }
.suggest a:hover, .suggest a:focus-visible { background: var(--cloud); }
.suggest b { font-family: var(--mono); min-width: 64px; }
.pills { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 4px; scrollbar-width: none; }
.pills::-webkit-scrollbar { display: none; }
.pill { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--rule);
  background: var(--cloud); color: var(--ink); text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; cursor: pointer; font-family: inherit; }
.pill:hover { background: var(--raised); }
.pill[aria-pressed="true"], .pill.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- discussion forum: colours from the owner's Stitch reference, forum only ---------- */
.fo { --fo-primary: #4f46e5; --fo-primary-2: #4338ca; --fo-wash: #eef2ff; --fo-line: #c7d2fe; --fo-violet: #7c3aed; --fo-violet-bg: #f3e8ff; --fo-amber: #b45309; --fo-amber-bg: #fef3c7; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .fo { --fo-primary: #a5b4fc; --fo-primary-2: #c7d2fe; --fo-wash: #1e2145; --fo-line: #3730a3; --fo-violet: #c4b5fd; --fo-violet-bg: #2e1a5e; --fo-amber: #fbbf24; --fo-amber-bg: #2d2208; }
}
:root[data-theme="dark"] .fo { --fo-primary: #a5b4fc; --fo-primary-2: #c7d2fe; --fo-wash: #1e2145; --fo-line: #3730a3; --fo-violet: #c4b5fd; --fo-violet-bg: #2e1a5e; --fo-amber: #fbbf24; --fo-amber-bg: #2d2208; }
.fo-summary { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; border: 1px solid var(--fo-line); border-radius: 16px; background: var(--fo-wash); min-width: 0; }
.fo-summary h1 { font-size: 22px; }
.fo-summary .field input { background: var(--bg); }
.fo-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 768px) { .fo-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fo-stat { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--radius); padding: 10px 12px; min-width: 0; }
.fo-stat-v { font: 700 22px/1.2 var(--mono); color: var(--ink); }
.fo-current { font-weight: 650; color: var(--fo-primary); overflow-wrap: anywhere; }
.fo-names { display: grid; gap: 6px; min-width: 0; }
.fo-names h2 { font-size: 14px; font-weight: 650; }
.fo-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fo-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--rule); background: var(--bg);
  color: var(--ink); font-size: 13px; text-decoration: none; cursor: pointer; }
.fo-chip b { font-family: var(--mono); font-size: 12px; }
.fo-chip span { color: var(--slate); font-size: 12px; }
.fo-chip:hover { border-color: var(--fo-primary); }
.fo-chip.on { background: var(--fo-primary); border-color: var(--fo-primary); color: var(--bg); }
.fo-chip.on span { color: var(--bg); }
.fo-open .fo-sum-top p { display: none; }
.fo-open .fo-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.fo-open .fo-chip { flex: none; white-space: nowrap; }
.fo-more { font: inherit; font-size: 13px; font-weight: 600; color: var(--fo-primary); }
#fo-board { display: grid; gap: 16px; min-width: 0; margin-top: 16px; }
#fo-board[hidden] { display: none; }
.fo-stock { font-size: 20px; overflow-wrap: anywhere; }
.fo-months .pill.on, #fo-filter .pill.on { background: var(--fo-primary); border-color: var(--fo-primary); color: var(--bg); }
.fo-pick { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--rule); }
.fo-pick:last-child { border-bottom: 0; }
.fo-qa { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); }
.fo-qa-item { border-bottom: 1px solid var(--rule); padding: 10px 14px; }
.fo-qa-item:last-child { border-bottom: 0; }
.fo-qa-item summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.fo-qa-item p { margin-top: 6px; font-size: 14px; color: var(--ink-2); }
.fo-list { display: grid; gap: 12px; margin-top: 8px; min-width: 0; }
.fo-thread { display: grid; gap: 10px; transition: border-color .15s; min-width: 0; }
.fo-thread:hover { border-color: var(--rule-2); }
.fo-post { display: grid; gap: 6px; min-width: 0; }
.fo-post header { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; min-width: 0; }
.fo-post header b { overflow-wrap: anywhere; }
.fo-av { flex: none; display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--fo-wash); color: var(--fo-primary); font-weight: 700; font-size: 14px; }
.fo-post.reply .fo-av { width: 26px; height: 26px; font-size: 12px; }
.fo-post.owner .fo-av { background: var(--fo-violet-bg); color: var(--fo-violet); }
.fo-post.auto .fo-av { background: var(--fo-amber-bg); color: var(--fo-amber); }
.fo-post.auto header b { color: var(--fo-amber); }
.fo-badge { padding: 1px 8px; border-radius: 999px; background: var(--fo-violet-bg); color: var(--fo-violet); font-size: 11px; font-weight: 650; }
.fo-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 15px; color: var(--ink); }
.fo-post footer { display: flex; align-items: center; gap: 12px; }
.fo-up { display: inline-flex; gap: 4px; align-items: center; padding: 2px 10px; border-radius: 999px; border: 1px solid transparent; background: var(--raised); color: var(--ink-2);
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.fo-up:hover, .fo-up:disabled { background: var(--fo-wash); color: var(--fo-primary); border-color: var(--fo-line); }
.fo-link { background: none; border: 0; padding: 2px 0; font: inherit; font-size: 13px; font-weight: 600; color: var(--fo-primary); cursor: pointer; }
.fo-link.muted { color: var(--slate); font-weight: 500; }
.fo-replies { display: grid; gap: 12px; padding-inline-start: 14px; border-inline-start: 2px solid var(--rule); }
.fo-form { display: grid; gap: 12px; min-width: 0; }
.fo-form textarea { min-height: 96px; }
.fo-trap { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; opacity: 0; }
.btn.fo-primary { background: var(--fo-primary); border-color: var(--fo-primary); color: var(--bg); }
.btn.fo-primary:hover { background: var(--fo-primary-2); }

/* ---------- tested page ---------- */
.ts-means { display: grid; gap: 10px; background: var(--cloud); }
.ts-means ul { margin: 0; padding-inline-start: 18px; display: grid; gap: 4px; }
.ts-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.ts-more { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); min-width: 0; }
.ts-more summary { cursor: pointer; padding: 12px 16px; font-weight: 650; }
.ts-more-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 4px 16px 16px; }

/* ---------- home: news ---------- */
#news { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; min-width: 0; scroll-margin-top: 80px; }
#news .sec-head { margin-bottom: 4px; }
.news-more { text-align: center; margin-top: 4px; }
#week-more[hidden] { display: none; }

/* ---------- home: jump buttons; on a phone they stay in view and the logo bar scrolls away ---------- */
.jump { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; background: var(--bg); border-bottom: 1px solid var(--rule); }
.jump::-webkit-scrollbar { display: none; }
.jump a { flex: none; display: flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px;
  font-size: 14px; font-weight: 600; color: var(--ink-2); text-decoration: none; white-space: nowrap; }
.jump a:hover { color: var(--ink); }
#tested, #pulse, #calendar { scroll-margin-top: 80px; }
@media (max-width: 767px) {
  .has-jump .top { position: static; }
  .jump { position: sticky; top: 0; z-index: 30; gap: 12px; margin-inline: -16px; padding-inline: 16px; }
  #news, #tested, #pulse, #calendar { scroll-margin-top: 56px; }
}

/* ---------- pages from rust/bullnbull_seo ---------- */
#co-live { display: grid; grid-template-columns: minmax(0, 1fr); gap: inherit; }
.seo-faq h3 { margin-top: 14px; font-size: 15px; }
.seo-faq p { color: var(--slate); }
.seo-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.seo-pills .pill { text-decoration: none; }
.seo-phrases { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.seo-phrases li { color: var(--slate); font-size: 14px; }
.seo-phrases li::before { content: "\2315"; margin-inline-end: 6px; opacity: .6; }
.seo-more { margin-top: 4px; }
.seo-list, .seo-index { list-style: none; margin: 8px 0 0; padding: 0; }
.seo-list li, .seo-index li { padding: 10px 0; border-bottom: 1px solid var(--rule); min-width: 0; }
.seo-day > li > .tk { justify-self: start; }
.feed-copy { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.feed-copy input { flex: 1 1 260px; min-width: 0; height: 44px; padding: 0 10px; font: 14px var(--mono); border: 1px solid var(--rule-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); direction: ltr; }
.feed-steps { padding-inline-start: 22px; display: grid; gap: 6px; }
.feed-addr { font-family: var(--mono); overflow-wrap: anywhere; direction: ltr; unicode-bidi: isolate; }

/* ---------- home: news rows, three lines until "Read more" ---------- */
.row-text { min-width: 0; }
.row-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 6px; }
#week li.short .sum { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
#week li.short .sum .points, #week li.short .sum .points li, #week li.short .sum .head { display: inline; margin: 0; }
#week li.short .sum .points li::after { content: " "; }
#week li.short .what .tag ~ .tag:not(.down):not(.warn) { display: none; }
.readmore { padding: 0; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600;
  color: var(--ink-2); text-decoration: underline; cursor: pointer; }
.readmore[hidden] { display: none; }
@media (max-width: 767px) {
  #week .when { grid-row: auto; }
  #week .row-text { grid-column: 1 / -1; }
}

/* ---------- home: daily box ---------- */
.daily { display: grid; gap: 12px; background: var(--cloud); }
@media (min-width: 768px) { .daily { grid-template-columns: 1fr auto; align-items: center; } }
.daily h2 { margin-top: 4px; font-size: 18px; }
.daily-links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- cards ---------- */
.card { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--bg); padding: 16px; }
.card.flush { padding: 0; overflow: hidden; }
.grid2 { display: grid; gap: 12px; }
@media (min-width: 768px) { .grid2 { grid-template-columns: 1fr 1fr; gap: 16px; } }
.widget { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; background: var(--bg); }
.widget .tradingview-widget-container { width: 100%; }
.credit { font-size: 11px; color: var(--slate-2); padding: 6px 10px; }
.credit a { color: var(--slate); }

/* ---------- marks ---------- */
.tag { display: inline-block; padding: 1px 7px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 650; white-space: nowrap;
  border: 1px solid var(--rule); background: var(--cloud); color: var(--ink-2); }
.tag.up { background: var(--up-bg); color: var(--up); border-color: transparent; }
.tag.down { background: var(--down-bg); color: var(--down); border-color: transparent; }
.tag.warn { background: var(--amber-bg); color: var(--amber); border-color: transparent; }
.tag.na { color: var(--slate); border-style: dashed; background: none; }
.tk { font-family: var(--mono); font-weight: 700; font-size: 13px; padding: 1px 6px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--cloud); text-decoration: none; white-space: nowrap; }
a.tk:hover { border-color: var(--ink); }
.lvl-High { color: var(--down); font-weight: 700; }
.lvl-Medium { color: var(--amber); font-weight: 650; }
.lvl-Low { color: var(--slate); }

/* ---------- touch screens: bigger tap targets (finger, not mouse) ---------- */
@media (pointer: coarse) {
  .pill { min-height: 44px; padding-block: 9px; }
  .btn, select, input[type="number"] { min-height: 44px; }
  .brand { min-height: 44px; }
  .lang { min-height: 44px; }
  /* small links in a news row: a bigger finger area that does not make the row taller */
  .feed a.tk, .feed a.src, .readmore { position: relative; }
  .feed a.tk::after, .feed a.src::after, .readmore::after { content: ""; position: absolute; inset: -12px -6px; }
}
/* a phone on its side has little height: slimmer header and bottom menu */
@media (max-width: 767px) and (max-height: 480px) {
  body { padding-bottom: calc(46px + env(safe-area-inset-bottom, 0px)); }
  .top-in { height: 48px; } .tabbar a { height: 46px; flex-direction: row; gap: 6px; font-size: 12px; } .tabbar svg { width: 18px; height: 18px; }
}

/* ---------- tables (no zebra; hairlines; numbers right) ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--rule); border-radius: var(--radius); }
table.data { border-collapse: collapse; width: 100%; font-size: 14px; }
.data th, .data td { padding: 10px 12px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--rule); }
.data tbody tr:last-child td { border-bottom: 0; }
.data thead th { font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--slate); white-space: nowrap; background: var(--cloud); }
.data tbody tr:hover { background: var(--cloud); }
.data .num { text-align: end; white-space: nowrap; font-family: var(--mono); font-size: 13px; }
.data th button { all: unset; cursor: pointer; }
.data th button:focus-visible { outline: 2px solid var(--focus); }
.data th[aria-sort="ascending"] button::after { content: " \25B2"; }
.data th[aria-sort="descending"] button::after { content: " \25BC"; }
.data td.co small { display: block; color: var(--slate); font-size: 12px; }
@media (max-width: 767px) { .data .hide-sm { display: none; } }
@media (min-width: 768px) and (max-width: 1279px) {
  table.data { font-size: 13px; }
  .data .num { font-size: 12.5px; }
  .data th, .data td { padding: 10px 6px; }
  .data thead th, .data thead th.num { white-space: normal; vertical-align: bottom; line-height: 1.25; letter-spacing: .02em; }
}
/* On a phone a wide table becomes one card per row: the first cell is the card's title, then one
   line per column with its heading on the left and the value on the right (BB.stack() sets
   data-label). A line layout, not a grid, so long headings and long translations still fit.
   Up to 899px, so a tablet held upright gets cards too; side by side from 600px. */
@media (max-width: 899px) {
  .table-wrap:has(> table.stack) { overflow: visible; border: 0; border-radius: 0; }
  table.stack, .stack tbody { display: block; }
  .stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .stack tbody tr { display: block; padding: 12px 14px 6px; margin-bottom: 10px; border: 1px solid var(--rule); border-radius: var(--radius); }
  .stack tbody tr:hover { background: transparent; }
  .stack td { display: block; padding: 0; border: 0; min-width: 0; }
  .stack td:first-child { padding-bottom: 8px; font-size: 15px; }
  .stack td:first-child + td.co { margin-top: -6px; padding-bottom: 8px; }
  .stack td:not([data-label]):not(:first-child) { padding: 8px 0 6px; }
  .stack td:not([data-label]):last-child:not(:first-child) { border-top: 1px solid var(--rule); margin-top: 4px; }
  .stack td[data-label] { display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    padding: 7px 0; border-top: 1px solid var(--rule); text-align: end; }
  .stack td[data-label] > * { min-width: 0; white-space: normal; text-align: end; }
  .stack td[data-label]::before { content: attr(data-label); flex: 1 1 auto; text-align: start; font-family: var(--sans);
    font-size: 12.5px; font-weight: 500; color: var(--slate); white-space: normal; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .stack tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
  .stack tbody tr { margin-bottom: 0; }
  .stack tbody tr:only-child { grid-column: 1 / -1; }
}
.pos { color: var(--up); } .neg { color: var(--down); }

/* "Sort by" for tables shown as cards on a phone */
.sortby { display: none; }
@media (max-width: 899px) {
  .sortby { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; }
  .sortby label { font-size: 13px; font-weight: 600; color: var(--slate); white-space: nowrap; }
  .sortby select { flex: 1; min-width: 0; }
  .sortby .btn { width: 44px; justify-content: center; padding: 0; font-size: 18px; }
}

/* health monitor and radar */
.rflags { display: flex; flex-wrap: wrap; gap: 6px; grid-column: 2; }
.hflag { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: baseline; white-space: normal; }
.hflag .mono { font-size: 11.5px; font-weight: 500; opacity: .85; }

/* stacked list rows (feeds) */
.feed { list-style: none; margin: 0; padding: 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.feed li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 12px 14px; border-bottom: 1px solid var(--rule); }
.feed li:last-child { border-bottom: 0; }
.feed .when { grid-row: span 2; font: 12px/1.3 var(--mono); color: var(--slate); text-align: center; min-width: 44px; }
.feed .when b { display: block; font-size: 16px; color: var(--ink); }
.feed .what { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.feed .what > * { min-width: 0; }
.feed .tag { white-space: normal; }
.feed .head { font-size: 14px; color: var(--ink-2); }
.feed a.src { font-size: 13px; color: var(--slate); }

/* ---------- forms ---------- */
.filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 768px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .filters { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--slate); font-weight: 600; min-width: 0; }
select, input[type="number"], .btn {
  font: inherit; font-size: 14px; height: 38px; padding: 0 10px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); min-width: 0; width: 100%; }
.field { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--slate); min-width: 0; }
.field input, .field textarea { font: inherit; font-size: 15px; font-weight: 400; color: var(--ink); background: var(--bg);
  border: 1px solid var(--rule-2); border-radius: var(--radius-sm); padding: 9px 10px; width: 100%; }
.field input { height: 40px; }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, select:focus { border-color: var(--ink); outline: 0; }
.btn { white-space: nowrap; }
.brand .status { white-space: nowrap; }
.btn { width: auto; cursor: pointer; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; background: var(--cloud); text-decoration: none; }
.btn:hover { background: var(--raised); }
.btn.primary { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.btn:disabled { opacity: .45; cursor: default; }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 12px 0; }

/* ---------- company page ---------- */
.co-top { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.co-meta { color: var(--slate); font-size: 14px; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 768px) { .facts-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1280px) { .facts-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fact { padding: 12px 14px; border-bottom: 1px solid var(--rule); border-inline-end: 1px solid var(--rule); }
.fact .v { font: 600 18px/1.3 var(--mono); margin-top: 2px; }
.fact .why { font-size: 12px; color: var(--slate); margin-top: 4px; }
ul.marks { list-style: none; margin: 0; padding: 0; }
ul.marks li { padding: 9px 0; padding-inline-start: 28px; position: relative; border-bottom: 1px solid var(--rule); }
ul.marks li:last-child { border-bottom: 0; }
ul.marks li::before { position: absolute; inset-inline-start: 2px; top: 8px; font-weight: 800; }
ul.marks.good li::before { content: "\2713"; color: var(--up); }
ul.marks.bad li::before { content: "\2715"; color: var(--down); }
ul.marks li.none::before { content: ""; }
ul.marks li.none { color: var(--slate); }
.chart { height: 420px; }
@media (min-width: 768px) { .chart { height: 480px; } }
.points { margin: 8px 0 0; padding-inline-start: 18px; color: var(--ink-2); font-size: 14px; }
.points li { margin-bottom: 4px; }
.feed .points { margin: 2px 0 0; padding: 0; list-style: none; }
.feed .points li { display: block; padding: 0; border: 0; margin-bottom: 4px; }
.watch-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- ads ---------- */
.ad { border: 1px solid var(--rule); border-radius: var(--radius); background: var(--cloud); padding: 10px 12px 12px; }
.ad[hidden] { display: none; }
.ad .ad-label { display: flex; justify-content: space-between; margin-bottom: 8px; }
.ad .ad-body { min-height: 90px; display: grid; place-items: center; }
.ad.box .ad-body { min-height: 250px; }
.ad.rail-ad .ad-body { min-height: 600px; }
.ad .ad-ph { width: 100%; height: 100%; min-height: inherit; border: 1px dashed var(--rule-2); border-radius: var(--radius-sm);
  display: grid; place-items: center; color: var(--slate-2); font: 12px var(--mono); text-align: center; padding: 8px; }

/* ---------- notices, footer ---------- */
.notice { background: var(--amber-bg); color: var(--ink); border: 1px solid transparent; border-inline-start: 3px solid var(--amber);
  padding: 10px 14px; border-radius: var(--radius-sm); font-size: 14px; }
.notice:empty { display: none; }
.notice.not-advice { display: grid; gap: 6px; font-size: 15px; border-inline-start: 4px solid var(--down); }
.notice.not-advice b { font-size: 20px; line-height: 1.25; }
.err { color: var(--down); font-weight: 600; }
.foot { border-top: 1px solid var(--rule); margin-top: 32px; }
.foot-in { max-width: 1440px; margin: 0 auto; padding: 24px 16px 32px; display: grid; gap: 10px; color: var(--slate); font-size: 13px; }
.foot-in p { max-width: 90ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot-links a { color: var(--slate); }
.answer { font-size: clamp(20px, 3vw, 28px); line-height: 1.3; font-weight: 700; letter-spacing: -.015em; max-width: 36ch; }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }

/* Learn lessons (rust/bullnbull_seo learn.rs) */
.crumbs { margin: 0 0 6px; }
.learn h2 { margin-top: 26px; }
.learn-check { margin-top: 22px; }
.learn-check ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.learn-ex .rlist li { display: grid; gap: 6px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.learn-index li { display: grid; gap: 2px; }
.notice.gc-warn { display: grid; gap: 6px; border-inline-start: 4px solid var(--down); margin: 12px 0; }

/* Learn quiz (quiz.rs + seo.js) */
.quiz { margin-top: 22px; }
.qz-list { padding-left: 1.2em; }
.qz { margin: 14px 0; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.qz:last-child { border-bottom: 0; }
.qz-q { margin: 0 0 4px; }
.qz-ask { margin: 6px 0; font-weight: 600; }
.qz-opts { display: flex; gap: 8px; flex-wrap: wrap; }
.qz-opts .pill { cursor: pointer; font: inherit; }
.qz-opts .pill:disabled { cursor: default; }
.qz-res { margin: 8px 0 0; font-weight: 700; }
.qz-res.right { color: var(--up); }
.qz-res.wrong { color: var(--down); }
.qz-ans { margin-top: 6px; }
.qz-ans summary { cursor: pointer; font-size: 14px; color: var(--ink-2); }
.qz-total { margin-top: 10px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--raised); font-weight: 700; }

/* 8 checks (checkup.html + checkup.js) */
.ck-head { display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 8px 0 4px; }
.ck-badge { width: 92px; min-height: 92px; padding: 10px; background: var(--down); color: #fff; border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: space-between; }
.ck-badge .caps { color: #fff; opacity: .9; font-size: 10px; }
.ck-badge b { font-size: 46px; line-height: 1; font-weight: 700; }
.ck-head h1 { margin: 0 0 6px; }
.ck-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; border-top: 2px solid var(--ink); padding-top: 12px; }
.ck-label { color: var(--down); font-weight: 700; padding-top: 4px; }
.tv-setup-co { margin: 6px 0 0; font-size: 14px; line-height: 1.35; }
.tv-setup-co .tk { display: inline-block; margin-bottom: 2px; }
.ck-body { min-width: 0; display: grid; gap: 10px; }
.ck-picks .pill { cursor: pointer; font: inherit; }
.ck-search { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-search input { flex: 1 1 220px; min-height: 40px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm);
  background: var(--bg); color: var(--ink); font: inherit; }
.ck-now { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.ck-figs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ck-fig { display: grid; gap: 2px; border-top: 1px solid var(--rule); padding-top: 8px; }
.ck-fig b { font-size: 28px; line-height: 1.15; font-weight: 700; }
.ck-fig .caps { font-size: 11px; }
.ck-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.ck-card { text-align: start; display: grid; gap: 4px; align-content: start; min-height: 112px; padding: 10px; cursor: pointer;
  border: 1px solid var(--rule); border-top: 4px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: inherit; }
.ck-card:hover { background: var(--raised); }
.ck-card b { font-size: 15px; }
.ck-card.pass { border-top-color: var(--up); } .ck-card.watch { border-top-color: #d97706; }
.ck-card.fail { border-top-color: var(--down); } .ck-card.info, .ck-card.na, .ck-card.bank { border-top-color: var(--ink-2); }
.ck-card[aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.ck-card[aria-selected="true"] .muted { color: var(--bg); opacity: .8; }
.ck-n { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--down); }
.ck-card[aria-selected="true"] .ck-n { color: inherit; }
.ck-tag { justify-self: start; }
.ck-tag.pass { background: var(--up-bg); color: var(--up); } .ck-tag.fail { background: var(--down-bg); color: var(--down); }
.ck-tag.watch { background: #fef3c7; color: #92400e; } .ck-tag.info, .ck-tag.na, .ck-tag.bank { background: var(--raised); color: var(--ink-2); }
.ck-detail { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; border-inline-start: 4px solid var(--ink-2); }
.ck-detail.pass { border-inline-start-color: var(--up); } .ck-detail.watch { border-inline-start-color: #d97706; } .ck-detail.fail { border-inline-start-color: var(--down); }
.ck-detail h3 { margin: 0 0 4px; }
.ck-dn { font-family: "JetBrains Mono", monospace; font-size: 34px; font-weight: 700; color: var(--down); line-height: 1; }
.ck-q { margin: 0 0 6px; font-weight: 600; }
.ck-val { margin: 0 0 6px; font-size: 16px; font-weight: 700; }
@media (max-width: 767px) {
  .ck-row { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ck-figs, .ck-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ck-badge { width: 70px; min-height: 70px; } .ck-badge b { font-size: 34px; }
}
.ck-ctl { gap: 14px; }
.ck-ctl .pills .pill, .ck-tools .pill { cursor: pointer; font: inherit; }
.ck-tools { display: flex; gap: 8px; flex-wrap: wrap; }
.ck-top { display: flex; align-items: center; gap: 6px; }
.ck-ic { width: 22px; height: 22px; color: var(--ink-2); flex: none; }
.ck-card[aria-selected="true"] .ck-ic { color: inherit; }
.ck-learned { margin-inline-start: auto; color: var(--up); font-weight: 700; }
.ck-bar { display: block; height: 5px; border-radius: 3px; background: var(--rule); overflow: hidden; margin-top: 4px; }
.ck-bar i { display: block; height: 100%; background: var(--up); }
.ck-vs { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 2px 0 6px; }
.ck-card .ck-vs { margin: 2px 0 0; }
.ck-vsn { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.ck-dn { display: grid; gap: 8px; justify-items: center; align-content: start; }
.ck-dn .ck-ic { width: 30px; height: 30px; color: var(--down); }
.ck-dbody { min-width: 0; }
.ck-cmp-line { color: var(--ink-2); }
.ck-dfoot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.ck-mark { cursor: pointer; font: inherit; }
.ck-chart { margin: 10px 0 0; }
.ck-chart figcaption { font-size: 11px; margin-bottom: 4px; }
.ck-chart svg { width: 100%; height: 90px; display: block; background: var(--cloud); border-radius: var(--radius-sm); }
.ck-chart rect { fill: var(--ink-2); } .ck-chart rect.last { fill: var(--ink); } .ck-chart rect.neg { fill: var(--down); }
.ck-chart2 rect { fill: #93c5fd; } .ck-chart2 rect.last { fill: #2563eb; }
.ck-chart line { stroke: var(--rule); stroke-width: .5; }
.ck-yrs { display: flex; } .ck-yrs span { flex: 1; text-align: center; font-size: 11px; color: var(--ink-2); display: grid; }
.ck-yrs b { font-size: 11px; color: var(--ink); font-family: "JetBrains Mono", monospace; }
.ck-mini { margin-top: 10px; } .ck-mini ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.ck-prog { display: flex; align-items: center; gap: 10px; }
.ck-prog-track { flex: 0 0 160px; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.ck-prog-track i { display: block; height: 100%; width: 0; background: var(--up); transition: width .3s; }
@media print {
  .top, .tabbar, .foot, .rail, .ad, .ck-ctl, .ck-picks, .ck-search, .ck-mark, .ck-tools, .ck-prog { display: none !important; }
  .ck-grid { grid-template-columns: repeat(4, 1fr); } .ck-card { break-inside: avoid; }
}
.ck-card[aria-selected="true"] .tk { background: transparent; color: inherit; border-color: currentColor; }
.ck-card[aria-selected="true"] .ck-bar { background: rgba(255, 255, 255, .25); }
/* 8 checks: inspector (detail) */
.ck-ins { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; }
.ck-ins-tags { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.ck-ins-h { color: var(--down); font-weight: 700; }
.ck-ins-title { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 22px; }
.ck-ins-title .ck-ic { width: 28px; height: 28px; color: var(--down); }
.ck-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 2px solid var(--ink); border-radius: var(--radius-sm); margin: 10px 0; }
.ck-facts > div { display: grid; gap: 2px; padding: 8px 10px; border-inline-start: 1px solid var(--rule); align-content: start; }
.ck-facts > div:first-child { border-inline-start: 0; }
.ck-facts .caps { font-size: 10px; } .ck-facts b { font-size: 15px; line-height: 1.3; }
.ck-res.pass { color: var(--up); } .ck-res.fail { color: var(--down); } .ck-res.watch { color: #b45309; }
.ck-irow { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.ck-irow .caps { font-size: 11px; font-weight: 700; }
.ck-ins-side { display: grid; gap: 12px; align-content: start; min-width: 0; }
.ck-lbars { border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: 10px; display: grid; gap: 6px; }
.ck-lbars .caps { font-size: 11px; margin-bottom: 2px; }
.ck-lbar { display: grid; grid-template-columns: 110px minmax(0, 1fr) 44px; gap: 8px; align-items: center; font-size: 13px; }
.ck-lt { height: 10px; background: var(--rule); border-radius: 2px; overflow: hidden; }
.ck-lt i { display: block; height: 100%; background: var(--ink); }
.ck-lbar.on .ck-lt i { background: var(--down); } .ck-lbar.on span:first-child { font-weight: 700; }
.ck-lbar b { text-align: end; }
/* big moves and why: canvas + timeline */
.bm-groups { display: flex; gap: 8px; margin-top: 8px; } .bm-groups span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.bm-groups .int, .bm-cell.int b { color: #1d4ed8; } .bm-groups .mkt, .bm-cell.mkt b { color: #047857; } .bm-groups .mac, .bm-cell.mac b { color: #7c3aed; }
.bm-canvas { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); grid-template-rows: auto auto auto; gap: 4px; }
.bm-cell { text-align: start; display: grid; gap: 2px; align-content: start; padding: 8px; min-height: 72px; font: inherit; color: var(--ink);
  border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); cursor: default; }
.bm-cell.has { cursor: pointer; }
.bm-cell.has.int { background: color-mix(in srgb, #3b82f6 calc(var(--w) * 28%), var(--bg)); }
.bm-cell.has.mkt { background: color-mix(in srgb, #10b981 calc(var(--w) * 28%), var(--bg)); }
.bm-cell.has.mac { background: color-mix(in srgb, #8b5cf6 calc(var(--w) * 28%), var(--bg)); }
.bm-cell.has.none { background: var(--raised); }
.bm-cell.on { outline: 3px solid var(--ink); }
.bm-cell b { font-size: 13px; } .bm-n { font-family: "JetBrains Mono", monospace; font-size: 12px; font-weight: 700; }
.bm-cell:disabled .bm-n { font-family: inherit; font-weight: 400; color: var(--ink-2); }
.bm-cell .small { color: var(--ink-2); line-height: 1.3; }
.a-kp { grid-column: 1 / 3; grid-row: 1 / 3; } .a-ka { grid-column: 3 / 5; grid-row: 1; } .a-kr { grid-column: 3 / 5; grid-row: 2; }
.a-vp { grid-column: 5 / 7; grid-row: 1 / 3; } .a-cr { grid-column: 7 / 9; grid-row: 1; } .a-ch { grid-column: 7 / 9; grid-row: 2; }
.a-cust { grid-column: 9 / 11; grid-row: 1 / 3; } .a-cs { grid-column: 1 / 6; grid-row: 3; } .a-rev { grid-column: 6 / 11; grid-row: 3; }
.bm-macro { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.bm-list { margin-top: 6px; }
.bm-r { font-size: 18px; font-family: "JetBrains Mono", monospace; }
.bm-ev { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; font-size: 14px; }
.bm-tag.int { background: #dbeafe; color: #1e40af; } .bm-tag.mkt { background: #d1fae5; color: #065f46; }
.bm-tag.mac { background: #ede9fe; color: #5b21b6; } .bm-tag.none { background: var(--raised); color: var(--ink-2); }
@media (max-width: 767px) {
  .ck-ins { grid-template-columns: minmax(0, 1fr); }
  .ck-facts { grid-template-columns: minmax(0, 1fr); } .ck-facts > div { border-inline-start: 0; border-top: 1px solid var(--rule); } .ck-facts > div:first-child { border-top: 0; }
  .ck-irow { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bm-canvas { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; }
  .bm-canvas .bm-cell { grid-column: auto; grid-row: auto; }
  .bm-canvas .a-cs, .bm-canvas .a-rev { grid-column: span 2; }
  .bm-macro { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.bm-cell { min-width: 0; overflow-wrap: anywhere; }
.bm-canvas, .bm-macro { min-width: 0; width: 100%; }
.bm-groups { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 4px; }
.bm-groups .int { grid-column: 1 / 5; } .bm-groups .mkt { grid-column: 5 / 11; } .bm-groups .mac { grid-column: 1 / 11; }
.ck-facts b { font-family: inherit; }
@media (max-width: 767px) { .bm-groups .int, .bm-groups .mkt, .bm-groups .mac { grid-column: 1 / 11; } }
@media (max-width: 767px) { .ck-yrs b { font-size: 9px; overflow-wrap: anywhere; } .ck-lbar { grid-template-columns: 90px minmax(0, 1fr) 40px; } }
/* move inspector: own candle chart */
.bm-ins { margin: 10px 0; border-inline-start-color: var(--ink); }
.bm-candles { width: 100%; height: auto; display: block; background: var(--cloud); border-radius: var(--radius-sm); }
.bm-candles text { font-size: 9px; fill: var(--ink-2); font-family: "JetBrains Mono", monospace; }
.bm-candles .grid { stroke: var(--rule); stroke-width: .5; } .bm-candles .zero { stroke: var(--ink-2); stroke-width: .6; stroke-dasharray: 2 2; }
.bm-candles .band { fill: #fde68a; opacity: .45; }
.bm-candles .up line, .bm-candles .up rect { stroke: var(--up); fill: var(--up); }
.bm-candles .dn line, .bm-candles .dn rect { stroke: var(--down); fill: var(--down); }
.bm-candles .vol { opacity: .45; stroke: none !important; }
.bm-candles .mark { fill: #2563eb; stroke: none; }
.bm-item { cursor: pointer; border-radius: var(--radius-sm); }
.bm-item:hover { background: var(--raised); } .bm-item.on { outline: 2px solid var(--ink); background: var(--cloud); }
.bm-fb.int .ck-lt i { background: #3b82f6; } .bm-fb.mkt .ck-lt i { background: #10b981; } .bm-fb.mac .ck-lt i { background: #8b5cf6; } .bm-fb.none .ck-lt i { background: var(--ink-2); }
.ck-chart svg.bm-candles { height: auto; min-height: 220px; }
.bm-ins .ck-ins-side { min-width: 0; }
/* learning path (learn.rs + seo.js) */
.learn-path { margin: 6px 0 18px; border-top: 4px solid var(--down); }
.lp-prog { display: flex; align-items: center; gap: 10px; margin: 6px 0 10px; }
.lp-track { flex: 0 0 180px; height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.lp-track i { display: block; height: 100%; background: var(--up); }
.lp-pick { display: grid; gap: 2px; padding: 10px 12px; border: 2px solid var(--ink); border-radius: var(--radius-sm); margin: 6px 0 10px; }
.lp-pick .caps { color: var(--down); font-weight: 700; font-size: 11px; }
.lp-go { font-size: 17px; }
.lp-done { font-weight: 600; color: var(--up); }
.lp-steps { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 4px; }
.lp-step { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 8px; border: 1px solid var(--rule); border-radius: var(--radius-sm); }
.lp-step.mastered { border-inline-start: 4px solid var(--up); } .lp-step.learning { border-inline-start: 4px solid #d97706; }
.lp-n { font-family: "JetBrains Mono", monospace; font-weight: 700; color: var(--down); }
.lp-tag.mastered { background: var(--up-bg); color: var(--up); } .lp-tag.learning { background: #fef3c7; color: #92400e; } .lp-tag.new { background: var(--raised); color: var(--ink-2); }
.lp-next { margin-top: 10px; }
/* link from the 8 checks page to the BMC tab */
.bmc-link { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border-inline-start: 4px solid #7c3aed; }
.bmc-link:hover { background: var(--raised); } .bmc-link b { font-size: 18px; }
.ck-badge b:only-child { font-size: 30px; }
/* accounts and watchlist (account.js, watchlist.js, common.js star) */
.star-btn { cursor: pointer; font: inherit; gap: 4px; margin-inline-start: 6px; }
.star-btn svg { color: var(--ink-2); } .star-btn.on svg { color: #f59e0b; } .star-btn.on { border-color: #f59e0b; }
.acct-box { max-width: 460px; display: grid; gap: 12px; }
.acct-form { display: grid; gap: 10px; }
.acct-form label { display: grid; gap: 4px; font-size: 14px; font-weight: 600; }
.acct-form input { min-height: 40px; padding: 8px 12px; border: 1px solid var(--rule); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); font: inherit; font-weight: 400; }
.acct-or { display: flex; align-items: center; gap: 8px; color: var(--ink-2); font-size: 13px; margin: 10px 0 0; }
.acct-or::before, .acct-or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.acct-del summary { cursor: pointer; color: var(--down); }
.pill.danger { border-color: var(--down); color: var(--down); }
.wl-open .pill { text-decoration: none; }
/* We Pick: 8 checks and BMC beside each pick */
.pk-go { white-space: nowrap; } .pk-go .pill { text-decoration: none; min-height: 28px; padding: 3px 10px; font-size: 13px; margin-inline-end: 4px; }
.pk-go .src { display: inline-block; margin-top: 2px; }
@media (max-width: 899px) { .pk-go { white-space: normal; } }
/* the menu grew (8 checks, BMC, Log in): keep each item on one line and tighten before it wraps */
.top nav a { white-space: nowrap; }
@media (min-width: 768px) and (max-width: 1199px) { .top nav { gap: 0; margin-inline-start: 4px; } .top nav a { padding: 7px 6px; font-size: 13px; } .acct-link { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }
.tv-script { font-weight: 600; } .tv-script-p { margin: 6px 0 0; }
/* We Pick: one live TradingView chart for the chosen pick (picks.html) */
.pk-chart { display: grid; gap: 8px; padding: 12px; }
.pk-chart-head { display: flex; align-items: center; gap: 8px; } .pk-chart-head .small { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pk-chart-x { cursor: pointer; font: inherit; min-height: 28px; padding: 2px 10px; }
.pk-tv { height: 430px; min-height: 0; }
.pk-chart-btn { cursor: pointer; font: inherit; }
#ptbl tbody tr.on { background: var(--raised); }
.pk-chart-row td { padding: 8px 0 !important; }
@media (min-width: 1280px) { .page:has(#pk-chart) { grid-template-columns: minmax(0, 1fr) 440px; } }
.pk-go { white-space: normal; } .pk-go .pill { margin: 2px 4px 2px 0; }
@media (min-width: 1080px) { .pk-go { min-width: 150px; } }
/* GEO: the dated summary on company pages (rust/bullnbull_seo geo.rs) */
.geo-sum { border-inline-start: 4px solid var(--up); } .geo-sum h2 { margin: 0 0 4px; font-size: 18px; } .geo-sum p { margin: 4px 0; }
/* We Pick: our own chart of each pick with its setup (picks.html setupSvg) */
.pk-tabs .pill { cursor: pointer; font: inherit; }
.pk-setup { width: 100%; height: auto; display: block; background: var(--cloud); border-radius: var(--radius-sm); }
.pk-setup text { font-size: 9px; font-family: "JetBrains Mono", monospace; fill: var(--ink-2); }
.pk-setup .up line, .pk-setup .up rect { stroke: var(--up); fill: var(--up); }
.pk-setup .dn line, .pk-setup .dn rect { stroke: var(--down); fill: var(--down); }
.pk-setup .vol { opacity: .4; stroke: none !important; }
.pk-setup line.fib { stroke: var(--ink-2); stroke-width: .5; stroke-dasharray: 2 2; } .pk-setup text.fib { fill: var(--ink-2); }
.pk-setup line.target { stroke: #047857; stroke-width: 1.2; } .pk-setup text.target { fill: #047857; font-weight: 700; }
.pk-setup line.trigger { stroke: #2563eb; stroke-width: 1; stroke-dasharray: 4 2; } .pk-setup text.trigger { fill: #2563eb; font-weight: 700; }
.pk-setup line.stop { stroke: #dc2626; stroke-width: 1.2; } .pk-setup text.stop { fill: #dc2626; font-weight: 700; }
.pk-setup line.zero { stroke: var(--ink-2); stroke-width: .4; }
.pk-setup .jumpband { fill: #f59e0b; opacity: .25; }
.pk-setup .m-jump line { stroke: #f59e0b; stroke-width: 1; } .pk-setup .m-jump text { fill: #b45309; font-weight: 700; }
.pk-setup .m-filed line { stroke: var(--ink-2); stroke-dasharray: 3 3; } .pk-setup .m-filed text { fill: var(--ink-2); }
.pk-setup .m-entry line { stroke: #047857; stroke-dasharray: 3 2; } .pk-setup .m-entry text { fill: #047857; font-weight: 700; }
.pk-setup .m-exit line { stroke: #7c3aed; stroke-dasharray: 3 2; } .pk-setup .m-exit text { fill: #7c3aed; font-weight: 700; }
table.stack tbody tr.pk-chart-row { grid-column: 1 / -1; }
.pk-chart-row td::before { display: none !important; }
/* phone menu: More button and its panel (common.js) */
.tabbar .tab-more { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 60px; border: 0; background: none;
  color: var(--slate); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; padding: 0 2px; }
.tabbar .tab-more[aria-current="page"], .tabbar .tab-more[aria-expanded="true"] { color: var(--ink); }
.more-sheet { position: fixed; inset-inline: 8px; bottom: calc(68px + env(safe-area-inset-bottom, 0px)); z-index: 41; display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 8px; background: var(--bg); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: 0 8px 30px rgba(0, 0, 0, .18); }
.more-sheet[hidden] { display: none; }
.more-sheet a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-sm);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; }
.more-sheet a:hover, .more-sheet a[aria-current="page"] { background: var(--raised); }
.more-sheet svg { width: 22px; height: 22px; color: var(--slate); flex: none; }
@media (min-width: 768px) { .more-sheet { display: none !important; } }
@media (max-width: 767px) and (orientation: landscape) { .tabbar .tab-more { height: 46px; flex-direction: row; gap: 6px; font-size: 12px; } }
/* We Pick: our setup on TradingView's Lightweight Charts, and the TV button */
.pk-lwc { height: 380px; min-height: 0; position: relative; }
.pk-tabs .pill { font: inherit; } .pk-tv-btn { text-decoration: none; font-weight: 700; }
/* TV page (tv.html + tv.js) */
.tv-chart { height: 480px; min-height: 0; position: relative; } .tv-chart.empty { height: auto; }
.tv-live { height: 480px; }
.tv2-live { height: 640px; margin: 8px 0 0; } .tv2-note { margin: 40px 0 18px; }
/* PBD test page: the three time-frame buttons wrap instead of scrolling; the 72-row table sits in its own fold */
.pbd #tiers { flex-wrap: wrap; overflow-x: visible; }
.pbd-all { border-top: 1px solid var(--rule); padding-top: 12px; min-width: 0; } .pbd-all summary { cursor: pointer; font-weight: 650; }
.pbd .tag { margin-inline-start: 6px; }
@media (max-width: 767px) { .tv2-live { height: 480px; } }
.tvp .ck-now .pill { text-decoration: none; } .tv-open { font-weight: 700; }
#tv-picks .pill { cursor: pointer; font: inherit; }
@media (max-width: 767px) { .tv-chart, .tv-live { height: 380px; } }
/* ICT & Wyckoff page */
.iw-stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line, #e2e8f0); margin: 14px 0 4px; }
.iw-stats > div { padding: 10px 12px; border-right: 1px solid var(--line, #e2e8f0); min-width: 0; }
.iw-stats > div:last-child { border-right: 0; }
.iw-stats .caps { display: block; font-size: 10px; color: var(--muted, #64748b); }
.iw-stats b { display: block; font-size: 16px; margin-top: 2px; overflow-wrap: anywhere; }
.iw-chips { margin: 4px 0 10px; }
.iw-chip.on { background: var(--down); border-color: var(--down); color: #fff; }
.iw-main { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 16px; border-top: 2px solid var(--ink); padding-top: 14px; margin-top: 8px; }
.iw-chart { position: relative; }
.iw-overlay { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 3; }
.iw-insp { padding: 14px 16px; align-self: start; }
.iw-insp h2 { margin: 2px 0 8px; font-size: 22px; }
.iw-tag { color: var(--down); font-size: 10px; margin: 0; }
.iw-here { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 8px 0; margin: 8px 0; }
.iw-here .caps, .iw-blk .caps { display: block; font-size: 10px; color: var(--muted, #64748b); }
.iw-blk p { margin: 2px 0 10px; font-size: 14px; line-height: 1.45; }
.iw-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.iw-card { text-align: left; background: var(--raised, #fff); border: 1px solid var(--ink); border-radius: var(--radius-sm, 6px); padding: 8px 10px; cursor: pointer; color: inherit; font: inherit; }
.iw-card:hover { background: var(--cloud); }
.iw-card.on { background: var(--down); border-color: var(--down); color: #fff; }
.iw-card .caps { display: block; font-size: 10px; opacity: .8; }
.iw-card b { display: block; font-size: 16px; margin: 2px 0; }
@media (max-width: 1100px) { .iw-main { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 767px) { .iw-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .iw-stats > div { border-bottom: 1px solid var(--line, #e2e8f0); } }
