:is(#metals-page,#coal-page) .steel-basket-panel{margin:4px 0 8px;min-width:0;container-type:inline-size}
:is(#metals-page,#coal-page) .steel-basket-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;align-items:stretch}
:is(#metals-page,#coal-page) .steel-basket-card{min-width:0;max-width:100%;padding:5px 7px;margin:0;background:#080808;border:1px solid #333;border-radius:2px;overflow:hidden}
:is(#metals-page,#coal-page) .steel-basket-card h3{display:flex;align-items:center;justify-content:space-between;min-height:30px;margin:0 0 4px;padding:3px 9px;font-size:14px;font-weight:700;color:white;background:#242155;border:1px solid #373367;gap:6px}
:is(#metals-page,#coal-page) .steel-basket-card .chart-unified-top{display:flex;align-items:center;gap:3px 5px;padding-left:64px;min-height:32px;margin:0 0 3px;flex-wrap:wrap}
:is(#metals-page,#coal-page) .steel-basket-card .chart-date-controls{display:flex;gap:4px;flex-wrap:nowrap}
:is(#metals-page,#coal-page) .steel-basket-card .chart-action-controls{display:flex;align-items:center;gap:4px;margin-left:auto}
:is(#metals-page,#coal-page) .steel-basket-card input[type=date]{box-sizing:border-box;width:107px;min-width:0;height:29px;padding:3px 5px;font-size:11px;background:#111722;color:#dce2ea;border:1px solid #46566b}
:is(#metals-page,#coal-page) .steel-basket-card select{box-sizing:border-box;width:auto;min-width:67px;max-width:125px;height:29px;padding:2px 24px 2px 7px;font-size:11px;color:#111;background-color:#f5a000;border:1px solid #d7ac40}
:is(#metals-page,#coal-page) .steel-basket-plot{width:100%;min-width:0;height:350px}
:is(#metals-page,#coal-page) .steel-basket-legend{display:flex;gap:3px 10px;flex-wrap:wrap;align-content:start;padding:4px 8px 0 64px;color:#bfc7d0;font-size:10px;line-height:14px}
:is(#metals-page,#coal-page) .steel-basket-legend-space{min-height:58px}
:is(#metals-page,#coal-page) .steel-basket-legend span{display:inline-flex;align-items:center;gap:4px}
:is(#metals-page,#coal-page) .steel-basket-legend i{width:9px;height:9px;display:inline-block}
:is(#metals-page,#coal-page) .steel-basket-source{min-height:27px;margin:2px 3px 0;font-size:10px;line-height:14px;color:#93a2b5}
:is(#metals-page,#coal-page) .steel-basket-source a{color:#93a2b5}
:is(#metals-page,#coal-page) .steel-basket-error{margin:0;color:#e6b95c;font-size:12px}
:is(#metals-page,#coal-page) .steel-basket-error:empty{display:none}
:is(#metals-page,#coal-page) .steel-basket-method{font-size:11px;color:#99a6b8;margin:5px 4px}
:is(#metals-page,#coal-page) .steel-basket-method p{max-width:1200px}
@container(max-width:830px){:is(#metals-page,#coal-page) .steel-basket-grid{grid-template-columns:minmax(0,1fr)}}

/* Keep the border box and canvas inside their responsive grid cell. */
:is(#metals-page,#coal-page) :is(.steel-basket-grid,.steel-basket-card,.steel-basket-plot,#md-nornickel-panel){box-sizing:border-box;min-width:0;max-width:100%}
:is(#metals-page,#coal-page) .steel-basket-plot{width:100%!important;overflow:visible}
:is(#metals-page,#coal-page) .steel-basket-card .plot-container,:is(#metals-page,#coal-page) .steel-basket-card .svg-container{max-width:100%}
:is(#metals-page,#coal-page) #md-nornickel-panel{container-type:inline-size}
:is(#metals-page,#coal-page) #md-nornickel-panel .md-card{padding:5px 7px}
:is(#metals-page,#coal-page) #md-nornickel-panel .chart-range-date span{display:none}
:is(#metals-page,#coal-page) .steel-basket-card .chart-action-controls{flex-wrap:wrap}

.control-premium-card{max-width:760px}.control-premium-card th,.control-premium-card td{padding:9px 12px}.control-premium-card td{text-align:right}.control-premium-card h3{background:#28235d;color:#fff;padding:8px}

#md-nornickel-panel>h2{display:none}

#metals-page .steel-margin-card{border-color:#a85d15}

#steel-slab-cost-index{grid-column:1/-1}
