.mtg{--mtg-blue:#1479b8;--mtg-ink:#234357;--mtg-muted:#667f90;--mtg-border:#dce7ed;color:var(--mtg-ink)}
.mtg *{box-sizing:border-box}.mtg-controls{display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin-bottom:20px}.mtg-buttons{display:flex;flex-wrap:wrap;gap:4px;background:#edf4f7;border-radius:13px;padding:5px}.mtg button{font:inherit;cursor:pointer}.mtg-buttons button,.mtg-actions button,.mtg-bottom button{border:0;border-radius:9px;background:transparent;color:#526e80;padding:10px 15px;font-size:13px;font-weight:650;line-height:1.2}.mtg-buttons button[aria-pressed=true]{background:#fff;color:#0876b9;box-shadow:0 2px 8px #184b6820}.mtg button:focus-visible,.mtg summary:focus-visible,.mtg-plot:focus-visible{outline:3px solid #6bbce6;outline-offset:3px}.mtg-buttons button:hover,.mtg-actions button:hover,.mtg-bottom button:hover{background:#e1eff6}.mtg-periods{margin-left:auto}.mtg-more summary{font-size:13px;cursor:pointer;color:#537082;padding:9px 0}.mtg-more[open]{flex-basis:100%;order:3}.mtg-more .mtg-buttons{display:inline-flex}.mtg-status{font-size:13px;color:var(--mtg-muted);margin-bottom:14px;min-height:18px}.mtg-status[data-error=true]{color:#a73b32}.mtg-summary{display:grid;grid-template-columns:repeat(var(--stats,3),minmax(0,1fr));gap:12px;margin-bottom:18px}.mtg-stat{background:#f6f9fb;border:1px solid var(--mtg-border);border-radius:15px;padding:15px 18px}.mtg-stat span{display:block;font-size:12px;color:var(--mtg-muted);margin-bottom:6px}.mtg-stat strong{font-size:24px;font-weight:650;color:var(--mtg-ink)}.mtg-chart-card{background:white;border:1px solid var(--mtg-border);border-radius:18px;padding:20px}.mtg-chart-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.mtg-title{font-size:22px;margin:0 0 5px;color:var(--mtg-ink)}.mtg-subtitle{font-size:12px;color:var(--mtg-muted);margin:0}.mtg-actions{display:flex;gap:4px}.mtg-actions button{background:#f0f5f8;padding:8px 10px;font-size:12px}.mtg-legend{display:flex;flex-wrap:wrap;gap:14px;margin:20px 0 8px;min-height:25px}.mtg-legend button{display:flex;align-items:center;gap:7px;background:none;border:0;color:#536b7d;font-size:13px;padding:3px}.mtg-legend button[aria-pressed=false]{opacity:.45}.mtg-dot{width:10px;height:10px;border-radius:3px;background:var(--series)}.mtg-plot{position:relative;width:100%;touch-action:pan-y}.mtg-plot svg{display:block;width:100%;height:auto;overflow:visible;user-select:none}.mtg-tooltip{position:absolute;z-index:2;background:#223745;color:white;border-radius:11px;padding:11px 14px;font-size:12px;box-shadow:0 5px 20px #16304430;pointer-events:none;min-width:135px;max-width:230px;line-height:1.7}.mtg-tooltip strong{font-size:12px;display:block;margin-bottom:3px}.mtg-note{font-size:12px;line-height:1.6;color:var(--mtg-muted);margin:14px 0 0}.mtg-bottom{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px;font-size:12px;color:var(--mtg-muted)}.mtg-bottom button{font-size:12px;background:#edf4f7}.mtg-table{margin-top:15px;font-size:13px}.mtg-table summary{cursor:pointer;color:var(--mtg-muted);padding:9px 0}.mtg-table-scroll{overflow:auto;max-height:350px}.mtg table{border-collapse:collapse;width:100%;font-size:12px}.mtg th,.mtg td{text-align:left;padding:9px 12px;border-bottom:1px solid var(--mtg-border);white-space:nowrap}.mtg th{position:sticky;top:0;background:#edf4f7}.mtg:fullscreen{overflow:auto;background:#edf4f7;padding:30px;max-width:none}.mtg:fullscreen .mtg-plot{max-width:1400px;margin:auto}.mtg.mtg-expanded{position:fixed;inset:10px;z-index:9999;overflow:auto;background:#fff;padding:25px;box-shadow:0 0 0 20px #18344999}.mtg [hidden]{display:none!important}
@media(max-width:650px){.mtg-controls{gap:8px}.mtg-periods{margin-left:0;width:100%;justify-content:space-between}.mtg-buttons button{padding:10px 11px;font-size:12px}.mtg-variables{width:100%;justify-content:space-between}.mtg-summary{gap:6px}.mtg-stat{padding:11px 9px}.mtg-stat strong{font-size:19px}.mtg-stat span{font-size:10px}.mtg-chart-card{padding:12px 9px}.mtg-title{font-size:19px}.mtg-chart-heading{flex-wrap:wrap}.mtg-actions{margin-left:auto}.mtg-legend{gap:10px}.mtg-legend button{font-size:11px}.mtg-plot svg{min-height:235px}.mtg-bottom{align-items:flex-start}.mtg:fullscreen{padding:12px}}
