/* Research-terminal adapters, ledger group (js/views/tc/ledger.js): paper ledgers (美股日内 / 盯盘 / 波段 / 牛熊 / 黄金跟单)
   and the hourly report feed. Only design tokens; gains use --rise, losses --fall (the 红涨绿跌 switch flips them). Long / short and
   stances are words with a small ▲ / ▼ in neutral ink: a direction is not a gain. */
.tc-lg { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tc-lg .tc-island { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tc-lg .tc-panel + .tc-panel, .tc-lg .tc-island + .tc-panel, .tc-lg .tc-panel + .tc-island { margin-top: 0; }
.tc-lg .tc-hero { margin-bottom: 4px; }
.tc-lg .tc-hero-k b { font-variant-numeric: tabular-nums; }
.tc-lg .tc-stats { margin-top: 10px; grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
.tc-lg .tc-head { margin-bottom: 6px; }

/* section label, gloss, notes */
.tc-lg-label { display: flex; align-items: center; gap: 12px; margin: 10px 0 -2px; font-size: 14px; font-weight: 620; color: var(--text); }
.tc-lg-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.tc-lg-gloss { margin: 0; max-width: 820px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.tc-lg-gloss b { color: var(--text); }
.tc-lg-rule { margin: 0; max-width: 860px; font-size: 13px; line-height: 1.75; color: var(--text-2); }  /* a rule the page is about: shown, not folded */
.tc-lg-rule b { color: var(--text); font-weight: 640; }
.tc-lg-note { margin-top: 12px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.tc-lg-note b { color: var(--text); font-weight: 600; }
.tc-lg-foot { margin-top: 10px; font-size: 11.5px; line-height: 1.8; color: var(--faint); }
.tc-lg-miss { margin-top: 10px; font-size: 12.5px; color: var(--muted); }
.tc-lg-miss b { color: var(--text); font-weight: 600; }
.tc-lg-foot b { color: var(--muted); }
.tc-lg-foot a { color: var(--accent); }
.tc-lg-sub { margin-top: 10px; font-size: 11.5px; color: var(--faint); }
.tc-lg-warn { border-left: 3px solid var(--warn); background: var(--warn-soft); padding: 10px 14px; border-radius: 0 9px 9px 0; font-size: 13px; line-height: 1.7; color: var(--text-2); }
.tc-lg-warn b { color: var(--text); }
.tc-lg-empty { border: 1px dashed var(--border-strong); border-radius: 11px; padding: 22px 18px; text-align: center; background: var(--panel-2); color: var(--muted); font-size: 13px; line-height: 1.8; }
.tc-lg-empty b { color: var(--text); font-weight: 600; }
.tc-lg-none-msg { padding: 10px 2px; font-size: 12.5px; line-height: 1.7; color: var(--faint); }
.tc-lg-prose { margin-top: 10px; max-width: 860px; padding-left: 12px; border-left: 2px solid var(--border-strong); font-size: 12.5px; line-height: 1.85; color: var(--text-2); overflow-wrap: anywhere; white-space: normal; }
.tc-lg-prose b { color: var(--text); font-weight: 600; }
.tc-lg-risk { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.8; color: var(--faint); display: grid; gap: 2px; }
.tc-lg-risk p { margin: 0; }
.tc-lg-risk b { color: var(--muted); }
.tc-lg-read > summary, .tc-lg-quote > summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.tc-lg-read > summary:hover, .tc-lg-quote > summary:hover { color: var(--text); }
.tc-lg-read p { margin: 10px 0 0; max-width: 860px; font-size: 13px; line-height: 1.9; color: var(--text-2); }
.tc-lg-read p > b:first-child { color: var(--text); margin-right: 2px; }
.tc-lg-quote { margin-top: 14px; }
.tc-lg-rules { font-size: 13px; line-height: 1.8; color: var(--text-2); }
.tc-lg-rules > b { display: block; margin-bottom: 6px; color: var(--text); font-weight: 600; }
.tc-lg-rules ol, .tc-lg-ul { margin: 0; padding-left: 20px; }
.tc-lg-rules li, .tc-lg-ul li { margin-bottom: 4px; }
.tc-lg-ul { font-size: 13px; line-height: 1.85; color: var(--text-2); }
.tc-lg-read > .tc-lg-rules, .tc-lg-read > .tc-lg-ul { margin: 10px 0 0; max-width: 860px; font-size: 12.5px; }

/* pills */
.tc-lg-side { display: inline-flex; align-items: center; padding: 1px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; line-height: 19px;
  border: 1px solid var(--border-strong); color: var(--muted); white-space: nowrap; justify-self: start; }
.tc-lg-side[data-d="long"]::before, .tc-lg-stance.long::before { content: "▲"; margin-right: 4px; font-size: 0.75em; }
.tc-lg-side[data-d="short"]::before, .tc-lg-stance.short::before { content: "▼"; margin-right: 4px; font-size: 0.75em; }
.tc-lg-side[data-d] { color: var(--text-2); }
.tc-lg-tag { display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; border: 1px solid var(--border); background: var(--panel-2);
  font-size: 11px; line-height: 18px; color: var(--muted); white-space: nowrap; font-style: normal; font-weight: 500; vertical-align: 1px; }
.tc-lg-tag.num { font-variant-numeric: tabular-nums; color: var(--text-2); }
.tc-lg-st { font-style: normal; display: inline-block; padding: 0 7px; border-radius: 999px; font-size: 11.5px; line-height: 19px; background: var(--hover); color: var(--text-2); }
.tc-lg-st[data-st="filled"] { padding: 0; background: none; color: var(--muted); }  /* the normal outcome: plain words, no chip */
.tc-lg-st[data-st="open"] { background: var(--accent-soft); color: var(--accent); }

/* track / book switchers */
.tc-lg-tracks { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.tc-lg-trk { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 2px 10px; padding: 10px 14px; text-align: left; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--panel); color: var(--text-2); font: inherit; box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease); }
.tc-lg-trk:hover { border-color: var(--accent-ring); }
.tc-lg-trk.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tc-lg-trk b { font-size: 14px; color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-lg-trk .tc-lg-stat { font-size: 12px; color: var(--muted); }
.tc-lg-trk .tc-lg-v { font-size: 20px; font-weight: 680; font-variant-numeric: tabular-nums; color: var(--text); }
.tc-lg-trk .tc-lg-v.up { color: var(--rise); } .tc-lg-trk .tc-lg-v.down { color: var(--fall); }
.tc-lg-trk .tc-lg-m { font-size: 11.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-lg-rtabs { align-self: flex-start; }

/* "此刻" state card */
.tc-lg-now { background: var(--panel); border: 1px solid var(--border); border-left: 3px solid var(--faint); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); min-width: 0; }
.tc-lg-now[data-k="open"] { border-left-color: var(--accent); }
.tc-lg-now[data-k="pending"] { border-left-color: var(--warn); }
.tc-lg-now[data-k="members"] { border-left-color: var(--info); }
.tc-lg-now > .tc-lg-hd, .tc-lg-leg > .tc-lg-hd { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tc-lg-now .tc-lg-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.tc-lg-now[data-k="open"] .tc-lg-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tc-lg-now[data-k="pending"] .tc-lg-dot { background: var(--warn); box-shadow: 0 0 0 4px var(--warn-soft); }
.tc-lg-now[data-k="members"] .tc-lg-dot { background: var(--info); }
.tc-lg-now .tc-lg-lbl { font-size: 18px; font-weight: 660; color: var(--text); line-height: 1.25; }
.tc-lg-now .tc-lg-rt { margin-left: auto; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-now .tc-lg-rt b { color: var(--text); }
.tc-lg-now .tc-lg-say { margin-top: 8px; max-width: 780px; font-size: 13px; line-height: 1.75; color: var(--text-2); }
.tc-lg-now .tc-lg-say.strong { color: var(--text); }
.tc-lg-now .tc-lg-say b { font-weight: 650; }
.tc-lg-now .tc-lg-pos { margin-top: 8px; font-size: 14px; font-weight: 640; color: var(--text); }
.tc-lg-levels { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tc-lg-lv { min-width: 0; }
.tc-lg-lv .tc-lg-k { font-size: 11.5px; color: var(--faint); }
.tc-lg-lv .tc-lg-v { margin-top: 2px; font-size: 17px; font-weight: 640; line-height: 1.35; color: var(--text); font-variant-numeric: tabular-nums; }
.tc-lg-lv .tc-lg-v.up { color: var(--rise); } .tc-lg-lv .tc-lg-v.down { color: var(--fall); }
.tc-lg-lv .tc-lg-n { margin-top: 2px; max-width: 220px; font-size: 11px; line-height: 1.5; color: var(--faint); }
.tc-lg-legs-box { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tc-lg-leg { border: 1px solid var(--border); border-radius: 11px; background: var(--panel-2); padding: 12px 16px; min-width: 0; }
.tc-lg-leg > .tc-lg-hd b { font-size: 13.5px; color: var(--text); font-weight: 640; }
.tc-lg-leg .tc-lg-levels { margin-top: 10px; padding-top: 10px; }

/* action timeline */
.tc-lg-acts { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tc-lg-acts > .tc-lg-hd { font-size: 12px; color: var(--faint); margin-bottom: 6px; }
.tc-lg-act { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 6px 0 6px 16px; font-size: 13px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tc-lg-act::before { content: ""; position: absolute; left: 0; top: 12px; width: 7px; height: 7px; border-radius: 50%; background: var(--faint); }
.tc-lg-act[data-k="entry"]::before { background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tc-lg-act[data-k="exit"]::before { background: var(--muted); }
.tc-lg-act:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 21px; bottom: -8px; width: 1px; background: var(--border); }
.tc-lg-act .tc-lg-t { min-width: 84px; font-size: 12px; color: var(--faint); }
.tc-lg-act .tc-lg-lb { font-weight: 640; color: var(--text); }
.tc-lg-act .tc-lg-px { color: var(--text); font-size: 12.5px; }
.tc-lg-act .tc-lg-sz { color: var(--muted); font-size: 12.5px; }
.tc-lg-act .tc-lg-pn { font-weight: 650; }
.tc-lg-act .tc-lg-nt { flex-basis: 100%; padding-left: 96px; font-size: 11.5px; line-height: 1.6; color: var(--faint); }
.tc-lg-act .tc-lg-pn.up { color: var(--rise); } .tc-lg-act .tc-lg-pn.down { color: var(--fall); }

/* equity curve: SVG stretched horizontally, text and dots as HTML overlays */
.tc-lg-curve { margin-top: 16px; }
.tc-lg-curve.flush { margin-top: 0; }
.tc-lg-chart { position: relative; padding-left: 50px; }
.tc-lg-ylab { position: absolute; left: 0; top: 0; width: 44px; height: var(--h); pointer-events: none; }
.tc-lg-ylab span { position: absolute; right: 0; transform: translateY(-50%); font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-lg-plot { position: relative; height: var(--h); cursor: crosshair; touch-action: pan-y; }
.tc-lg-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; overflow: visible; }
.tc-lg-plot svg * { vector-effect: non-scaling-stroke; }
.tc-lg-plot .tc-lg-g { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 4; }
.tc-lg-plot .tc-lg-g.z { stroke: var(--border-strong); stroke-dasharray: none; }
.tc-lg-plot .tc-lg-l { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.tc-lg-plot .tc-lg-l.up { stroke: var(--rise); } .tc-lg-plot .tc-lg-l.down { stroke: var(--fall); } .tc-lg-plot .tc-lg-l.flat { stroke: var(--muted); }
.tc-lg-plot .tc-lg-a { stroke: none; opacity: 0.1; fill: var(--accent); }
.tc-lg-plot .tc-lg-a.up { fill: var(--rise); } .tc-lg-plot .tc-lg-a.down { fill: var(--fall); } .tc-lg-plot .tc-lg-a.flat { fill: var(--muted); }
.tc-lg-plot .tc-lg-l2 { fill: none; stroke: var(--faint); stroke-width: 1.4; stroke-dasharray: 4 3; }
.tc-lg-plot .tc-lg-ev { stroke: var(--muted); stroke-width: 1.2; stroke-dasharray: 6 4; opacity: 0.85; }
.tc-lg-plot .tc-lg-mk { stroke: var(--accent); stroke-width: 1; stroke-dasharray: 2 3; opacity: 0.8; }
.tc-lg-plot .tc-lg-sg { fill: var(--faint); opacity: 0.13; stroke: none; }
.tc-lg-evl { position: absolute; z-index: 2; transform: translateX(5px); padding: 0 4px; border-radius: 4px; background: var(--panel); font-size: 10.5px; color: var(--text-2); white-space: nowrap; pointer-events: none; }
.tc-lg-evl.flip { transform: translateX(calc(-100% - 5px)); }
.tc-lg-evl.tc-lg-mk { color: var(--muted); }
.tc-lg-sgl { position: absolute; bottom: 4px; transform: translateX(-50%); font-size: 10.5px; color: var(--faint); white-space: nowrap; pointer-events: none; }
.tc-lg-end, .tc-lg-pt { position: absolute; width: 7px; height: 7px; border-radius: 50%; transform: translate(-50%, -50%); background: var(--accent); pointer-events: none; }
.tc-lg-pt { width: 5px; height: 5px; }
.tc-lg-end.up, .tc-lg-pt.up { background: var(--rise); } .tc-lg-end.down, .tc-lg-pt.down { background: var(--fall); } .tc-lg-end.flat, .tc-lg-pt.flat { background: var(--muted); }
.tc-lg-hv { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.tc-lg-hv[hidden] { display: none; }
.tc-lg-hv .tc-lg-vl { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--border-strong); }
.tc-lg-hv .tc-lg-dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--panel); background: var(--accent); box-shadow: var(--shadow-sm); }
.tc-lg-hv .tc-lg-dot.up { background: var(--rise); } .tc-lg-hv .tc-lg-dot.down { background: var(--fall); } .tc-lg-hv .tc-lg-dot.flat { background: var(--muted); }
.tc-lg-hv .tc-lg-tip { position: absolute; top: 6px; padding: 7px 11px; border-radius: 9px; border: 1px solid var(--border-strong);
  background: var(--panel); box-shadow: var(--shadow-md); white-space: nowrap; }
.tc-lg-hv .tc-lg-tt, .tc-lg-hv .tc-lg-tk { font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-hv .tc-lg-tv { margin-top: 1px; font-size: 17px; font-weight: 680; line-height: 1.3; color: var(--text); font-variant-numeric: tabular-nums; }
.tc-lg-hv .tc-lg-tv.up { color: var(--rise); } .tc-lg-hv .tc-lg-tv.down { color: var(--fall); } .tc-lg-hv .tc-lg-tv.acc { color: var(--accent); }
.tc-lg-xlab { position: relative; height: 18px; margin-top: 4px; }
.tc-lg-xlab span { position: absolute; top: 0; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tc-lg-marks { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--muted); }
.tc-lg-key { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.tc-lg-key .tc-lg-sw { display: inline-block; width: 16px; border-top: 2px solid var(--accent); vertical-align: middle; margin-right: 6px; }
.tc-lg-key .tc-lg-sw.dash { border-top: 2px dashed var(--faint); }
.tc-lg-costs { margin-top: 12px; padding: 10px 14px; border-radius: 9px; border: 1px solid var(--border); background: var(--panel-2); font-size: 12.5px; line-height: 1.8; color: var(--text-2); }
.tc-lg-costs b { color: var(--text); font-variant-numeric: tabular-nums; } .tc-lg-costs b.down { color: var(--fall); }
.tc-lg-costs span { font-size: 11.5px; color: var(--faint); }

/* 美股日内: one path per row */
.tc-lg-list { margin-top: 4px; }
.tc-lg-tr { display: grid; grid-template-columns: 60px 50px 40px minmax(0, 1.3fr) minmax(0, 1.7fr) 78px; gap: 4px 12px; align-items: baseline;
  padding: 9px 4px; border-bottom: 1px solid var(--border); font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-lg-tr:last-child { border-bottom: 0; }
.tc-lg-tr.tc-lg-hd { padding: 0 4px 6px; font-size: 11.5px; color: var(--faint); }
.tc-lg-tr .tc-lg-tk { font-weight: 660; color: var(--text); }
.tc-lg-tr .tc-lg-su { font-size: 12.5px; color: var(--muted); }
.tc-lg-tr .tc-lg-zn, .tc-lg-tr .tc-lg-stat { min-width: 0; color: var(--text-2); }
.tc-lg-tr .tc-lg-zn b { font-weight: 620; color: var(--text); }
.tc-lg-tr .tc-lg-zn i, .tc-lg-tr .tc-lg-stat i { display: block; margin-top: 2px; font-style: normal; font-size: 12px; color: var(--faint); }
.tc-lg-tr .tc-lg-stat i .up { color: var(--rise); } .tc-lg-tr .tc-lg-stat i .down { color: var(--fall); }
.tc-lg-tr .tc-lg-rr { text-align: right; font-weight: 660; color: var(--text); }
.tc-lg-tr .tc-lg-rr.up { color: var(--rise); } .tc-lg-tr .tc-lg-rr.down { color: var(--fall); }
.tc-lg-tr .tc-lg-rr em { display: block; font-style: normal; font-weight: 400; font-size: 10.5px; color: var(--faint); }
.tc-lg-tr[data-st="notouch"] > *, .tc-lg-tr[data-st="blocked"] > *, .tc-lg-tr[data-st="other"] > * { opacity: 0.72; }
.tc-lg-tr[data-st="open"] { box-shadow: inset 2px 0 0 var(--warn); padding-left: 10px; }
.tc-lg-lad { position: relative; display: block; max-width: 240px; height: 6px; margin-top: 7px; border-radius: 3px; background: var(--hover); }
.tc-lg-lad i { position: absolute; top: 0; bottom: 0; }
.tc-lg-lad .tc-lg-lrisk { background: color-mix(in srgb, var(--fall) 32%, transparent); border-radius: 3px 0 0 3px; }
.tc-lg-lad .tc-lg-lgain { background: color-mix(in srgb, var(--rise) 32%, transparent); }
.tc-lg-lad .tc-lg-lzone { min-width: 2px; background: var(--accent); opacity: 0.85; border-radius: 2px; }
.tc-lg-lad .tc-lg-lx { top: 50%; width: 9px; height: 9px; border-radius: 50%; transform: translate(-50%, -50%); border: 2px solid var(--panel); background: var(--muted); }
.tc-lg-lad .tc-lg-lx.up { background: var(--rise); } .tc-lg-lad .tc-lg-lx.down { background: var(--fall); }
.tc-lg-drop { display: grid; gap: 8px; margin-top: 10px; }
.tc-lg-drop > div { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.tc-lg-drop .tc-lg-rs { margin-right: 4px; font-size: 12.5px; color: var(--muted); }
.tc-lg-none { display: grid; margin-top: 8px; }
.tc-lg-none > div { display: grid; grid-template-columns: 56px 96px 40px minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 6px 0; border-bottom: 1px dashed var(--border); font-size: 13px; }
.tc-lg-none > div:last-child { border-bottom: 0; }
.tc-lg-none b { color: var(--text); font-weight: 640; }
.tc-lg-none .tc-lg-pb { height: 6px; border-radius: 3px; background: var(--hover); overflow: hidden; }
.tc-lg-none .tc-lg-pb i { display: block; height: 100%; border-radius: 3px; background: var(--accent); opacity: 0.7; }
.tc-lg-none .tc-lg-pp { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }
.tc-lg-none .tc-lg-nm { color: var(--text-2); min-width: 0; }

/* 美股交易记录: grouped stats + day rows */
.tc-lg-gt { font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-lg-gt .tc-lg-hd, .tc-lg-gt .tc-lg-rw { display: grid; grid-template-columns: 1.3fr 0.6fr 0.7fr 0.8fr 0.9fr 1.7fr; gap: 8px; align-items: center; padding: 6px 4px; border-bottom: 1px solid var(--border); }
.tc-lg-gt .tc-lg-hd { font-size: 11.5px; color: var(--faint); }
.tc-lg-gt .tc-lg-hd > span:not(:first-child), .tc-lg-gt .tc-lg-rw > span:not(:first-child) { text-align: right; }
.tc-lg-gt .tc-lg-gh { padding: 12px 4px 4px; font-size: 12px; font-weight: 640; color: var(--text); }
.tc-lg-gt .tc-lg-nm { color: var(--text); }
.tc-lg-gt .up { color: var(--rise); } .tc-lg-gt .down { color: var(--fall); }
.tc-lg-gt .tc-lg-gsum { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.tc-lg-gt .tc-lg-gsum b { min-width: 64px; font-weight: 650; }
.tc-lg-gt .tc-lg-db { position: relative; flex: 1; max-width: 140px; height: 6px; border-radius: 3px; background: var(--hover); }
.tc-lg-gt .tc-lg-db::before { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; width: 1px; background: var(--border-strong); }
.tc-lg-gt .tc-lg-db i { position: absolute; top: 0; bottom: 0; border-radius: 3px; background: var(--muted); }
.tc-lg-gt .tc-lg-db i.up { background: var(--rise); } .tc-lg-gt .tc-lg-db i.down { background: var(--fall); }
.tc-lg-days { margin-top: 4px; font-size: 13px; font-variant-numeric: tabular-nums; }
.tc-lg-days > .tc-lg-hd, .tc-lg-days > .tc-lg-rw { display: grid; grid-template-columns: 1.5fr 0.7fr 0.7fr 0.7fr 0.8fr 0.8fr 0.9fr 0.9fr; gap: 8px; padding: 7px 10px; }
.tc-lg-days > .tc-lg-hd { font-size: 11.5px; color: var(--faint); border-bottom: 1px solid var(--border); }
.tc-lg-days > .tc-lg-hd > span:not(:first-child), .tc-lg-days > .tc-lg-rw > span:not(:first-child) { text-align: right; }
.tc-lg-days > .tc-lg-rw { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--border); color: var(--text); font: inherit; font-variant-numeric: tabular-nums; text-align: left; cursor: pointer; }
.tc-lg-days > .tc-lg-rw:hover, .tc-lg-days > .tc-lg-rw.on { background: var(--panel-2); }
.tc-lg-days > .tc-lg-rw .up { color: var(--rise); } .tc-lg-days > .tc-lg-rw .down { color: var(--fall); }
.tc-lg-days .tc-lg-dt { color: var(--text-2); white-space: nowrap; }
/* row disclosure mark, printed as the site does: ▸ folded, ▾ open */
.tc-lg .tc-lg-car { display: inline-block; width: 1em; margin: 0 2px 0 4px; font-style: normal; font-size: 12px; line-height: 1; color: var(--muted); text-align: center; }
.tc-lg [aria-expanded="true"] .tc-lg-car { color: var(--accent); }
.tc-lg-detail { padding: 4px 12px 10px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.tc-lg-dsum { padding: 6px 4px 2px; font-size: 12px; color: var(--muted); }

/* ledger tables */
.tc-lg-tbl { width: 100%; min-width: 660px; font-size: 13px; }
.tc-lg-tbl.tc-lg-wide { min-width: 760px; }  /* fits the 1400px reading column; narrower screens scroll inside .table-wrap */
.tc-lg-tbl th, .tc-lg-legtbl th { position: static; padding: 0 12px 8px 0; background: transparent; font-size: 11.5px; font-weight: 500; color: var(--faint); text-transform: none; letter-spacing: 0; text-align: left; }
.tc-lg-tbl td { padding: 9px 12px 9px 0; color: var(--text-2); vertical-align: middle; }
.tc-lg-tbl th:first-child, .tc-lg-tbl td:first-child, .tc-lg-legtbl th:first-child, .tc-lg-legtbl td:first-child { padding-left: 4px; }
.tc-lg-tbl th:last-child, .tc-lg-tbl td:last-child, .tc-lg-legtbl th:last-child, .tc-lg-legtbl td:last-child { padding-right: 4px; }
.tc-lg-tbl th.num, .tc-lg-tbl td.num, .tc-lg-legtbl th.num, .tc-lg-legtbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tc-lg-tbl td.num { color: var(--text); }
.tc-lg-tbl td.num.faint { color: var(--faint); }
.tc-lg-tbl td.tc-lg-when, .tc-lg-legtbl td.tc-lg-when { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-tbl td.tc-lg-r { font-weight: 660; font-size: 13.5px; }
.tc-lg-tbl td.up, .tc-lg-legtbl td.up, .tc-lg-tbl .small.up { color: var(--rise); }
.tc-lg-tbl td.down, .tc-lg-legtbl td.down, .tc-lg-tbl .small.down { color: var(--fall); }
.tc-lg-tbl td.tc-lg-nm { white-space: normal; min-width: 150px; max-width: 210px; line-height: 1.5; color: var(--text); }
.tc-lg-tbl td.tc-lg-way { white-space: normal; min-width: 130px; line-height: 1.6; }
.tc-lg-tbl td.tc-lg-why { white-space: normal; min-width: 150px; max-width: 230px; line-height: 1.55; color: var(--text); }
.tc-lg-tbl td.tc-lg-why.live { color: var(--accent); } .tc-lg-tbl td.tc-lg-why.faint { color: var(--faint); }
.tc-lg-tbl td.tc-lg-ex div { line-height: 1.6; white-space: nowrap; }
.tc-lg-tbl sup { margin-left: 2px; color: var(--faint); font-size: 10px; }
.tc-lg-tbl tr.tc-lg-x { cursor: pointer; }
.tc-lg-tbl tr.tc-lg-x:hover > td { background: var(--accent-soft); }
.tc-lg-tbl tr.on > td { background: var(--panel-2); }
.tc-lg-tbl tr.dim > td { color: var(--faint); }
.tc-lg-tbl tr.tc-lg-legs > td { padding: 10px 14px 12px; background: var(--panel-2); white-space: normal; }
.tc-lg-tbl tr.tc-lg-legs .tc-lg-prose { margin-top: 0; }
.tc-lg-tbl tr.tc-lg-lock > td { padding: 9px 10px; background: var(--panel-2); color: var(--muted); font-size: 12.5px; border-bottom: 1px dashed var(--border-strong); }
.tc-lg-tbl tr.tc-lg-lock b { color: var(--text); }
.tc-lg-legtbl { width: 100%; min-width: 560px; font-size: 12px; }
.tc-lg-legtbl td { padding: 5px 10px 5px 0; color: var(--text-2); }
.tc-lg-legtbl td.num { color: var(--text); }
.tc-lg-rest { border: 0; border-radius: 0; padding: 0; margin: 0; background: none; }
.tc-lg-rest > summary { list-style: none; cursor: pointer; padding: 8px 2px 2px; font-size: 12.5px; color: var(--faint); }
.tc-lg-rest > summary::-webkit-details-marker { display: none; }
.tc-lg-rest > summary::before { content: "▸"; display: inline-block; width: 1em; transition: transform .15s; }
.tc-lg-rest[open] > summary::before { transform: rotate(90deg); }
.tc-lg-rest > summary:hover { color: var(--accent); }
.tc-lg-more { display: block; margin: 12px auto 0; padding: 5px 16px; border-radius: 8px; border: 1px solid var(--border-strong); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.tc-lg-more:hover { border-color: var(--accent); color: var(--accent); }
.tc-lg-toggle { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 12px; padding: 5px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--panel); color: var(--text-2); font: inherit; font-size: 12.5px; cursor: pointer; }
.tc-lg-toggle i { position: relative; width: 26px; height: 14px; border-radius: 14px; background: var(--border-strong); flex: none; transition: background 0.2s var(--ease); }
.tc-lg-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 10px; height: 10px; border-radius: 50%; background: #fff; transition: left 0.2s var(--ease); }
.tc-lg-toggle.on { border-color: var(--accent-ring); color: var(--text); }
.tc-lg-toggle.on i { background: var(--accent); }
.tc-lg-toggle.on i::after { left: 14px; }

/* 波段: account, verdict */
.tc-lg-acct { display: grid; gap: 4px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.tc-lg-acct > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; font-variant-numeric: tabular-nums; }
.tc-lg-acct .tc-lg-k { min-width: 128px; font-size: 12px; color: var(--faint); }
.tc-lg-acct b { font-size: 17px; font-weight: 650; color: var(--text); }
.tc-lg-acct .up { color: var(--rise); } .tc-lg-acct .down { color: var(--fall); }
.tc-lg-acct .tc-lg-d { font-size: 11.5px; color: var(--faint); }
.tc-lg-judge { margin-top: 16px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel-2); }
.tc-lg-judge .tc-lg-hd { font-size: 12.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tc-lg-judge .tc-lg-hd span { color: var(--faint); }
.tc-lg-judge .tc-lg-pg { height: 5px; margin: 8px 0 6px; border-radius: 5px; background: var(--hover); overflow: hidden; }
.tc-lg-judge .tc-lg-pg i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.tc-lg-judge .tc-lg-ck { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 4px 0; font-size: 13px; }
.tc-lg-judge .tc-lg-ck .tc-lg-m { width: 14px; font-weight: 700; color: var(--faint); }
.tc-lg-judge .tc-lg-ck[data-s="pass"] .tc-lg-m { color: var(--rise); } .tc-lg-judge .tc-lg-ck[data-s="fail"] .tc-lg-m { color: var(--fall); }
.tc-lg-judge .tc-lg-ck .tc-lg-l { color: var(--text); }
.tc-lg-judge .tc-lg-ck .tc-lg-d { color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-judge .tc-lg-ck .tc-lg-tag { margin-left: 0; }
.tc-lg-judge .tc-lg-ft { margin-top: 8px; font-size: 11.5px; line-height: 1.75; color: var(--faint); }

/* 牛熊: recent score reads */
.tc-lg-reads { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 10px; box-shadow: var(--shadow-sm); }
.tc-lg-reads .tc-lg-hd { font-size: 12px; color: var(--muted); }
.tc-lg-reads .tc-lg-bars { position: relative; display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 20px; }
.tc-lg-reads .tc-lg-thr { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--muted); z-index: 1; pointer-events: none; }
.tc-lg-reads .tc-lg-b { flex: 1; display: flex; justify-content: center; align-items: flex-end; height: 100%; min-width: 0; }
.tc-lg-reads .tc-lg-b i { position: relative; width: 100%; max-width: 24px; border-radius: 3px 3px 0 0; background: var(--muted); opacity: 0.75; }
.tc-lg-reads .tc-lg-b.up i { background: var(--rise); } .tc-lg-reads .tc-lg-b.down i { background: var(--fall); }
.tc-lg-reads .tc-lg-b em { position: absolute; left: 50%; top: -15px; transform: translateX(-50%); font-style: normal; font-size: 10.5px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.tc-lg-reads .tc-lg-ax { display: flex; justify-content: space-between; margin-top: 4px; font-size: 10.5px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-reads .tc-lg-rv { margin-top: 6px; font-size: 11.5px; line-height: 1.6; color: var(--faint); }

/* 小时盯盘报告: the article nav (kit artNav) over the reader */
.tc-lg-feed { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.tc-lg-reader { min-width: 0; padding: 20px 26px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: var(--shadow-sm); }
.tc-lg-reader > .tc-lg-meta { font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.tc-lg-reader > h2 { margin: 6px 0 10px; font-size: 20px; font-weight: 660; line-height: 1.45; color: var(--text); overflow-wrap: anywhere; }
.tc-lg-reader > .btn { margin: 4px 0 6px; }
.tc-lg-rtags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.tc-lg-rtags .tc-lg-tag { margin-left: 0; font-size: 12px; line-height: 22px; padding: 0 9px; }
.tc-lg-stance { display: inline-flex; align-items: baseline; gap: 4px; padding: 1px 11px; border-radius: 999px; background: var(--hover); color: var(--text-2); font-size: 13px; font-weight: 680; line-height: 22px; }
.tc-lg-stance.blk { color: var(--faint); font-weight: 500; }
.tc-lg-stance small { font-size: 11px; font-weight: 500; opacity: 0.85; }
.tc-lg-rbody { display: flex; flex-direction: column; }
.tc-lg-rsec { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.tc-lg-rsec:last-child { border-bottom: 0; }
.tc-lg-rsec .tc-lg-rtag { justify-self: start; align-self: start; margin-top: 3px; padding: 0 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: 12px; font-weight: 650; line-height: 20px; white-space: nowrap; }
.tc-lg-rsec .prose { max-width: none; font-size: 14px; line-height: 1.85; }
.tc-lg-rsec .prose p { margin: 0 0 0.4em; }
.tc-lg-rsec .prose > :last-child { margin-bottom: 0; }
.tc-lg-rsec.hot { margin: 6px 0; padding: 10px 12px; border-radius: 10px; border-bottom-color: transparent; background: var(--panel-2); }

@media (max-width: 720px) {
  .tc-lg .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-lg-now { padding: 14px; }
  .tc-lg-now .tc-lg-rt { margin-left: 0; flex-basis: 100%; }
  .tc-lg-levels { gap: 10px 20px; }
  .tc-lg-lv .tc-lg-v { font-size: 15.5px; }
  .tc-lg-act .tc-lg-nt { padding-left: 0; }
  .tc-lg-chart { padding-left: 40px; }
  .tc-lg-ylab { width: 36px; }
  .tc-lg-xlab .tc-lg-x1, .tc-lg-xlab .tc-lg-x3 { display: none; }
  .tc-lg-tr { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "tk sd su rr" "zn zn zn zn" "st st st st"; }
  .tc-lg-tr.tc-lg-hd { display: none; }
  .tc-lg-tr .tc-lg-tk { grid-area: tk; } .tc-lg-tr > .tc-lg-side { grid-area: sd; } .tc-lg-tr .tc-lg-su { grid-area: su; } .tc-lg-tr .tc-lg-rr { grid-area: rr; }
  .tc-lg-tr .tc-lg-zn { grid-area: zn; } .tc-lg-tr .tc-lg-stat { grid-area: st; }
  .tc-lg-none > div { grid-template-columns: 50px minmax(0, 1fr) 40px; }
  .tc-lg-none .tc-lg-nm { grid-column: 1 / -1; }
  .tc-lg-gt .tc-lg-hd, .tc-lg-gt .tc-lg-rw { grid-template-columns: 1.2fr 0.5fr 0.7fr 0.9fr 1fr; font-size: 12px; }
  .tc-lg-gt .tc-lg-hd > span:nth-child(4), .tc-lg-gt .tc-lg-rw > span:nth-child(4), .tc-lg-gt .tc-lg-db { display: none; }
  .tc-lg-gt .tc-lg-gsum b { min-width: 0; }
  .tc-lg-days > .tc-lg-hd, .tc-lg-days > .tc-lg-rw { grid-template-columns: 1.5fr 0.6fr 0.6fr 1fr 1fr; padding: 7px 6px; font-size: 12.5px; }
  .tc-lg-days > .tc-lg-hd > span:nth-child(n+4):nth-child(-n+6), .tc-lg-days > .tc-lg-rw > span:nth-child(n+4):nth-child(-n+6) { display: none; }
  .tc-lg-detail { padding: 4px 6px 10px; }
  .tc-lg-acct .tc-lg-k { min-width: 0; flex-basis: 100%; }
  .tc-lg-reader { padding: 16px; }
  .tc-lg-rsec { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .tc-lg-tracks { grid-template-columns: minmax(0, 1fr); }
}
