/* Stored market history and private saved comparisons share the existing dashboard. */
.research-workspace{max-width:1440px;margin:0 auto;min-width:0}
.research-workspace [hidden]{display:none!important}
.research-controls{display:flex;gap:16px;align-items:flex-end;flex-wrap:wrap;margin:0 0 18px;padding:20px;min-width:0}
.research-field{display:flex;flex:1 1 260px;flex-direction:column;gap:8px;min-width:0}
.research-field label{font-size:15px;color:#becacd;line-height:1.5}
.research-workspace .research-field select{appearance:auto;max-width:100%;width:100%;min-width:0;min-height:47px;padding:11px 12px;background:#101516;border:1px solid #374447;border-radius:5px;color:#e0e9ea;font-family:inherit;font-size:16px;line-height:1.4}
.research-window{flex:0 1 220px}
.dashboard-theme .app-content .research-workspace form button{min-height:47px;font-size:15px!important;padding:11px 16px!important}
.research-status{font-size:15px;line-height:1.7;color:#aab9b5;padding:13px 16px;margin:0 0 18px;border:1px solid #30413a;background:#151d19;border-radius:5px;overflow-wrap:anywhere}
.research-status.is-stale{border-color:#5e4831;background:#211b14;color:#dbc098}
.research-status.is-unavailable{border-color:#444a4d;background:#1a1e20;color:#b8c3c8}
.dashboard-theme .app-content .research-workspace .research-error{padding:13px 16px;border:1px solid #714947;border-radius:5px;background:#2a1b1b;color:#edc4c2;margin:0 0 18px;font-size:15px;overflow-wrap:anywhere}
.research-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:20px}
.research-stats article{display:flex;flex-direction:column;gap:10px;border:1px solid #2e373a;border-radius:7px;background:#15191a;padding:19px;min-width:0}
.research-stats article>span{font-size:14px;line-height:1.5;color:#a5b1b4}
.research-stats article>strong{font-size:24px;font-weight:500;line-height:1.3;letter-spacing:-.5px;color:#e5eeee;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.research-stats article>small{font-size:13px;line-height:1.6;color:#91a2a7}
.research-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:20px}
.research-chart-panel{padding:20px;min-width:0}
.research-panel-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:17px;flex-wrap:wrap;min-width:0}
.dashboard-theme .app-content .research-workspace .research-panel-heading h2,.dashboard-theme .app-content .research-workspace .research-panel-heading h3{font-size:19px;font-weight:500;line-height:1.4;margin:0}
.research-panel-heading>span{font-size:13px;color:#96a7ab;line-height:1.6}
.dashboard-theme .app-content .research-workspace .research-panel-heading p{font-size:15px;margin:6px 0 0;line-height:1.65}
.research-chart{position:relative;min-height:260px;width:100%;min-width:0;isolation:isolate}
.research-chart>svg{display:block;width:100%;height:260px;overflow:visible;font-family:inherit;touch-action:pan-y}
.research-chart>svg:focus-visible{outline:2px solid #e5ab62;outline-offset:4px}
.research-chart-gridline{stroke:#2c373b;stroke-width:1;stroke-dasharray:3 5}
.research-chart-axis-label{fill:#99aaae;font-size:13px}
.research-chart-line{fill:none;stroke-width:2;stroke-linejoin:round;stroke-linecap:round}
.research-chart-point{stroke:#15191a;stroke-width:2}
.research-chart-cursor{stroke:#8fa4ab;stroke-width:1;stroke-dasharray:4 4}
.research-chart-tooltip{position:absolute;top:10px;left:65px;max-width:calc(100% - 80px);padding:10px 12px;border:1px solid #4a5e65;background:#202c30;box-shadow:0 5px 20px #0005;border-radius:5px;color:#dce9ed;font-size:13px;line-height:1.7;pointer-events:none;z-index:1;overflow-wrap:anywhere}
.research-chart-tooltip strong{display:block;font-weight:500;color:#f1f6f7}
.research-chart-tooltip span{display:block}
.research-chart-legend{display:flex;gap:10px 17px;flex-wrap:wrap;margin:12px 0 0;font-size:13px;color:#acbcc1;line-height:1.5}
.research-chart-legend span{display:inline-flex;align-items:center;gap:6px}
.research-chart-legend i{display:inline-block;width:9px;height:9px;border-radius:50%;background:var(--series-color,#f3b260)}
.dashboard-theme .app-content .research-workspace .research-chart-placeholder{font-size:15px;line-height:1.8;max-width:390px;text-align:center;padding:72px 20px;margin:0 auto}
.research-table-panel{padding:0;margin:0 0 20px;overflow:hidden}
.research-table-panel summary,.workspace-history-clear summary{padding:17px 20px;cursor:pointer;font-size:16px;font-weight:500;color:#d6e3e5}
.research-table-scroll{overflow-x:auto;max-width:100%;scrollbar-width:thin;scrollbar-color:#45585e #13191c}
.dashboard-theme .app-content .research-workspace table{border-collapse:collapse;width:100%;min-width:660px;font-size:15px;margin:0;font-variant-numeric:tabular-nums}
.dashboard-theme .app-content .research-workspace th,.dashboard-theme .app-content .research-workspace td{border-top:1px solid #2c383d;padding:12px 16px;text-align:right;line-height:1.5;background:transparent;color:#c2d3d9;font-size:15px;font-weight:400}
.dashboard-theme .app-content .research-workspace th:first-child,.dashboard-theme .app-content .research-workspace td:first-child{text-align:left}
.dashboard-theme .app-content .research-workspace thead th{background:#1b2529;color:#9eafb5;font-size:14px;font-weight:500}
.dashboard-theme .app-content .research-workspace tbody th{color:#d1dfe2;font-weight:500}
.research-notes{padding:21px}
.dashboard-theme .app-content .research-workspace .research-notes h2{font-size:19px;margin:0 0 12px}
.dashboard-theme .app-content .research-workspace .research-notes p{font-size:15px;line-height:1.8;margin:9px 0;color:#a6b5ba}
.research-notes a{text-decoration:underline;text-underline-offset:3px}
.workspace-pairs{margin-bottom:26px;padding:22px}
.workspace-pair-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}
.workspace-pair{display:flex;flex-direction:column;min-width:0;gap:11px;padding:17px;background:#111718;border:1px solid #344247;border-radius:6px}
.dashboard-theme .app-content .research-workspace .workspace-pair h3{font-size:18px;margin:0;line-height:1.5;font-weight:500;overflow-wrap:anywhere}
.dashboard-theme .app-content .research-workspace .workspace-pair p{font-size:14px;margin:0;line-height:1.7;color:#a2b4bb;overflow-wrap:anywhere}
.workspace-pair-actions{display:flex;gap:9px;flex-wrap:wrap;align-items:center;margin-top:auto}
.workspace-pair-actions .defi-button{font-size:14px;min-height:44px;white-space:normal;text-align:center}
.workspace-help{font-size:14px!important;line-height:1.75!important;color:#94a6ad!important;margin:17px 0 0!important}
.dashboard-theme .app-content .research-workspace .research-empty{font-size:16px;line-height:1.8;padding:16px 0;margin:0;color:#a4b6bd}
.workspace-pair-list>.research-empty{grid-column:1/-1}
.workspace-history>.research-chart-panel{margin-bottom:18px}
.workspace-history-entry{padding:20px;margin:0 0 14px;border:1px solid #324148;background:#141c20;border-radius:7px;min-width:0}
.workspace-history-entry>.research-panel-heading{margin-bottom:12px}
.workspace-history-entry-title{display:flex;flex-direction:column;gap:5px;min-width:0}
.workspace-history-entry-title>strong{font-size:17px;font-weight:500;color:#dce9ed;line-height:1.5;overflow-wrap:anywhere}
.workspace-history-entry-title>span{font-size:13px;color:#9aafb8;line-height:1.6}
.workspace-history-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;border-top:1px solid #2f4048;padding-top:14px;margin:0}
.workspace-history-values>div{min-width:0;display:flex;flex-direction:column;gap:7px}
.workspace-history-values dt{font-size:14px;color:#9fb4bf;line-height:1.5}
.workspace-history-values dd{font-size:17px;color:#dce9ef;line-height:1.5;margin:0;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.workspace-history-values small{font-size:12px;line-height:1.6;color:#92a9b3}
.workspace-history-clear{margin:23px 0 0;padding:0;border-color:#3b4243}
.workspace-history-clear>div{padding:0 20px 20px}
.dashboard-theme .app-content .research-workspace .workspace-history-clear p{font-size:15px;line-height:1.8;margin:0 0 14px}
.workspace-confirm{padding:16px;margin-top:16px;border:1px solid #69463f;border-radius:5px;background:#261d1a}
.workspace-confirm .defi-button{margin:0 8px 8px 0}
.workspace-delete{color:#e6b2a7!important;border-color:#785144;background:#30221b}
.workspace-load-more{margin:5px 0 0}
.research-chart-scale-note{overflow-wrap:anywhere}
.research-workspace :is(a,button,input,select,summary):focus-visible{outline:2px solid #f3b260;outline-offset:4px}
.research-workspace button:disabled{opacity:.55;cursor:wait}
@media(max-width:1120px){.research-chart-grid{grid-template-columns:1fr}.research-stats article>strong{font-size:21px}.workspace-history-values{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:620px){.research-workspace .defi-page-heading{flex-direction:column;align-items:flex-start;gap:14px}.research-controls{padding:17px 15px;gap:15px}.research-field,.research-window{flex:1 1 100%}.research-controls>.defi-button{width:100%}.research-stats{grid-template-columns:1fr;gap:11px}.research-stats article{padding:16px}.research-stats article>strong{font-size:25px}.research-chart-panel{padding:17px 12px}.research-chart-tooltip{left:45px;max-width:calc(100% - 55px)}.research-chart{min-height:250px}.research-chart>svg{height:250px}.research-panel-heading{gap:8px}.research-workspace .research-panel-heading h2{font-size:18px}.research-notes{padding:18px 15px}.research-table-panel summary,.workspace-history-clear summary{padding:16px 15px}.workspace-pairs{padding:18px 15px}.workspace-pair-list{grid-template-columns:1fr}.workspace-pair{padding:15px}.workspace-pair-actions{gap:8px}.workspace-history-entry{padding:16px 14px}.workspace-history-values{grid-template-columns:1fr;gap:14px}.workspace-history-values>div{padding-bottom:12px;border-bottom:1px solid #293d48}.workspace-history-values>div:last-child{border-bottom:0;padding-bottom:0}.workspace-history-clear>div{padding:0 15px 18px}.workspace-confirm{padding:13px}.workspace-confirm .defi-button{max-width:100%;white-space:normal}.research-status{padding:12px 14px}.dashboard-theme .app-content .research-workspace .research-panel-heading p{font-size:15px}}

.defi-workspace .defi-discovery-facts>div{font-size:16px}
.defi-discovery-facts code{font:inherit;overflow-wrap:anywhere;word-break:break-word}

/* Empty collections are concise states; genuine zero observations still plot normally. */
.research-chart.is-empty{min-height:0}
.dashboard-theme .app-content .research-workspace .research-chart.is-empty .research-chart-placeholder{max-width:none;text-align:left;padding:5px 0 2px;font-size:16px;line-height:1.8}
.research-stats.is-empty article{padding:13px 16px;gap:6px}
.research-stats.is-empty article>strong{font-size:20px}
.research-collection-notice{display:flex;flex-direction:column;gap:6px;padding:14px 17px;margin:0 0 18px;background:#1b2422;border:1px solid #3a4d47;border-radius:6px;color:#b5c7bf;font-size:15px;line-height:1.75;overflow-wrap:anywhere}
.research-collection-notice strong{font-size:16px;font-weight:500;color:#dce5df}
.research-collection-notice a{align-self:flex-start;display:inline-flex;align-items:center;min-height:44px;color:#e8c18e!important;text-decoration:underline;text-underline-offset:3px}
@media(max-width:620px){.research-collection-notice{padding:13px 15px}.research-chart.is-empty{min-height:0}}
