/* V4.4 history/trend overlays; original customised draw-analytics.css stays intact. */
.premium .trend-panel{max-width:1240px;margin-inline:auto;min-width:0}
.premium .trend-panel .analytics-heading>div{min-width:0}
.premium .trend-panel [hidden]{display:none!important}
.premium .trend-band{display:flex;align-items:center;gap:8px;margin:8px 0;font-size:12px;color:var(--muted)}
.premium .trend-band>span{white-space:nowrap}
.premium .trend-band>div{display:flex;gap:5px;overflow-x:auto;scrollbar-width:thin;min-width:0;padding:3px 0}
.premium .trend-band button{flex:none;white-space:nowrap;min-height:34px;border:1px solid var(--line);background:var(--bg);border-radius:8px;padding:5px 10px;color:var(--muted);font-size:12px}
.premium .trend-band button[aria-pressed=true]{background:var(--panel2);border-color:var(--accent);color:var(--accent)}
.premium .trend-row-preview{padding:9px 10px;margin:8px 0;border-radius:8px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font-size:12px;line-height:1.5;overflow-wrap:anywhere}
.premium .trend-matrix tbody tr:last-child .trend-issue,.premium .trend-matrix tbody tr.trend-selected .trend-issue{color:var(--accent);box-shadow:inset 3px 0 var(--accent)}
.premium .trend-matrix tbody tr.trend-selected td{background:color-mix(in srgb,var(--accent) 7%,var(--bg))}
.premium .trend-matrix tbody tr:nth-child(even) .trend-issue{background:var(--panel)}
.premium .trend-matrix th[data-trend-num],.premium .trend-matrix td[data-trend-num]{box-sizing:border-box}
.premium .trend-scroll{isolation:isolate;overscroll-behavior-x:contain;overscroll-behavior-y:auto}
.premium .trend-lines{z-index:2;pointer-events:none}
.premium .trend-matrix .trend-dot{z-index:3}
.premium .trend-matrix .trend-issue{z-index:4;background:var(--panel)}
.premium .trend-matrix thead th{z-index:5}
.premium .trend-matrix thead .trend-issue{z-index:7}
.premium .trend-matrix.hide-result .trend-result{display:none}
.premium .record-labels .record-zodiac::after{content:"/";color:var(--muted);font-weight:400;margin-left:3px}
.premium .record-labels .record-element{background:none;padding:0}
@media(max-width:650px){
 .premium .trend-panel{padding:12px 8px}
 .premium .trend-panel .analytics-heading{margin-bottom:12px}
 .premium .trend-panel .trend-view-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));overflow:visible;padding-bottom:0}
 .premium .trend-panel .analytics-tabs a{min-height:40px;padding:6px;font-size:12px;white-space:normal;text-align:center}
 .premium .trend-panel .analytics-periods a{min-height:36px;font-size:12px}
 .premium .trend-panel .analytics-periods{flex-wrap:wrap}
 .premium .trend-data-summary{font-size:11px}
 .premium .trend-scroll{max-height:54vh;max-height:54dvh;scrollbar-width:thin}
 .premium .trend-matrix th,.premium .trend-matrix td{height:33px;width:29px;min-width:29px;padding:2px 1px}
 .premium .trend-matrix .trend-issue{width:63px;min-width:63px;font-size:10px;padding-left:5px}
 .premium .trend-matrix .trend-issue small{font-size:9px}
 .premium .trend-matrix .trend-result{max-width:100px;min-width:54px;white-space:normal;overflow-wrap:anywhere;font-size:10px}
 .premium .trend-matrix-toolbar{align-items:flex-start;flex-direction:column}
 .premium .matrix-toggles{width:100%;gap:6px 10px;font-size:12px}
 .premium .matrix-toggles label{min-height:36px}
 .premium .matrix-toggles input{width:17px;height:17px}
 .premium .matrix-latest{min-height:36px;font-size:12px}
 .premium .trend-band{display:block}
 .premium .trend-band>div{margin-top:3px}
 .premium .trend-band button{min-height:38px}
 .premium .frequency-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .premium .frequency-tile{flex-wrap:wrap}
 .premium .analytics-sum-canvas{height:235px}
 .premium .analytics-filter input,.premium .analytics-filter select{min-height:40px;font-size:16px}
 .premium .analytics-filter-actions button,.premium .analytics-filter-actions a{min-height:40px}
 .premium .record-labels .record-zodiac::after{margin-left:2px}
 .premium .record-labels{gap:2px}
}
