:root {
  --blue: #0a7cff;
  --blue-2: #0a60f0;
  --gray: #e9e9eb;
  --gray-2: #d8d8dc;
  --ink: #1c1c1e;
  --ink-dim: #6b6b70;
  --ink-faint: #9a9aa0;
  --bg: #f5f6f8;
  --card: #ffffff;
  --line: #e6e7ea;
  --green: #19b65a;
  --green-deep: #0f9647;
  --gold: #e0a82e;
  --red: #ff3b30;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background:
    radial-gradient(900px 500px at 80% -10%, #e8f1ff 0%, transparent 60%),
    radial-gradient(700px 500px at 0% 0%, #eafff2 0%, transparent 55%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.wrap { max-width: 680px; margin: 0 auto; padding: 0 16px; }

/* ---- chat header ---- */
.chat-head {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(247,248,250,0.82);
  border-bottom: 1px solid var(--line);
}
.chat-head .inner {
  max-width: 680px; margin: 0 auto; padding: 8px 16px;
  display: flex; flex-direction: column; align-items: center; gap: 4px; position: relative;
}
.chat-head .back {
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--blue); font-size: 26px; font-weight: 400; line-height: 1;
}
.chat-head .avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(160deg, #d9f5e4, #bfeecf);
  display: grid; place-items: center; font-size: 22px; box-shadow: var(--shadow);
}
.chat-head .title { font-size: 14px; font-weight: 700; letter-spacing: -0.01em; display:flex; align-items:center; gap:5px; }
.chat-head .title .tm { font-size: 10px; color: var(--ink-faint); font-weight: 700; vertical-align: super; }
.chat-head .sub { font-size: 11px; color: var(--ink-faint); }

/* ---- thread ---- */
.thread { padding: 20px 0 8px; display: flex; flex-direction: column; gap: 4px; }
.daystamp { text-align: center; font-size: 11px; color: var(--ink-faint); font-weight: 600; margin: 14px 0 8px; }
.daystamp b { color: var(--ink-dim); }

.row { display: flex; margin-top: 2px; }
.row.in { justify-content: flex-start; }
.row.out { justify-content: flex-end; }
.bubble {
  max-width: 78%; padding: 9px 14px; border-radius: 19px; font-size: 15px;
  line-height: 1.4; position: relative; word-wrap: break-word;
}
.row.in .bubble { background: var(--gray); color: var(--ink); border-bottom-left-radius: 5px; }
.row.out .bubble {
  background: linear-gradient(180deg, var(--blue) 0%, var(--blue-2) 100%);
  color: #fff; border-bottom-right-radius: 5px;
}
.bubble.tall { border-radius: 19px; }
.row + .row.flush { margin-top: -1px; }
.sender { font-size: 11px; color: var(--ink-faint); font-weight: 600; margin: 8px 0 1px 14px; }

/* ---- section label ---- */
.section-label {
  text-align: center; font-size: 12px; font-weight: 800; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-faint); margin: 30px 0 10px;
}

/* ---- pick card (rich attachment) ---- */
.picks { display: flex; flex-direction: column; gap: 14px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 18px;
  padding: 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.card::before { content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background: var(--green); }
.card .tick-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ticker { font-size: 24px; font-weight: 850; letter-spacing: -0.03em; }
.ticker .co { display:block; font-size: 12px; font-weight: 600; color: var(--ink-faint); margin-top: 2px; }
.price-tag { text-align: right; flex: none; }
.price-tag .lbl { display:block; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.price-tag .px { font-size: 19px; font-weight: 850; color: var(--green-deep); font-variant-numeric: tabular-nums; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 2px; }
.badge { font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 7px; background: #f1f2f4; color: var(--ink-dim); }
.badge.buy { color: var(--green-deep); background: #e3f7ec; }
.badge.gold { color: #9a7510; background: #fbf2da; }
.reasons { list-style: none; margin-top: 12px; display: grid; gap: 9px; }
.reasons li { display: flex; gap: 10px; font-size: 14px; color: var(--ink-dim); line-height: 1.45; }
.reasons li b { color: var(--ink); font-weight: 700; }
.reasons li .num {
  flex:none; width: 19px; height: 19px; border-radius: 6px; margin-top: 1px;
  display: grid; place-items: center; font-size: 11px; font-weight: 800;
  background: var(--green); color: #fff;
}

/* ---- watch strip ---- */
.strip { display: grid; gap: 10px; }
@media (min-width: 560px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.mini { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; box-shadow: var(--shadow); }
.mini .h { display: flex; align-items: center; gap: 7px; font-weight: 850; font-size: 16px; }
.tag { font-size: 9px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 3px 7px; border-radius: 6px; }
.tag.watch { color: #9a7510; background: #fbf2da; }
.tag.trim { color: var(--ink-dim); background: #f1f2f4; }
.tag.pass { color: var(--red); background: #ffe8e6; }
.mini p { font-size: 12.5px; color: var(--ink-dim); margin-top: 7px; line-height: 1.45; }

/* ---- index / archive (platypus style) ---- */
.index-list { display: flex; flex-direction: column; gap: 10px; }
.post-row {
  display: flex; align-items: center; gap: 14px; background: var(--card);
  border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px;
  box-shadow: var(--shadow); transition: .15s;
}
.post-row:hover { border-color: var(--blue); transform: translateY(-1px); }
.post-row .date {
  flex: none; width: 52px; text-align: center; line-height: 1;
}
.post-row .date .d { font-size: 22px; font-weight: 850; letter-spacing: -0.04em; }
.post-row .date .m { font-size: 10px; font-weight: 800; text-transform: uppercase; color: var(--ink-faint); letter-spacing: .08em; }
.post-row .meta { flex: 1; min-width: 0; }
.post-row .meta .t { font-weight: 750; font-size: 15px; letter-spacing: -0.01em; }
.post-row .meta .s { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }
.post-row .chev { color: var(--ink-faint); font-size: 20px; flex: none; }

/* ---- callout ---- */
.callout {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold);
  border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--ink-dim); box-shadow: var(--shadow);
}
.callout.red { border-left-color: var(--red); }
.callout b { color: var(--ink); }

footer { margin: 40px 0 56px; text-align: center; color: var(--ink-faint); font-size: 12px; }
footer a { color: var(--blue); font-weight: 600; }

/* ---- ticker tape ---- */
.ticker-tape {
  width: 100%; overflow: hidden;
  background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 7px 0; margin: 20px 0;
}
.tape-track {
  display: flex; gap: 0; width: max-content;
  animation: marquee 28s linear infinite;
}
.tk {
  display: inline-flex; align-items: baseline; gap: 5px;
  padding: 0 18px; font-family: "SF Mono", "Fira Mono", "Menlo", monospace;
  font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap;
  border-right: 1px solid var(--line); color: var(--ink-dim);
  font-weight: 600;
}
.tk:last-child { border-right: none; }
.tk .up { color: var(--green); font-weight: 700; }
.tk .down { color: var(--red); font-weight: 700; }
@keyframes marquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .tape-track { animation-play-state: paused; }
}

/* ---- article pages ---- */
.article { padding-top: 18px; }
.article .kicker { color: var(--green-deep); font-weight: 800; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.article h1 { font-size: clamp(26px, 5vw, 38px); letter-spacing: -0.03em; line-height: 1.08; margin: 8px 0; font-weight: 850; }
.article .byline { color: var(--ink-faint); font-size: 13px; margin-bottom: 6px; }
.article .body { font-size: 16.5px; line-height: 1.68; color: #2b2b2e; margin-top: 20px; }
.article .body p { margin: 0 0 18px; }
.article .body h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--green-deep); margin: 30px 0 12px; }
.article .body blockquote { border-left: 3px solid var(--green); padding: 2px 0 2px 16px; margin: 18px 0; color: var(--ink-dim); font-style: italic; }
.article .body .figure { background: #f1f2f4; border: 1px dashed var(--gray-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--ink-faint); font-size: 12.5px; margin: 22px 0; }
.pulled { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin: 22px 0; box-shadow: var(--shadow); }
.pulled .px { color: var(--green-deep); font-weight: 850; }
.backlink { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--blue); font-weight: 700; font-size: 14px; }
