.market-panel{padding:34px;border:1px solid #ced8c6;background:#f3f6ee;margin:0 0 70px}.market-heading{display:flex;justify-content:space-between;gap:35px;align-items:end}.market-heading h2{font-size:33px;font-weight:500}.market-heading p{font-size:12px;color:#526650;margin:0;max-width:330px}.market-controls{display:grid;grid-template-columns:1fr 1fr;max-width:650px;gap:24px;margin:28px 0}.market-stats{display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid #d4dece;border-bottom:1px solid #d4dece;padding:22px 0;gap:20px}.market-stats span{display:block;font-size:12px;color:#526650}.market-stats strong{font-size:25px;font-weight:500;letter-spacing:-.03em;display:block;margin-top:8px;font-variant-numeric:tabular-nums}.market-panel svg{width:100%;height:auto;display:block;margin:24px 0 0;touch-action:pan-y}.market-readout{font-size:15px;font-variant-numeric:tabular-nums;color:#385c2b;margin-bottom:12px}.market-date-label{font-size:12px;color:#617157;display:block}.market-panel input[type=range]{width:100%;min-height:42px;accent-color:#547f3d}.market-bottom{display:flex;justify-content:space-between;gap:35px;margin-top:16px}.market-bottom p{font-size:11px;color:#526650;max-width:700px;margin:0}.market-bottom button{background:transparent;border:0;color:#395c2d;text-decoration:underline;text-underline-offset:4px;padding:0;font-size:13px;white-space:nowrap;align-self:start}.market-table{border:0;font-size:13px}.market-table .table-scroll{max-height:360px;background:white}.market-table th{position:sticky;top:0}.market-table td{padding:10px 16px;font-variant-numeric:tabular-nums}@media(max-width:680px){.market-panel{padding:24px 18px}.market-heading{display:block}.market-heading h2{font-size:27px}.market-heading p{margin-top:15px}.market-controls{grid-template-columns:1fr;gap:16px}.market-stats{gap:12px}.market-stats span{font-size:10px}.market-stats strong{font-size:18px}.market-bottom{display:block}.market-bottom button{margin-top:18px}.market-readout{font-size:12px}.market-panel svg{min-height:150px}.market-date-label{font-size:11px}}

.market-freshness{margin:24px 0;padding:14px 18px;border-left:3px solid #638345;background:#edf3e7;font:13px/1.65 system-ui,sans-serif;color:#354a33}.market-freshness.is-stale{background:#f6f0e0;border-color:#a88a40;color:#604f26}.market-source{border-top:1px solid #dce3d7;margin-top:25px;padding-top:12px;font:12px/1.7 system-ui,sans-serif;color:#586653}.market-source a{text-decoration:underline;text-underline-offset:3px}.market-source p{max-width:90ch}.market-panel [hidden]{display:none!important}.market-readout{min-height:3em}.market-controls{align-items:end}.market-controls>.field{min-width:0}@media(max-width:620px){.market-controls{grid-template-columns:1fr!important}.market-freshness{padding:12px;font-size:12px}.market-readout{font-size:14px!important}.market-source{font-size:12px}}

/* v6: explicit date range and readable price context. */
.market-controls{display:flex;flex-wrap:wrap;align-items:end;gap:16px}.market-controls .field{flex:1 1 180px;min-width:0}.market-controls [hidden]{display:none!important}.market-controls input[type=date]{width:100%;min-height:48px;border:1px solid #bcccbc;border-radius:5px;padding:10px;background:#fff;color:#203f47;font:inherit;box-sizing:border-box}.market-selection{font-size:14px;color:#48604e;border-bottom:1px solid #ccd8cd;padding-bottom:16px}.market-panel [data-market-graph]{width:100%;height:auto;min-height:200px}.market-panel button:disabled{opacity:.5;cursor:default}@media(max-width:600px){.market-controls .field{flex-basis:45%}.market-stats{grid-template-columns:1fr}.market-stats>div{padding:12px 0}.market-stats strong{font-size:24px}.market-panel{padding:22px 16px}.market-panel [data-market-graph]{min-height:0}.market-heading h2{font-size:32px}}

.market-source{display:block!important;border-top:1px solid #c6d3c3;padding-top:16px;margin-top:10px}.market-source summary{font-weight:600;cursor:pointer;min-height:44px;display:list-item}.market-source p{font-size:14px;max-width:85ch;line-height:1.65}.market-credit{font-size:12px;color:#445d50}.market-bottom p{font-size:13px;line-height:1.6}.market-panel [data-market-graph]{display:block;min-height:0;max-height:none}.market-source summary:focus-visible{outline:2px solid #294f4e;outline-offset:5px}

.market-negative{font-size:13px;color:#466150;padding:0 0 12px}.market-bottom button{min-height:44px;white-space:normal;text-align:left}@media(max-width:600px){.market-controls .field{flex:1 1 100%}.market-controls [data-market-range-field]{flex-basis:45%}.market-stats{display:grid;grid-template-columns:1fr 1fr;gap:14px}.market-stats>div:first-child{grid-column:1/-1}.market-stats strong{font-size:21px}.market-stats>div:first-child strong{font-size:29px}.market-stats>div{padding:8px 0}.market-stats span{font-size:12px}.market-controls select{font-size:16px;width:100%}}

/* Keep the mean label in normal flow, outside every data line. */
.market-average-legend{display:flex;align-items:baseline;justify-content:space-between;gap:10px 24px;flex-wrap:wrap;margin:24px 0 7px;color:#183b49;font:13px/1.6 Arial,sans-serif}.market-average-legend>span:first-child{display:flex;align-items:center;gap:9px;min-width:0}.market-average-legend i{display:inline-block;width:27px;border-top:2px dashed #183b49;flex:none}.market-average-legend strong{font-weight:600}.market-average-legend>span:last-child{color:#536654}.market-average-legend[hidden]{display:none}@media(max-width:600px){.market-average-legend{display:block;font-size:14px;margin-top:22px}.market-average-legend>span:last-child{display:block;margin:5px 0 0 36px;font-size:12px}}

/* Shared period, synchronized price / generation views. Text stays outside plots. */
.market-views{display:flex;gap:4px;flex-wrap:wrap;border-bottom:1px solid #bdcdbd;margin:28px 0 10px}.market-views button{border:0;border-bottom:3px solid transparent;background:transparent;color:#31544c;padding:14px 20px;font:600 15px/1.4 Arial,sans-serif;min-height:48px}.market-views button[aria-pressed=true]{border-color:#27584e;background:#e2eadd}.market-views button:focus-visible,.market-context button:focus-visible{outline:2px solid #183b49;outline-offset:3px}.market-day-key,.context-legend{display:flex;gap:12px 24px;flex-wrap:wrap;font:13px/1.6 Arial,sans-serif;color:#3e574b}.market-day-key span,.context-legend span{display:flex;gap:8px;align-items:center}.market-day-key i{width:20px;height:14px;border:1px solid #61795c;display:inline-block}.day-cheap-key{background:#deebcb}.day-negative-key{background:#ded5ed}.market-day-key p{flex-basis:100%;font-size:12px;max-width:90ch;margin:0}.market-context{border-top:1px solid #b9cabb;margin-top:38px;padding-top:32px}.market-context-heading h3{font:500 clamp(25px,3vw,34px)/1.2 Georgia,serif;color:#183b49;margin:10px 0 16px}.market-context-heading p{max-width:74ch;font-size:15px;line-height:1.7}.context-status{font:13px/1.65 Arial,sans-serif;color:#48604e;padding:14px 0;border-bottom:1px solid #cdd8cd}.context-legend i{display:inline-block;width:24px;border-top:3px solid;flex:none}.context-legend .wind-key{border-color:#275963}.context-legend .solar-key{border-color:#aa742c}.context-legend .residual-key{border-color:#786491;border-top-style:dashed}.context-legend b{flex-basis:100%;font-weight:400;color:#526650}.context-readout{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 16px;padding:12px 0;min-height:135px;font:15px/1.5 Arial,sans-serif;font-variant-numeric:tabular-nums}.context-readout>strong{grid-column:1/-1;font-size:14px;color:#183b49}.context-readout small{display:block;font-size:12px;color:#5b6e5e}.context-readout>span:only-of-type{grid-column:1/-1}.market-context button{min-height:44px;padding:12px 18px;border:1px solid #3f6251;background:white;color:#204439;font:inherit}.market-context [data-context-graph]{min-height:0;margin-top:20px}.market-context .market-source p{font-size:13px}@media(max-width:600px){.context-readout{grid-template-columns:repeat(2,minmax(0,1fr));font-size:14px}.market-views button{padding:12px 15px}.context-legend{display:grid;grid-template-columns:1fr;font-size:13px}.market-context-heading p{font-size:14px}.market-day-key p{font-size:13px}}

/* Four independent, touch-friendly series controls. */
.market-gap-notice{padding:14px 18px;border-left:3px solid #a88a40;background:#f6f0e0;color:#604f26;font:14px/1.65 Arial,sans-serif;max-width:88ch}
.market-context .context-legend{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}
.market-context .context-legend button{display:flex;align-items:center;gap:9px;min-height:48px;padding:10px 13px;border:1px solid #62796a;border-radius:4px;font:600 13px/1.4 Arial,sans-serif;color:#203f39;background:#edf3e7}
.market-context .context-legend button[aria-pressed=false]{background:#fff;border-color:#a8b7a8;color:#59665d}
.market-context .context-legend button[aria-pressed=false] i{opacity:.4}
.market-context .context-legend button:hover{border-color:#204439;background:#dfe9da}
.market-context .context-legend button:focus-visible{outline:3px solid #183b49;outline-offset:3px}
.context-legend .onshore-key{border-color:#275963}.context-legend .offshore-key{border-color:#287c8e;border-top-style:dotted}
.context-legend .solar-key{border-color:#94651f}.context-legend .context-toggle-state{display:inline-flex;justify-content:center;align-items:center;width:20px;height:20px;border:1px solid currentColor;border-radius:50%;margin-left:auto;flex:none;font-size:13px}
@media(max-width:600px){.market-context .context-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.market-context .context-legend button{padding:9px 8px;gap:6px;font-size:12px;min-height:52px}.context-legend i{width:16px}.context-legend b{grid-column:1/-1;font-size:12px}.context-legend .context-toggle-state{width:17px;height:17px}.market-gap-notice{padding:12px;font-size:13px}}
@media(max-width:370px){.market-context .context-legend{grid-template-columns:1fr}.market-context .context-legend button{font-size:13px;min-height:46px}}
