.norm-lab { margin: 26px 0; padding-block: 22px; border-block: 1px solid #d8dde6; color: #18212f; }
.norm-lab h3 { margin: 0 0 10px; font-size: 1.13rem; line-height: 1.35; }
.norm-lab h4 { margin: 0 0 12px; font-size: .83rem; line-height: 1.4; }
.norm-lab p { font-size: .87rem; line-height: 1.6; }
.norm-lab .norm-setting, .norm-lab .norm-small { color: #5d6877; font-size: .74rem; }
.norm-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 14px 24px; margin: 20px 0; }
.norm-controls > div { min-width: 0; }
.norm-controls label { display: flex; align-items: baseline; flex-wrap: wrap; gap: 5px; font-size: .8rem; font-weight: 700; }
.norm-controls output { margin-left: auto; font-variant-numeric: tabular-nums; }
.norm-controls input { display: block; width: 100%; margin: 12px 0 0; accent-color: #317aa6; }
.norm-presets { display: flex; flex-wrap: wrap; gap: 6px; }
.norm-model-controls { margin-block: 14px; }
.norm-lab [hidden] { display: none !important; }
.norm-presets button { padding: 7px 10px; min-height: 36px; border: 1px solid #b8c8d6; border-radius: 4px; background: #fff; color: #344154; font-size: .73rem; cursor: pointer; }
.norm-presets button[aria-pressed="true"] { background: #e7f4fb; border-color: #317aa6; color: #235f82; }
.norm-presets button:hover { border-color: #18212f; }
.norm-presets button:disabled { opacity: .5; cursor: default; }
.norm-signal-controls button[aria-pressed="true"] { background: #e7f4fb; border-color: #317aa6; }
.norm-presets button:focus-visible, .norm-controls input:focus-visible { outline: 2px solid #7862b2; outline-offset: 3px; }
.norm-training-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; font-size: .76rem; margin-top: 18px; }
.norm-training-controls label { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.norm-training-controls input { accent-color: #317aa6; width: 17px; height: 17px; }
.norm-training-controls button { padding: 6px 10px; min-height: 34px; border: 1px solid #b8c8d6; border-radius: 4px; background: #fff; color: #344154; cursor: pointer; font-size: .73rem; }
.norm-training-controls button:focus-visible { outline: 2px solid #7862b2; outline-offset: 3px; }
.norm-training-controls button:disabled { opacity: .5; cursor: default; }
#normStatus { min-height: 1.4em; margin: 0; }
#normSweepStatus { min-height: 1.4em; margin: 8px 0 0; }
.norm-lab[aria-busy="true"] .norm-comparison, .norm-lab[aria-busy="true"] .norm-discount { opacity: .45; }
.norm-focus { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; font-size: .78rem; margin-block: 20px; }
#normDrawValue { color: #5d6877; }
.norm-discount { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; padding-block: 17px; }
.norm-response { display: flex; height: 22px; margin-top: 22px; background: #e7f4fb; }
.norm-response i { display: block; height: 100%; }
#normSignalBar { background: #b0820f; }
#normNuisanceBar { background: #317aa6; }
.norm-response-labels { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px; font-size: .74rem; margin-top: 7px; }
.norm-response-labels span:first-child { color: #886200; }
.norm-response-labels span:last-child { color: #235f82; }
.norm-cost-row { display: grid; grid-template-columns: 106px minmax(0, 1fr) 44px; gap: 8px; align-items: center; margin: 10px 0; font-size: .72rem; }
/* Keep the label task and available features visible together in every row. */
.norm-cost-label { min-width: 0; }
.norm-cost-label strong, .norm-cost-label small, .norm-cost-value b, .norm-cost-value small { display: block; }
.norm-cost-label strong { font-weight: 700; }
.norm-cost-label small { margin-top: 2px; font-size: inherit; line-height: 1.35; color: #5d6877; }
.norm-cost-value { text-align: right; }
.norm-cost-value small { margin-top: 2px; font-size: .65rem; line-height: 1.3; color: #5d6877; }
.norm-cost-row > div { position: relative; height: 14px; background: #f0f3f5; }
.norm-cost-row > div::after { content: ""; position: absolute; left: 50%; top: -3px; bottom: -3px; border-left: 1px solid #8994a1; }
.norm-cost-row i { position: relative; display: block; height: 100%; background: #18212f; }
.norm-cost-row .norm-cost-full { width: 50%; background: #317aa6; }
.norm-cost-row i.over-limit::before { content: ">"; position: absolute; right: -9px; top: -4px; color: #7b8794; font-weight: 800; }
#normNoiseCostPlot { display: block; width: 100%; height: 38px; overflow: visible; background: #faf3f2; }
.norm-cost-row b { text-align: right; font-variant-numeric: tabular-nums; }
.norm-lab .norm-observation { padding-left: 14px; border-left: 3px solid #7862b2; margin: 14px 0 30px; min-height: 3.2em; }
.norm-lab .norm-observation:last-of-type { margin-bottom: 0; }
.norm-comparison { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; margin-top: 24px; }
.norm-comparison > div { min-width: 0; }
.norm-comparison svg { display: block; width: 100%; height: auto; overflow: visible; font: 12px system-ui, sans-serif; fill: #5d6877; }
#normOrderPlot { cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
.norm-drag-handle { cursor: grab; }
.norm-minimum { cursor: pointer; }
.norm-minimum:focus-visible { outline: 2px solid #7862b2; outline-offset: 3px; }
#normOrderPlot:active .norm-drag-handle { cursor: grabbing; }
.norm-legend { display: flex; flex-wrap: wrap; gap: 5px 14px; font-size: .7rem; }
.norm-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; background: #18212f; }
.norm-legend span:nth-child(2) i { background: #367d51; }
.norm-legend span:nth-child(3) i { background: #687587; }
.norm-legend span:nth-child(4) i, .norm-readings .norm-noise i { background: #fff; border: 2px solid #b3484a; }
.norm-legend span:nth-child(5) i, .norm-readings .norm-sgd i { background: #28699c; border-radius: 0; transform: rotate(45deg); }
.norm-legend span:nth-child(6) i, .norm-readings .norm-noise-sgd i { background: #fff; border: 2px solid #8060a7; border-radius: 0; transform: rotate(45deg); }
.norm-minima-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 12px; font-size: .7rem; }
.norm-minima-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: middle; background: white; }
.norm-inflation-minimum { border: 2px solid #367d51; border-radius: 50%; }
.norm-sgd-minimum { border: 2px solid #28699c; transform: rotate(45deg); }
#normSignalComparison { margin-block: 16px; }
#normSignalComparisonCopy { font-size: .76rem; margin: 10px 0 0; }
.norm-signal-readings th:nth-child(2), .norm-signal-readings td:nth-child(2) { color: #356e48; }
.norm-signal-readings th:nth-child(3), .norm-signal-readings td:nth-child(3) { color: #28699c; }
.norm-readings { width: 100%; border-collapse: collapse; font-size: .71rem; font-variant-numeric: tabular-nums; }
.norm-readings caption { text-align: left; font-weight: 700; margin-bottom: 7px; }
.norm-readings th, .norm-readings td { text-align: right; padding: 8px 4px; border-bottom: 1px solid #d8dde6; }
.norm-readings th:first-child { text-align: left; }
.norm-readings thead th { font-size: .65rem; color: #5d6877; font-weight: 600; }
.norm-readings tbody th { font-weight: 600; }
.norm-readings i { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; background: #18212f; }
.norm-readings .norm-selected i { background: #367d51; }
.norm-readings .norm-zero i { background: #687587; }
.norm-math { margin-top: 20px; border-top: 1px solid #d8dde6; padding-top: 14px; }
.norm-math summary { cursor: pointer; font-weight: 700; font-size: .86rem; }
.norm-math p { font-size: .84rem; }
.norm-equations { margin: 14px 0; overflow-x: auto; padding-block: 4px; font-size: .87rem; }
.norm-equations > div { margin: 10px 0; }
@media (max-width: 820px) {
  .norm-comparison { grid-template-columns: minmax(0, 1fr); }
  .norm-controls { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 620px) {
  #norm-certificate .concept-aside-body { padding: 14px 10px; }
  .norm-discount { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .norm-response { margin-top: 10px; }
  .norm-lab h3 { font-size: 1rem; }
  .norm-cost-row { grid-template-columns: 104px minmax(0, 1fr) 40px; }
}
