/* ═══════════════════════════════════════════════════════════════════
   CirclFi Terminal — the member workspace is the ink room.
   Public pages sit on paper with one ink panel. Members step inside it.
   Same type and rules: square corners, no shadows, nothing under 12px.
   ═══════════════════════════════════════════════════════════════════ */
.t-root {
  --t-bg: #16181A;
  --t-raised: #1D1F21;
  --t-sunk: #121416;
  --t-rule: #2A2C2E;
  --t-line: #3A3833;
  --t-ink: #FAF8F4;
  --t-body: #C9C4BA;
  --t-muted: #A6A199;
  --t-brand: #E08B5C;
  --t-pos: #6FBF95;
  --t-neg: #F0A3AF;
  --t-fair: #D8D2C6;
  --t-serif: 'Newsreader', Georgia, serif;
  --t-sans: 'IBM Plex Sans', system-ui, sans-serif;
  --t-mono: 'IBM Plex Mono', ui-monospace, monospace;
  background: var(--t-bg);
  color: var(--t-body);
  font-family: var(--t-sans);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  padding-top: 60px;
}
.t-root h1, .t-root h2, .t-root h3 { color: var(--t-ink); margin: 0; }
:where(.t-root) a { color: var(--t-brand); }
.t-root [hidden] { display: none !important; }
:where(.t-root) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
/* The public stylesheet rules every table. The terminal draws its own lines. */
.t-root table, .t-root tr, .t-root thead, .t-root tbody { border: 0; }
.t-root button:focus-visible, .t-root a:focus-visible, .t-root input:focus-visible,
.t-root select:focus-visible, .t-root textarea:focus-visible, .t-root tr:focus-visible {
  outline: 2px solid var(--t-brand);
  outline-offset: 2px;
}
body.t-locked { overflow: hidden; }
/* A signed-in member is in an app, not on a marketing page. Each view carries its
   own legal line, so the site footer steps aside. */
body.t-app .footer { display: none; }
.t-shell { max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.t-mono { font-family: var(--t-mono); }
.t-dim { color: var(--t-muted); }
.t-pos { color: var(--t-pos); }
.t-neg { color: var(--t-neg); }
.t-strong { color: var(--t-ink); font-weight: 500; }

/* ─── Sign-in ─── */
.t-gate { min-height: calc(100vh - 60px); display: grid; grid-template-columns: 1fr 1fr; }
.t-gate__pitch { padding: 96px 64px; border-right: 1px solid var(--t-rule); display: flex; flex-direction: column; justify-content: center; }
.t-gate__pitch h1 { font-family: var(--t-serif); font-weight: 300; font-size: clamp(2.25rem, 4vw, 3.5rem); letter-spacing: -0.03em; line-height: 1.08; }
.t-gate__pitch ul { list-style: none; margin: 34px 0 0; padding: 0; }
.t-gate__pitch li { padding: 13px 0; border-top: 1px solid var(--t-rule); }
.t-gate__pitch li b { display: block; color: var(--t-ink); font-weight: 500; }
.t-gate__form { padding: 96px 64px; display: flex; align-items: center; justify-content: center; }
.t-gate__card { width: 100%; max-width: 380px; }
.t-gate__card h2 { font-family: var(--t-serif); font-weight: 300; font-size: 1.75rem; letter-spacing: -0.02em; }
.t-gate__card p { margin: 8px 0 24px; color: var(--t-muted); }
.t-gate__card input {
  width: 100%; box-sizing: border-box; padding: 13px; font: inherit; font-size: 15px;
  color: var(--t-ink); background: var(--t-sunk); border: 1px solid var(--t-line); border-radius: 0;
}
.t-gate__card .t-btn { width: 100%; margin-top: 13px; justify-content: center; }
.t-gate__note { display: flex; gap: 8px; align-items: center; margin-top: 13px; color: var(--t-muted); }
.t-gate__err { margin-top: 13px; color: var(--t-neg); }
.t-gate__link { display: block; margin-top: 24px; text-decoration: none; }

/* ─── Header and tabs ─── */
.t-top { border-bottom: 1px solid var(--t-rule); background: var(--t-bg); position: sticky; top: 60px; z-index: 30; }
.t-top__row { display: flex; align-items: center; gap: 32px; min-height: 58px; }
.t-brand { font-family: var(--t-serif); font-size: 1.375rem; font-weight: 400; color: var(--t-ink); letter-spacing: -0.02em; white-space: nowrap; }
.t-brand i { font-style: normal; color: var(--t-brand); }
.t-tabs { display: flex; gap: 8px; align-self: stretch; }
.t-tab { padding: 0 14px; color: var(--t-muted); border-bottom: 2px solid transparent; transition: color .15s; font-weight: 500; }
.t-tab:hover { color: var(--t-ink); }
.t-tab.is-active { color: var(--t-ink); border-bottom-color: var(--t-brand); }
.t-meta { margin-left: auto; display: flex; align-items: center; gap: 16px; font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); white-space: nowrap; }
.t-meta b { color: var(--t-body); font-weight: 400; }
.t-live { width: 7px; height: 7px; background: var(--t-pos); display: inline-block; margin-right: 6px; }
.t-signout { color: var(--t-muted); text-decoration: underline; text-underline-offset: 3px; }
.t-signout:hover { color: var(--t-ink); }

/* ─── Shared parts ─── */
.t-view-pad { padding: 40px 0 64px; }
.t-eyebrow { font-family: var(--t-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--t-muted); margin: 0 0 10px; }
.t-h1 { font-family: var(--t-serif); font-weight: 300; font-size: clamp(1.875rem, 3.4vw, 3rem); letter-spacing: -0.03em; line-height: 1.12; max-width: 22ch; }
.t-h1 em { font-style: normal; color: var(--t-brand); }
.t-lede { max-width: 66ch; margin: 13px 0 0; font-size: 15px; color: var(--t-body); }
.t-panel { background: var(--t-raised); border: 1px solid var(--t-rule); padding: 21px; }
.t-panel h2 { font-family: var(--t-serif); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; }
.t-panel__sub { color: var(--t-muted); margin: 3px 0 13px; font-size: 13px; }
.t-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px;
  background: var(--t-ink); color: var(--t-bg) !important; font-weight: 500; text-decoration: none; border: 1px solid var(--t-ink);
}
.t-btn:hover { background: var(--t-fair); }
.t-btn--ghost { background: transparent; color: var(--t-ink) !important; border: 1px solid var(--t-line); }
.t-btn--ghost:hover { border-color: var(--t-muted); background: transparent; }
.t-btn:disabled { opacity: .55; cursor: default; }
.t-pill { display: inline-block; padding: 3px 8px; font-family: var(--t-mono); font-size: 12px; white-space: nowrap; border: 1px solid; }
.t-pill--u { color: var(--t-pos); border-color: rgba(111, 191, 149, .45); background: rgba(111, 191, 149, .1); }
.t-pill--o { color: var(--t-neg); border-color: rgba(240, 163, 175, .45); background: rgba(240, 163, 175, .1); }
.t-pill--f { color: var(--t-fair); border-color: var(--t-line); }
.t-pill--i { color: var(--t-muted); border-color: var(--t-rule); }
.t-meter { display: inline-flex; align-items: center; gap: 8px; justify-content: flex-end; min-width: 76px; }
.t-meter i { display: block; height: 4px; background: var(--t-brand); order: 1; max-width: 44px; }
.t-meter b { order: 2; min-width: 22px; text-align: right; font-weight: 400; font-family: var(--t-mono); color: var(--t-ink); }
.t-meter--buy i { background: var(--t-pos); }
.t-meter--sell i { background: var(--t-neg); }
.t-tk { display: block; font-family: var(--t-mono); font-weight: 500; color: var(--t-ink); }
.t-nm { display: block; color: var(--t-muted); font-size: 12px; line-height: 1.35; max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.t-note { margin: 13px 0 0; font-size: 12px; color: var(--t-muted); }
.t-empty { color: var(--t-muted); padding: 21px 0; margin: 0; }
.t-legal { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--t-rule); font-size: 12px; color: var(--t-muted); max-width: 90ch; }

/* ─── Distribution bar ─── */
.t-bar { display: flex; gap: 2px; margin-top: 24px; }
.t-seg { flex: 1 1 0; min-width: 0; padding: 12px 13px; text-align: left; overflow: hidden; display: block; transition: filter .15s; }
.t-seg span { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.t-seg b { display: block; font-family: var(--t-mono); font-weight: 400; font-size: 1.125rem; }
button.t-seg:hover { filter: brightness(1.15); }
.t-seg--u { background: rgba(111, 191, 149, .16); color: var(--t-pos); }
.t-seg--f { background: rgba(216, 210, 198, .1); color: var(--t-fair); }
.t-seg--o { background: rgba(240, 163, 175, .15); color: var(--t-neg); }
.t-seg--i { background: var(--t-raised); color: var(--t-muted); }

/* ─── Today ─── */
.t-lists { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin-top: 32px; }
.t-idea { display: grid; grid-template-columns: minmax(0, 1fr) 54px 84px; align-items: center; gap: 8px; width: 100%; padding: 9px 0; border-top: 1px solid var(--t-rule); text-align: left; }
.t-idea:hover .t-tk { color: var(--t-brand); }
.t-idea__gap { font-family: var(--t-mono); text-align: right; }
.t-idea__m { text-align: right; }
.t-inds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.t-ind { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 60px; gap: 13px; align-items: center; padding: 7px 0; border-top: 1px solid var(--t-rule); }
.t-ind__n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--t-body); }
.t-ind__n i { font-style: normal; color: var(--t-muted); font-family: var(--t-mono); font-size: 12px; margin-left: 8px; }
.t-ind__bar { position: relative; height: 6px; background: var(--t-sunk); }
.t-ind__bar i { position: absolute; top: 0; bottom: 0; left: 50%; }
.t-ind__bar i.is-pos { background: var(--t-pos); }
.t-ind__bar i.is-neg { background: var(--t-neg); transform: translateX(-100%); }
.t-ind__solo { height: 6px; background: var(--t-sunk); }
.t-ind__solo i { display: block; height: 100%; background: var(--t-brand); }
.t-ind__v { font-family: var(--t-mono); text-align: right; }

/* ─── Screener ─── */
.t-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 21px; }
.t-search {
  flex: 1 1 280px; min-width: 200px; padding: 10px 13px; font: inherit; color: var(--t-ink);
  background: var(--t-sunk); border: 1px solid var(--t-line); border-radius: 0;
}
.t-search::placeholder { color: var(--t-muted); }
.t-root select {
  padding: 10px 28px 10px 10px; font: inherit; font-size: 13px; color: var(--t-body); background-color: var(--t-sunk);
  border: 1px solid var(--t-line); border-radius: 0; appearance: none; max-width: 190px;
  background-image: linear-gradient(45deg, transparent 50%, var(--t-muted) 50%), linear-gradient(135deg, var(--t-muted) 50%, transparent 50%);
  background-position: calc(100% - 15px) 50%, calc(100% - 10px) 50%; background-size: 5px 5px; background-repeat: no-repeat;
}
.t-switch { display: inline-flex; border: 1px solid var(--t-line); }
.t-switch button { padding: 9px 12px; color: var(--t-muted); font-size: 13px; white-space: nowrap; }
.t-switch button + button { border-left: 1px solid var(--t-line); }
.t-switch button:hover { color: var(--t-ink); }
.t-switch button.is-active { background: var(--t-ink); color: var(--t-bg); }
.t-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 13px; }
.t-chip { padding: 5px 10px; border: 1px solid var(--t-rule); color: var(--t-muted); font-size: 13px; }
.t-chip:hover { color: var(--t-ink); border-color: var(--t-line); }
.t-chip.is-active { color: var(--t-brand); border-color: var(--t-brand); }
.t-chips__end { margin-left: auto; display: flex; gap: 13px; align-items: center; font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); }
.t-link { color: var(--t-muted); text-decoration: underline; text-underline-offset: 3px; font-family: var(--t-sans); font-size: 13px; }
.t-link:hover { color: var(--t-ink); }
.t-more-toggle { display: none; margin-top: 13px; }
.t-table-wrap { margin-top: 13px; border: 1px solid var(--t-rule); overflow-x: auto; background: var(--t-raised); scroll-margin-top: 130px; }
.t-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-table th {
  position: sticky; top: 0; z-index: 2; padding: 10px 13px; text-align: right; font-family: var(--t-mono); font-size: 12px; font-weight: 400;
  letter-spacing: 0; text-transform: none; color: var(--t-body); background: var(--t-sunk); border-bottom: 1px solid var(--t-line);
  white-space: nowrap; cursor: pointer; user-select: none;
}
.t-table th:hover, .t-table th.is-sorted { color: var(--t-ink); }
.t-table th.is-left, .t-table td.is-left { text-align: left; }
.t-table th:first-child { left: 0; z-index: 3; text-align: left; }
.t-table td { padding: 7px 13px; text-align: right; border-bottom: 1px solid var(--t-rule); white-space: nowrap; font-family: var(--t-mono); font-variant-numeric: tabular-nums; }
.t-table tbody tr { cursor: pointer; transition: background .1s; }
.t-table tbody tr:hover td { background: #24272A; }
.t-table td.t-stick { position: sticky; left: 0; background: var(--t-raised); text-align: left; font-family: var(--t-sans); z-index: 1; min-width: 190px; border-right: 1px solid var(--t-rule); }
.t-table td.t-heat { padding: 7px 10px; color: var(--t-ink); }
.t-table td.t-heat.t-dim { color: var(--t-muted); }
.t-pager { display: flex; align-items: center; justify-content: flex-end; gap: 13px; margin-top: 13px; font-family: var(--t-mono); font-size: 12px; color: var(--t-muted); }
.t-pager button { padding: 7px 12px; border: 1px solid var(--t-line); color: var(--t-body); font-family: var(--t-sans); font-size: 13px; }
.t-pager button:disabled { opacity: .4; cursor: default; }

/* ─── Portfolio ─── */
.t-p-grid { display: grid; grid-template-columns: minmax(280px, 340px) minmax(0, 1fr); gap: 21px; margin-top: 24px; align-items: start; }
.t-p-input textarea {
  width: 100%; box-sizing: border-box; min-height: 230px; padding: 13px; font-family: var(--t-mono); font-size: 13px; line-height: 1.7;
  color: var(--t-ink); background: var(--t-sunk); border: 1px solid var(--t-line); border-radius: 0; resize: vertical;
}
.t-p-input textarea::placeholder { color: var(--t-muted); }
.t-p-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; align-items: center; }
.t-p-file { position: relative; overflow: hidden; }
.t-p-file input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.t-p-msg { margin: 13px 0 0; color: var(--t-neg); font-size: 13px; }
.t-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--t-rule); border: 1px solid var(--t-rule); }
.t-tile { background: var(--t-raised); padding: 16px; min-width: 0; }
.t-tile:first-child { background: #22262A; }
.t-tile span { display: block; font-size: 12px; color: var(--t-muted); }
.t-tile b { display: block; font-family: var(--t-serif); font-weight: 300; font-size: 1.75rem; color: var(--t-ink); letter-spacing: -0.02em; line-height: 1.25; }
.t-tile b.t-pos { color: var(--t-pos); }
.t-tile b.t-neg { color: var(--t-neg); }
.t-tile em { display: block; font-style: normal; font-size: 12px; color: var(--t-muted); }
.t-p-mid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; margin-top: 13px; }
.t-notes { margin: 0; padding: 0; list-style: none; }
.t-notes li { padding: 8px 0; border-top: 1px solid var(--t-rule); color: var(--t-body); }
.t-p-intro { border: 1px dashed var(--t-line); padding: 34px; }
.t-p-intro h2 { font-family: var(--t-serif); font-weight: 300; font-size: 1.5rem; }
.t-p-intro ul { margin: 13px 0 0; padding: 0; list-style: none; }
.t-p-intro li { padding: 8px 0; border-top: 1px solid var(--t-rule); }
.t-p-intro li b { color: var(--t-ink); font-weight: 500; }

/* ─── AI levels ─── */
.t-ai { display: inline-block; min-width: 22px; padding: 1px 5px; box-sizing: border-box; text-align: center; font-family: var(--t-mono); font-size: 12px; border: 1px solid; }
.t-ai--1 { color: var(--t-pos); border-color: rgba(111, 191, 149, .55); background: rgba(111, 191, 149, .16); }
.t-ai--2 { color: var(--t-pos); border-color: rgba(111, 191, 149, .3); }
.t-ai--3 { color: var(--t-fair); border-color: var(--t-line); }
.t-ai--4 { color: var(--t-neg); border-color: rgba(240, 163, 175, .3); }
.t-ai--5 { color: var(--t-neg); border-color: rgba(240, 163, 175, .55); background: rgba(240, 163, 175, .16); }
.t-seg--a1 { background: rgba(111, 191, 149, .26); color: var(--t-pos); }
.t-seg--a2 { background: rgba(111, 191, 149, .12); color: var(--t-pos); }
.t-seg--a3 { background: rgba(216, 210, 198, .1); color: var(--t-fair); }
.t-seg--a4 { background: rgba(240, 163, 175, .12); color: var(--t-neg); }
.t-seg--a5 { background: rgba(240, 163, 175, .26); color: var(--t-neg); }
.t-bar--tight { margin-top: 6px; }
.t-d-ai { display: flex; align-items: center; gap: 13px; padding: 8px 0; border-top: 1px solid var(--t-rule); }
.t-d-ai .t-ai { font-size: 1rem; min-width: 34px; padding: 5px; }
.t-d-ai b { display: block; color: var(--t-ink); font-weight: 500; }
.t-d-ai span:not(.t-ai) { display: block; font-size: 12px; color: var(--t-muted); }
.t-d-reason { margin: 8px 0 0; color: var(--t-body); }

/* ─── Portfolio tools ─── */
.t-subtabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--t-rule); border: 1px solid var(--t-rule); margin-bottom: 34px; }
.t-subtab { display: block; background: var(--t-raised); padding: 13px 16px; text-align: left; border-top: 2px solid transparent; transition: background .15s; }
.t-subtab b { display: block; font-family: var(--t-serif); font-weight: 400; font-size: 1.1875rem; letter-spacing: -0.01em; color: var(--t-ink); }
.t-subtab span { display: block; font-size: 12px; color: var(--t-muted); }
.t-subtab:hover { background: #24272A; }
.t-subtab.is-active { background: var(--t-bg); border-top-color: var(--t-brand); }
.t-b-grid { display: grid; grid-template-columns: minmax(320px, 400px) minmax(0, 1fr); gap: 21px; margin-top: 24px; align-items: start; }
.t-b-q { border: 0; margin: 0; padding: 0 0 18px; min-width: 0; }
.t-b-q legend, .t-b-q > label, .t-b-extra > label, .t-b-label { display: block; padding: 0; margin: 0 0 7px; font-size: 13px; font-weight: 500; color: var(--t-ink); }
.t-b-q > label i { font-style: normal; font-weight: 400; color: var(--t-muted); margin-left: 6px; }
.t-b-current { margin: 0 0 13px; padding-bottom: 13px; border-bottom: 1px solid var(--t-rule); }
.t-b-current b { color: var(--t-ink); font-weight: 500; }
.t-b-money { display: flex; align-items: center; background: var(--t-sunk); border: 1px solid var(--t-line); }
.t-b-money:focus-within { outline: 2px solid var(--t-brand); outline-offset: 2px; }
.t-b-money span { padding-left: 13px; font-family: var(--t-mono); color: var(--t-muted); }
.t-b-money input { flex: 1; min-width: 0; padding: 11px 13px 11px 6px; font-family: var(--t-mono); font-size: 16px; color: var(--t-ink); background: none; border: 0; border-radius: 0; outline: 0; }
.t-b-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.t-b-opts--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.t-b-opt { display: block; min-width: 0; padding: 8px 10px; text-align: left; border: 1px solid var(--t-line); transition: border-color .15s, background .15s; }
.t-b-opt b { display: block; font-size: 13px; font-weight: 500; color: var(--t-ink); }
.t-b-opt span { display: block; font-size: 12px; line-height: 1.35; color: var(--t-muted); }
.t-b-opt:hover { border-color: var(--t-muted); }
.t-b-opt.is-active { border-color: var(--t-brand); background: rgba(224, 139, 92, .12); }
.t-b-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.t-b-steps .t-b-opt { padding: 8px 0; text-align: center; font-family: var(--t-mono); }
.t-b-hint { margin: 8px 0 0; font-size: 12px; color: var(--t-muted); }
.t-b-more { margin-bottom: 18px; border-top: 1px solid var(--t-rule); padding-top: 13px; }
.t-b-more summary { cursor: pointer; color: var(--t-body); font-size: 13px; }
.t-b-extra { padding-top: 13px; }
.t-b-extra select, .t-b-extra .t-search { display: block; width: 100%; max-width: none; box-sizing: border-box; margin-bottom: 13px; }
.t-b-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--t-body); cursor: pointer; }
.t-b-check input { margin: 3px 0 0; accent-color: var(--t-brand); }
.t-b-extra > .t-b-check { margin-bottom: 13px; }
.t-b-sectors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 13px; margin-bottom: 13px; }
.t-b-ack { margin-bottom: 13px; padding: 10px; border: 1px solid var(--t-line); font-size: 12px; }
.t-b-go { width: 100%; justify-content: center; }
.t-b-how { margin: 13px 0 0; padding: 0; list-style: none; counter-reset: step; }
.t-b-how li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--t-rule); counter-increment: step; }
.t-b-how li::before { content: counter(step); position: absolute; left: 0; font-family: var(--t-mono); font-size: 12px; color: var(--t-brand); }
.t-b-how li b { color: var(--t-ink); font-weight: 500; }
.t-b-summary { margin-bottom: 16px; }
.t-b-summary .t-eyebrow { margin-bottom: 6px; }
.t-b-summary h2 { font-family: var(--t-serif); font-weight: 300; font-size: 2.125rem; letter-spacing: -0.025em; line-height: 1.15; }
.t-b-summary p:last-child { margin: 4px 0 0; }
.t-b-bar-label { margin-top: 21px; }
.t-b-table-title { font-family: var(--t-serif); font-size: 1.375rem; letter-spacing: -0.01em; color: var(--t-ink); }
#b-table-block { margin-top: 21px; }
.t-table--plain th { cursor: default; }
.t-table--plain tr.is-static { cursor: default; }
.t-table td.t-why { white-space: normal; min-width: 300px; font-family: var(--t-sans); color: var(--t-body); }
.t-why i { font-style: normal; color: var(--t-muted); margin: 0 6px; }
.t-act { display: inline-block; min-width: 42px; padding: 2px 7px; box-sizing: border-box; text-align: center; font-family: var(--t-mono); font-size: 12px; border: 1px solid; }
.t-act--buy, .t-act--add { color: var(--t-pos); border-color: rgba(111, 191, 149, .45); background: rgba(111, 191, 149, .1); }
.t-act--sell, .t-act--trim { color: var(--t-neg); border-color: rgba(240, 163, 175, .45); background: rgba(240, 163, 175, .1); }
.t-act--keep { color: var(--t-muted); border-color: var(--t-rule); }
.t-b-after { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 13px; margin-top: 13px; align-items: start; }

/* ─── Stock drawer ─── */
.t-drawer { position: fixed; inset: 0; z-index: 200; background: rgba(10, 11, 12, .6); }
.t-drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(560px, 100%); background: var(--t-bg);
  border-left: 1px solid var(--t-line); overflow-y: auto; padding: 24px 28px 40px; box-sizing: border-box;
}
.t-drawer__close { position: sticky; top: 0; float: right; padding: 4px 9px; border: 1px solid var(--t-line); background: var(--t-bg); color: var(--t-body); font-size: 13px; z-index: 2; }
.t-d-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 13px; padding-right: 72px; }
.t-d-head h2 { font-family: var(--t-mono); font-weight: 500; font-size: 1.5rem; }
.t-d-head p { margin: 0; }
.t-d-key { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 21px; background: var(--t-rule); border: 1px solid var(--t-rule); }
.t-d-key div { background: var(--t-raised); padding: 13px; }
.t-d-key .is-lead { background: #22262A; }
.t-d-key span { display: block; font-size: 12px; color: var(--t-muted); }
.t-d-key b { font-family: var(--t-serif); font-weight: 300; font-size: 1.5rem; color: var(--t-ink); letter-spacing: -0.02em; }
.t-d-key b.t-pos { color: var(--t-pos); }
.t-d-key b.t-neg { color: var(--t-neg); }
.t-rail { position: relative; height: 92px; margin: 21px 34px 0; }
.t-rail__line { position: absolute; left: 0; right: 0; top: 46px; height: 1px; background: var(--t-line); }
.t-rail__p { position: absolute; top: 0; bottom: 0; width: 0; display: flex; flex-direction: column; align-items: center; font-size: 12px; white-space: nowrap; }
.t-rail__p i { position: absolute; top: 40px; width: 2px; height: 13px; background: currentColor; }
.t-rail__p b { font-weight: 400; color: inherit; }
.t-rail__p em { font-style: normal; font-family: var(--t-mono); color: var(--t-body); }
.t-rail__p.is-entry, .t-rail__p.is-exit { color: var(--t-muted); justify-content: flex-end; }
.t-rail__p.is-fair { color: var(--t-brand); }
.t-rail__p.is-price { color: var(--t-ink); }
.t-d-sec { margin-top: 28px; }
.t-d-sec h3 { font-family: var(--t-mono); font-size: 12px; font-weight: 400; letter-spacing: .12em; text-transform: uppercase; color: var(--t-muted); margin-bottom: 8px; }
.t-view { display: grid; grid-template-columns: 132px minmax(0, 1fr) 82px; gap: 13px; align-items: center; padding: 8px 0; border-top: 1px solid var(--t-rule); }
.t-view__n { color: var(--t-ink); }
.t-view__n i { display: block; font-style: normal; font-size: 12px; color: var(--t-muted); }
.t-view__bar { height: 6px; background: var(--t-sunk); }
.t-view__bar i { display: block; height: 100%; background: var(--t-brand); }
.t-view b { font-family: var(--t-mono); font-weight: 400; color: var(--t-ink); text-align: right; }
.t-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 21px; margin: 0; }
.t-grid2 div { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--t-rule); }
.t-grid2 dt { color: var(--t-muted); font-size: 13px; }
.t-grid2 dd { margin: 0; font-family: var(--t-mono); color: var(--t-ink); text-align: right; }
.t-scroll { overflow-x: auto; }
.t-mini { width: 100%; border-collapse: collapse; font-size: 13px; }
.t-mini th, .t-mini td { padding: 7px 6px; border-top: 1px solid var(--t-rule); text-align: right; font-family: var(--t-mono); font-weight: 400; white-space: nowrap; }
.t-mini thead th { color: var(--t-muted); font-size: 12px; border-top: 0; }
.t-mini th:first-child { text-align: left; font-family: var(--t-sans); color: var(--t-ink); }
.t-mini thead th:first-child { color: var(--t-muted); }
.t-d-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ─── Tablet ─── */
@media (max-width: 1100px) {
  .t-lists { grid-template-columns: 1fr 1fr; }
  .t-p-grid, .t-b-grid { grid-template-columns: minmax(0, 1fr); }
  .t-meta span:not(.t-keep) { display: none; }
}

/* ─── Phone ─── */
@media (max-width: 768px) {
  .t-root { padding-top: 67px; }
  .t-shell { padding: 0 16px; }
  .t-gate { grid-template-columns: 1fr; min-height: 0; }
  .t-gate__form { order: -1; padding: 40px 16px 32px; }
  .t-gate__pitch { padding: 32px 16px 48px; border-right: 0; border-top: 1px solid var(--t-rule); }
  .t-top { top: 67px; }
  .t-top__row { flex-wrap: wrap; gap: 4px 16px; min-height: 0; padding-top: 10px; }
  .t-meta { margin-left: 0; width: 100%; justify-content: space-between; order: 2; }
  .t-tabs { order: 3; width: 100%; height: 42px; overflow-x: auto; }
  .t-tab { padding: 0 10px 0 0; margin-right: 10px; }
  .t-view-pad { padding: 28px 0 48px; }
  .t-lists, .t-inds, .t-p-mid, .t-b-after { grid-template-columns: minmax(0, 1fr); }
  .t-mini th:first-child { white-space: normal; }
  .t-subtab { padding: 10px; }
  .t-subtab span { display: none; }
  .t-b-summary h2 { font-size: 1.625rem; }
  .t-bar { flex-direction: column; }
  .t-seg { display: flex; justify-content: space-between; align-items: baseline; flex: 1 1 auto !important; }
  .t-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .t-tile b { font-size: 1.5rem; }
  .t-filters > select { flex: 1 1 calc(50% - 4px); max-width: none; min-width: 0; }
  .t-switch { width: 100%; }
  .t-switch button { flex: 1 1 auto; padding: 9px 5px; font-size: 12px; }
  .t-more-toggle { display: inline-block; }
  .t-more:not(.is-open) { display: none; }
  .t-chips__end { margin-left: 0; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
  .t-chips__end .t-switch { order: 3; }
  .t-table td.t-stick { min-width: 120px; max-width: 140px; }
  .t-nm { max-width: 120px; }
  .t-drawer__panel { padding: 16px 16px 32px; border-left: 0; }
  .t-d-head { display: block; padding-right: 0; }
  .t-d-head .t-pill { margin-top: 8px; }
  .t-rail { margin: 21px 28px 0; }
  .t-grid2 { grid-template-columns: 1fr; }
  .t-view { grid-template-columns: 112px minmax(0, 1fr) 74px; gap: 8px; }
}
