/* Chart hierarchy: restrained blue, violet and gold identify metrics, not sentiment. */
#stockDetail.chart-workspace .cw-insights{gap:12px;margin-top:24px}
#stockDetail.chart-workspace .cw-insight{--metric:#9fc5ee;background:linear-gradient(125deg,#233447,#1b2836);border:1px solid #496078;border-top:2px solid var(--metric);border-radius:12px;padding:17px 18px;box-shadow:0 5px 16px #00000015}
#stockDetail.chart-workspace .cw-insight:nth-child(2){--metric:#c4b4e7;background:linear-gradient(125deg,#302d42,#242635);border-color:#57516d;border-top-color:var(--metric)}
#stockDetail.chart-workspace .cw-insight:nth-child(3){--metric:#ddc48f;background:linear-gradient(125deg,#363327,#292b2b);border-color:#625b47;border-top-color:var(--metric)}
#stockDetail.chart-workspace .cw-insight small{color:var(--metric);font-size:12px;line-height:1.5;font-weight:500}
#stockDetail.chart-workspace .cw-insight strong{color:#edf1f5;font-size:16px;font-weight:500;line-height:1.6;margin-top:9px;font-variant-numeric:tabular-nums}
#stockDetail.chart-workspace .cw-sidebar{background:#192530;border-left:1px solid #415364}
#stockDetail.chart-workspace .cw-sidebar h3{font-size:18px;font-weight:600;color:#edf2f6}
#stockDetail.chart-workspace .cw-subtitle{color:#b4c4d2;font-size:12px;line-height:1.7}
#stockDetail.chart-workspace .cw-news-search{background:#111e29;border-color:#52667a;color:#edf2f6;font-size:13px}
#stockDetail.chart-workspace .cw-news-search::placeholder{color:#a6b9ca}
#stockDetail.chart-workspace .cw-filter{gap:6px;flex-wrap:wrap}
#stockDetail.chart-workspace .cw-filter button{background:#23313f;border-color:#4a5c6c;color:#c6d3df;min-height:36px}
#stockDetail.chart-workspace .cw-filter button[aria-pressed=true]{background:#324e60;border-color:#8bbbcf;color:#edf7fa;box-shadow:inset 0 -2px #8bbbcf}
#stockDetail.chart-workspace .cw-news-item{background:#1f2d3a;border:1px solid #3b4e60;border-radius:11px;margin:0 0 10px;overflow:hidden;transition:background .18s,border-color .18s}
#stockDetail.chart-workspace .cw-news-item:hover{background:#263847;border-color:#6b879a}
#stockDetail.chart-workspace .cw-news-item.is-selected{background:#263d4a;border-color:#96c5d7;box-shadow:inset 3px 0 #96c5d7}
#stockDetail.chart-workspace .cw-news-toggle{background:transparent;border:0;padding:14px;width:100%;border-radius:0}
#stockDetail.chart-workspace .cw-news-toggle strong{color:#e4ecf2;font-size:14px;font-weight:500;line-height:1.75;margin:10px 0}
#stockDetail.chart-workspace .cw-news-meta time{color:#b4c5d4;font-size:11px}
#stockDetail.chart-workspace .cw-open-cue{color:#a9d3e3;font-size:12px}
#stockDetail.chart-workspace .cw-tone{font-size:11px;padding:3px 7px;border-radius:5px;background:#334452;color:#d0dce5}
#stockDetail.chart-workspace .cw-tone[data-tone=positive]{background:#284c43;color:#abe0cb}
#stockDetail.chart-workspace .cw-tone[data-tone=negative]{background:#51333f;color:#f0bdca}
#stockDetail.chart-workspace .cw-tone[data-tone=mixed]{background:#4c4532;color:#e8d59e}
#stockDetail.chart-workspace .cw-news-content{padding:0 14px 14px;color:#cbd8e2}
#stockDetail.chart-workspace .cw-news-content p{color:#cbd8e2;line-height:1.8}
#stockDetail.chart-workspace .cw-news-content .cw-source-note{color:#a8bac8;font-size:11px}
@media(max-width:760px){#stockDetail.chart-workspace .cw-insights{gap:8px}#stockDetail.chart-workspace .cw-insight{padding:12px 10px}#stockDetail.chart-workspace .cw-insight small{font-size:11px}#stockDetail.chart-workspace .cw-insight strong{font-size:14px}#stockDetail.chart-workspace .cw-sidebar{border-left:0;border-top:1px solid #415364}}
@media(prefers-reduced-motion:reduce){#stockDetail.chart-workspace .cw-news-item{transition:none}}

#stockDetail.chart-workspace .cw-filter button[data-filter=positive],#stockDetail.chart-workspace .cw-tone[data-tone=positive]{background:#284c43;color:#abe0cb;border:1px solid #547c6d}
#stockDetail.chart-workspace .cw-filter button[data-filter=positive][aria-pressed=true]{border-color:#abe0cb;box-shadow:inset 0 -2px #abe0cb;color:#abe0cb}
#stockDetail.chart-workspace .cw-filter button[data-filter=negative],#stockDetail.chart-workspace .cw-tone[data-tone=negative]{background:#51333f;color:#f0bdca;border:1px solid #865665}
#stockDetail.chart-workspace .cw-filter button[data-filter=negative][aria-pressed=true]{border-color:#f0bdca;box-shadow:inset 0 -2px #f0bdca;color:#f0bdca}
#stockDetail.chart-workspace .cw-filter button[data-filter=mixed],#stockDetail.chart-workspace .cw-tone[data-tone=mixed]{background:#4c4532;color:#e8d59e;border:1px solid #85754f}
#stockDetail.chart-workspace .cw-filter button[data-filter=mixed][aria-pressed=true]{border-color:#e8d59e;box-shadow:inset 0 -2px #e8d59e;color:#e8d59e}
#stockDetail.chart-workspace .cw-filter button[data-filter=pending],#stockDetail.chart-workspace .cw-tone[data-tone=pending]{background:#35414c;color:#d0d8df;border:1px solid #65727d}
#stockDetail.chart-workspace .cw-filter button[data-filter=pending][aria-pressed=true]{border-color:#d0d8df;box-shadow:inset 0 -2px #d0d8df;color:#d0d8df}
#stockDetail.chart-workspace .cw-insight-detail{display:block;color:#bbc6d0;font-size:11px;line-height:1.6;margin-top:6px}#stockDetail.chart-workspace .cw-history-source{display:inline-block;color:#b8cbd9;font-size:11px;margin-top:6px;text-decoration:underline;text-underline-offset:3px}

#stockDetail.chart-workspace .cw-history-info{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:24px 0 0;padding:14px 16px;border:1px solid #425364;border-radius:10px;background:#1c2935}
#stockDetail.chart-workspace .cw-history-info[hidden]{display:none}
#stockDetail.chart-workspace .cw-history-info strong{display:block;color:#dbe6ee;font-size:12px;font-weight:500;margin-bottom:5px}
#stockDetail.chart-workspace .cw-history-info span{color:#aebfce;font-size:12px;line-height:1.7}
#stockDetail.chart-workspace .cw-history-info .cw-history-source{white-space:nowrap;margin:0}
#stockDetail.chart-workspace .cw-history-info:not([hidden])+.cw-insights{margin-top:12px}
#stockDetail.chart-workspace .cw-news-toggle{padding:18px 16px}
#stockDetail.chart-workspace .cw-news-toggle strong{margin:14px 0 16px;line-height:1.8}
#stockDetail.chart-workspace .cw-news-content{padding:6px 16px 20px}
#stockDetail.chart-workspace .cw-preview-label{display:block;color:#a9c2d2;font-size:11px;letter-spacing:.03em;margin:0 0 12px}
#stockDetail.chart-workspace .cw-news-content .cw-preview-text{margin:0;line-height:1.95;font-size:13px;color:#d1dee7}
#stockDetail.chart-workspace .cw-news-content .cw-impact-reason{margin:22px 0 0;padding:15px 0 0;border:0;border-top:1px solid #6b859833;background:none}
#stockDetail.chart-workspace .cw-impact-reason small{color:#a9c2d2;font-size:11px}
#stockDetail.chart-workspace .cw-impact-reason p{margin:9px 0 0;font-size:12px}
#stockDetail.chart-workspace .cw-news-footnote{margin-top:22px;padding-top:16px;border-top:1px solid #6b859833}
#stockDetail.chart-workspace .cw-news-footnote .cw-source-note{margin:0 0 12px;font-size:11px;line-height:1.8;color:#a6bac9}
#stockDetail.chart-workspace .cw-news-footnote .cw-anchor-note{font-size:11px;color:#a6bac9}
#stockDetail.chart-workspace .cw-news-actions{margin-top:18px}
#stockDetail.chart-workspace .cw-news-actions button{min-height:38px;padding:8px 13px;background:#203340;border-color:#567080;color:#cbe3ec}
@media(max-width:760px){#stockDetail.chart-workspace .cw-history-info{flex-wrap:wrap;gap:8px}}

/* Independent chart and news panes: news growth must not resize the workspace. */
#stockDetail.chart-workspace[open]{display:flex;flex-direction:column;overflow:hidden}
#stockDetail.chart-workspace .cw-head{flex:0 0 auto;position:relative;top:auto}
#stockDetail.chart-workspace .cw-layout{flex:1 1 0;min-height:0;overflow:hidden;align-items:stretch}
#stockDetail.chart-workspace .cw-main{min-height:0;overflow:auto;overscroll-behavior:contain;display:flex;flex-direction:column}
#stockDetail.chart-workspace .cw-main>*{flex-shrink:0}
#stockDetail.chart-workspace .cw-chart{flex:1 1 0;height:auto!important;min-height:180px!important}
#stockDetail.chart-workspace .cw-sidebar{height:auto!important;max-height:none!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;position:relative;top:auto}
#stockDetail.chart-workspace .cw-newslist{max-height:none!important;height:auto!important;overflow:visible!important;flex-shrink:0}
#stockDetail.chart-workspace .cw-legal{flex:0 0 auto;max-height:44px;overflow:auto;font-size:9px;padding:6px 24px;overscroll-behavior:contain}
#stockDetail.chart-workspace .cw-group button[data-period][aria-pressed=true]{background:#294b45;border-color:#79b9a6;color:#d3f0e4;box-shadow:inset 0 -2px #79b9a6}
@media(max-width:760px){#stockDetail.chart-workspace .cw-layout{grid-template-columns:1fr;grid-template-rows:minmax(300px,1.2fr) minmax(180px,1fr);overflow:auto}#stockDetail.chart-workspace .cw-main{padding:12px}#stockDetail.chart-workspace .cw-insights{margin-top:12px}#stockDetail.chart-workspace .cw-legal{max-height:32px}}
@media(min-width:761px){#stockDetail.chart-workspace .cw-layout{grid-template-rows:minmax(0,1fr)}#stockDetail.chart-workspace .cw-sidebar{height:100%!important;max-height:100%!important;box-sizing:border-box;align-self:stretch}}

#stockDetail.chart-workspace .cw-sidebar{display:flex;flex-direction:column;overflow:hidden!important}
#stockDetail.chart-workspace .cw-sidebar>*{flex-shrink:0}
#stockDetail.chart-workspace .cw-news-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable;padding-right:3px}
#stockDetail.chart-workspace .cw-insight:nth-child(3){--metric:#a4cbd2;background:linear-gradient(125deg,#233b43,#202e39);border-color:#486572;border-top-color:var(--metric)}
#stockDetail.chart-workspace .cw-metric-head{display:flex;align-items:center;justify-content:space-between;gap:5px}
#stockDetail.chart-workspace .cw-metric-nav{display:flex;align-items:center;gap:3px;flex-shrink:0;color:#a8b9c8;font-size:10px}
#stockDetail.chart-workspace .cw-metric-nav button{padding:0;width:26px;height:28px;min-height:28px;background:#ffffff08;border-color:#ffffff18;font-size:20px;color:#d4e2eb;line-height:1}
#stockDetail.chart-workspace .cw-insight-detail{min-height:36px}
#stockDetail.chart-workspace .cw-legend{display:flex;gap:10px;align-items:center;flex-wrap:wrap;color:#aebfce;font-size:11px;line-height:1.6}
#stockDetail.chart-workspace .cw-legend-label{color:#9bafbf;margin-left:4px}
#stockDetail.chart-workspace .cw-legend-chip{display:inline-flex;align-items:center;gap:5px}
#stockDetail.chart-workspace .cw-legend-chip:before{content:'';width:12px;height:2px;background:var(--line-color);border-radius:2px}
@media(max-width:1000px){#stockDetail.chart-workspace .cw-metric-head{align-items:flex-start;flex-direction:column}#stockDetail.chart-workspace .cw-insight{padding:12px}}
