
/* Local extension: a research watchlist / ledger / formula inspector.
   Shared screenshot cues, not an assertion of undocumented official TDS tokens. */
.desk{--dock-width:274px}
.desk .workspace{gap:10px}
.desk .results{display:grid;grid-template-columns:minmax(400px,1fr) 304px;grid-template-rows:minmax(300px,1fr) auto;gap:10px;overflow:hidden;align-items:stretch}
.desk #recordsPanel{grid-column:1;grid-row:1;height:auto;min-width:0;min-height:0;display:flex;flex-direction:column}
.desk #livePanel{grid-column:1;grid-row:2;min-width:0;overflow:hidden}
.desk #formulaInspector{grid-column:2;grid-row:1 / span 2;min-width:0;overflow:auto;scrollbar-width:thin;border-radius:12px;background:#fff}
.desk .sidebar .ranking-scroll{max-height:min(46dvh,410px);min-height:160px}
.desk .sidebar .ranking-table td{height:43px;padding-top:4px;padding-bottom:4px}
.desk .sidebar .ranking-table .detail-row td{height:auto}
.desk .sidebar .rank-chart-link .method-name{font-size:12px;line-height:18px}
.desk .sidebar .rank-chart-link .method-meta{display:flex;align-items:center;justify-content:space-between;gap:4px;font-size:11px;line-height:14px}
.rank-spark{width:42px;height:14px;flex:none;overflow:visible}
.rank-spark path{fill:none;stroke:#3182f6;stroke-width:1.4;stroke-linejoin:round}
.rank-spark[data-direction=up] path{stroke:#e4495a}
.desk .rank-position{width:20px}
.desk .rank-number{font-variant-numeric:tabular-nums}
.desk .records-panel>.section-heading{padding:10px 12px 5px;min-height:37px}
.desk .records-panel .section-heading h2{font-size:14px}
.desk .records-panel .section-heading p{display:none}
.record-context{display:flex;align-items:center;flex-wrap:wrap;gap:5px 8px;padding:5px 12px 9px;min-height:38px}
.context-caption{font-size:11px;color:#6b7684}
#recordContextTitle{font-size:12px;font-weight:600;color:#333d4b}
#recordContextHint{color:#6b7684;font-size:11px}
#recordContextNumbers .balls{gap:4px}
.desk #recordContextNumbers .ball{width:23px;height:23px;font-size:11px}
.desk .prize-ribbon{padding:0 10px 5px;min-height:39px}
.desk .prize-quote{flex-direction:column;justify-content:center;align-items:flex-start;gap:2px;padding:3px 8px}
.desk .prize-quote>strong{font-size:17px;line-height:20px}
.desk .prize-quote>span:first-child{font-size:11px}
.desk .record-filters{padding:6px 10px;gap:5px}
.desk .record-filters #recordMethod{max-width:none;flex:1 1 140px}
.desk .record-filters #recordSort{max-width:none;flex:1 1 130px}
.desk .record-filters #recordMatches{max-width:none}
.desk .records-table{min-width:480px;table-layout:fixed;width:100%}
.desk .records-table th.sequence-column{width:15%}
.desk .records-table th.round-column{width:13%}
.desk .records-table th.formula-column{width:29%}
.desk .records-table th.numbers-column{width:41%}
.desk .records-table th.result-column{width:15%}
.desk .records-table th[hidden]{display:none}
.desk .records-table[data-single-target=false]{min-width:555px}
.desk .records-table[data-single-target=false] th.sequence-column{width:13%}
.desk .records-table[data-single-target=false] th.formula-column{width:24%}
.desk .records-table[data-single-target=false] th.numbers-column{width:36%}
.desk .records-table[data-single-target=false] th.result-column{width:14%}
.desk .records-table th{padding:0 8px;height:30px}
.desk .records-table td{height:41px;padding:6px 8px;font-size:12px}
.desk .records-table td:nth-child(3){width:auto;min-width:0}
.desk .records-table .record-time{display:none}
.desk .records-table .record-open{font-variant-numeric:tabular-nums;min-height:26px}
.desk .records-table .balls{gap:3px}
.desk .records-table .ball{width:23px;height:23px}
.desk .record-formula-link{border:0;background:none;display:flex;align-items:center;gap:6px;max-width:100%;padding:0;font:inherit;color:#333d4b;text-align:left;cursor:pointer}
.desk .record-formula-link:hover{color:#1b64da}
.desk .record-formula-link .record-name{font-size:12px;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.desk .record-formula-link .formula-avatar{height:22px;width:22px;flex:none}
.desk .record-round-link{border:0;background:#f2f4f6;border-radius:4px;color:#4e5968;font:inherit;font-size:11px;min-height:26px;padding:2px 4px;cursor:pointer;white-space:nowrap}
.selected-record-filter{margin:0;padding:4px 10px;font-size:11px;color:#1b64da;background:#f0f6ff}
.desk .records-scroll{container-type:normal;min-height:120px}
.desk .record-footer{flex-wrap:wrap;gap:2px;padding:4px 10px;min-height:32px}
.desk .record-footer>div{margin-left:auto}
.desk .live-panel .live-scroll{max-height:95px}
.desk .live-table{min-width:490px}
.desk .live-table th:nth-child(1){width:24%}.desk .live-table th:nth-child(2){width:41%}.desk .live-table th:nth-child(3){width:17%}.desk .live-table th:nth-child(4){width:18%}
.desk .live-table td{font-size:11px;padding:3px 6px;height:32px}
.desk .live-table .ball{width:20px;height:20px}
.desk .live-activity-bar .follow-control{margin-left:auto;font-size:11px}
.inspector-heading{display:flex;align-items:center;gap:8px;padding:14px 12px 7px;min-height:65px}
.instrument-avatar{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;flex:none;border-radius:12px;background:#3182f6;color:#fff;font-size:16px;font-weight:700}
.inspector-identity{min-width:0;flex:1}
.inspector-identity h2{font-size:15px!important;letter-spacing:-.3px;line-height:22px;overflow-wrap:anywhere;margin:0}
.inspector-identity>.micro{font-size:11px;color:#6b7684}
#inspectorPin{padding:4px 6px;font-size:11px;min-height:28px;flex:none}
#inspectorPin[aria-pressed=true]{background:#e8f3ff;color:#1b64da}
.inspector-quote{display:flex;align-items:baseline;gap:7px;padding:0 12px 7px}
#inspectorRank{font-size:27px;line-height:32px;letter-spacing:-.6px;font-variant-numeric:tabular-nums;font-weight:700;color:#191f28}
.quote-movement{font-size:11px;font-variant-numeric:tabular-nums;color:#6b7684}
.quote-movement[data-direction=up]{color:#d63b50}.quote-movement[data-direction=down]{color:#2272eb}
.instrument-state{font-size:11px;color:#6b7684;margin-left:auto;white-space:nowrap}
.instrument-state[data-active=true]{color:#1b64da;background:#e8f3ff;border-radius:4px;padding:2px 5px}
.inspector-overview{padding:0 12px 10px;display:flex;gap:12px;font-size:11px;color:#6b7684}
.inspector-overview b{color:#333d4b;font-size:12px;margin-left:3px;font-weight:600}
.instrument-tabs{display:flex;align-items:center;gap:12px;padding:0 12px;border-bottom:1px solid #e5e8eb}
.instrument-tabs button{position:relative;display:inline-flex;align-items:center;gap:4px;border:0;background:transparent;color:#6b7684;font:inherit;font-size:12px;min-height:38px;padding:0;white-space:nowrap;cursor:pointer}
.instrument-tabs [aria-selected=true]{color:#191f28;font-weight:650}
.instrument-tabs [aria-selected=true]::after{content:'';position:absolute;left:0;right:0;bottom:-1px;height:2px;background:#191f28;border-radius:1px}
.note-count{font-size:11px;color:#6b7684}
#formulaInspector [role=tabpanel]{outline:none;min-width:0}
#formulaInspector [role=tabpanel][hidden]{display:none}
.desk #formulaInspector .desk-chart{padding:9px 12px 0;display:block}
.desk #formulaInspector .chart-heading{gap:4px;margin:0 0 5px}
.desk #formulaInspector #chartMethod{width:100%;font-size:12px}
.desk #formulaInspector .chart-heading #chartStamp{display:none}
.desk #formulaInspector .chart-value{display:none}
.desk #formulaInspector .chart-stage{height:177px;aspect-ratio:auto;max-height:none;margin-top:5px}
.desk #formulaInspector .chart-toolbar{margin:8px 0 3px}
.desk #formulaInspector .chart-tabs button{font-size:11px}
.desk #formulaInspector .chart-legend{font-size:11px;margin-top:4px}
.desk #formulaInspector .chart-readout{white-space:normal;line-height:16px;min-height:32px;font-size:11px;color:#4e5968}
.desk #formulaInspector #chartDescription{font-size:11px;margin:5px 0;color:#6b7684}
.desk #formulaInspector .chart-records{margin:4px 0;font-size:11px;color:#1b64da}
.inspector-metrics{display:grid;grid-template-columns:1fr 1fr;margin:6px 12px 12px;border-top:1px solid #e5e8eb;gap:0}
.inspector-metrics>div{display:flex;flex-direction:column;gap:3px;padding:9px 0;border-bottom:1px solid #f2f4f6;font-size:11px;color:#6b7684}
.inspector-metrics strong{font-size:13px;color:#333d4b;font-weight:600}
.inspector-metrics .prize-breakdown{grid-column:1/-1;display:flex;flex-direction:row;justify-content:space-between;gap:4px;padding:10px 0}
.prize-breakdown span{font-size:11px}.prize-breakdown b{display:block;color:#333d4b;font-size:12px;margin-top:3px;font-weight:600}
.formula-description{padding:14px 12px 6px;font-size:13px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;margin:0;color:#333d4b}
.instrument-facts{padding:0 12px;margin:6px 0}
.instrument-facts>div{display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid #f2f4f6;padding:7px 0;font-size:11px}
.instrument-facts dt{color:#6b7684;flex:none}.instrument-facts dd{text-align:right;margin:0;color:#333d4b;overflow-wrap:anywhere;min-width:0}
.instrument-notice{padding:8px 12px;margin:0;font-size:11px;color:#6b7684;line-height:1.6}
#inspectorAllEvidence{margin:4px 12px 12px;font-size:12px;min-height:30px}
.talk-scope{display:flex;flex-direction:column;gap:4px;padding:12px 12px 7px}
.talk-scope strong{font-size:12px;color:#333d4b}.talk-scope span{font-size:11px;color:#6b7684;line-height:16px}
#discussionForm{padding:0 12px}
.desk #discussionAuthor{min-height:27px;height:27px;width:106px;margin:3px 0 6px;padding:3px 7px;border-radius:6px;font-size:12px;background:#f9fafb}
.desk #discussionBody{min-height:82px;width:100%;resize:vertical;font-family:inherit;font-size:12px;line-height:1.6;background:#fff;border:1px solid #e5e8eb;border-radius:8px;padding:9px;color:#333d4b}
#discussionBody:focus{border-color:#3182f6;outline:2px solid #e8f3ff}
.discussion-submit{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:4px 0}
.desk #discussionSubmit{font-size:12px;min-height:30px;padding:5px 10px}
#discussionHint{font-size:11px;line-height:17px;margin:2px 0;color:#6b7684}
.discussion-message{font-size:11px;line-height:17px;color:#1b64da;margin:3px 0;overflow-wrap:anywhere}
.discussion-message[data-error=true]{color:#c42a40}
.discussion-toolbar{display:flex;align-items:center;justify-content:space-between;padding:5px 12px;border-bottom:1px solid #e5e8eb}
.desk .discussion-toolbar .button{font-size:11px;min-height:25px;padding:3px 5px}
.discussion-list{padding:0 12px}.discussion-empty{font-size:12px;color:#6b7684;line-height:1.6;margin:15px 0}
.discussion-item{padding:13px 0 9px;border-bottom:1px solid #e5e8eb;overflow-wrap:anywhere}
.discussion-meta{display:flex;gap:6px;align-items:center}
.note-avatar{display:flex;align-items:center;justify-content:center;width:26px;height:26px;background:#f2f4f6;color:#6b7684;border-radius:50%;font-weight:600;flex:none;font-size:12px}
.discussion-meta b{font-size:12px;font-weight:600;color:#4e5968}.discussion-meta time{font-size:11px;color:#6b7684;margin-left:auto}
.discussion-body{font-size:12px;line-height:1.75;white-space:pre-wrap;margin:8px 0 5px;color:#333d4b}
.note-parent{font-size:11px;line-height:1.6;color:#6b7684;margin:8px 0 5px;padding:4px 8px;border-left:2px solid #d1d6db;white-space:pre-wrap}
.note-actions{display:flex;gap:5px;justify-content:flex-end}
.desk .note-actions button{font-size:11px;min-height:26px;padding:2px 5px;border:0;background:none;border-radius:4px;color:#6b7684;cursor:pointer}
.note-actions button:hover{background:#f2f4f6;color:#1b64da}
.reply-context{display:flex;align-items:center;gap:6px;background:#f2f4f6;border-radius:5px;padding:4px 6px;margin-bottom:5px;font-size:11px;color:#4e5968}
.reply-context span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reply-context[hidden]{display:none}
.discussion-export-note{font-size:11px;color:#6b7684;padding:8px 12px;line-height:1.6;margin:0}
#discussionMore{margin:8px 12px;font-size:11px}
.desk button:focus-visible,.desk [tabindex='0']:focus-visible{outline:2px solid #3182f6;outline-offset:2px}
@media(min-width:1700px){.desk{--dock-width:302px}.desk .results{grid-template-columns:minmax(480px,1fr) 350px}.desk #formulaInspector .chart-stage{height:210px}.desk .sidebar .ranking-scroll{max-height:480px}}
@media(max-width:1230px) and (min-width:1001px){.desk{--dock-width:246px}.desk .results{grid-template-columns:minmax(0,1fr) 284px}.desk .sidebar .ranking-table th:first-child{width:54%}.desk .sidebar .ranking-table th:nth-child(2){width:17%}.desk .sidebar .ranking-table th:nth-child(3){width:22%}.rank-spark{display:none}.desk .appbar{gap:12px}.desk .quick-search{display:none}.desk .desk-nav{gap:14px}}
@media(max-width:1000px){.desk .workspace{grid-template-columns:260px minmax(0,1fr)}.desk .results{display:flex;flex-direction:column;overflow:visible}.desk #recordsPanel{height:525px;flex:none}.desk #formulaInspector{order:1;overflow:visible}.desk #livePanel{order:2}.desk #formulaInspector .chart-stage{height:200px}.desk .sidebar .ranking-scroll{max-height:330px}}
@media(max-width:820px){.desk .workspace{grid-template-columns:1fr}.desk .results{order:-1}.desk .sidebar{order:1}.desk .record-context{padding:5px 10px 9px}.desk .record-filters #recordSort{flex:1 1 160px}.desk .sidebar .ranking-scroll{max-height:330px}.desk #recordsPanel{height:550px}.desk .records-table{min-width:480px}}
@media(max-width:440px){.desk .records-panel>.section-heading{padding:7px 8px 4px}.desk #recordsPanel{height:560px}.desk .record-context{gap:5px}.desk .prize-ribbon{flex-wrap:nowrap;padding:2px 6px 5px}.desk .prize-quote,.desk .prize-quote.all{flex:1 1 0;padding:3px 5px;min-height:40px}.desk .prize-quote>strong{font-size:14px}.desk .prize-quote strong small{display:none}.desk .prize-quote>span:first-child{font-size:11px}.desk .record-filters{padding:5px 8px}.desk #recordContextNumbers .ball{width:22px;height:22px}.desk .record-filters #recordMatches{flex:1}.desk .formula-inspector{max-width:100%}}
@media(prefers-reduced-motion:reduce){.rank-changed,.quote-change{animation:none!important}}

