/* Thesis history is additive: it borrows the feed's compact controls and drawer. */
.thesis-history-trigger{display:inline-flex;min-width:0;align-items:center;gap:5px;border:1px solid var(--line);border-radius:5px;background:rgba(255,255,255,.022);color:var(--soft);padding:3px 6px;cursor:pointer;font:9px var(--mono);letter-spacing:.015em;white-space:nowrap}.thesis-history-trigger:hover{border-color:rgba(185,255,78,.45);color:var(--lime)}.thesis-history-excerpt{max-width:140px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--soft);font-family:var(--sans)}.thesis-history-dots{display:inline-flex;align-items:center;gap:2px}.thesis-history-dots i{display:block;width:4px;height:4px;border-radius:50%;background:var(--muted)}.thesis-history-dots b{color:inherit;font:inherit}.thesis-history-count{overflow:hidden;text-overflow:ellipsis}.thesis-history-market{color:var(--lime-2)}.ultra-call-row>.thesis-history-trigger{flex:none}.thesis-history{padding-top:3px}.thesis-history-title{margin:0;color:var(--cream);font:600 22px/1 var(--serif);letter-spacing:-.04em}.thesis-history-scope{margin:5px 0 13px;color:var(--muted);font-size:11px;line-height:1.4}.thesis-history-empty{margin:18px 0;color:var(--muted);font-size:12px}.thesis-history-list{display:flex;gap:0;min-width:0;overflow-x:auto;margin:0 -2px 15px;padding:3px 2px 7px;scrollbar-width:thin}.thesis-timeline-point{position:relative;display:grid;min-width:104px;gap:2px;border:0;border-bottom:1px solid var(--line);background:transparent;color:var(--muted);padding:7px 9px 9px;text-align:left;cursor:pointer}.thesis-timeline-point:first-child{border-radius:5px 0 0 5px}.thesis-timeline-point:last-child{border-radius:0 5px 5px 0}.thesis-timeline-point:hover,.thesis-timeline-point[aria-current="true"]{border-bottom-color:var(--lime);background:rgba(185,255,78,.06);color:var(--cream)}.thesis-timeline-point[aria-current="true"] .thesis-timeline-dot{border-color:var(--cream);background:var(--lime);box-shadow:0 0 0 3px rgba(185,255,78,.11)}.thesis-timeline-dot{display:block;width:7px;height:7px;margin-bottom:2px;border:1px solid var(--soft);border-radius:50%;background:var(--paper)}.thesis-timeline-date,.thesis-timeline-source,.thesis-timeline-snapshot{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.thesis-timeline-date{font-size:10px}.thesis-timeline-source,.thesis-timeline-snapshot{font:9px var(--mono)}.thesis-timeline-snapshot{color:var(--lime-2)}.thesis-history-selected{border:1px solid var(--line);border-radius:7px;background:rgba(255,255,255,.017);padding:11px}.thesis-history-detail-meta{display:flex;align-items:center;gap:6px;flex-wrap:wrap;color:var(--muted);font-size:10px}.thesis-history-author{color:var(--cream);font-size:11px}.thesis-source-badge{border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.025);padding:2px 5px;color:var(--soft);font:9px var(--mono)}.thesis-original-link{display:inline-flex;align-items:center;gap:3px;margin-left:auto;color:var(--lime-2);font-size:10px;text-decoration:none}.thesis-original-link:hover{color:var(--lime)}.thesis-original-link .ui-icon{width:13px;height:13px}.thesis-history-text{margin:9px 0 11px;color:var(--ink);font-size:13px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}.thesis-snapshot{border-top:1px solid var(--line);padding-top:9px}.thesis-snapshot-heading{display:flex;align-items:baseline;justify-content:space-between;gap:8px;color:var(--muted);font-size:9px}.thesis-snapshot-heading strong{color:var(--soft);font:10px var(--mono)}.thesis-snapshot-heading>span{overflow:hidden;text-align:right;text-overflow:ellipsis;white-space:nowrap}.thesis-snapshot-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:5px;margin:8px 0 0}.thesis-snapshot-grid>div{min-width:0;border:1px solid var(--line);border-radius:4px;background:rgba(255,255,255,.018);padding:5px}.thesis-snapshot-grid dt{overflow:hidden;color:var(--muted);font:8px var(--mono);text-overflow:ellipsis;white-space:nowrap}.thesis-snapshot-grid dd{overflow:hidden;margin:2px 0 0;color:var(--cream);font:10px var(--mono);text-overflow:ellipsis;white-space:nowrap}.thesis-snapshot-unavailable{margin:7px 0 0;color:var(--muted);font-size:10px;line-height:1.4}@media(max-width:1100px){.thesis-history-excerpt{display:none}}@media(max-width:760px){.thesis-history-list{margin-right:0}.thesis-timeline-point{min-width:96px;padding-right:7px;padding-left:7px}.thesis-history-selected{padding:9px}.thesis-original-link{margin-left:0}.ultra-call-row>.thesis-history-trigger .thesis-history-count{display:none}.ultra-call-row>.thesis-history-trigger{padding:4px 5px}}
.thesis-snapshot-heading{display:block;color:var(--muted)}
.thesis-snapshot-heading strong{display:block;color:var(--soft);font:10px var(--mono)}
.thesis-snapshot-heading>span{display:block;margin-top:3px;overflow:visible;white-space:normal;text-overflow:clip;text-align:left;overflow-wrap:anywhere;font-size:11px;line-height:1.45}
.thesis-snapshot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.thesis-snapshot-grid dt{font-size:10px}
.thesis-snapshot-grid dd{font-size:14px}

/* Connected history rail: quiet in ultra, expanded in normal and compact. */
.thesis-history-dots{gap:0;padding:4px 3px}
.thesis-mini-point{position:relative;display:flex;flex-direction:column;align-items:center;min-width:13px}
.thesis-mini-point:not(:last-of-type)::after{content:"";position:absolute;left:50%;top:3px;width:100%;height:1px;background:var(--line)}
.thesis-history-dots .thesis-mini-point i{position:relative;z-index:1;width:6px;height:6px;border:1px solid var(--soft);background:var(--paper)}
.thesis-history-dots .is-current i{border-color:var(--lime);background:var(--lime);box-shadow:0 0 0 3px var(--paper),0 0 0 4px rgba(185,255,78,.5)}
.thesis-mini-date,.thesis-mini-value{display:none}
.thesis-history-dots b{margin-left:6px;color:var(--muted)}
.call-card>.thesis-history-trigger{display:flex;flex-wrap:wrap;gap:8px 12px;width:100%;margin:10px 0 8px;padding:10px 12px;border-color:var(--line);background:linear-gradient(110deg,rgba(185,255,78,.035),transparent);text-align:left}
.call-card>.thesis-history-trigger .thesis-history-excerpt{display:none}
.call-card>.thesis-history-trigger .thesis-history-count{order:-2;font-size:10px;color:var(--soft)}
.call-card>.thesis-history-trigger .thesis-history-market{order:-1;margin-left:auto;font-size:10px}
.call-card>.thesis-history-trigger .thesis-history-dots{flex-basis:100%;padding:8px 0 0;align-items:flex-start}
.call-card>.thesis-history-trigger .thesis-mini-point{flex:1;align-items:flex-start;gap:7px;min-width:0}
.call-card>.thesis-history-trigger .thesis-mini-point::after{left:0;top:4px}
.call-card>.thesis-history-trigger .thesis-mini-point i{width:8px;height:8px;margin-bottom:5px}
.call-card>.thesis-history-trigger .thesis-mini-date{display:block;font:10px var(--sans);color:var(--soft)}
.call-card>.thesis-history-trigger .thesis-mini-value{display:block;font:9px var(--mono);color:var(--muted)}
.call-card>.thesis-history-trigger .is-current .thesis-mini-date,.call-card>.thesis-history-trigger .is-current .thesis-mini-value{color:var(--lime-2)}
.thesis-timeline-point::after{content:"";position:absolute;top:10px;left:13px;right:-10px;height:1px;background:var(--line)}
.thesis-timeline-point:last-child::after{display:none}
.thesis-timeline-dot{position:relative;z-index:1;width:9px;height:9px;margin-bottom:9px}
.thesis-timeline-point[aria-current="true"] .thesis-timeline-dot{border-color:var(--lime);box-shadow:0 0 0 3px var(--paper),0 0 0 4px rgba(185,255,78,.5)}
.thesis-expanded-rail{min-width:0;margin:12px 0;border:1px solid var(--line);border-radius:6px;background:linear-gradient(110deg,rgba(185,255,78,.035),transparent);padding:10px 12px}
.thesis-expanded-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:10px;color:var(--soft);font:10px var(--mono)}
.thesis-expanded-heading>span:last-child{color:var(--muted);font:10px var(--sans)}
.thesis-expanded-track{display:flex;overflow-x:auto;min-width:0;padding:4px 1px 7px;scrollbar-width:thin}
.thesis-expanded-track>.thesis-timeline-point{flex:1;min-width:145px;padding-bottom:10px}
.thesis-expanded-track>.thesis-timeline-point:focus-visible{outline:1px solid var(--lime);outline-offset:-1px}
