.dr-intro { margin: 36px 0 48px; padding: 32px; border: 1px solid #37505a; border-radius: 16px; background: #0e151b; scroll-margin-top: 24px; }
.dr-intro-heading { max-width: 980px; }
.dr-intro-heading .course-kicker { color: #6fe7ff; font-size: .72rem; }
.dr-intro-heading h2 { margin: 12px 0 20px; color: #f4f2ed; font-size: clamp(1.7rem, 3.5vw, 2.8rem); line-height: 1.25; letter-spacing: -.03em; }
.dr-intro-heading > p:not(.course-kicker) { color: #b7c1cd; font-size: .92rem; line-height: 1.9; }
.dr-intro strong { color: #edf5fa; }
.dr-first-terms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 28px 0; }
.dr-first-terms article { padding: 22px; border: 1px solid #33404c; border-radius: 10px; background: #111c25; }
.dr-first-terms article > span { color: #8fd8eb; font-size: .72rem; }
.dr-first-terms h4 { margin: 12px 0; color: #edf5fa; font-size: 1rem; }
.dr-first-terms p { margin: 0; color: #b5c2d0; font-size: .81rem; line-height: 1.85; }
.dr-threshold-primer { margin: 28px 0; padding: 26px; border: 1px solid #405060; border-radius: 12px; background: #111b25; scroll-margin-top: 24px; }
.dr-threshold-primer h3 { margin: 0 0 18px; color: #eaf4fb; font-size: clamp(1.25rem, 2.2vw, 1.65rem); line-height: 1.5; }
.dr-threshold-primer > p, .dr-threshold-math p { color: #b9c9d7; font-size: .85rem; line-height: 1.9; }
.dr-threshold-definitions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.dr-threshold-definitions article { padding: 20px; border: 1px solid #40566a; border-radius: 8px; background: #0b141d; }
.dr-threshold-definitions article > span { color: #9bcbdd; font-size: .72rem; }
.dr-threshold-definitions h4 { margin: 10px 0; color: #f0f6fa; font-size: 1.1rem; }
.dr-threshold-definitions p { color: #bac9d7; font-size: .82rem; line-height: 1.9; }
.dr-threshold-definitions p:last-child { margin-bottom: 0; }
.dr-threshold-table { width: 100%; border-collapse: collapse; color: #c5d5e3; font-size: .8rem; line-height: 1.75; }
.dr-threshold-table caption { padding: 0 0 12px; text-align: left; color: #e4f2f9; font-weight: 650; }
.dr-threshold-table th, .dr-threshold-table td { padding: 11px 14px; border-bottom: 1px solid #354555; text-align: left; }
.dr-threshold-table thead { background: #1b2b39; color: #e6f0f7; }
.dr-threshold-table th:first-child, .dr-threshold-table td:nth-child(2) { white-space: nowrap; }
.dr-threshold-primer .dr-threshold-note { color: #9eb1c4; font-size: .75rem; }
.dr-threshold-math { margin: 20px 0; padding: 16px 18px; border: 1px solid #465a6c; border-radius: 8px; }
.dr-threshold-math summary { color: #d5eaf5; font-size: .84rem; line-height: 1.8; cursor: pointer; }
.dr-threshold-primer a { color: #94def0; text-underline-offset: 4px; }
.dr-quality-control { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: center; gap: 22px; margin-top: 24px; padding: 20px; border: 1px solid #566079; border-radius: 8px; background: #171d2b; }
.dr-quality-control label { display: grid; gap: 10px; min-width: 0; color: #e0e2f7; font-size: .85rem; }
.dr-quality-control select { width: 100%; min-width: 0; min-height: 44px; padding: 9px; border: 1px solid #7a89a2; border-radius: 5px; background: #0a1420; color: #ecf3fc; font: inherit; font-size: .8rem; }
.dr-quality-control select:focus-visible, .dr-threshold-math summary:focus-visible { outline: 2px solid #ffca67; outline-offset: 3px; }
.dr-quality-control p { margin: 0; color: #b5c3d6; font-size: .79rem; line-height: 1.85; }
.dr-quality-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.dr-quality-numbers > div { display: grid; gap: 10px; padding: 16px; border: 1px solid #374959; border-radius: 8px; }
.dr-quality-numbers span { color: #adbdcc; font-size: .73rem; line-height: 1.6; }
.dr-quality-numbers b { color: #a8e3df; font-size: 1.3rem; font-variant-numeric: tabular-nums; }
.dr-quality-numbers > div:last-child b { color: #c5b8ef; }
.dr-quality-summary { color: #bdcde0; font-size: .8rem; line-height: 1.85; }
.dr-fit-lab { padding: 28px; border: 1px solid #364b59; border-radius: 12px; background: #080e14; }
.dr-fit-heading h4 { margin: 0 0 12px; color: #eaf4fb; font-size: clamp(1.2rem, 2.2vw, 1.65rem); line-height: 1.4; }
.dr-fit-heading p { margin: 0; color: #b3c1ce; font-size: .85rem; line-height: 1.85; }
.dr-fit-controls { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 26px; }
.dr-fit-controls label { display: grid; align-content: start; gap: 12px; min-width: 0; color: #c9d7e2; font-size: .78rem; }
.dr-fit-controls label > span { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.dr-fit-controls output { color: #6fe7ff; font-weight: 750; white-space: nowrap; }
.dr-fit-controls input { width: 100%; min-width: 0; margin: 0; min-height: 28px; accent-color: #6fe7ff; }
.dr-fit-controls input:focus-visible { outline: 2px solid #ffc247; outline-offset: 4px; }
.dr-fit-controls small { color: #95a8b8; font-size: .68rem; line-height: 1.6; }
.dr-fit-lab .practice-actions { margin-top: 14px; }
.dr-fit-legend { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 18px; color: #a6b7c6; font-size: .71rem; }
.dr-fit-legend span:nth-child(2) { color: #6fe7ff; }
.dr-fit-legend span:nth-child(3) { color: #ffb268; }
.dr-fit-chart { --dr-fit-capacity: 37.5%; --dr-fit-floor: 25%; --dr-fit-usable-capacity: 37.5%; --dr-fit-ceiling: 62.5%; --dr-fit-start: 21.875%; --dr-fit-span: 43.75%; --dr-fit-shadow: 7.142857%; --dr-fit-usable: 85.714286%; --dr-fit-highlight: 7.142857%; }
.dr-fit-direction { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; color: #99aabc; font-size: .68rem; }
.dr-fit-direction span:not(:nth-child(2)) { white-space: nowrap; }
.dr-fit-direction span:nth-child(2) { text-align: center; }
.dr-fit-plot { position: relative; height: 166px; overflow: hidden; border-block: 1px solid #344451; background: #101820; }
.dr-fit-zone { position: absolute; inset-block: 0; }
.dr-fit-zone--shadow { left: 0; width: var(--dr-fit-floor); background: repeating-linear-gradient(135deg, #1d2131 0 7px, #2b2f42 7px 8px); }
.dr-fit-zone--usable { left: var(--dr-fit-floor); width: var(--dr-fit-usable-capacity); background: #142b36; border-inline: 1px dashed #6fe7ff; }
.dr-fit-zone--highlight { left: var(--dr-fit-ceiling); right: 0; background: #422818; }
.dr-fit-sensor-band, .dr-fit-scene-band { position: absolute; display: flex; align-items: center; justify-content: center; height: 42px; }
.dr-fit-maximum-band { position: absolute; top: 22px; left: 25%; width: var(--dr-fit-capacity); height: 42px; border: 1px dashed #bac6d2; border-radius: 5px; }
.dr-fit-sensor-band { top: 22px; left: var(--dr-fit-floor); width: var(--dr-fit-usable-capacity); border: 2px solid #6fe7ff; border-radius: 5px; color: #bdeeff; background: #102431; }
.dr-fit-scene-band { top: 99px; left: var(--dr-fit-start); width: var(--dr-fit-span); border: 1px solid #dce9f3; border-radius: 5px; overflow: hidden; }
.dr-fit-sensor-band b, .dr-fit-scene-band b { position: relative; z-index: 1; padding: 2px 5px; font-size: .76rem; font-weight: 650; text-align: center; line-height: 1.35; }
.dr-fit-scene-band b { color: #eef8ff; border-radius: 3px; background: #0b1a23e6; }
.dr-fit-part { position: absolute; top: 0; height: 100%; }
.dr-fit-part--shadow { left: 0; width: var(--dr-fit-shadow); background: repeating-linear-gradient(135deg, #60637e 0 4px, #a7a7bf 4px 5px); }
.dr-fit-part--usable { left: var(--dr-fit-shadow); width: var(--dr-fit-usable); background: #3990a5; }
.dr-fit-part--highlight { right: 0; width: var(--dr-fit-highlight); background: #f0a054; }
.dr-fit-axis { display: flex; justify-content: space-between; position: relative; height: 32px; margin-top: 8px; color: #96a9bd; font-size: .7rem; font-variant-numeric: tabular-nums; }
.dr-fit-axis span { position: absolute; transform: translateX(-50%); }
.dr-fit-axis span:nth-child(1) { left: 0; transform: none; }
.dr-fit-axis span:nth-child(2) { left: 25%; }
.dr-fit-axis span:nth-child(3) { left: 50%; }
.dr-fit-axis span:nth-child(4) { left: 75%; }
.dr-fit-axis span:nth-child(5) { right: 0; transform: none; }
.dr-fit-numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dr-fit-numbers > div { display: grid; gap: 10px; padding: 16px; border: 1px solid #354351; border-radius: 8px; }
.dr-fit-numbers span { color: #b6c6d4; font-size: .7rem; line-height: 1.6; }
.dr-fit-numbers b { color: #f2c087; font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.dr-fit-verdict { margin: 20px 0; padding: 16px 20px; border-left: 3px solid #ffb268; background: #272018; color: #eac9a5; font-size: .85rem; line-height: 1.9; }
.dr-fit-lab[data-fit="true"] .dr-fit-verdict { border-left-color: #6ad4b0; background: #122821; color: #b5e8d5; }
.dr-fit-model { margin: 18px 0 0; color: #97a9bb; font-size: .74rem; line-height: 1.9; }
.dr-intro-links { display: flex; flex-wrap: wrap; gap: 14px 24px; margin-top: 24px; }
.dr-intro-links a, .dynamic-range-heading a { color: #94def0; font-size: .82rem; text-underline-offset: 4px; line-height: 1.8; }
.dr-faqs { margin: 28px 0; }
@media (max-width: 800px) {
  .dr-first-terms { grid-template-columns: minmax(0, 1fr); }
  .dr-fit-controls { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dr-threshold-definitions, .dr-quality-control { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 500px) {
  .dr-intro { padding: 18px 12px; border-radius: 12px; }
  .dr-intro-heading, .dr-intro-links { padding-inline: 4px; }
  .dr-first-terms article { padding: 18px; }
  .dr-fit-lab { padding: 18px 12px; }
  .dr-fit-numbers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dr-fit-numbers > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
  .dr-fit-numbers b { font-size: 1.1rem; white-space: nowrap; }
  .dr-fit-verdict { padding: 14px; }
  .dr-fit-sensor-band b, .dr-fit-scene-band b { font-size: .66rem; }
  .dr-threshold-primer { padding: 18px 12px; }
  .dr-threshold-definitions article, .dr-threshold-math { padding: 16px 12px; }
  .dr-threshold-table { font-size: .72rem; }
  .dr-threshold-table th, .dr-threshold-table td { padding: 9px 6px; }
  .dr-quality-control { padding: 16px 12px; }
  .dr-quality-numbers { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .dr-quality-numbers > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; }
  .dr-quality-numbers b { font-size: 1.1rem; white-space: nowrap; }
}

.coc-primer, .viewing-lab, .capture-lab { border: 1px solid #333b46; border-radius: 16px; background: #10151c; overflow: hidden; }
.coc-primer { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr); align-items: center; gap: 24px; margin: 28px 0; padding: 30px; }
.coc-primer h3, .viewing-lab h3, .capture-heading h3 { margin: 8px 0 18px; color: #f4f2ed; font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.3; }
.coc-primer p, .viewing-lab p { color: #bbc1ca; line-height: 1.85; }
.coc-primer strong, .viewing-lab strong { color: #f4f2ed; }
.coc-primer svg { display: block; width: 100%; height: auto; }
.viewing-lab { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); margin: 28px 0; }
.viewing-lab__controls { padding: 32px; }
.viewing-lab__controls label, .capture-controls label { display: grid; gap: 13px; margin: 24px 0 8px; color: #edf0f4; font-size: .85rem; font-weight: 650; }
.viewing-lab__controls label > span, .capture-controls label > span { display: flex; justify-content: space-between; gap: 12px; }
.viewing-lab output { color: #ffc247; font-variant-numeric: tabular-nums; }
.viewing-lab input, .capture-controls input { width: 100%; margin: 0; min-height: 28px; accent-color: #ffc247; }
.viewing-lab__result { padding: 24px 30px; background: #0b0f14; min-width: 0; }
.viewing-lab__result svg { display: block; width: 100%; max-height: 310px; }
.viewing-verdict { text-align: center; font-weight: 700; }
.viewing-lab__result[data-acceptable="true"] .viewing-verdict { color: #58d6a3; }
.viewing-lab__result[data-acceptable="false"] .viewing-verdict { color: #ffc247; }
.viewing-lab dl { margin: 20px 0 0; }
.viewing-lab dl > div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #29323d; font-size: .78rem; }
.viewing-lab dt { color: #b9c1cd; }
.viewing-lab dd { margin: 0; color: #f4f2ed; font-variant-numeric: tabular-nums; white-space: nowrap; }
.viewing-lab .viewing-lab__lesson { grid-column: 1 / -1; margin: 0; padding: 22px 32px; border-top: 1px solid #333b46; font-size: .85rem; }
.coc-primer .fine-print, .viewing-lab .fine-print { font-size: .76rem; color: #9da7b5; }
.blur-threshold-ring { width: var(--blur-threshold-size, 58px); height: var(--blur-threshold-size, 58px); }
.blur-result-disc, .blur-disc-stage[data-status="acceptable"] .blur-result-disc { background: #ffc24799; filter: none; transition: none; }
.blur-disc-stage[data-status="acceptable"] .blur-result-disc { background: #58d6a399; }
.element-section--shutter { grid-template-columns: 1.2fr 1fr; gap: 32px 60px; }
.element-section--shutter .element-copy { order: 0; }
.shutter-intuition { border-left: 2px solid #58b8ff; padding: 12px 0 12px 28px; }
.shutter-intuition > span { display: block; color: #8da6bd; font-size: .8rem; margin-bottom: 18px; }
.shutter-intuition strong { display: block; color: #e7f3ff; font-size: clamp(1.2rem, 2vw, 1.65rem); line-height: 1.7; }
.shutter-intuition p { color: #acb7c5; line-height: 1.8; font-size: .9rem; }
.capture-lab { grid-column: 1 / -1; width: 100%; min-width: 0; }
.capture-heading { display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 28px 30px; }
.capture-heading h3 { margin-bottom: 0; }
.capture-heading .course-kicker { color: #7bc8ff; font-size: .7rem; }
.capture-badge { border: 1px solid #43728d; border-radius: 40px; padding: 8px 13px; color: #a8ddff; font-size: .75rem; white-space: nowrap; }
.capture-lab[data-state="review"] .capture-badge { border-color: #476d5e; color: #8ee3b8; }
.capture-lab[data-state="exposing"] .capture-badge { border-color: #b5914e; color: #ffcd7c; }
.capture-workspace { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(260px, 1fr); border-block: 1px solid #333b46; }
.capture-view { position: relative; background: #070a0d; align-self: center; min-width: 0; }
.capture-view canvas { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.capture-frame-note { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 12px 16px; border-top: 1px solid #333b46; color: #b0bfce; font-size: .66rem; }
.capture-frame-note span:first-child { color: #e8f2fa; }
.capture-controls { padding: 0 24px 20px; border-left: 1px solid #333b46; }
.capture-controls output { color: #a6ddff; white-space: nowrap; font-variant-numeric: tabular-nums; }
.capture-controls input { accent-color: #58b8ff; }
.capture-controls select { display: block; width: 100%; min-width: 0; padding: 12px 10px; border: 1px solid #485464; border-radius: 7px; color: #e8edf3; background: #090e14; font: inherit; font-size: .76rem; }
.capture-controls .lesson-scale { font-size: .6rem; color: #a6b1bf; }
.capture-light { color: #9eb0c2; font-size: .73rem; line-height: 1.7; margin: 20px 0; }
.practice-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.practice-actions button { min-height: 42px; padding: 10px 13px; border: 1px solid #475464; border-radius: 8px; background: #171f2a; color: #d9e5f2; font: inherit; font-size: .75rem; font-weight: 650; cursor: pointer; }
.practice-actions button:hover:not(:disabled) { border-color: #afc5dd; background: #233044; }
.practice-actions button:disabled { opacity: .45; cursor: default; }
.practice-actions button:focus-visible, .capture-controls select:focus-visible, .capture-controls input:focus-visible, .viewing-lab input:focus-visible { outline: 2px solid #ffc247; outline-offset: 4px; }
.practice-actions .capture-button { flex-basis: 100%; min-height: 50px; border-color: #9bd8ff; background: #9bd8ff; color: #0a1723; font-size: .92rem; }
.practice-actions .capture-button:hover:not(:disabled) { background: #c0e8ff; border-color: #c0e8ff; }
.capture-button span { margin-right: 5px; }
.capture-status { margin: 16px 0 0; min-height: 3.6em; color: #b8c8d8; font-size: .76rem; line-height: 1.8; }
.capture-progress { position: absolute; top: 0; left: 0; right: 0; height: 5px; background: #172d41; }
.capture-progress > span { display: block; height: 100%; background: #ffc247; width: var(--capture-progress, 0%); }
.capture-readout { display: grid; grid-template-columns: 95px minmax(0, 1fr); gap: 12px; padding: 22px 30px; background: #111e29; }
.capture-readout > span { padding-top: 2px; color: #8ecbfa; font-size: .78rem; }
.capture-readout p { margin: 0; color: #d1dfec; font-size: .83rem; line-height: 1.85; }
.capture-history-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 24px 30px 12px; }
.capture-history-heading h4 { margin: 0; color: #eaf1f7; font-size: .95rem; }
.capture-history-heading > span { color: #9aa9b9; font-size: .72rem; }
.capture-history { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 30px 24px; }
.capture-history figure { margin: 0; border: 1px solid #384454; border-radius: 8px; overflow: hidden; background: #0b1017; }
.capture-history canvas { display: block; width: 100%; height: auto; }
.capture-history figcaption { display: grid; gap: 5px; padding: 12px; color: #aab8c9; font-size: .68rem; line-height: 1.5; }
.capture-history figcaption b { color: #eaf1f7; font-size: .8rem; }
.capture-history-empty { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed #384454; color: #93a4b7; font-size: .8rem; line-height: 1.8; }
.capture-model-note { margin: 0; padding: 20px 30px; border-top: 1px solid #333b46; color: #99a7b8; font-size: .74rem; line-height: 1.9; }
@media (max-width: 1100px) {
  .capture-workspace { grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); }
  .capture-controls { padding-inline: 18px; }
}
@media (max-width: 800px) {
  .coc-primer, .viewing-lab, .element-section--shutter, .capture-workspace { grid-template-columns: minmax(0, 1fr); }
  .coc-primer svg { max-width: 360px; margin: auto; }
  .capture-controls { border-left: 0; border-top: 1px solid #333b46; }
  .capture-workspace .capture-view { width: 100%; }
  .capture-history { gap: 8px; }
  .viewing-lab__result { border-top: 1px solid #333b46; }
}
@media (max-width: 500px) {
  .coc-primer, .viewing-lab__controls, .viewing-lab__result { padding: 20px; }
  .viewing-lab .viewing-lab__lesson { padding: 20px; }
  .capture-heading { padding: 20px 16px; flex-wrap: wrap; gap: 12px; }
  .capture-history-heading { padding: 22px 16px 12px; }
  .capture-history { grid-template-columns: minmax(0, 1fr); padding: 0 16px 20px; }
  .capture-history figure { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
  .capture-history figcaption { padding: 10px; }
  .capture-readout { grid-template-columns: minmax(0, 1fr); padding: 20px 16px; gap: 5px; }
  .capture-model-note { padding: 18px 16px; }
  .shutter-intuition { padding-left: 18px; }
}
