/* Convicta */
:root {
  --bg: #0a0a0a; --bg2: #111111; --card: #141414; --card2: #1c1c1c; --line: #262626; --line2: #363636;
  --ink: #f5f5f5; --ink2: #c4c4c4; --mute: #8a8a8a; --faint: #5e5e5e;
  --acc: #ffffff; --acc2: #dedede; --acc-ink: #0a0a0a; --acc-bg: rgba(255,255,255,.08); --acc-soft: #3a3a3a; --lime: #9a9a9a;
  --up: #ffffff; --dn: #ff5468; --warn: #e2a64a; --up-bg: rgba(255,255,255,.08); --dn-bg: rgba(255,84,104,.12);
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --r: 16px; --r2: 10px;
  --sans: 'Inter Tight', system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 var(--sans); -webkit-font-smoothing: antialiased; }
body.noscroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
.mute { color: var(--mute); }
.small { font-size: 13px; }
.up { color: var(--up); } .dn { color: var(--dn); } .warn { color: var(--warn); }
.ic { width: 18px; height: 18px; flex: none; }
.pad { padding: 16px; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px minmax(0, 660px) 340px; gap: 28px; max-width: 1320px; margin: 0 auto; padding: 0 20px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; padding: 22px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 22px; letter-spacing: -.03em; padding: 0 8px; }
.logo { width: 32px; height: 32px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--ink2); font-weight: 500; font-size: 16px; }
.nav a:hover { background: var(--card2); color: var(--ink); }
.nav a.on { color: var(--acc); background: var(--acc-bg); font-weight: 700; }
.nav a.on .ic { color: var(--acc); }
.nav .ic { width: 21px; height: 21px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-row { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.me-row:hover { background: var(--card2); }
.me-row span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.me-row small { color: var(--mute); font-size: 12px; }
.wchip { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 12px; border: 1px solid var(--line2); border-radius: 12px; font-size: 14px; font-weight: 600; color: var(--ink2); }
.wchip:hover { border-color: var(--acc); color: var(--ink); }
.wchip.on { font-family: var(--mono); font-size: 13px; }
.wchip .ok { width: 7px; height: 7px; border-radius: 50%; background: var(--up); margin-left: auto; box-shadow: 0 0 0 3px var(--up-bg); }

main#view { padding: 22px 0 120px; min-width: 0; outline: none; display: flex; flex-direction: column; gap: 14px; }
.rail { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 22px 0; display: flex; flex-direction: column; gap: 14px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }

/* ---------- atoms ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.card > header { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; margin-bottom: 12px; }
.av { width: var(--s); height: var(--s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .42); color: #fff;
  background: radial-gradient(120% 120% at 25% 20%, hsl(0 0% calc(30% + var(--h) / 360 * 22%)), hsl(0 0% 12%)); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.28); }
img.av { object-fit: cover; background: var(--card2); }
.ci { width: var(--s); height: var(--s); flex: none; border-radius: 50%; object-fit: cover; background: var(--card2); box-shadow: 0 0 0 1px var(--line); }
.ci-l { display: inline-grid; place-items: center; font-weight: 800; font-size: calc(var(--s) * .45); color: #fff; background: #333; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: 14px;
  background: var(--card2); border: 1px solid var(--line2); color: var(--ink); white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { border-color: var(--faint); }
.btn:active { transform: scale(.98); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { background: var(--acc2); border-color: var(--acc2); }
.btn.ghost { background: transparent; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }
.btn.icon { width: 40px; padding: 0; }
.btn.wide { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn .ic { width: 16px; height: 16px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; color: var(--ink2); background: var(--card2); border: 1px solid var(--line); }
.tag .ic { width: 13px; height: 13px; }
.tag.bot { color: var(--acc); background: var(--acc-bg); border-color: transparent; }
.tag.live { color: var(--up); background: var(--up-bg); border-color: transparent; }
.tag.risk-steady { color: #8fb8e8; } .tag.risk-degen { color: #f0a36b; }
.chain { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 6px; font-size: 12px; font-weight: 600; background: var(--card2); border: 1px solid var(--line); }
.chain::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.pct { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.handle { color: var(--mute); }
.handle:hover { color: var(--ink2); }
.themes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.seg { display: inline-flex; padding: 3px; background: var(--bg2); border: 1px solid var(--line); border-radius: 999px; }
.seg button { height: 30px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--mute); }
.seg button.on { background: var(--card); color: var(--acc); box-shadow: 0 1px 2px rgba(0,0,0,0.28), inset 0 0 0 1px var(--line2); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 36px 18px; text-align: center; color: var(--mute); }
.empty .ic { width: 28px; height: 28px; color: var(--faint); }
.back { color: var(--mute); font-size: 14px; font-weight: 600; width: fit-content; }
.back:hover { color: var(--ink); }
.page-h { padding: 4px 2px 2px; }
.page-h h1 { font-size: 28px; font-weight: 800; }
.page-h p { margin-top: 4px; }
.sub-h { font-size: 18px; margin: 10px 2px 0; }
.sec-h { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.sec-h h2 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.sec-h > :last-child:not(:first-child) { margin-left: auto; }
.spark { display: block; overflow: visible; }

/* ---------- compose ---------- */
.compose { display: flex; flex-direction: column; gap: 12px; }
.compose-top { display: flex; gap: 12px; align-items: flex-start; }
.compose textarea { flex: 1; min-height: 48px; resize: none; border: 0; background: transparent; outline: none; font-size: 20px; line-height: 1.35; padding: 8px 0; font-weight: 500; letter-spacing: -.01em; }
.compose.big textarea { font-size: 22px; min-height: 84px; }
.compose textarea::placeholder { color: var(--faint); }
.compose textarea.shake { animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.ideas { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px; }
.ideas::-webkit-scrollbar { display: none; }
.idea { flex: none; height: 32px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 999px; font-size: 13px; color: var(--ink2); }
.idea:hover { border-color: var(--acc); color: var(--ink); }
.compose-bar { display: flex; align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.compose-bar .btn.primary { margin-left: auto; }
.compose-bar .mute { display: flex; align-items: center; gap: 6px; }
.compose-bar .mute .ic { width: 15px; height: 15px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-top: 4px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 14px; font-weight: 600; color: var(--mute); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--ink); border-color: var(--acc); }
.tabs a:hover { color: var(--ink); }
.feed { display: flex; flex-direction: column; gap: 12px; }

/* ---------- take card ---------- */
.take { cursor: pointer; transition: border-color .15s, background .15s; }
.take:hover { border-color: var(--line2); box-shadow: var(--shadow); }
.take-h { display: flex; align-items: flex-start; gap: 12px; }
.who { flex: 1; min-width: 0; line-height: 1.3; }
.who .themes { margin-top: 5px; }
.ret { text-align: right; line-height: 1.1; }
.ret-v { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.ret small { display: block; color: var(--mute); font-size: 11px; margin-top: 3px; }
.thesis { font-size: 17px; line-height: 1.4; margin: 12px 0 14px; font-weight: 500; letter-spacing: -.01em; text-wrap: pretty; }
.take-body { display: flex; gap: 16px; align-items: flex-end; }
.holds { flex: 1; min-width: 0; }
.take-spark { flex: none; }
.wbar { display: flex; gap: 2px; height: 6px; border-radius: 3px; overflow: hidden; margin-bottom: 10px; }
.wbar i { background: hsl(0 0% var(--l)); }
.hchips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.hchips li { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 9px 0 5px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); font-size: 13px; }
.hchips li span { color: var(--mute); font-family: var(--mono); font-size: 11.5px; }
.hchips .watchchip { padding: 0 9px; color: var(--mute); border-style: dashed; font-size: 12px; }
.hchips .watchchip .ic { width: 14px; height: 14px; }
.take-f { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--mute); font-size: 13px; }
.take-f > span { display: inline-flex; align-items: center; gap: 6px; }
.take-f .ic { width: 15px; height: 15px; }
.take-f b { color: var(--ink2); font-weight: 600; }
.take-f .fomo { color: #f0a36b; font-weight: 600; }
.take-f .btn { margin-left: auto; }

/* ---------- rail ---------- */
.rail-search { position: relative; display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); color: var(--mute); }
.rail-search:focus-within { border-color: var(--acc); }
.rail-search input { flex: 1; border: 0; background: none; outline: none; min-width: 0; }
.qres { position: absolute; top: 50px; left: 0; right: 0; z-index: 30; background: var(--card2); border: 1px solid var(--line2); border-radius: 14px; padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,0.49); }
.qres a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--ink); font-size: 14px; }
.qres a:hover { background: var(--card); }
.qres .mute a { display: inline; padding: 0; color: var(--acc); }
.live-card { padding: 16px 0 6px; overflow: hidden; }
.live-card header { padding: 0 16px; font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 0 var(--up); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 8px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }
.live { list-style: none; margin: 0; padding: 0; max-height: 440px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 80%, transparent); mask-image: linear-gradient(#000 80%, transparent); }
.ev { display: flex; gap: 10px; padding: 9px 16px; font-size: 13px; line-height: 1.4; color: var(--ink2); transition: background 1.2s, transform .35s, opacity .35s; }
.ev.new { background: var(--acc-bg); transform: translateY(-6px); opacity: 0; }
.ev b { color: var(--ink); font-weight: 600; }
.ev a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line2); text-underline-offset: 2px; }
.ev a:hover { text-decoration-color: var(--acc); }
.ev time { display: block; color: var(--faint); font-size: 11px; margin-top: 1px; }
.movers { list-style: none; margin: 0 -8px; padding: 0; }
.movers a { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 10px; }
.movers a:hover { background: var(--card2); }
.movers .mv-t { display: flex; flex-direction: column; line-height: 1.2; flex: 1; min-width: 0; }
.movers small { color: var(--mute); font-size: 11.5px; }
.movers .r { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 12.5px; line-height: 1.3; min-width: 78px; }

/* ---------- take page ---------- */
.take-hero .take-h { align-items: center; }
.hero-act { display: flex; gap: 8px; }
.thesis-big { font-size: 28px; line-height: 1.2; font-weight: 700; margin: 16px 0 8px; letter-spacing: -.025em; text-wrap: balance; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.stats > div { background: var(--card); padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.stats small { color: var(--mute); font-size: 12px; }
.stats b { font-family: var(--mono); font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.cta-row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.posbox { display: flex; flex-direction: column; line-height: 1.2; padding-right: 12px; margin-right: auto; }
.posbox small { color: var(--mute); font-size: 12px; }
.posbox b { font-family: var(--mono); font-size: 20px; }
.chart-h { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 10px; }
.ret-big { font-family: var(--mono); font-size: 30px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--mute); }
.legend span::before { content: ''; display: inline-block; width: 14px; height: 2px; margin-right: 6px; vertical-align: middle; background: var(--up); }
.legend .lg-b::before { background: repeating-linear-gradient(90deg, var(--mute) 0 3px, transparent 3px 6px); }
.bigchart { width: 100%; height: 220px; display: block; }
.bigchart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.bigchart .gl { fill: var(--faint); font: 10px var(--mono); text-anchor: end; }
.chart-empty { height: 220px; display: grid; place-items: center; color: var(--mute); }
.two { display: grid; grid-template-columns: 1fr; gap: 14px; }
.htable { display: flex; flex-direction: column; }
.hrow { display: grid; grid-template-columns: minmax(120px, 1.3fr) 64px 96px 108px 72px; align-items: center; gap: 12px; padding: 10px 8px; margin: 0 -8px; border-radius: 10px; }
a.hrow:hover { background: var(--card2); }
.hrow + .hrow { border-top: 1px solid var(--line); }
.hcoin { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hcoin > span { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.hcoin small { color: var(--mute); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hw { display: flex; flex-direction: column; font-family: var(--mono); line-height: 1.2; }
.hw small { font-size: 11px; }
.hnum { display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 13px; line-height: 1.3; }
.flowcell { display: flex; flex-direction: column; gap: 4px; }
.flowcell small { color: var(--mute); font-size: 11px; }
.flow { display: block; height: 5px; border-radius: 3px; background: var(--dn); overflow: hidden; opacity: .9; }
.flow i { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--card); }
.htable.edit .hrow { grid-template-columns: minmax(0, 1fr) 92px 100px 132px; row-gap: 4px; }
.htable.edit .why { grid-column: 1 / -1; grid-row: 2; padding-left: 40px; }
.why { font-size: 13px; color: var(--ink2); line-height: 1.35; }
.why .tag { height: 19px; font-size: 11px; margin-right: 4px; }
.stepper { display: flex; align-items: center; gap: 4px; justify-content: flex-end; }
.stepper button { width: 28px; height: 28px; border-radius: 8px; background: var(--card2); border: 1px solid var(--line2); font-weight: 700; }
.stepper button:hover { border-color: var(--acc); }
.stepper b { font-family: var(--mono); min-width: 38px; text-align: center; font-size: 14px; }
.stepper .rm { background: none; border-color: transparent; color: var(--mute); display: grid; place-items: center; }
.stepper .rm .ic { width: 14px; height: 14px; }
.addrow { display: flex; gap: 10px; margin-top: 12px; }
.addrow select { flex: 1; height: 36px; padding: 0 12px; border-radius: 10px; background: var(--bg2); border: 1px solid var(--line2); }
.watching { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line2); font-size: 13px; color: var(--mute); }
.card > .watching:first-child { margin: 0; padding: 0; border: 0; }
.watching > .ic { width: 16px; height: 16px; }
.wchip2 { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 5px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--ink); font-weight: 600; }
.wchip2 small { color: var(--mute); font-size: 10.5px; font-weight: 600; }
.wchip2:hover { border-color: var(--line2); }

.agent .sec-h h2 .ic { color: var(--acc); }
.agent-sub { margin: -6px 0 12px; }
.recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rec { display: flex; gap: 12px; padding: 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line); }
.rec > i { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: var(--acc-bg); color: var(--acc); }
.rec > i .ic { width: 16px; height: 16px; }
.rec.k-cut > i { background: var(--dn-bg); color: var(--dn); }
.rec.k-profit > i, .rec.k-add > i, .rec.k-dip > i, .rec.calm > i { background: var(--up-bg); color: var(--up); }
.rec.k-risk > i, .rec.k-watch > i { background: rgba(168,106,18,.1); color: var(--warn); }
.rec.calm > .ic { width: 30px; height: 30px; padding: 7px; border-radius: 9px; background: var(--up-bg); color: var(--up); }
.rec p { color: var(--ink2); font-size: 14px; margin-top: 2px; }
.rec .data { display: block; margin-top: 6px; font-family: var(--mono); font-size: 11.5px; color: var(--mute); }
.rec .data a { color: var(--ink2); text-decoration: underline; text-underline-offset: 2px; }
.rec-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; align-items: center; }
.rec-act .ic { width: 13px; height: 13px; }
.log-h { font-size: 13px; color: var(--mute); font-weight: 600; margin: 18px 0 6px; letter-spacing: 0; }
.log { list-style: none; margin: 0; padding: 0; }
.log li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 13.5px; color: var(--ink2); }
.log li + li { border-top: 1px solid var(--line); }
.log li i { width: 7px; height: 7px; flex: none; border-radius: 50%; background: var(--acc); transform: translateY(-1px); }
.log li i.k-signal, .log li i.k-watch { background: var(--warn); }
.log li i.k-open, .log li i.k-build { background: var(--up); }
.log li p { flex: 1; }
.log time { color: var(--faint); font-size: 12px; font-family: var(--mono); }

/* ---------- comments ---------- */
.senti { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.sbar { width: 90px; height: 5px; border-radius: 3px; background: var(--dn); overflow: hidden; display: inline-block; }
.sbar i { display: block; height: 100%; background: var(--up); }
.sbar.sm { width: 56px; }
.cbox { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cin { flex: 1; min-width: 0; }
.cin textarea { width: 100%; resize: vertical; min-height: 56px; padding: 10px 12px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); outline: none; }
.cin textarea:focus { border-color: var(--acc); }
.cbar { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.stance button.bull.on { background: var(--up-bg); color: var(--up); box-shadow: none; }
.stance button.bear.on { background: var(--dn-bg); color: var(--dn); box-shadow: none; }
.clist { list-style: none; margin: 0; padding: 0; }
.cm { display: flex; gap: 12px; padding: 14px 0; }
.cm + .cm { border-top: 1px solid var(--line); }
.cm > div { flex: 1; min-width: 0; }
.cm-h { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 6px; font-size: 14px; }
.cm p { margin-top: 3px; color: var(--ink2); overflow-wrap: anywhere; }
.cm p a { color: var(--acc); }
.st { height: 20px; padding: 0 7px; border-radius: 5px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; margin-left: 2px; }
.st.bull { background: var(--up-bg); color: var(--up); } .st.bear { background: var(--dn-bg); color: var(--dn); }
.like { display: inline-flex; align-items: center; gap: 5px; margin-top: 8px; font-size: 12.5px; color: var(--mute); font-family: var(--mono); }
.like .ic { width: 15px; height: 15px; }
.like:hover, .like.on { color: var(--dn); }
.like.on .ic { fill: var(--dn); }

/* ---------- new take ---------- */
.quote { margin: 0; font-size: 21px; line-height: 1.35; font-weight: 600; letter-spacing: -.015em; border-left: 3px solid var(--acc); }
.quote .themes { margin-top: 12px; }
.steps { display: flex; flex-direction: column; gap: 4px; }
.step { display: flex; gap: 14px; padding: 10px 4px; opacity: .4; transition: opacity .3s; }
.step.done, .step.run { opacity: 1; }
.step > i { width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1.5px solid var(--line2); display: grid; place-items: center; }
.step.done > i { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.step.done > i .ic { width: 14px; height: 14px; stroke-width: 3; }
.step.run > i { border-color: var(--acc); border-top-color: transparent; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.step p { color: var(--mute); font-size: 14px; margin-top: 2px; font-family: var(--mono); font-size: 12.5px; animation: fadein .3s; }
@keyframes fadein { from { opacity: 0; transform: translateY(3px); } }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how .n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--acc-bg); color: var(--acc); font-weight: 800; font-size: 13px; margin-bottom: 8px; }
.how b { display: block; }
.how p { color: var(--mute); font-size: 13px; margin-top: 3px; }
.publish { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.pub-actions { display: flex; gap: 10px; margin-left: auto; flex-wrap: wrap; }
.toggle { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle > span { width: 40px; height: 24px; flex: none; border-radius: 999px; background: var(--line2); position: relative; transition: background .2s; }
.toggle > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--acc); }
.toggle input:checked + span::after { transform: translateX(16px); }
.toggle input:focus-visible + span { outline: 2px solid var(--acc); outline-offset: 2px; }
.toggle input:disabled + span { opacity: .6; }
.toggle div { display: flex; flex-direction: column; line-height: 1.3; }
.toggle small { color: var(--mute); font-size: 12.5px; }
.toggle.sm { gap: 8px; }
.toggle.sm > span { width: 34px; height: 20px; }
.toggle.sm > span::after { width: 14px; height: 14px; }
.toggle.sm input:checked + span::after { transform: translateX(14px); }

/* ---------- coin ---------- */
.coin-hero header { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.coin-hero header > div:not(.hero-act) { flex: 1; min-width: 0; }
.coin-hero h1 { font-size: 24px; font-weight: 800; }
.coin-hero h1 .mute { font-weight: 600; font-size: 18px; }
.price-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.price { font-family: var(--mono); font-size: 34px; font-weight: 600; letter-spacing: -.03em; }
.price-row .pct { font-size: 15px; }
.pressure { display: flex; align-items: center; gap: 14px; margin-top: 14px; font-size: 13px; color: var(--mute); }
.pressure .flowcell, .pressure > .flow { flex: 1; }
.pressure .flow { height: 8px; border-radius: 4px; flex: 1; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chipf { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; color: var(--ink2); }
.chipf i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chipf.on { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.ctable { padding: 6px 10px; }
.crow { display: grid; grid-template-columns: minmax(0, 1.6fr) 100px 70px 100px 96px; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; }
.crow + .crow { border-top: 1px solid var(--line); }
a.crow:hover { background: var(--card2); }
.crow.head { font-size: 12px; color: var(--mute); font-weight: 600; padding-top: 12px; }
.crow.head a:hover, .crow.head a.on { color: var(--ink); }
.crow .num { font-family: var(--mono); font-size: 13.5px; }
.sent { display: flex; align-items: center; gap: 8px; }
.sent small { display: inline-flex; align-items: center; gap: 3px; color: var(--mute); font-size: 11.5px; }
.sent .ic { width: 12px; height: 12px; }

/* ---------- leaderboard ---------- */
.board { padding: 6px 10px; }
.brow { display: flex; align-items: center; gap: 14px; padding: 12px 8px; border-radius: 10px; }
.brow + .brow { border-top: 1px solid var(--line); }
.brow:hover { background: var(--card2); }
.brow.mine { background: var(--acc-bg); }
.rank { width: 26px; text-align: center; font-family: var(--mono); font-weight: 600; color: var(--mute); }
.rank.top { color: var(--acc); }
.bt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.bt b { font-weight: 600; font-size: 14.5px; }
.bt small { color: var(--mute); font-size: 12px; margin-top: 2px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.bstat { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; min-width: 56px; }
.bstat small { color: var(--mute); font-size: 11px; }
.bstat b { font-family: var(--mono); font-size: 13px; }
.bret { font-family: var(--mono); font-weight: 600; font-size: 17px; min-width: 76px; text-align: right; }

/* ---------- me ---------- */
.me-hero { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; }
.me-hero .stats { grid-column: 1 / -1; margin-top: 2px; }
.me-id { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me-id h1 { font-size: 24px; }
.handle-edit { display: flex; align-items: center; font-size: 24px; font-weight: 800; color: var(--mute); }
.handle-edit input { flex: 1; min-width: 0; border: 0; background: none; outline: none; color: var(--ink); font-weight: 800; letter-spacing: -.02em; padding: 2px 4px; border-radius: 8px; }
.handle-edit input:focus { background: var(--bg2); }
.hrow.pos { grid-template-columns: 1fr auto; }

/* ---------- modal & toasts ---------- */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal[hidden] { display: none; }
.mback { position: absolute; inset: 0; background: rgba(0,0,0,0.60); backdrop-filter: blur(4px); animation: fadein .2s; }
.mcard { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 14px; animation: pop .22s cubic-bezier(.2,.9,.3,1.2); box-shadow: 0 30px 80px rgba(0,0,0,0.60); }
@keyframes pop { from { transform: scale(.96) translateY(8px); opacity: 0; } }
.mcard h2 { font-size: 21px; font-weight: 800; padding-right: 30px; }
.mx { position: absolute; top: 16px; right: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; color: var(--mute); }
.mx:hover { background: var(--card2); color: var(--ink); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.amt { height: 42px; border-radius: 12px; border: 1px solid var(--line2); font-family: var(--mono); font-weight: 600; font-size: 14px; }
.amt.on { border-color: var(--acc); background: var(--acc-bg); color: var(--acc); }
.legs { list-style: none; margin: 0; padding: 4px 12px; background: var(--bg2); border: 1px solid var(--line); border-radius: 12px; }
.legs li { display: flex; align-items: center; gap: 10px; padding: 9px 0; font-size: 14px; }
.legs li + li { border-top: 1px solid var(--line); }
.legs li > span:nth-of-type(1) { color: var(--mute); font-family: var(--mono); font-size: 12.5px; }
.legs li > span:last-child { margin-left: auto; text-align: right; font-family: var(--mono); font-size: 12px; }
.legs small { display: block; font-size: 11px; }
.legs a { display: inline-flex; align-items: center; gap: 4px; }
.legs .ic { width: 12px; height: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--mute); font-weight: 600; }
.field input { height: 48px; padding: 0 14px; border-radius: 12px; background: var(--bg2); border: 1px solid var(--line2); color: var(--ink); font-family: var(--mono); font-size: 18px; outline: none; }
.field input:focus { border-color: var(--acc); }
.wallet-line { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--up); font-family: var(--mono); }
.share-prev { font-size: 15px; background: var(--bg2); }
.share-prev small { display: block; color: var(--mute); margin-top: 8px; font-family: var(--mono); font-size: 11.5px; word-break: break-all; }
.toasts { position: fixed; left: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column-reverse; gap: 8px; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); box-shadow: 0 16px 40px rgba(0,0,0,0.49); font-size: 14px; color: var(--ink2);
  transform: translateY(12px); opacity: 0; transition: transform .25s, opacity .25s; pointer-events: auto; }
.toast.in { transform: none; opacity: 1; }
.toast b { color: var(--ink); }
.toast .ic { color: var(--acc); }
.toast.err { border-color: rgba(217,54,74,.4); }
.toast.fomo { border-color: rgba(240,163,107,.3); }
.toast a { text-decoration: underline; text-underline-offset: 2px; }

.live-strip { display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.live-strip #liveStrip { flex: 1; min-width: 0; }
.live-strip .ev { padding: 0; align-items: center; }
.live-strip .ev > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.live-strip time { display: none !important; }
.live-strip #liveStrip.tick { animation: fadein .35s; }
@media (max-width: 960px) { .live-strip { display: flex; } }

/* ---------- mobile tab bar ---------- */
.tabbar { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr) 320px; gap: 22px; }
  .side .brand span, .nav span, .side .btn.primary, .me-row span, .wchip span { display: none; }
  .side .brand { justify-content: center; padding: 0; }
  .nav a { justify-content: center; }
  .wchip { justify-content: center; padding: 10px; }
  .wchip .ok { position: absolute; margin: -16px 0 0 18px; }
  .me-row { justify-content: center; }
  .card { min-width: 0; overflow-wrap: anywhere; }
  .hrow { grid-template-columns: minmax(0, 1.3fr) 58px 92px 96px; gap: 10px; }
  .hrow .hspark { display: none; }
  .htable.edit .hrow { grid-template-columns: minmax(0, 1fr) 88px 132px; }
  .htable.edit .flowcell { display: none; }
  .crow { grid-template-columns: minmax(0, 1.6fr) 92px 66px 96px; }
  .crow > :nth-child(4) { display: none; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 76px minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .shell { display: block; padding: 0 16px; }
  .side { display: none; }
  main#view { padding: 16px 0 100px; }
  .card { padding: 16px; border-radius: 14px; }
  .ideas { margin: 0 -16px; padding: 0 16px; }
  .tabbar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: rgba(10,10,10,.92); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; align-items: center; }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--mute); padding: 4px 10px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on .ic { color: var(--acc); }
  .tabbar .ic { width: 22px; height: 22px; }
  .tabbar .tb-new { width: 48px; height: 40px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); justify-content: center; padding: 0; }
  .toasts { left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom)); }
  .toast { max-width: none; }
  .hide-sm { display: none !important; }
  .compose textarea { font-size: 18px; }
  .compose-top > .av { display: none; }
  .compose-bar { flex-wrap: wrap; }
  .compose-bar .seg { flex: 1; }
  .compose-bar .seg button { flex: 1; }
  .compose-bar .btn.primary { width: 100%; margin-left: 0; }
  .thesis { font-size: 16px; }
  .take-body { flex-direction: column; align-items: stretch; }
  .take-spark svg { width: 100%; height: 44px; }
  .take-f .btn { margin-left: 0; }
  .ret-v { font-size: 19px; }
  .thesis-big { font-size: 22px; }
  .hero-act .btn:not(.icon) { padding: 0 12px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .cta-row .btn { flex: 1; }
  .posbox { flex-basis: 100%; }
  .bigchart, .chart-empty { height: 170px; }
  .hrow { grid-template-columns: minmax(0, 1fr) 56px 88px; }
  .hrow .flowcell, .hrow .hspark { display: none; }
  .htable.edit .hrow { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; }
  .htable.edit .why { padding-left: 0; }
  .htable.edit .hnum, .htable.edit .flowcell { display: none; }
  .how { grid-template-columns: 1fr 1fr; }
  .publish { flex-direction: column; align-items: stretch; }
  .pub-actions { margin: 0; }
  .pub-actions .btn { flex: 1; }
  .crow { grid-template-columns: minmax(0, 1fr) 84px 64px 64px; gap: 8px; }
  .crow .sent small { display: none; }
  .ctable, .board { padding: 4px 8px; }
  .brow { gap: 10px; }
  .brow .av { display: none; }
  .bret { font-size: 15px; min-width: 64px; }
  .amounts { grid-template-columns: repeat(2, 1fr); }
  .price { font-size: 28px; }
}

/* ---------- X identity, trending bits ---------- */
.xl { width: 16px; height: 16px; flex: none; }
.xl.mute { color: var(--faint); margin-left: auto; width: 14px; height: 14px; }
.btn.xbtn { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.xbtn:hover { background: var(--acc2); border-color: var(--acc2); }
.btn.xbtn.big { height: 54px; padding: 0 28px; font-size: 16px; gap: 10px; }
.btn.xbtn.big .xl { width: 18px; height: 18px; }
.btn.xbtn.light { background: #fff; border-color: #fff; color: #0a0a0a; }
.btn.xbtn.light:hover { background: var(--acc-bg); }
.xlink { display: inline-flex; align-items: center; gap: 5px; color: var(--ink2); }
.xlink .xl { width: 12px; height: 12px; }
.me-hero { grid-template-columns: auto 1fr auto; }
.signout { align-self: start; }
.tr-rank { width: 16px; text-align: center; font-family: var(--mono); font-size: 11.5px; color: var(--faint); }
.src { margin: 8px 0 0; font-size: 11px; color: var(--faint); }
.src-line { margin: -4px 2px 0; }
.chipf.hot { color: #f0a36b; border-color: rgba(240,163,107,.35); }
.chipf.hot .ic { width: 14px; height: 14px; }
.chipf.hot.on { background: #f0a36b; border-color: #f0a36b; color: #fff; }
#trendcard header .ic { color: #f0a36b; width: 16px; height: 16px; }
.side { border-right: 1px solid var(--line); padding-right: 18px; }

/* ---------- sign-in gate ---------- */
body.is-gate { background: #0a0a0a; }
.gate { position: relative; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 96px 16px; overflow: hidden; isolation: isolate; }
.gate::before { content: ""; position: absolute; inset: 0; z-index: -1; background:
  radial-gradient(900px 520px at 50% 50%, rgba(255,255,255,.05), transparent 70%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 44px 44px; }
.g-bg { position: absolute; inset: 0; pointer-events: none; }
.g-slot { position: absolute; animation: gfloat 9s ease-in-out infinite; }
.g-el { background: rgba(22,22,22,.94); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 1px 2px rgba(0,0,0,0.14), 0 14px 34px rgba(0,0,0,0.25); }
@keyframes gfloat { 50% { transform: translateY(-7px); } }
.s-a { left: 5%;  top: 9%;  animation-delay: -1s; }
.s-b { left: 24%; top: 5%;  animation-delay: -4s; }
.s-c { left: 58%; top: 8%;  animation-delay: -2s; }
.s-d { left: 78%; top: 6%;  animation-delay: -6s; }
.s-e { left: 3%;  top: 42%; animation-delay: -3s; }
.s-f { left: 80%; top: 44%; animation-delay: -5s; }
.s-g { left: 6%;  top: 72%; animation-delay: -7s; }
.s-h { left: 32%; top: 80%; animation-delay: -2.5s; }
.s-i { left: 78%; top: 76%; animation-delay: -4.5s; }
.g-el small { display: flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--mute); }
.g-el small .ic { width: 13px; height: 13px; }
.g-coin { width: 178px; }
.gc-h { display: flex; align-items: center; gap: 8px; }
.gc-h b { font-size: 14px; flex: 1; }
.gc-p { font-family: var(--mono); font-size: 17px; font-weight: 600; margin: 8px 0 4px; letter-spacing: -.02em; }
.g-coin .spark { width: 100%; height: 34px; }
.g-chart { width: 268px; }
.gx-r { font-family: var(--mono); font-size: 22px; font-weight: 600; letter-spacing: -.03em; margin: 4px 0 6px; }
.gx-r span { font-family: var(--sans); font-size: 11px; color: var(--mute); font-weight: 500; margin-left: 6px; letter-spacing: 0; }
.g-chart .spark { width: 100%; height: 70px; }
.gx-h { display: flex; align-items: center; gap: 4px; margin-top: 10px; }
.gx-h span { margin-left: auto; font-size: 11.5px; color: var(--mute); }
.g-trend { width: 212px; display: flex; flex-direction: column; gap: 8px; }
.g-trend small .ic { color: #f0a36b; }
.gt-r { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.gt-n { width: 12px; font-family: var(--mono); font-size: 11px; color: var(--faint); }
.gt-r b { flex: 1; font-size: 13px; }
.g-agent { width: 240px; display: flex; flex-direction: column; gap: 5px; border-color: var(--acc-soft); background: rgba(28,28,28,.96); }
.g-agent small { color: var(--acc); }
.g-agent b { font-size: 14px; line-height: 1.3; }
.g-agent span { font-family: var(--mono); font-size: 11px; color: var(--mute); }
.g-flow { width: 206px; }
.gf-bar { height: 8px; border-radius: 4px; background: var(--dn); overflow: hidden; margin: 10px 0 8px; }
.gf-bar i { display: block; height: 100%; background: var(--up); border-right: 2px solid var(--card); }
.gf-n { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11.5px; font-weight: 600; }
.g-take { width: 236px; }
.gk-h { display: flex; align-items: center; gap: 7px; font-size: 12px; color: var(--mute); }
.gk-h b { margin-left: auto; font-family: var(--mono); font-size: 13px; }
.g-take p { margin: 8px 0 10px; font-size: 13px; line-height: 1.4; color: var(--ink2); }
.g-take .wbar { margin: 0; }

.g-card { position: relative; z-index: 2; width: min(420px, 100%); padding: 34px 32px 26px; background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.18), 0 30px 80px rgba(0,0,0,0.46); }
.g-card::before { content: ""; position: absolute; left: 32px; right: 32px; top: -1px; height: 3px; border-radius: 0 0 3px 3px; background: var(--acc); }
.g-brand { display: flex; align-items: center; gap: 10px; }
.g-brand .logo { width: 30px; height: 30px; }
.g-brand span { font-weight: 800; font-size: 21px; letter-spacing: -.03em; }
.g-card h1 { font-size: 29px; line-height: 1.12; font-weight: 800; letter-spacing: -.035em; margin: 26px 0 10px; }
.g-tag { font-size: 15px; line-height: 1.5; color: var(--ink2); margin: 0 0 24px; }
.g-x { width: 100%; height: 50px; border-radius: 14px; background: var(--acc); color: var(--acc-ink); display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 15.5px; font-weight: 700; transition: background .15s, transform .1s; }
.g-x:hover { background: var(--acc2); }
.g-x:active { transform: scale(.985); }
.g-x .xl { width: 16px; height: 16px; }
.g-err { margin: 12px 0 0; font-size: 13px; color: var(--dn); }
.g-live { display: flex; align-items: center; gap: 8px; margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--card2); font-size: 12.5px; color: var(--ink2); font-weight: 500; }
.g-terms { margin: 14px 0 0; font-size: 11.5px; color: var(--mute); }
.g-terms a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: var(--line2); }

@media (max-width: 1180px) { .s-e, .s-f { display: none; } .s-b { left: 22%; } }
@media (max-width: 900px) { .s-b, .s-h { display: none; } .s-c { left: auto; right: 4%; } .s-d { display: none; } }
@media (max-width: 640px) {
  .gate { padding: 150px 16px 170px; }
  .g-slot { transform: scale(.82); }
  .s-a { left: -18px; top: 18px; } .s-c { right: -18px; top: 26px; }
  .s-g { left: -24px; top: auto; bottom: 22px; } .s-i { left: auto; right: -20px; top: auto; bottom: 30px; }
  .g-card { padding: 30px 22px 22px; }
  .g-card h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { .g-slot { animation: none; } }

/* ---------- AI agent surfaces ---------- */
.card.agent { border-color: var(--acc-soft); background: linear-gradient(180deg, #1b1b1b, var(--card) 160px); }
.agent .sec-h h2 .ic, .agent-note .sec-h h2 .ic { color: var(--acc); }
.tag.bot .ic, .tag .ic { width: 12px; height: 12px; }
.agent-loading { display: flex; align-items: center; gap: 12px; padding: 14px 4px; color: var(--ink2); font-size: 14px; }
.spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--acc-soft); border-top-color: var(--acc); animation: spin .8s linear infinite; }
.agent-head { padding: 14px 16px; border-radius: 12px; background: var(--acc-bg); margin-bottom: 12px; }
.agent-head.needs_update { background: rgba(226,166,74,.1); }
.ah-state { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--acc); }
.agent-head.needs_update .ah-state { color: #b45a0c; }
.ah-state .ic { width: 14px; height: 14px; }
.ah-line { font-size: 17px; font-weight: 700; letter-spacing: -.01em; margin-top: 6px; color: var(--ink); line-height: 1.35; }
.ah-check { margin-top: 6px; color: var(--ink2); font-size: 14px; }
.agent .agent-sub { margin: 12px 0 0; }
.linkbtn { color: var(--acc); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; font-size: inherit; }
.rec.k-trim > i, .rec.k-remove > i { background: var(--dn-bg); color: var(--dn); }
.rec.k-rotate > i { background: var(--acc-bg); color: var(--acc); }
.rec.k-hold > i { background: var(--up-bg); color: var(--up); }
.rec.k-watch > i { background: rgba(168,106,18,.1); color: var(--warn); }
.rec { background: var(--bg2); }
.watchfor { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.watchfor li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); }
.watchfor .ic { width: 15px; height: 15px; color: var(--acc2); margin-top: 2px; }
.agent-note { border-color: var(--acc-soft); background: linear-gradient(180deg, #1b1b1b, var(--card) 140px); }
.an-sum { font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; margin-top: 14px; }
.an-grid h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--mute); margin-bottom: 6px; }
.an-grid ul { margin: 0; padding-left: 18px; color: var(--ink2); font-size: 14px; display: flex; flex-direction: column; gap: 4px; }
.pub-note { display: flex; align-items: center; gap: 10px; color: var(--ink2); font-size: 14px; flex: 1; min-width: 240px; }
.pub-note .ic { color: var(--acc); }
.cr-top { display: flex; align-items: center; gap: 10px; }
.verdict { display: inline-flex; align-items: center; height: 26px; padding: 0 12px; border-radius: 999px; font-weight: 800; font-size: 13px; }
.verdict.v-bullish { background: var(--up-bg); color: var(--up); }
.verdict.v-bearish { background: var(--dn-bg); color: var(--dn); }
.verdict.v-neutral { background: var(--card2); color: var(--ink2); }
.coin-read .ah-line { margin: 10px 0 6px; }
.signals { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; }
.signals li { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg2); border-left-width: 3px; }
.signals li span { font-size: 12px; color: var(--mute); }
.signals li b { font-family: var(--mono); font-size: 13.5px; font-weight: 600; }
.signals .s-positive { border-left-color: var(--up); }
.signals .s-negative { border-left-color: var(--dn); }
.signals .s-neutral { border-left-color: var(--line2); }
.tag.hot-tag { color: #f0a36b; }

.seg button { white-space: nowrap; }
@media (max-width: 1180px) { .compose-bar > .mute { display: none; } }

.logo { overflow: visible; }

.rail > * { flex: none; }
