:root {
  --bg: #0f1115; --panel: #171a21; --line: #262b36; --fg: #e6e9ef;
  --muted: #8b93a3; --accent: #4ade80; --warn: #fbbf24; --link: #6aa8ff;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  padding: 0 0 4rem;
}
header { padding: 1.25rem 1.5rem 0.5rem; }
h1 { font-size: 1.25rem; margin: 0 0 .5rem; }
.stats { display: flex; gap: 1.25rem; color: var(--muted); flex-wrap: wrap; }
.stats b { color: var(--fg); }
.toolbar { display: flex; gap: .5rem; align-items: center; padding: .75rem 1.5rem; flex-wrap: wrap; }
.toolbar input { background: var(--panel); border: 1px solid var(--line); color: var(--fg);
  padding: .45rem .6rem; border-radius: 6px; width: 200px; }
button { background: var(--accent); color: #06210f; border: 0; padding: .45rem .8rem;
  border-radius: 6px; font-weight: 600; cursor: pointer; }
button.ghost { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.busy { color: var(--warn); }
nav { display: flex; gap: .25rem; padding: 0 1.5rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
nav button { background: transparent; color: var(--muted); border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: .6rem .8rem; font-weight: 500; }
nav button.active { color: var(--fg); border-bottom-color: var(--accent); }
table { width: calc(100% - 3rem); margin: 1rem 1.5rem; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: .45rem .6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--bg); }
td.num { text-align: right; font-variant-numeric: tabular-nums; }
td.rel { color: var(--muted); max-width: 360px; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
.cat { background: var(--panel); border: 1px solid var(--line); border-radius: 4px;
  padding: .05rem .4rem; font-size: 11px; color: var(--muted); }
.muted { color: var(--muted); padding: 0 1.5rem; }
.hint { color: var(--muted); padding: .5rem 1.5rem 0; font-style: italic; }
.error { color: #f87171; padding: .5rem 1.5rem; }

/* transcripts */
.tform { display: flex; flex-direction: column; gap: .5rem; margin: 0 1.5rem 1.25rem; max-width: 900px; }
.tform .trow { display: flex; gap: .5rem; flex-wrap: wrap; }
.tform .trow input { flex: 1; min-width: 140px; }
.tform input, .tform textarea { background: var(--panel); border: 1px solid var(--line);
  color: var(--fg); padding: .5rem .6rem; border-radius: 6px; font: inherit; width: 100%; }
.tform textarea { resize: vertical; }
.tform button { align-self: flex-start; }
.tcard { background: var(--panel); border: 1px solid var(--line); border-radius: 8px;
  padding: .9rem 1.1rem; margin: 0 1.5rem 1rem; max-width: 900px; }
.thead { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; flex-wrap: wrap; }
.tmeta { color: var(--muted); font-size: 12px; }
.stance { font-size: 11px; padding: .05rem .45rem; border-radius: 4px; margin-left: .5rem; text-transform: uppercase; }
.stance.bullish { background: #15391f; color: #4ade80; }
.stance.bearish { background: #3a1717; color: #f87171; }
.stance.neutral, .stance.mixed, .stance.unclear { background: #2a2f3a; color: var(--muted); }
.tsum { margin: .6rem 0; }
.tpoints { margin: .4rem 0; padding-left: 1.1rem; color: #cdd3df; }
.tpoints li { margin: .15rem 0; }
.tatha { background: #161d17; border-left: 2px solid var(--accent); padding: .4rem .6rem; margin: .5rem 0; font-size: 13px; }
.tactions { display: flex; gap: 1rem; align-items: center; margin-top: .5rem; font-size: 13px; }
button.link { background: none; border: 0; color: var(--link); padding: 0; font: inherit; cursor: pointer; }
button.link.danger { color: #f87171; }
.tfull { background: #0b0d11; border: 1px solid var(--line); border-radius: 6px; padding: .8rem;
  margin-top: .6rem; max-height: 360px; overflow: auto; white-space: pre-wrap; font-size: 12px; color: #c2c8d4; }
