body.quiet-page.lab-page { height: auto; min-height: 100dvh; overflow: visible; grid-template-rows: auto 1fr auto; }
.lab-page { --lab-line: #293540; --lab-surface: #0b1016; --lab-muted: #a7b3bf; }
.lab-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: clamp(16px, 2.5vw, 36px); }
.lab-nav a { min-height: 44px; display: inline-flex; align-items: center; color: #a9b5c1; text-decoration: none; font-size: .8125rem; }
.lab-nav a:hover, .lab-nav a[aria-current] { color: #ecf4fb; }
.lab-main { max-width: 1440px; align-content: start; padding: 35px 0 0; }
.lab-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: end; padding-bottom: 48px; }
.lab-main .lab-eyebrow { color: #9caebd; font-size: .65rem; letter-spacing: .16em; margin: 0 0 21px; }
.lab-main h1 { font-size: clamp(2.7rem, 5.4vw, 5.2rem); letter-spacing: -.065em; line-height: 1.03; }
.lab-intro { padding-bottom: 3px; max-width: 450px; justify-self: end; }
.lab-intro p { font-size: 1rem; color: #b3bec9; margin-top: 0; }
.lab-intro .quiet-action { font-size: .875rem; }
.lab-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 304px; border: 1px solid var(--lab-line); border-radius: 12px; overflow: clip; background: var(--lab-surface); scroll-margin-top: 20px; }
.lab-player { min-width: 0; align-self: start; background: #090f15; }
.lab-stage-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 58px; padding: 12px 22px; font-size: .8rem; }
.lab-stage-heading > div { display: flex; align-items: center; gap: 9px; }
.lab-dot { width: 6px; height: 6px; background: #b6d4ee; border-radius: 50%; }
.lab-runtime { color: #8d9ead; font-size: .6875rem; }
.lab-canvas-wrap { background: #0a1118; border-block: 1px solid #25313c; }
[data-lab-canvas] { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; outline-offset: -3px; touch-action: pan-y; }
[data-lab-canvas]:focus-visible { outline: 2px solid #bfdcf4; }
.lab-transport { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px 12px; }
.lab-buttons { display: flex; align-items: center; gap: 8px; }
.lab-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 15px; border: 1px solid #42515f; border-radius: 6px; background: #111a23; color: #d8e4ee; font-size: .75rem; font-weight: 400; cursor: pointer; text-decoration: none; }
.lab-button:hover { background: #1d2b37; border-color: #7890a6; }
.lab-button:active { transform: translateY(1px); }
.lab-button.primary { color: #101d28; background: #d5e9f9; border-color: #d5e9f9; }
.lab-button.primary:hover { background: #f0f8ff; }
[data-lab-stats] { color: #a0b3c2; font-size: .7rem; font-variant-numeric: tabular-nums; text-align: right; line-height: 1.6; }
.lab-touch { display: flex; padding: 0 22px; gap: 8px; }
.lab-touch .lab-button { min-width: 66px; min-height: 44px; touch-action: none; user-select: none; -webkit-user-select: none; }
.lab-touch .lab-jump { margin-left: 8px; min-width: 90px; }
.lab-touch [data-held] { background: #35516a; border-color: #b6d5ef; }
.lab-main .lab-status { color: #a7b8c5; font-size: .73rem; margin: 12px 22px 18px; min-height: 2.5em; }
.lab-editor { padding: 24px; border-left: 1px solid var(--lab-line); }
.lab-main h2 { margin: 0; color: #e6edf4; font-weight: 400; font-size: 1.3rem; line-height: 1.25; letter-spacing: -.035em; }
.lab-editor-heading p { font-size: .72rem; margin: 8px 0 23px; }
.lab-presets { border: 0; padding: 0; margin: 0 0 23px; }
.lab-presets legend { color: #a6b7c5; font-size: .73rem; padding: 0; margin-bottom: 10px; }
.lab-preset-options { display: flex; gap: 5px; flex-wrap: wrap; }
.lab-preset-options button { color: #aebfcd; background: transparent; border: 1px solid #3d4d59; border-radius: 5px; font-size: .68rem; min-height: 36px; padding: 7px 9px; cursor: pointer; }
.lab-preset-options button[aria-pressed="true"] { color: #ecf5fc; background: #273e4e; border-color: #a8c8e0; }
.lab-preset-options button:hover { border-color: #a8c8e0; }
.lab-slider { display: block; margin: 0 0 15px; font-size: .75rem; color: #d0dce6; }
.lab-slider > span { display: flex; justify-content: space-between; gap: 8px; }
.lab-slider output { color: #8da5b8; font-variant-numeric: tabular-nums; }
.lab-slider input { width: 100%; margin: 7px 0 0; height: 28px; accent-color: #bbd9ef; cursor: pointer; }
.lab-course-row { display: grid; gap: 17px; border-top: 1px solid #2c3a45; padding-top: 16px; margin-top: 5px; font-size: .75rem; }
.lab-course-row > label:first-child { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 16px; }
.lab-course-row select { color: #d8e6f1; border: 1px solid #40515f; border-radius: 5px; background: #101b24; width: 100%; padding: 8px; min-height: 40px; }
.lab-checkbox { display: inline-flex; gap: 9px; align-items: center; min-height: 24px; cursor: pointer; }
.lab-checkbox input { width: 17px; height: 17px; margin: 0; accent-color: #bbd9ef; }
.lab-readout { border-top: 1px solid #2c3a45; margin-top: 18px; padding-top: 15px; }
.lab-readout > span { font-size: .63rem; text-transform: uppercase; letter-spacing: .12em; color: #8ea6b8; }
.lab-main .lab-readout p { font-size: .77rem; line-height: 1.6; margin: 7px 0; color: #c1d0dd; }
.lab-readout small { display: block; color: #90a2b2; font-size: .67rem; line-height: 1.55; }
.lab-below { display: grid; grid-template-columns: 1fr 1fr; gap: 7%; padding: 46px 0; }
.lab-below .lab-eyebrow { margin-bottom: 15px; }
.lab-below h2 { font-size: 1.7rem; }
.lab-below p { max-width: 62ch; font-size: .8125rem; }
.lab-key-hint { color: #b7c4cf !important; }
kbd { display: inline-block; font: inherit; padding: 0 5px; min-width: 22px; text-align: center; background: #17232d; color: #d2e1ec; border: 1px solid #3a4b59; border-radius: 3px; }
.lab-file-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.lab-import { position: relative; overflow: hidden; }
.lab-import input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.lab-import:focus-within { outline: 2px solid #b9dcff; outline-offset: 4px; }
.lab-share-label { display: grid; gap: 8px; margin-top: 16px; font-size: .75rem; color: #b4c4d2; }
.lab-share-label input { width: 100%; padding: 12px; border: 1px solid #435563; border-radius: 5px; color: #d6e7f5; background: #0e1821; font-size: .75rem; }
.lab-main .lab-file-status { font-size: .72rem; min-height: 3em; }
.lab-boundary { display: flex; align-items: center; gap: 48px; border-top: 1px solid var(--lab-line); padding: 23px 0; }
.lab-boundary p { max-width: 68ch; margin: 0; font-size: .75rem; }
.lab-boundary a { font-size: .75rem; color: #c8def1; text-decoration: none; line-height: 1.7; }
.lab-fallback { padding: 20px; border: 1px solid var(--lab-line); }
.lab-fallback a { color: #d3e8f8; }
.lab-page .quiet-footer { border-top: 1px solid #1e2933; margin-top: 5px; }
@media (min-width: 1500px) { .lab-editor { padding: 28px; } .lab-workspace { grid-template-columns: minmax(0, 1fr) 340px; } }
@media (max-width: 1000px) { .lab-workspace { grid-template-columns: minmax(0, 1fr) 275px; } .lab-editor { padding: 20px; } .lab-transport { align-items: start; flex-direction: column; gap: 10px; } [data-lab-stats] { text-align: left; } .lab-heading { gap: 30px; } }
@media (max-width: 760px) { .lab-main { padding-top: 25px; } .lab-workspace { grid-template-columns: 1fr; } .lab-editor { border-left: 0; border-top: 1px solid var(--lab-line); } .lab-editor form { display: grid; grid-template-columns: 1fr 1fr; column-gap: 25px; } .lab-presets, .lab-course-row { grid-column: 1 / -1; } .lab-course-row { grid-template-columns: 1fr 1fr; align-items: center; } .lab-heading { grid-template-columns: 1fr; gap: 22px; padding-bottom: 32px; } .lab-intro { justify-self: start; } .lab-intro p { font-size: .875rem; } .lab-intro p br { display: none; } .lab-nav { gap: 16px; flex-wrap: wrap; justify-content: flex-end; } .lab-nav a { font-size: .6875rem; min-height: 32px; } .lab-page .quiet-header { align-items: start; padding: 15px 0; } .lab-transport { flex-direction: row; align-items: center; } [data-lab-stats] { text-align: right; } .lab-below { grid-template-columns: 1fr; gap: 28px; padding: 35px 0; } .lab-boundary { flex-direction: column; gap: 16px; align-items: start; } }
@media (max-width: 420px) { body.quiet-page.lab-page { padding-inline: 16px; } .lab-nav { gap: 1px 14px; max-width: 204px; } .lab-stage-heading { padding-inline: 14px; font-size: .73rem; } .lab-runtime { font-size: .6rem; } .lab-transport { padding-inline: 14px; flex-direction: column; align-items: start; } .lab-touch { padding-inline: 14px; } [data-lab-stats] { text-align: left; } .lab-main .lab-status { margin-inline: 14px; } .lab-editor { padding: 18px; } .lab-editor form { column-gap: 17px; } .lab-slider { font-size: .7rem; } .lab-slider > span { flex-direction: column; gap: 4px; } .lab-course-row { grid-template-columns: 1fr; } .lab-page .quiet-footer { gap: 12px; flex-wrap: wrap; padding-block: 10px; } }
@media (prefers-reduced-motion: reduce) { .lab-button:active { transform: none; } }
