#productTrendDates{margin:0 0 16px;gap:10px;font-size:12px}
#productTrendDates>div{display:flex;gap:5px}
#productTrendDateForm{display:flex;align-items:center;flex-wrap:wrap;gap:10px;width:100%}
#productTrendDateForm [role=status]{color:#a13540}
:is(#productTrend,#thousandTrend) .trend-switches{gap:6px;margin:10px 0}
:is(#productTrend,#thousandTrend) p,:is(#productTrend,#thousandTrend) .trend-switches>span{font-size:12px;color:#617087;line-height:1.6}
:is(#productTrend,#thousandTrend) .trend-tooltip{font-size:12px;min-height:42px}
:is(#productTrend,#thousandTrend) .trend-chart{min-width:560px;max-height:300px}
:is(#productTrend,#thousandTrend) h3{margin-top:0}
#productTrendDates button:focus-visible,:is(#productTrend,#thousandTrend) button:focus-visible{outline:2px solid #2f6fed;outline-offset:2px}
/* Product trend presentation only: one chart, compact controls and on-demand help. */
:is(#productTrend,#thousandTrend){position:relative;padding:18px}
:is(#productTrend,#thousandTrend) h3{margin-bottom:12px}
:is(#productTrend,#thousandTrend) .product-trend-metrics{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;margin-bottom:10px}
:is(#productTrend,#thousandTrend) .product-trend-metrics button,:is(#productTrend,#thousandTrend) .product-trend-more>summary{white-space:nowrap;padding:7px 9px;font-size:12px}
:is(#productTrend,#thousandTrend) button[aria-pressed=true]{background:#2f6fed;color:#fff}
:is(#productTrend,#thousandTrend) .product-trend-controls{display:flex;align-items:center;gap:18px;margin-bottom:4px}
:is(#productTrend,#thousandTrend) .product-trend-segment{display:flex;gap:2px;padding:2px;border-radius:7px;background:#f0f3f8}
:is(#productTrend,#thousandTrend) .product-trend-segment button{border:0;padding:6px 11px;border-radius:5px;font-size:12px}
:is(#productTrend,#thousandTrend) .product-trend-more,:is(#productTrend,#thousandTrend) .product-trend-help{position:relative}
:is(#productTrend,#thousandTrend) .product-trend-more>summary,:is(#productTrend,#thousandTrend) .product-trend-help>summary{list-style:none;cursor:pointer}
:is(#productTrend,#thousandTrend) summary::-webkit-details-marker{display:none}
:is(#productTrend,#thousandTrend) .product-trend-extra{position:absolute;right:0;top:calc(100% + 6px);z-index:5;display:grid;gap:4px;padding:8px;min-width:130px;background:#fff;border:1px solid #dce3ef;border-radius:8px;box-shadow:0 8px 24px #17203318}
:is(#productTrend,#thousandTrend) .product-trend-extra button{text-align:left}
:is(#productTrend,#thousandTrend) .product-trend-help{margin-left:auto}
:is(#productTrend,#thousandTrend) .product-trend-help>summary{display:grid;place-items:center;width:30px;height:30px;color:#617087;border-radius:6px}
:is(#productTrend,#thousandTrend) .product-trend-help>summary:hover{background:#edf3ff;color:#2f6fed}
:is(#productTrend,#thousandTrend) .product-trend-help-content{position:absolute;right:0;top:34px;width:min(360px,70vw);z-index:5;background:#fff;border:1px solid #dce3ef;border-radius:8px;padding:10px 14px;box-shadow:0 8px 24px #17203318}
:is(#productTrend,#thousandTrend) .product-trend-help-content p{margin:5px 0}
:is(#productTrend,#thousandTrend) .trend-chart{height:250px;max-height:250px;min-width:650px}
:is(#productTrend,#thousandTrend) .trend-tooltip{display:none;position:absolute;right:22px;top:125px;z-index:4;max-width:min(420px,80%);min-height:0;padding:9px 12px;border:1px solid #dce3ef;box-shadow:0 4px 14px #17203318;pointer-events:none;background:#fff;white-space:pre-line}
:is(#productTrend,#thousandTrend):has([data-trend-point]:hover) .trend-tooltip,:is(#productTrend,#thousandTrend):has([data-trend-point]:focus) .trend-tooltip{display:block}
:is(#productTrend,#thousandTrend) [data-trend-point]:hover,:is(#productTrend,#thousandTrend) [data-trend-point]:focus{fill:#174eab;stroke:#174eab;outline:none}
:is(#productTrend,#thousandTrend) .product-trend-target{margin:4px 0 8px}
:is(#productTrend,#thousandTrend) .product-trend-notice{margin:4px 0}
:is(#productTrend,#thousandTrend)>.product-trend-target+details{font-size:12px}
@media(max-width:900px){:is(#productTrend,#thousandTrend) .product-trend-metrics{gap:3px}:is(#productTrend,#thousandTrend) .product-trend-metrics button,:is(#productTrend,#thousandTrend) .product-trend-more>summary{font-size:11px;padding:6px}:is(#productTrend,#thousandTrend) .product-trend-controls{gap:12px}}
@media(max-width:600px){:is(#productTrend,#thousandTrend) .product-trend-metrics{flex-wrap:wrap}:is(#productTrend,#thousandTrend) .product-trend-controls{gap:8px}:is(#productTrend,#thousandTrend) .product-trend-segment button{padding:6px 9px}}
#productTrendDates>div{flex-wrap:wrap}
:is(#productTrend,#thousandTrend) .product-history-coverage{margin:5px 0;font-size:11px}
:is(#productTrend,#thousandTrend) .product-trend-segment button:disabled{opacity:.4;cursor:not-allowed}
#productTrendDates .product-custom-date-panel{display:block;width:100%;padding:10px 0;border-top:1px solid #e6ebf2}
.product-date-input-tabs{display:flex;gap:5px;margin-bottom:10px}
.product-date-input-tabs button[aria-pressed=true]{background:#2f6fed;color:#fff}
#productTrendMonthForm{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:12px}
#productTrendMonthForm [role=status]{color:#a13540}
/* Tooltip uses the hovered SVG point, within the visible chart viewport. */
:is(#productTrend,#thousandTrend) .trend-chart-wrap{position:relative}
:is(#productTrend,#thousandTrend) .trend-tooltip{right:auto;top:auto;max-width:calc(100% - 8px);font-size:12px;line-height:1.5;border-radius:8px;overflow-wrap:anywhere}
:is(#productTrend,#thousandTrend):has([data-trend-point]:hover) .trend-tooltip,:is(#productTrend,#thousandTrend):has([data-trend-point]:focus) .trend-tooltip{display:none}
