.beam-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.beam-eyebrow { color: #347348; font-size: .69rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.beam-intro h2 { font-family: 'Outfit', sans-serif; font-size: clamp(2.6rem, 5vw, 4.4rem); line-height: 1.06; font-weight: 500; letter-spacing: -.045em; margin: .7rem 0 0; }
.beam-intro h2 span { color: #3f7750; }
.beam-intro > p { max-width: 24rem; color: #647066; font-size: .94rem; line-height: 1.75; padding-bottom: .15rem; }
.beam-explorer { --beam-paper: #f9fbf7; --beam-ink: #1d3927; --beam-muted: #5f6f62; --beam-line: #d6e0d2; --beam-green: #2f6b40; color: var(--beam-ink); background: var(--beam-paper); border: 1px solid var(--beam-line); border-radius: 20px; overflow: hidden; box-shadow: 0 18px 52px rgba(28, 58, 36, 0.06); }
.beam-explorer button { font: inherit; cursor: pointer; }
.beam-explorer button:focus-visible, .beam-explorer input:focus-visible, .beam-explorer select:focus-visible { outline: 3px solid #c38a3b; outline-offset: 3px; }
.beam-topbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .95rem 1.4rem; border-bottom: 1px solid var(--beam-line); flex-wrap: wrap; background: #fbfcf9; }
.beam-wordmark { display: flex; align-items: center; gap: .65rem; font-family: 'Outfit', sans-serif; font-weight: 500; font-size: .93rem; color: var(--beam-ink); }
.beam-mark { width: 23px; height: 23px; border: 1.5px solid var(--beam-green); border-radius: 50%; position: relative; }
.beam-mark::after { content: ''; position: absolute; inset: 5px -5px; border: 1.25px solid var(--beam-green); border-radius: 50%; transform: rotate(-35deg); }
.beam-modes { display: flex; gap: .25rem; background: #e8efe3; padding: .25rem; border-radius: 8px; }
.beam-modes button { padding: .45rem .85rem; border-radius: 6px; font-size: .75rem; font-weight: 500; color: var(--beam-muted); transition: background .15s, color .15s, box-shadow .15s; }
.beam-modes button[aria-pressed="true"] { background: var(--beam-paper); color: var(--beam-ink); box-shadow: 0 1px 4px rgba(24, 57, 34, 0.09); }
.beam-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; min-height: 600px; }
.beam-stage { position: relative; min-width: 0; min-height: 600px; overflow: hidden; background: linear-gradient(180deg, #eff4ea 0%, #f5f8f1 55%, #edf2e7 100%); }
.beam-stage > canvas { position: absolute; inset: 0; display: block; width: 100%; height: 100%; touch-action: none; }
.beam-stage-heading { position: absolute; top: 1.25rem; left: 1.4rem; pointer-events: none; z-index: 2; background: rgba(249, 251, 247, 0.86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); padding: .55rem .85rem; border-radius: 10px; border: 1px solid rgba(210, 221, 205, 0.8); box-shadow: 0 4px 14px rgba(32, 62, 43, 0.05); }
.beam-stage-heading small { display: block; font-size: .6rem; font-weight: 600; letter-spacing: .15em; color: #5d735e; margin-bottom: .2rem; text-transform: uppercase; }
.beam-stage-heading strong { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 500; color: var(--beam-ink); }
.beam-view-tools { position: absolute; top: 1.2rem; right: 1.1rem; display: flex; gap: .35rem; z-index: 5; }
.beam-view-tools button { display: grid; place-items: center; width: 34px; height: 34px; border: 1px solid #cedbc7; background: rgba(255, 255, 255, 0.94); border-radius: 8px; color: #36573c; font-size: 1.05rem; box-shadow: 0 2px 8px rgba(32, 62, 43, 0.06); transition: background .15s, border-color .15s, color .15s, transform .1s; }
.beam-view-tools button:hover { background: #e9f1e3; border-color: #8eb08b; }
.beam-view-tools button[aria-pressed="true"] { background: #2f6b40; border-color: #245732; color: #ffffff; }
.beam-labels { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.beam-place { position: absolute; pointer-events: auto; transform: translate(-50%, -50%); color: #24472c; background: rgba(255, 255, 255, 0.94); border: 1px solid #c5d5be; border-radius: 999px; padding: .36rem .72rem; white-space: nowrap; font-size: .67rem !important; font-weight: 500; box-shadow: 0 3px 10px rgba(29, 57, 39, 0.09); transition: background .15s, border-color .15s, transform .15s, box-shadow .15s; }
.beam-place::before { content: ''; display: inline-block; width: 6px; height: 6px; background: #3b7a4e; border-radius: 50%; vertical-align: middle; margin-right: 6px; }
.beam-place:hover, .beam-place[aria-pressed="true"] { background: #2f6b40; color: #ffffff; border-color: #245732; box-shadow: 0 4px 12px rgba(47, 107, 64, 0.24); }
.beam-place:hover::before, .beam-place[aria-pressed="true"]::before { background: #f2c166; }
.beam-place[hidden] { display: none; }
.beam-stage-bottom { position: absolute; bottom: 1rem; left: 1.35rem; right: 1.1rem; display: flex; align-items: end; justify-content: space-between; gap: 1rem; pointer-events: none; z-index: 4; }
.beam-stage-bottom p { font-size: .66rem; line-height: 1.55; color: #4e6250; max-width: 22rem; background: rgba(249, 251, 247, 0.9); backdrop-filter: blur(6px); padding: .38rem .65rem; border-radius: 7px; border: 1px solid rgba(210, 221, 205, 0.75); }
.beam-legend { display: flex; gap: .8rem; font-size: .64rem; font-weight: 500; color: #49604d; background: rgba(249, 251, 247, 0.9); backdrop-filter: blur(6px); padding: .38rem .65rem; border-radius: 7px; border: 1px solid rgba(210, 221, 205, 0.75); }
.beam-legend span { white-space: nowrap; display: flex; align-items: center; }
.beam-legend i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; background: #0f9684; box-shadow: 0 0 0 2px rgba(15, 150, 132, 0.18); }
.beam-legend span:last-child i { background: #d59324; box-shadow: 0 0 0 2px rgba(213, 147, 36, 0.22); }
.beam-inspector { display: flex; flex-direction: column; padding: 1.45rem 1.35rem 1.2rem; border-left: 1px solid var(--beam-line); background: #fcfdf9; min-height: 600px; box-sizing: border-box; }
.beam-inspector .beam-eyebrow { font-size: .58rem; letter-spacing: .15em; }
.beam-inspector h3 { font: 500 1.75rem/1.12 'Outfit', sans-serif; letter-spacing: -.025em; margin: .55rem 0 .7rem; }
.beam-description { color: var(--beam-muted); font-size: .79rem; line-height: 1.68; min-height: 5.2rem; }
.beam-fact { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--beam-line); font-size: .72rem; color: var(--beam-muted); line-height: 1.58; }
.beam-fact strong { color: var(--beam-ink); font-weight: 600; display: block; margin-bottom: .2rem; }
.beam-actions { margin: 1rem 0 .75rem; display: flex; flex-direction: column; gap: .45rem; }
.beam-button { display: flex; align-items: center; justify-content: center; gap: .6rem; width: 100%; padding: .68rem .8rem; font-size: .75rem !important; font-weight: 500 !important; border-radius: 7px; border: 1px solid #c6d5be; background: #ffffff; color: var(--beam-green); transition: background .15s, border-color .15s; }
.beam-button:hover { background: #e8efe2; border-color: #9bb596; }
.beam-button-primary { background: #2f6b40; border-color: #2f6b40; color: #fff; }
.beam-button-primary:hover { background: #245732; border-color: #245732; }
.beam-button:disabled { cursor: default; opacity: .5; }
.beam-live { margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--beam-line); }
.beam-live-title { font-size: .6rem; font-weight: 600; text-transform: uppercase; letter-spacing: .14em; color: #6c7d6b; margin-bottom: .45rem; }
.beam-readout { display: flex; justify-content: space-between; align-items: baseline; font-size: .72rem; padding: .32rem 0; gap: .5rem; }
.beam-readout span { color: var(--beam-muted); }
.beam-readout output { font-family: 'Outfit', sans-serif; font-size: .92rem; font-weight: 500; color: var(--beam-ink); font-variant-numeric: tabular-nums; }
.beam-status { color: var(--beam-muted); font-size: .68rem; line-height: 1.55; margin-top: .45rem; }
.beam-route { display: flex; gap: .35rem; flex-wrap: wrap; border-top: 1px solid var(--beam-line); padding: .7rem 1.1rem; background: #fbfcf9; }
.beam-route button { display: flex; align-items: center; gap: .45rem; font-size: .69rem; font-weight: 500; padding: .48rem .7rem; color: #5f705e; border-radius: 6px; border: 1px solid transparent; transition: background .15s, color .15s, border-color .15s; }
.beam-route button span { width: 17px; height: 17px; display: grid; place-items: center; border: 1px solid #bfd0b8; border-radius: 50%; font: 600 10px 'Inter',sans-serif; background: #ffffff; }
.beam-route button[aria-current="step"] { background: #e2ede0; color: #1e4629; border-color: #b8ceb2; }
.beam-route button[aria-current="step"] span { background: #2f6b40; color: #ffffff; border-color: #2f6b40; }
.beam-route button:hover { background: #edf3e8; }
.beam-transport { display: flex; align-items: center; gap: .65rem; padding: .75rem 1.3rem; border-top: 1px solid var(--beam-line); flex-wrap: wrap; font-size: .69rem; background: #f7faf4; }
.beam-transport > button { padding: .4rem .75rem; border: 1px solid #c8d6c1; border-radius: 6px; background: #ffffff; color: var(--beam-ink); font-weight: 500; }
.beam-transport > button:hover:not(:disabled) { background: #eaf1e4; }
.beam-transport > button:disabled { opacity: .45; cursor: default; }
.beam-scrubber { display: flex; align-items: center; gap: .55rem; flex: 1 1 200px; max-width: 340px; background: #ffffff; border: 1px solid #cedbc7; border-radius: 7px; padding: .3rem .65rem; }
.beam-scrubber input[type="range"] { flex: 1; min-width: 90px; cursor: pointer; margin: 0; }
.beam-scrubber output { font-family: 'Outfit', sans-serif; font-size: .68rem; font-weight: 500; color: var(--beam-ink); white-space: nowrap; min-width: 5.8rem; text-align: right; font-variant-numeric: tabular-nums; }
.beam-follow { display: flex; align-items: center; gap: .42rem; margin-left: auto; font-weight: 500; cursor: pointer; }
.beam-explorer input[type="checkbox"], .beam-explorer input[type="range"] { accent-color: #2f6b40; }
.beam-speed { display: flex; align-items: center; gap: .35rem; }
.beam-speed select { background: #ffffff; border: 1px solid #c8d6c1; padding: .28rem .45rem; border-radius: 5px; font: inherit; color: inherit; }
.beam-footnote { color: #7a8479; font-size: .64rem; line-height: 1.7; margin: .85rem .2rem 0; }
.beam-footnote a { color: #4e7355; text-decoration: underline; text-underline-offset: 3px; }
.beam-controls { margin-top: .55rem; padding-top: .65rem; border-top: 1px solid var(--beam-line); }
.beam-presets { display: flex; gap: .35rem; margin-bottom: .5rem; }
.beam-presets button { flex: 1; padding: .35rem .2rem; border: 1px solid #c7d5c0; border-radius: 5px; background: #ffffff; color: var(--beam-green); font-size: .66rem; font-weight: 600; transition: background .15s, color .15s; }
.beam-presets button:hover, .beam-presets button[aria-pressed="true"] { background: #2f6b40; color: #ffffff; border-color: #2f6b40; }
.beam-controls label { display: block; margin: .5rem 0; color: var(--beam-muted); font-size: .67rem; }
.beam-controls label > span { display: flex; justify-content: space-between; margin-bottom: .25rem; font-weight: 500; color: var(--beam-ink); }
.beam-controls input[type="range"] { display: block; width: 100%; margin: 0; }
.beam-controls select { width: 100%; background: #ffffff; border: 1px solid var(--beam-line); border-radius: 5px; color: var(--beam-ink); font: inherit; padding: .35rem .45rem; margin-top: .2rem; }
.beam-optics-controls[hidden], [data-acceptance-control][hidden], [data-for-optic][hidden], .beam-detector[hidden] { display: none !important; }
.beam-explorer[data-view="maxpeem"] .beam-fact, .beam-explorer[data-view="maxpeem"] .beam-live { display: none; }
.beam-explorer[data-view="maxpeem"] .beam-description { min-height: 0; font-size: .74rem; line-height: 1.5; margin-bottom: .3rem; }
.beam-explorer[data-view="maxpeem"] .beam-inspector h3 { font-size: 1.45rem; margin: .35rem 0 .45rem; }
.beam-optic-prompt { font-size: .65rem; line-height: 1.5; color: var(--beam-muted); background: #f2f6ee; border: 1px solid #d7e3d2; border-radius: 7px; padding: .48rem .65rem; margin: .5rem 0; }
.beam-optic-prompt strong { color: var(--beam-ink); font-weight: 600; }
.beam-detector { position: absolute; left: 1.4rem; top: 8.1rem; width: 176px; background: rgba(249, 251, 247, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid #c5d6bf; border-radius: 11px; padding: .48rem .58rem; box-shadow: 0 8px 22px rgba(24, 52, 33, 0.11); z-index: 4; pointer-events: auto; user-select: none; }
.beam-detector-head { display: flex; justify-content: space-between; align-items: center; gap: .3rem; font-size: .56rem; font-weight: 700; letter-spacing: .02em; color: #3d5843; margin-bottom: .32rem; white-space: nowrap; }
.beam-detector-head output { font-size: .53rem; font-weight: 600; letter-spacing: .01em; padding: .1rem .36rem; border-radius: 999px; background: #e3efe0; color: #245732; white-space: nowrap; }
.beam-detector-head output[data-off="true"] { background: #f7ead8; color: #9c5b16; }
.beam-detector canvas { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: 8px; border: 1px solid #35543e; background: #0f1d15; cursor: crosshair; }
.beam-detector-foot { display: flex; justify-content: space-between; align-items: center; font-size: .57rem; font-weight: 500; color: #455e4a; margin-top: .32rem; font-variant-numeric: tabular-nums; }
.beam-optics-controls { margin-top: .5rem; }
.beam-optics-field { display: block; font-size: .67rem; color: var(--beam-muted); margin: .45rem 0; }
.beam-optics-field > span { display: flex; justify-content: space-between; gap: .5rem; margin-bottom: .25rem; }
.beam-optics-field output { color: var(--beam-ink); font-variant-numeric: tabular-nums; }
.beam-optics-field select { width: 100%; padding: .35rem .4rem; border: 1px solid var(--beam-line); border-radius: 5px; background: #fff; color: var(--beam-ink); font: inherit; margin-top: .2rem; }
.beam-optics-field input { width: 100%; display: block; margin: 0; }
.beam-grating-presets { display: grid; grid-template-columns: repeat(4, 1fr); gap: .3rem; margin-top: .22rem; }
.beam-grating-presets button { padding: .32rem .25rem; border: 1px solid var(--beam-line); border-radius: 5px; background: #fff; color: var(--beam-ink); font-size: .64rem !important; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
.beam-grating-presets button:hover { border-color: #6b9676; }
.beam-grating-presets button[aria-pressed="true"] { background: var(--beam-green); border-color: var(--beam-green); color: #fff; }
.beam-spectrum { margin-top: .65rem; }
.beam-spectrum > p { display: flex; justify-content: space-between; gap: .5rem; color: var(--beam-muted); font-size: .62rem; }
.beam-spectrum > p span { color: var(--beam-ink); }
.beam-spectrum svg { display: block; width: 100%; height: 85px; }
.beam-optics-metrics { border-top: 1px solid var(--beam-line); padding-top: .4rem; }
.beam-optics-metrics > div { display: flex; justify-content: space-between; gap: .5rem; font-size: .68rem; padding: .2rem 0; }
.beam-optics-metrics span { color: var(--beam-muted); }
.beam-optics-metrics output { font-variant-numeric: tabular-nums; font-weight: 500; }
.beam-optics-note { color: var(--beam-muted); font-size: .58rem; line-height: 1.55; margin-top: .45rem; }
.beam-optics-reset { color: var(--beam-green); text-decoration: underline; text-underline-offset: 3px; font-size: .65rem !important; margin-top: .4rem; padding: .2rem 0; }
.beam-optics-footer-actions { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-top: .35rem; }
.beam-button-accent { width: 100%; margin-top: .55rem; padding: .52rem .75rem; border: 1px solid #356c47; border-radius: 7px; background: #edf5ea; color: #214d30; font-size: .7rem !important; font-weight: 600; transition: background .15s, color .15s; }
.beam-button-accent:hover { background: #2f6b40; color: #fff; }
.beam-explorer[data-deep-dive="true"] > .beam-topbar, .beam-explorer[data-deep-dive="true"] > .beam-workspace, .beam-explorer[data-deep-dive="true"] > .beam-route, .beam-explorer[data-deep-dive="true"] > .beam-transport { display: none !important; }
.ud-lab[hidden], .ud-lab [hidden] { display: none !important; }
.ud-lab { color: var(--beam-ink); background: var(--beam-paper); }
.ud-topbar-right { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.ud-workspace { min-height: 540px; }
.ud-stage { min-height: 540px; cursor: grab; }
.ud-stage:active { cursor: grabbing; }
.ud-stage .beam-stage-heading { max-width: calc(100% - 195px); }
.ud-stage .beam-stage-bottom p { max-width: 24rem; }
.ud-legend span:nth-child(2) i { background: #3b7a4e; box-shadow: 0 0 0 2px rgba(59, 122, 78, 0.2); }
.ud-inspector { min-height: 540px; max-height: 610px; overflow-y: auto; scrollbar-width: thin; }
.ud-inspector h3 { font-size: 1.5rem; margin: .38rem 0 .45rem; }
.ud-description { color: var(--beam-muted); font-size: .75rem; line-height: 1.58; margin: 0 0 .55rem; }
.ud-takeaway { border-left: 2px solid #8fb085; padding: .1rem 0 .1rem .65rem; font-size: .7rem; line-height: 1.5; margin: 0 0 .55rem; color: #2d5036; background: #f2f7ee; border-radius: 0 6px 6px 0; }
.ud-ladder-head { display: flex; justify-content: space-between; align-items: center; gap: .4rem; margin: .45rem 0 .3rem; }
.ud-ladder-title { display: flex; justify-content: space-between; align-items: center; gap: .35rem; font-size: .65rem; font-weight: 600; color: var(--beam-ink); margin: 0; flex: 1; }
.ud-ladder-title span { font-size: .54rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; padding: .1rem .38rem; border-radius: 999px; background: #e3efe0; color: #245732; }
.ud-orders-toggle { font-size: .58rem !important; font-weight: 600 !important; padding: .16rem .42rem; border-radius: 5px; border: 1px solid #c3d3bc; background: #fff; color: var(--beam-green); white-space: nowrap; }
.ud-orders-toggle[aria-pressed="true"] { background: #2f6b40; border-color: #2f6b40; color: #fff; }
.ud-ladder { display: grid; grid-template-columns: repeat(2, 1fr); gap: .32rem; margin-bottom: .35rem; }
.ud-ladder button { display: flex; flex-direction: column; align-items: stretch; gap: .12rem; padding: .34rem .48rem; border: 1px solid #c7d5c0; border-radius: 6px; background: #ffffff; color: var(--beam-ink); font-size: .64rem; font-weight: 500; transition: background .15s, border-color .15s, color .15s; text-align: left; }
.ud-ladder button > span { display: flex; justify-content: space-between; align-items: baseline; gap: .25rem; }
.ud-ladder button strong { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: .72rem; color: var(--beam-green); }
.ud-ladder button em { font-style: normal; font-variant-numeric: tabular-nums; font-size: .65rem; color: var(--beam-ink); font-weight: 600; }
.ud-ladder button small { display: flex; justify-content: space-between; gap: .25rem; font-size: .55rem; color: var(--beam-muted); font-variant-numeric: tabular-nums; }
.ud-ladder button:hover { background: #edf3e8; border-color: #98b493; }
.ud-ladder button[aria-pressed="true"] { background: #2f6b40; border-color: #2f6b40; color: #fff; }
.ud-ladder button[aria-pressed="true"] strong, .ud-ladder button[aria-pressed="true"] em, .ud-ladder button[aria-pressed="true"] small { color: #fff; }
.ud-ladder button[data-on-target="true"]:not([aria-pressed="true"]) { border-color: #c8912c; background: #fdf7ea; }
.ud-ladder button[data-out-of-range="true"]:not([aria-pressed="true"]),
.ud-ladder button[data-suppressed="true"]:not([aria-pressed="true"]) { opacity: .68; border-style: dashed; }
.ud-target-field > span { margin-bottom: .3rem; }
.ud-target-row { display: flex; align-items: center; gap: .5rem; }
.ud-target-row input[type="range"] { flex: 1; min-width: 0; }
.ud-target-num { display: inline-flex; align-items: center; gap: .22rem; background: #fff; border: 1px solid #c3d3bc; border-radius: 6px; padding: .16rem .4rem; font-size: .68rem; font-weight: 600; color: var(--beam-ink); }
.ud-target-num input[type="number"] { width: 3.1rem; border: 0; background: transparent; padding: 0; font: 600 .72rem 'Outfit', sans-serif; color: var(--beam-ink); text-align: right; font-variant-numeric: tabular-nums; }
.ud-target-num input[type="number"]:focus { outline: none; }
.ud-target-num em { font-style: normal; font-size: .62rem; color: var(--beam-muted); }
.ud-intensity-card { margin-top: .5rem; padding: .52rem .62rem; background: #f2f7ee; border: 1px solid #cad8c5; border-radius: 8px; }
.ud-intensity-head { display: flex; justify-content: space-between; align-items: baseline; gap: .4rem; font-size: .64rem; color: var(--beam-muted); margin-bottom: .3rem; }
.ud-intensity-head output { font-family: 'Outfit', sans-serif; font-size: .74rem; font-weight: 600; color: var(--beam-ink); font-variant-numeric: tabular-nums; }
.ud-intensity-track { height: 8px; background: #dde7d9; border-radius: 999px; overflow: hidden; border: 1px solid #c6d5be; }
.ud-intensity-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #1b6d72 0%, #2f8b57 48%, #e2a22b 82%, #f4c84b 100%); transition: width .16s ease-out; }
.ud-intensity-fill[data-level="low"] { opacity: .62; }
.ud-intensity-meta { display: flex; justify-content: space-between; align-items: flex-start; gap: .45rem; margin-top: .34rem; font-size: .6rem; line-height: 1.42; color: var(--beam-muted); }
.ud-intensity-meta strong { flex-shrink: 0; font-size: .62rem; color: #245732; background: #e3efe0; padding: .1rem .38rem; border-radius: 999px; white-space: nowrap; }
.ud-calc-btn { margin-top: .48rem; font-size: .7rem !important; font-weight: 600 !important; }
.ud-stage-intensity { position: absolute; top: 3.9rem; right: 1.1rem; width: 274px; background: rgba(249, 251, 247, 0.94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid #c5d6bf; border-radius: 10px; padding: .48rem .62rem; box-shadow: 0 8px 20px rgba(24, 52, 33, 0.09); z-index: 4; pointer-events: none; }
.ud-stage-intensity-head { display: flex; justify-content: space-between; align-items: baseline; gap: .35rem; font-size: .61rem; font-weight: 600; color: #3c5742; margin-bottom: .26rem; }
.ud-stage-intensity-head small { font-weight: 500; color: #647b67; }
.ud-stage-intensity-head strong { font-family: 'Outfit', sans-serif; font-size: .72rem; color: var(--beam-ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ud-stage-intensity-foot { display: flex; justify-content: space-between; align-items: center; gap: .3rem; margin-top: .24rem; font-size: .56rem; color: #4c6250; font-variant-numeric: tabular-nums; }
.ud-stage-intensity-foot span:last-child { font-weight: 600; color: #245732; white-space: nowrap; }
.ud-calc-modal { border-top: 2px solid #2f6b40; border-bottom: 1px solid var(--beam-line); background: #f2f7ee; padding: .95rem 1.35rem 1.05rem; }
.ud-calc-panel { background: #ffffff; border: 1px solid #c7d5c0; border-radius: 14px; padding: .95rem 1.05rem; box-shadow: 0 10px 28px rgba(24, 52, 33, 0.08); }
.ud-calc-header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: .8rem 1.2rem; padding-bottom: .72rem; border-bottom: 1px solid var(--beam-line); margin-bottom: .82rem; }
.ud-calc-header h4 { font-family: 'Outfit', sans-serif; font-size: 1.08rem; font-weight: 600; color: var(--beam-ink); margin: .2rem 0 0; }
.ud-calc-controls { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .65rem .9rem; }
.ud-calc-field { display: flex; flex-direction: column; gap: .22rem; font-size: .63rem; font-weight: 600; color: var(--beam-muted); margin: 0; }
.ud-calc-ev-group { display: flex; align-items: center; gap: .45rem; }
.ud-calc-ev-group input[type="number"] { width: 4.1rem; padding: .28rem .42rem; border: 1px solid #c3d3bc; border-radius: 6px; font: 600 .74rem 'Outfit', sans-serif; color: var(--beam-ink); background: #fff; }
.ud-calc-ev-group input[type="range"] { width: 120px; accent-color: #2f6b40; }
.ud-calc-field select { padding: .3rem .52rem; border: 1px solid #c3d3bc; border-radius: 6px; font: 500 .7rem inherit; color: var(--beam-ink); background: #fff; }
.ud-calc-close { padding: .36rem .7rem; border: 1px solid #c5d4be; border-radius: 6px; background: #f6f9f3; color: var(--beam-ink); font-size: .68rem !important; font-weight: 600; }
.ud-calc-close:hover { background: #e8efe2; }
.ud-calc-body { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(240px, 1fr); gap: 1rem; align-items: stretch; }
.ud-calc-plot-wrap { background: #f9fbf7; border: 1px solid #d2dfd0; border-radius: 10px; padding: .45rem; display: flex; align-items: center; justify-content: center; }
.ud-calc-plot-wrap canvas { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; cursor: crosshair; touch-action: none; border-radius: 6px; }
.ud-calc-sidebar { display: flex; flex-direction: column; gap: .7rem; }
.ud-calc-readout-box { background: #f6faf3; border: 1px solid #cddcc8; border-radius: 10px; padding: .72rem .8rem; }
.ud-calc-readout-title { font-size: .62rem; font-weight: 600; color: #3d5943; margin: 0 0 .5rem; }
.ud-calc-three-vals { display: grid; grid-template-columns: repeat(3, 1fr); gap: .42rem; margin-bottom: .45rem; }
.ud-calc-three-vals > div { background: #fff; border: 1px solid #d5e2d0; border-radius: 7px; padding: .36rem .42rem; text-align: center; }
.ud-calc-three-vals span { display: block; font-size: .56rem; color: var(--beam-muted); margin-bottom: .1rem; }
.ud-calc-three-vals output { display: block; font-family: 'Outfit', sans-serif; font-size: .78rem; font-weight: 600; color: var(--beam-ink); font-variant-numeric: tabular-nums; }
.ud-calc-subreadout { font-size: .62rem; color: var(--beam-muted); margin: 0 0 .55rem; }
.ud-calc-peaks { background: #fbfcf9; border: 1px solid #d8e3d3; border-radius: 10px; padding: .62rem .72rem; flex: 1; }
.ud-calc-peaks-title { font-size: .62rem; font-weight: 600; color: var(--beam-ink); margin: 0 0 .42rem; }
.ud-calc-peaks-list { display: grid; grid-template-columns: 1fr; gap: .32rem; max-height: 150px; overflow-y: auto; }
.ud-calc-peaks-list button { display: flex; justify-content: space-between; align-items: center; gap: .4rem; padding: .34rem .52rem; border: 1px solid #c7d5c0; border-radius: 6px; background: #fff; font-size: .63rem; color: var(--beam-ink); text-align: left; }
.ud-calc-peaks-list button strong { font-family: 'Outfit', sans-serif; color: var(--beam-green); min-width: 2.4rem; }
.ud-calc-peaks-list button span { flex: 1; color: var(--beam-muted); font-variant-numeric: tabular-nums; }
.ud-calc-peaks-list button em { font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.ud-calc-peaks-list button:hover { background: #edf3e8; }
.ud-calc-peaks-list button[aria-pressed="true"] { background: #2f6b40; border-color: #2f6b40; color: #fff; }
.ud-calc-peaks-list button[aria-pressed="true"] strong, .ud-calc-peaks-list button[aria-pressed="true"] span { color: #fff; }
@media (max-width: 900px) { .ud-calc-body { grid-template-columns: 1fr; } .ud-calc-three-vals { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .ud-stage-intensity { display: none; } .ud-calc-modal { padding: .75rem; } }
.ud-readouts { border-top: 1px solid var(--beam-line); margin-top: .45rem; padding-top: .35rem; }
.ud-view-options { display: flex; gap: .85rem; flex-wrap: wrap; border-top: 1px solid var(--beam-line); padding-top: .55rem; margin-top: .55rem; font-size: .67rem; color: var(--beam-muted); }
.ud-view-options label { display: flex; gap: .35rem; align-items: center; cursor: pointer; margin: 0; }
.ud-frame-strip { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; padding: .7rem 1.35rem; border-bottom: 1px solid var(--beam-line); background: #f6f9f2; }
.ud-frame-strip > div { flex: 1; min-width: 220px; }
.ud-frame-strip strong, .ud-frame-strip span { display: block; font-size: .73rem; line-height: 1.6; }
.ud-frame-strip span { font-size: .65rem; color: var(--beam-muted); }
.ud-frame-strip [data-ud-frame-tip] { color: var(--beam-green); font-weight: 600; }
.ud-scene-key { margin: 0; padding: .45rem 1.35rem; font-size: .65rem; line-height: 1.6; color: var(--beam-muted); background: #fbfcf9; border-bottom: 1px solid var(--beam-line); }
.ud-density { margin-top: .6rem; }
.ud-doppler { padding: .9rem 1.35rem; border-top: 1px solid var(--beam-line); background: #fcf8ee; font-size: .75rem; line-height: 1.6; }
.ud-doppler ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.7rem; padding-left: 1.2rem; margin: .55rem 0; }
.ud-doppler p { color: var(--beam-muted); margin: .45rem 0 0; }
.ud-doppler output { font-weight: 600; color: #795213; }
.ud-more { font-size: .68rem; line-height: 1.6; margin-top: .5rem; color: var(--beam-muted); }
.ud-more summary { cursor: pointer; color: var(--beam-green); }
.ud-more p { margin: .4rem 0; }
.ud-relativity-chain { display: flex; justify-content: space-around; align-items: center; gap: .6rem; text-align: center; }
.ud-relativity-chain span { min-width: 0; }
.ud-relativity-chain small { display: block; font-size: .65rem; color: var(--beam-muted); }
.ud-relativity-chain b, .ud-relativity-chain output { font: 500 1.3rem 'Outfit', sans-serif; }
.ud-relativity-chain i { font-style: normal; color: #a58b55; }
.ud-harmonics-lesson { display: flex; align-items: center; gap: 1.2rem; padding: .85rem 1.35rem; background: #fcf8ee; border-top: 1px solid var(--beam-line); font-size: .75rem; }
.ud-harmonics-lesson > div { flex: 1; }
.ud-harmonics-lesson p { margin: .3rem 0; color: var(--beam-muted); }
.ud-harmonics-lesson svg { width: 45%; max-width: 400px; }
@media (max-width: 700px) { .ud-harmonics-lesson { flex-direction: column; align-items: stretch; } .ud-harmonics-lesson svg { width: 100%; } }
@media (max-width: 700px) { .ud-doppler ol { grid-template-columns: 1fr; gap: .6rem; } }
.ud-pov { width: auto; flex-shrink: 0; padding: .65rem 1rem; box-shadow: 0 3px 12px #31583b15; }
.ud-pov[aria-pressed="true"] { background: #2f6b40; color: #fff; border-color: #2f6b40; }
.ud-map-status { padding: .5rem .6rem; background: #f1f6ec; border-left: 2px solid #b68a3c; border-radius: 0 6px 6px 0; }
.ud-evidence { border-top: 1px solid var(--beam-line); padding: .75rem 1.35rem; display: flex; gap: 1.2rem; align-items: center; background: #f6f9f2; min-height: 112px; }
.ud-evidence > div { flex: 0 0 38%; min-width: 195px; }
.ud-evidence h4 { font-family: 'Outfit', sans-serif; font-size: 1rem; font-weight: 500; margin: .18rem 0 .2rem; color: var(--beam-ink); }
.ud-evidence svg { flex: 1; width: 62%; max-width: 560px; height: 96px; overflow: visible; }
.ud-evidence svg[data-interactive="true"] { height: 146px; cursor: crosshair; touch-action: none; user-select: none; }
.ud-transport .ud-next { background: #2f6b40; border-color: #2f6b40; color: #fff; }
.ud-transport .ud-next:hover:not(:disabled) { background: #245732; }
.ud-notes { padding: .75rem 1.35rem .9rem; margin: 0; border-top: 1px solid var(--beam-line); background: #fbfcf9; }
.ud-notes p { margin: .22rem 0; }
.ud-notes strong { color: var(--beam-ink); font-weight: 600; }
.ud-notes summary { cursor: pointer; color: var(--beam-green); font-weight: 600; margin-top: .25rem; }
@media (max-width: 900px) {
    .ud-evidence { flex-direction: column; align-items: stretch; }
    .ud-evidence svg { width: 100%; max-width: none; }
}
.beam-optic-label { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; background: #fcfdf9f2; backdrop-filter: blur(4px); border: 1px solid #b5cab0; border-radius: 999px; color: #264d32; padding: .24rem .62rem; white-space: nowrap; font-size: .63rem !important; font-weight: 500; box-shadow: 0 3px 9px #1d3e2518; transition: background .15s, color .15s, border-color .15s; }
.beam-optic-label::before { content: ''; display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: #3b7a4e; vertical-align: middle; margin-right: 5px; }
.beam-optic-label[hidden] { display: none; }
.beam-optic-label:hover, .beam-optic-label[aria-pressed="true"] { color: #fff; background: #2f6b40; border-color: #245732; }
.beam-optic-label:hover::before, .beam-optic-label[aria-pressed="true"]::before { background: #f2c166; }
.beam-optics-key { position: absolute; left: 1.4rem; top: 5.8rem; display: flex; flex-wrap: wrap; gap: .65rem; color: #4d6752; font-size: .62rem; pointer-events: none; padding: .35rem .6rem; border-radius: 5px; background: #fbfcf8ed; }
.beam-optics-key[hidden] { display: none; }
.beam-optics-key span { display: flex; align-items: center; gap: .3rem; }
.beam-optics-key i { width: 13px; height: 2px; background: #5188c2; }
.beam-optics-key span:nth-child(2) i { background: #d59a2e; }
.beam-optics-key span:nth-child(3) i { background: #cb6552; }
.beam-spectrum > .beam-spectrum-legend { font-size: .58rem; margin: -.25rem 0 .4rem; }
.beam-polarization { display: block; width: 100%; height: 60px; margin-top: .35rem; background: #f4f8f0; border: 1px solid #e1eadb; border-radius: 6px; }
.beam-explorer[data-view="undulator"] .beam-fact, .beam-explorer[data-view="undulator"] .beam-live { display: none; }
.beam-explorer[data-view="undulator"] .beam-description { min-height: 0; font-size: .75rem; line-height: 1.55; }
.beam-loading { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; padding: 2rem; font-size: .8rem; color: #5e755e; z-index: 6; background: #f6f8f2; }
.beam-loading[hidden], .beam-controls[hidden] { display: none; }
.beam-loading a { text-decoration: underline; }
html.dark .beam-intro > p { color: #acb8ad; }
html.dark .beam-eyebrow, html.dark .beam-intro h2 span { color: #9cbb91; }
html.dark .beam-footnote { color: #9ba89a; }
html.dark .beam-footnote a { color: #afc9a6; }
@media (min-width: 1400px) {
    .beam-workspace, .beam-stage, .beam-inspector { min-height: 630px; }
}
@media (max-width: 850px) {
    .beam-intro { display: block; }
    .beam-intro > p { margin-top: 1rem; max-width: 34rem; }
    .beam-workspace { grid-template-columns: minmax(0,1fr) 260px; min-height: 550px; }
    .beam-inspector { padding: 1.2rem 1rem; min-height: 550px; }
    .beam-stage { min-height: 550px; }
    .beam-stage-heading { left: .9rem; top: .95rem; padding: .45rem .7rem; }
    .beam-stage-heading strong { font-size: 1rem; }
    .beam-stage-bottom { left: .7rem; flex-wrap: wrap; gap: .25rem; }
    .beam-legend { display: none; }
}
@media (max-width: 640px) {
    .beam-workspace { grid-template-columns: 1fr; min-height: 0; }
    .beam-stage { height: 400px; min-height: 0; }
    .beam-inspector { border-left: 0; border-top: 1px solid var(--beam-line); min-height: 0; padding: 1.1rem 1rem; }
    .beam-inspector h3 { font-size: 1.45rem; margin: .35rem 0 .45rem; }
    .beam-description { min-height: 0; }
    .beam-fact { margin-top: .65rem; padding-top: .65rem; }
    .beam-live { margin-top: .65rem; padding-top: .65rem; }
    .beam-topbar { padding: .85rem 1rem; }
    .beam-modes { width: 100%; }
    .beam-modes button { flex: 1; padding: .55rem; }
    .beam-route { gap: .2rem; padding: .55rem .65rem; }
    .beam-route button { padding: .5rem .55rem; }
    .beam-place { padding: .42rem .6rem; min-height: 32px; }
    .beam-transport { padding: .7rem .85rem; gap: .55rem; }
    .beam-scrubber { flex: 1 1 100%; max-width: none; order: -1; }
    .beam-follow { margin-left: 0; }
    .beam-view-tools button { width: 36px; height: 36px; }
    .beam-stage-bottom p { max-width: 17rem; }
}
@media (prefers-reduced-motion: reduce) { .beam-explorer * { transition: none !important; } }
