.fx-history{margin:12px 0 20px;font-variant-numeric:tabular-nums}
.history-toolbar{display:flex;align-items:center;flex-wrap:wrap;gap:10px 24px;padding:0 0 10px;border-bottom:1px solid var(--line)}
.history-ranges{display:flex;gap:0}
.history-ranges button,.history-pagination button{border:1px solid var(--line);background:#fff;color:var(--accent);padding:8px 13px;min-height:44px;font-size:14px;font-weight:600;cursor:pointer}
.history-ranges button+button{border-left:0}
.history-ranges button[aria-pressed=true]{background:var(--ink);border-color:var(--ink);color:#fff}
.history-ranges button:hover,.history-pagination button:hover{background:#e7effb;color:var(--accent-dark)}
.history-ranges button[aria-pressed=true]:hover{background:var(--accent-dark);color:#fff}
.history-ranges button:focus-visible{position:relative;z-index:1}
.history-direction{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:600}
.history-direction select{border:1px solid #505a5f;color:var(--ink);background:#fff;min-height:44px;padding:8px;max-width:100%}
.history-csv{margin-left:auto;min-height:44px;display:inline-flex;align-items:center;font-size:14px;font-weight:600}
.history-period{font-size:13px;color:var(--muted);margin:10px 0!important;max-width:none}
.history-stats{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));margin:0 0 12px;border-bottom:1px solid var(--line);gap:10px}
.history-stats>div{padding:4px 0 12px;min-width:0}
.history-stats dt{font-size:12px;color:var(--muted)}
.history-stats dd{font-size:clamp(18px,2vw,26px);font-weight:650;margin:3px 0 0;line-height:1.2;overflow-wrap:anywhere}
.history-stats small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:5px}
.history-figure{margin:0}
.history-plot{position:relative;padding-left:74px}
.history-plot svg{display:block;width:100%;height:190px;overflow:visible;cursor:crosshair}
.history-axis-high,.history-axis-low{position:absolute;left:0;color:var(--muted);font-size:12px;max-width:68px;overflow-wrap:anywhere}
.history-axis-high{top:0}.history-axis-low{top:170px}
.history-grid{stroke:#d8dadd;stroke-width:1;fill:none;vector-effect:non-scaling-stroke}
.history-line{fill:none;stroke:var(--accent);stroke-width:1.6;vector-effect:non-scaling-stroke}
.history-marker{stroke:var(--ink);stroke-width:1;stroke-dasharray:4 4;vector-effect:non-scaling-stroke}
.history-axis-dates{display:flex;justify-content:space-between;color:var(--muted);font-size:12px;margin-top:4px}
.history-figure figcaption{display:flex;flex-wrap:wrap;gap:4px 20px;justify-content:space-between;font-size:13px;margin-top:8px}
.history-figure output{font-weight:650}.history-hint{color:var(--muted);font-size:12px}
.history-scrubber{display:flex;align-items:center;gap:12px;font-size:12px;color:var(--muted);margin:8px 0}
.history-scrubber input{min-width:0;flex:1;accent-color:var(--accent);height:32px;margin:0;cursor:pointer}
.history-method{font-size:13px;border-top:1px solid var(--line);padding-top:10px;margin-top:12px}
.history-method summary{cursor:pointer;min-height:28px;color:var(--accent);font-weight:600}.history-method p{max-width:100ch}
.history-pagination{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;font-size:13px}
.history-pagination p{margin:0!important}.history-pagination>div{display:flex;gap:8px}
.history-pagination button:disabled,.tool button:disabled{background:var(--tint);color:#505a5f;border-color:var(--line);cursor:default}
.fx-history th small{display:block;font-weight:400;color:var(--muted);font-size:11px;margin-top:4px}
.fx-history td.numeric,.fx-history th small{white-space:nowrap}
.fx-history .table-wrap{margin-top:8px}.fx-history td,.fx-history th{padding:8px 10px}
@media(max-width:700px){.history-toolbar{gap:4px 16px}.history-csv{margin-left:0;min-height:32px}.history-direction{font-size:12px}.history-stats{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px 12px}.history-stats dd{font-size:20px}.history-stats>div{padding-bottom:8px}.history-figure figcaption{display:block}.history-hint{display:block;margin-top:4px}.history-scrubber{display:block}.history-scrubber input{display:block;width:100%}.history-plot{padding-left:64px}.history-axis-high,.history-axis-low{max-width:58px}.fx-history .table-wrap{overflow:auto}.fx-history table{min-width:470px}.fx-history [aria-label="Valiutos dienos kursai"] table{min-width:340px}}
@media(max-width:380px){.history-ranges{width:100%}.history-ranges button{flex:1;padding:8px 9px;font-size:13px}.history-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.history-stats dd{font-size:21px}}
@media print{.history-toolbar,.history-scrubber,.history-pagination button{display:none}.history-stats{grid-template-columns:repeat(5,minmax(0,1fr))}.fx-history table{min-width:0}.fx-history .table-wrap{overflow:visible}}
