/* Shared presentation layer for the individual Labs experiences.
   Screen-only rules leave generated documents and print layouts untouched. */
@media screen {
    .lab-workspace {
        --ws-paper: #edf0e5;
        --ws-muted: #9caaa1;
        --ws-mint: #b8d9b7;
        --ws-line: #b6cbb31f;
        --ws-panel: linear-gradient(145deg, #252d27 0%, #151c17 45%, #111713 100%);
        --ws-shadow: inset 0 1px 0 #eaffdb1a, 0 2px 0 #060b07, 0 20px 50px #0005;
        --bg: #0b0f0d;
        --surface: #161d18;
        --surface2: #202a22;
        --border: #b6cbb326;
        --text: #edf0e5;
        --text2: #9caaa1;
        --accent: #b8d9b7;
        --accent2: #a4cba4;
        --text-muted: #9caaa1;
        --font-heading: 'Space Grotesk', sans-serif;
        --font-body: 'Inter', sans-serif;
        color: var(--ws-paper);
        background: radial-gradient(ellipse at 75% 0%, #1c352780, transparent 55%), #0b0f0d;
        font-family: var(--font-body);
    }
    .lab-workspace :is(a, button, input, textarea, select, [tabindex]):focus-visible {
        outline: 2px solid #c4e6ba;
        outline-offset: 4px;
    }
    .lab-workspace :is(button, input, textarea, select) { font-family: var(--font-body); }
    /* Tall tool panels must be readable before an intersection threshold is met. */
    .lab-workspace .reveal-on-scroll { opacity: 1; transform: none; }
    .lab-workspace :is(.game-nav, .pl-nav, .nv-nav, .header) {
        min-height: 76px;
        padding: 16px clamp(20px, 4vw, 64px);
        background: #0c100de8;
        border-bottom: 1px solid var(--ws-line);
        backdrop-filter: blur(18px);
    }
    .lab-workspace :is(.game-nav, .pl-nav, .nv-nav) > a:first-child { display: flex; align-items: center; }
    .lab-workspace :is(.game-nav-logo, .pl-nav, .nv-nav) img { height: 28px; width: auto; }
    .lab-workspace .ws-nav-label,
    .lab-workspace .header-title { margin: 0; color: #d7e2d5; font: 500 11px/1.5 var(--font-heading); letter-spacing: .13em; }
    .lab-workspace .ws-nav-label > span,
    .lab-workspace .header-title > span { color: #657c6b; margin: 0 12px; }
    .lab-workspace :is(.game-nav-back, .pl-back, .nv-back, .back-btn, .ws-back) {
        display: inline-flex; align-items: center; min-height: 40px;
        padding: 10px 18px; border: 1px solid #c1d5bd26; border-radius: 100px;
        color: #c7d3c7; background: #d7efd304; text-decoration: none;
        font: 500 11px/1.5 var(--font-body); text-transform: none; letter-spacing: 0;
        box-shadow: inset 0 1px 0 #d7efd308;
        transition: border-color .2s, background .2s;
    }
    .lab-workspace :is(.game-nav-back, .pl-back, .nv-back, .back-btn, .ws-back):hover {
        background: #b8d9b70b; border-color: #c1d5bd66; box-shadow: none;
    }
    .lab-workspace :is(.ws-eyebrow, .game-label, .pl-chip, .ws-cv-head > div:first-child) {
        display: block; width: fit-content; margin: 0 0 20px; padding: 0;
        border: 0; border-radius: 0; background: none; box-shadow: none;
        color: #b4cbb0; font: 500 10px/1.6 var(--font-body); letter-spacing: .16em;
    }
    .lab-workspace :is(.game-title, .pl-title, .hero h1, .ws-cv-head h1) {
        color: var(--ws-paper); background: none; -webkit-text-fill-color: currentColor;
        font: 600 clamp(36px, 4.3vw, 58px)/1.06 var(--font-heading);
        letter-spacing: -.055em; margin: 0 0 20px;
    }
    .lab-workspace :is(.game-title-accent, .pl-title span, .hero h1 span, .ws-cv-head h1 span) {
        color: #b5ccad; -webkit-text-stroke: 0; -webkit-text-fill-color: currentColor; background: none;
    }
    .lab-workspace :is(.game-subtitle, .pl-sub, .hero p, .ws-cv-head > p) {
        font: 14px/1.85 var(--font-body); color: var(--ws-muted); margin: 0; max-width: 48ch;
    }
    .lab-workspace :is(.generate-btn, .pl-scan-btn, #startGameBtn, #restartGameBtn, .pm-btn-solid) {
        color: #17251b; border: 1px solid #d4ebc6;
        background: linear-gradient(165deg, #d2e9bd, #a6c6a1);
        box-shadow: inset 0 1px 0 #f4ffdfb3, 0 3px 0 #5a785c, 0 8px 22px #0004;
        border-radius: 12px; text-shadow: none;
        font-family: var(--font-heading); font-weight: 600; letter-spacing: .015em;
        transition: box-shadow .2s, filter .2s, transform .2s;
    }
    .lab-workspace :is(.generate-btn, .pl-scan-btn, #startGameBtn, #restartGameBtn, .pm-btn-solid):hover {
        filter: brightness(1.06); box-shadow: inset 0 1px 0 #f4ffdfb3, 0 3px 0 #5a785c, 0 10px 28px #0005;
    }
    .lab-workspace :is(.generate-btn, .pl-scan-btn, #startGameBtn, #restartGameBtn, .pm-btn-solid):active {
        transform: translateY(2px); box-shadow: inset 0 1px 2px #284d3130, 0 1px 0 #5a785c;
    }
    .lab-workspace :is(.prompt-input, .form-input, .form-textarea, .form-select, .pl-textarea, .pl-context) {
        min-width: 0; color: #e1e8da; background: #090f0bc9;
        border: 1px solid #a9c3ab2e; border-radius: 10px;
        box-shadow: inset 0 2px 4px #0004; font-size: 13px; line-height: 1.6;
    }
    .lab-workspace :is(input, textarea)::placeholder { color: #819086; opacity: 1; }
    .lab-workspace .footer { border-color: var(--ws-line); background: none; }
    .lab-workspace :is(.cv-footer, .site-footer, .footer-content) { gap: 12px; flex-wrap: wrap; align-items: center; }
    .lab-workspace :is(.cv-footer, .site-footer, .footer-content) > * { min-width: 0; }
    .lab-workspace :is(.cv-footer a, .site-footer a, .footer-privacy) { color: #a4b1a8; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; }
    @media (max-width: 768px) {
        .lab-workspace :is(.cv-footer, .cv-footer a, .site-footer, .site-footer a, .footer-copyright, .footer-made, .footer-privacy) { font-size: 11px !important; letter-spacing: 0; }
    }

    /* Arcade: a machined frame around the existing, untransformed canvas. */
    .workspace-game { height: 100dvh; overflow: hidden; }
    .workspace-game .game-page { height: 100dvh; min-height: 0; }
    .workspace-game .game-main { width: 100%; max-width: 1400px; min-height: 0; height: 100%; margin: 0 auto; padding: 96px 36px 16px; }
    .workspace-game .game-header { display: grid; grid-template-columns: 1fr 1fr; align-items: center; flex-shrink: 0; width: 100%; max-width: 1300px; min-height: 0; padding: 0; margin: 0 0 20px; text-align: left; }
    .workspace-game .game-header .game-label { grid-column: 1; font-size: 8px; margin-bottom: 8px; }
    .workspace-game .game-header .game-title { grid-column: 1; font-size: clamp(28px, 3vw, 40px); margin: 0; }
    .workspace-game .game-header .game-subtitle { grid-column: 2; grid-row: 1 / 3; justify-self: end; font-size: 11px; line-height: 1.7; text-align: right; }
    .workspace-game .footer { display: none; }
    .workspace-cycle .game-card, .workspace-drive #gameContainer:not(.is-fullscreen) {
        max-width: 1300px; border: 1px solid #a4af945c; border-radius: 20px;
        box-shadow: 0 0 0 5px #252e27, 0 0 0 6px #a3ad8d45, 0 9px 0 6px #111a14, 0 10px 0 6px #6d785340, 0 35px 70px #0008;
        background: #0c150f; transform: none;
    }
    .workspace-cycle .game-card { flex: 1; min-height: 0; margin-bottom: 0; }
    .workspace-drive #gameContainer:not(.is-fullscreen) { flex: 1; min-height: 0; height: auto; max-height: none; aspect-ratio: auto; }
    .workspace-cycle .game-card:hover { border-color: #a4af945c; background: #0c150f; }
    .workspace-cycle .score-header { flex-shrink: 0; padding: 10px 24px; border: 0; border-bottom: 1px solid #c0d3ac22; border-radius: 0; background: linear-gradient(#303c31, #202c23); font-size: 10px; color: #b9c6b4; }
    .workspace-cycle .score-header > span { gap: 14px; }
    .workspace-cycle .score-header :is(.score-val, .best-val) { min-width: 42px; padding: 6px 10px; border-radius: 5px; justify-content: center; font-size: 18px; font-variant-numeric: tabular-nums; color: #d8eacd; background: #0d170f; box-shadow: inset 0 2px 5px #0008, 0 1px 0 #c5d2b224; }
    .workspace-cycle #dinoCanvasWrapper { flex: 1; min-height: 0; border: 0; border-radius: 0; background: #060f0b; }
    .workspace-cycle #dinoCanvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
    .workspace-cycle #startOverlay, .workspace-drive #startOverlay3d { background: linear-gradient(135deg, #102519b0, #061009d9); backdrop-filter: blur(5px); }
    .workspace-cycle #startGameBtn, .workspace-cycle #restartGameBtn, .workspace-drive #startGameBtn { padding: 16px 30px; font-size: 14px; text-transform: none; }
    .workspace-game .start-hint { color: #aabda9; font-size: 12px; letter-spacing: .02em; }
    .workspace-cycle #gameOverOverlay { background: #08120cea; backdrop-filter: blur(8px); }
    .workspace-cycle .gameover-title { font: 600 clamp(24px, 4vw, 38px)/1.2 var(--font-heading); color: #edf0e5; letter-spacing: -.035em; }
    .ws-control-deck { display: flex; flex-shrink: 0; align-items: center; justify-content: space-between; gap: 18px; width: 100%; max-width: 1300px; margin-top: 18px; padding: 10px 6px; border-bottom: 1px solid var(--ws-line); color: #a5b4a5; font-size: 12px; }
    .ws-control-deck > span { display: inline-flex; align-items: center; gap: 9px; }
    .ws-control-deck kbd { padding: 7px 10px; background: linear-gradient(#2e3930, #18241b); border: 1px solid #b5c6a733; border-radius: 6px; box-shadow: 0 3px 0 #070e09; color: #d5e1cc; font: 10px/1 var(--font-heading); }
    .ws-deck-note i { width: 5px; height: 5px; border-radius: 50%; background: #b7d9a1; }
    .workspace-game .game-tip { flex-shrink: 0; margin: 16px 0 0; color: #8b9b8f; max-width: 1300px; font-size: 11px; line-height: 1.8; }
    .workspace-cycle .game-tip { display: none; }
    .workspace-drive :is(#speedometer, #scorePanel, #minimapPanel, #instructionsPanel, .fullscreen-toggle) { background: linear-gradient(145deg, #253c2be0, #0b1711ed); border-color: #abc79c4d; box-shadow: inset 0 1px 0 #d9eac013, 0 8px 22px #0006; }
    .workspace-drive #gameContainer.is-fullscreen { box-shadow: none; }

    /* Proof Lenz: the instructions and working desk have separate space. */
    .workspace-proof .pl-main { max-width: 1280px; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.35fr); gap: clamp(36px, 6vw, 80px); padding: 80px 36px 100px; align-items: start; }
    .workspace-proof .pl-head { text-align: left; margin: 25px 0 0; }
    .workspace-proof .pl-sub { max-width: 39ch; }
    .ws-steps { list-style: none; padding: 0; margin: 42px 0 0; max-width: 310px; }
    .ws-steps li { display: flex; align-items: center; gap: 18px; border-top: 1px solid var(--ws-line); padding: 17px 0; font: 12px/1.6 var(--font-body); color: #b4c3b2; }
    .ws-steps li span { font: 10px/1 var(--font-heading); color: #78917d; }
    .ws-proof-bench { min-width: 0; padding: 24px; border: 1px solid #a0b79a38; border-radius: 22px; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .ws-bench-label { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 22px; color: #abc0a7; font: 9px/1.5 var(--font-body); letter-spacing: .14em; }
    .ws-bench-label > span:last-child { color: #7b917e; font-size: 8px; }
    .workspace-proof .pl-source { margin-bottom: 18px; }
    .workspace-proof .pl-seg { border: 1px solid #b5cba42b; background: #08130b80; border-radius: 9px; padding: 4px; gap: 4px; }
    .workspace-proof .pl-seg button { border-radius: 6px; color: #acbaa7; font: 500 11px/1.5 var(--font-body); letter-spacing: 0; text-transform: none; min-height: 36px; }
    .workspace-proof .pl-seg button.active { color: #e4efda; background: linear-gradient(#496444, #314b30); box-shadow: inset 0 1px 0 #ddf4c51f, 0 2px 4px #0004; }
    .workspace-proof .pl-drop { border: 1px solid #98b28c40; border-radius: 13px; background: radial-gradient(ellipse at 50% 35%, #233d2d, #0c1911 80%); padding: 24px 20px 30px; box-shadow: inset 0 3px 12px #0005; }
    .workspace-proof .pl-drop:hover, .workspace-proof .pl-drop.dragging { border-color: #b4d7a6; background: radial-gradient(ellipse at 50% 35%, #2c4935, #101f15 80%); }
    .workspace-proof .pl-drop-title { font: 500 21px/1.4 var(--font-heading); letter-spacing: -.025em; color: #edf0e5; }
    .workspace-proof :is(.pl-drop-hint, .pl-drop-paste) { color: #a4b49e; font-size: 11px; line-height: 1.8; }
    .workspace-proof .pl-badges span { padding: 5px 9px; color: #9caf97; font: 9px/1.6 var(--font-body); text-transform: none; letter-spacing: 0; border-color: #a1b88c24; }
    .workspace-proof .pl-panel { background: #0e1912; box-shadow: inset 0 1px 0 #d4ecc413; border-color: #9cb78c33; border-radius: 13px; padding: 20px; }
    .workspace-proof .pl-opts { gap: 12px; flex-wrap: wrap; }
    .workspace-proof .pl-textarea { min-height: 225px; }
    .workspace-proof .pl-scan-btn { font-size: 13px; min-height: 48px; }
    .workspace-proof .pl-results-head { flex-wrap: wrap; gap: 18px; }
    .workspace-proof .pl-actions { margin-left: 0; flex-wrap: wrap; }
    .ws-proof-object { position: relative; width: 205px; height: 206px; margin: 0 auto 14px; perspective: 800px; pointer-events: none; }
    .ws-paper-object { position: absolute; top: 13px; left: 26px; width: 124px; height: 165px; text-align: left; padding: 17px; border-radius: 4px; color: #314632; background: linear-gradient(135deg, #f3f0db, #c0ceb1); border: 1px solid #f5f8e6; transform: rotate(-10deg) rotateY(10deg); box-shadow: 3px 3px 0 #647957, 7px 7px 0 #355337, 13px 22px 28px #0006; }
    .ws-paper-object > span { font: 6px/1.5 var(--font-body); letter-spacing: .12em; }
    .ws-paper-object strong { display: block; margin: 17px 0 14px; font: 600 25px/1 var(--font-heading); letter-spacing: -.06em; }
    .ws-paper-object i { display: block; width: 90%; height: 2px; margin: 5px 0; background: #5d7b5652; }
    .ws-paper-object i:last-child { width: 65%; }
    .ws-lens { position: absolute; top: 81px; right: 2px; width: 79px; height: 79px; display: grid; place-items: center; border: 6px solid #b2c3a0; border-radius: 50%; font: 500 30px/1 var(--font-heading); color: #e0efca; background: linear-gradient(135deg, #a7caaa70, #1b402894); box-shadow: inset 0 0 0 2px #1b361a, inset 4px 6px 8px #c3e5ac40, 0 0 0 2px #3b5635, 3px 10px 20px #0006; backdrop-filter: blur(2px); transform: rotate(-15deg); }
    .ws-lens::after { content: ''; position: absolute; width: 14px; height: 55px; top: 60px; right: -15px; border-radius: 6px; background: linear-gradient(90deg, #526b4a, #b1c39c 40%, #536e47); transform: rotate(-40deg); box-shadow: 4px 7px 10px #0005; }
    .ws-lens > span { position: absolute; right: -12px; top: -9px; font: 600 11px/23px var(--font-body); width: 23px; border-radius: 50%; color: #244729; background: #c5e6ac; }

    /* Palette desk and dimensional fan of swatches. */
    .workspace-palette .main { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.2fr); gap: 64px; max-width: 1280px; padding: 76px 36px; align-items: start; }
    .workspace-palette .hero { text-align: left; margin-bottom: 38px; }
    .workspace-palette .hero h1 { max-width: 8ch; }
    .ws-field-label { display: block; color: #bcc9b5; font: 12px/1.5 var(--font-body); margin-bottom: 12px; }
    .workspace-palette .input-section { flex-direction: column; margin: 0 0 22px; }
    .workspace-palette .prompt-input { width: 100%; padding: 16px; }
    .workspace-palette .generate-btn { min-height: 48px; }
    .workspace-palette .suggestions { justify-content: flex-start; margin: 0; gap: 9px; }
    .workspace-palette .pill { background: #132016; border-color: #a6bf9e29; color: #abbba3; font: 11px/1.6 var(--font-body); padding: 7px 11px; }
    .workspace-palette .palettes-container { gap: 26px; min-width: 0; }
    .workspace-palette .empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 545px; padding: 45px 24px; border-radius: 22px; border: 1px solid #a0b79a38; background: radial-gradient(ellipse at 50% 25%, #29432e, transparent 65%), var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-palette .empty-state h3, .workspace-slides .empty-state h3 { color: #dbe7d1; font: 500 21px/1.4 var(--font-heading); letter-spacing: -.03em; }
    .workspace-palette .empty-state p, .workspace-slides .empty-state p { color: #98ab94; font: 12px/1.9 var(--font-body); }
    .ws-swatch-object { position: relative; width: 280px; max-width: 100%; height: 265px; margin-bottom: 25px; perspective: 800px; }
    .ws-swatch-object i { position: absolute; left: calc(50% - 39px); top: 22px; width: 78px; height: 207px; border-radius: 8px; transform-origin: 50% 90%; transform: rotate(var(--angle)) rotateY(-12deg); background: linear-gradient(110deg, #ffffff26, transparent 50%), var(--swatch); box-shadow: inset 0 1px 0 #ffffff6b, inset 1px 0 0 #ffffff3d, 3px 4px 0 #0b1d1459, 10px 15px 22px #0005; transition: transform .45s; }
    .ws-swatch-object i::before { content: ''; position: absolute; inset: 65% 0 0; border-radius: 0 0 8px 8px; background: linear-gradient(110deg, #e5e5ca, #c2cbb2); }
    .ws-swatch-object i::after { content: ''; position: absolute; width: 8px; height: 8px; border-radius: 50%; bottom: 17px; left: 35px; border: 2px solid #99aa8c; background: #425e39; box-shadow: inset 1px 2px 2px #071608, 0 1px 0 #fff9; }
    .workspace-palette .empty-state:hover .ws-swatch-object i { transform: rotate(calc(var(--angle) * 1.1)) rotateY(-12deg); }
    .workspace-palette .palette-card { border-radius: 16px; padding: 8px; border-color: #a0b79a38; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-palette .color-strip { border-radius: 9px; overflow: hidden; height: 155px; }
    .workspace-palette .color-swatch .hex { opacity: 1; }
    .workspace-palette .palette-header { padding: 12px 10px 20px; flex-wrap: wrap; gap: 12px; }
    .workspace-palette .palette-details { padding: 16px 4px 4px; }

    /* Slide Maker: a raised control panel beside a spacious stage. */
    .workspace-slides .main { max-width: 1600px; margin: 0 auto; padding: 24px; height: calc(100dvh - 76px); gap: 24px; }
    .workspace-slides .left-panel { width: 350px; min-width: 310px; border: 1px solid #a0b79a38; border-radius: 17px; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-slides .panel-section { padding: 24px; border-color: var(--ws-line); }
    .workspace-slides .panel-section .ws-eyebrow { font-size: 8px; margin-bottom: 15px; }
    .ws-editor-title { font: 600 31px/1.2 var(--font-heading); letter-spacing: -.045em; color: #e5ecdc; margin: 0 0 12px; }
    .workspace-slides .panel-section .sub { color: #a3b39b; line-height: 1.8; }
    .workspace-slides .form-group label { color: #b4c3ac; font-size: 10px; letter-spacing: .07em; }
    .workspace-slides .count-btn { border-color: #acc39f2e; color: #adbea5; background: #0d180f; }
    .workspace-slides .count-btn.active { background: #3d5937; border-color: #abc89b77; color: #edf5df; box-shadow: inset 0 1px 0 #cde7b62b; }
    .workspace-slides .right-panel { min-width: 0; border: 1px solid #a0b79a24; border-radius: 17px; background: radial-gradient(ellipse at 50% 25%, #21362770, transparent 65%), #0e1510; box-shadow: inset 0 2px 12px #0003; padding: 30px; }
    .workspace-slides .empty-state { margin: auto; width: 100%; padding: 45px 10px; }
    .ws-slide-object { perspective: 800px; width: 340px; max-width: 90%; height: 225px; margin: 0 auto 55px; }
    .ws-slide-object > div { position: relative; text-align: left; height: 100%; padding: 27px; border-radius: 9px; border: 1px solid #e9eed0; color: #233c28; background: linear-gradient(130deg, #e0e6c6, #aabf94); transform: rotateX(9deg) rotateY(-14deg) rotateZ(-5deg); box-shadow: 6px 8px 0 #6c8761, 12px 16px 0 #344d30, 22px 30px 30px #0006; }
    .ws-slide-object small { font: 7px/1.5 var(--font-body); letter-spacing: .16em; }
    .ws-slide-object strong { position: relative; display: block; z-index: 1; margin: 24px 0 18px; font: 600 44px/.98 var(--font-heading); letter-spacing: -.06em; }
    .ws-slide-object span { font: 8px/1.6 var(--font-body); letter-spacing: .12em; }
    .ws-slide-object i { position: absolute; top: 65px; right: 30px; width: 100px; height: 100px; border: 23px solid #5e7d50; border-radius: 50%; box-shadow: inset 3px 3px 5px #20391f60, 4px 5px 0 #9aad81; }

    /* CV editor: styles target the controls, never the exported resume. */
    .workspace-cv #mainContent > nav, .workspace-poster > nav { background: #0c100df0; border-color: var(--ws-line); }
    .workspace-cv #mainContent > nav > div, .workspace-poster > nav > div { height: 76px; max-width: none; padding-inline: clamp(20px, 4vw, 64px); }
    .workspace-cv #mainContent > main { padding-top: 128px; max-width: 1240px; }
    .workspace-cv .ws-cv-ambient { opacity: .2; }
    .workspace-cv #previewPlaceholder { opacity: 1; color: #667560; }
    .workspace-cv .ws-cv-head { text-align: left; margin-bottom: 32px; padding-bottom: 30px; border-bottom: 1px solid var(--ws-line); }
    .workspace-cv .ws-cv-head > p { max-width: 65ch; }
    .workspace-cv .section-card { background: var(--ws-panel); border: 1px solid #a0b79a38; border-radius: 17px; box-shadow: var(--ws-shadow); }
    .workspace-cv .section-card h3 { font-family: var(--font-heading); font-size: 17px; font-weight: 500; }
    .workspace-cv .form-label { color: #b4c3ac; font-size: 11px; }
    .workspace-cv .entry-card { border: 1px solid #abc09c24; background: #0b170e; border-radius: 10px; }
    .workspace-cv .template-btn { color: #b6c4ad; border-color: #b4c4a72e; background: #131f16; box-shadow: inset 0 1px 0 #d6edba0d; }
    .workspace-cv .template-btn.active { color: #e5efd9; border-color: #b4c4a76e; background: linear-gradient(#40543a, #283e25); }
    .workspace-cv :is(.ai-btn, .fix-btn) { color: #c4dfb1; border-color: #a6c18a40; background: #283e2466; }
    .workspace-cv .section-card :is(.text-accentPurple, .text-accentCyan) { color: #b8d9a5; }
    .workspace-cv .ws-cv-preview-frame { padding: 10px; border: 1px solid #b3c6a64d; border-radius: 17px; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-cv .ws-cv-actions { display: flex; flex-wrap: wrap; gap: 12px; }
    .workspace-cv .ws-cv-action { flex: 1 1 190px; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 14px 20px; border: 1px solid #b8d9b747; border-radius: 12px; font: 600 14px var(--font-body); letter-spacing: 0; text-transform: none; transition: filter .2s, transform .2s; }
    .workspace-cv .ws-cv-action-review { color: var(--ws-paper); background: var(--ws-panel); box-shadow: inset 0 1px 0 #eaffdb14, 0 3px 0 #050b07; }
    .workspace-cv .ws-cv-action-save { color: #17251b; background: linear-gradient(155deg, #c6dfb9, #9fbc98); box-shadow: inset 0 1px 0 #f3ffe580, 0 3px 0 #52664f, 0 8px 24px #0003; }
    .workspace-cv .ws-cv-action svg { width: 19px; height: 19px; flex-shrink: 0; }
    .workspace-cv .ws-cv-action:hover:not(:disabled) { filter: brightness(1.08); transform: translateY(-1px); }
    .workspace-cv .ws-cv-action:active:not(:disabled) { transform: translateY(1px); }
    .workspace-cv .ws-cv-action:disabled { opacity: .65; cursor: wait; }
    .workspace-cv .ws-cv-action-note { margin-top: 12px; color: var(--ws-muted); font: 400 12px/1.6 var(--font-body); }

    /* Poster Maker: keep the editable SVG surface and its coordinates intact. */
    .workspace-poster .editor-layout { padding: 94px 20px 20px; gap: 18px; background: transparent; }
    .workspace-poster .editor-layout > div:first-child { border: 1px solid #a0b79a38; border-radius: 16px; background: #101911; box-shadow: var(--ws-shadow); }
    .workspace-poster #toolbar { background: linear-gradient(#2b352c, #1c291e); border-color: var(--ws-line); padding: 12px; gap: 5px; }
    .workspace-poster .tool-btn { min-width: 48px; color: #b7c2af; border: 1px solid #b8cba212; border-radius: 9px; }
    .workspace-poster .tool-btn.active { color: #e2edd5; background: linear-gradient(#4d6543, #33492f); border-color: #bdd3a652; box-shadow: inset 0 1px 0 #e0f2c51f, 0 3px 6px #0004; }
    .workspace-poster .right-panel { border: 1px solid #a0b79a38; border-radius: 16px; overflow: hidden; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-poster #canvasArea { background-color: #101911; background-image: radial-gradient(#8fa48628 1px, transparent 1px); background-size: 22px 22px; }
    .workspace-poster #posterSVG { box-shadow: 0 0 0 1px #b3c99a33, 0 7px 0 #273423, 0 8px 0 #a1b38b40, 0 28px 40px #0007; }
    .workspace-poster .panel-card { border-color: #a4ba8e2e; background: #0e1b1070; box-shadow: inset 0 1px 0 #c7dfac0f; }
    .workspace-poster .chat-msg.bot { color: #c5d3bc; background: #30432a40; border-color: #a0bb8c26; }
    .workspace-poster :is(#tabAI, #tabLayers).text-accent { color: #c1d9ad; border-color: #9cbd82; }
    .workspace-poster .size-btn.active { color: #cee3bc; border-color: #adc79866; background: #31462b; }
    .workspace-poster .mobile-gate { background: radial-gradient(ellipse at 50% 25%, #233d2b, #0b100c 75%); }

    /* NOVA: a glass core seated in a dark, bevelled circular housing. */
    .workspace-nova .nv-main { max-width: 980px; padding-top: 27px; }
    .workspace-nova .ws-eyebrow { margin-bottom: 11px; font-size: 8px; }
    .workspace-nova .nv-title { font: 600 clamp(30px, 4vh, 44px)/1.1 var(--font-heading); letter-spacing: -.02em; margin-bottom: 10px; }
    .workspace-nova .nv-title span { color: #b5cfaa; -webkit-text-stroke: 0; }
    .workspace-nova .nv-sub { color: #9bb093; line-height: 1.7; font-size: 12px; }
    .workspace-nova .nv-orb-wrap { max-height: 40vh; background: radial-gradient(circle, #102219 50%, #080e0a 62%, #25392b 64%, #687e59 64.5%, #111d13 65%, #0a110b 68%, transparent 68.5%); }
    .workspace-nova .nv-orb-wrap::after { content: ''; position: absolute; inset: 11%; border-radius: 50%; box-shadow: inset 1px 2px 0 #d3e9bd33, inset 0 -3px 7px #000c, 0 20px 35px #0006; pointer-events: none; }
    .workspace-nova .nv-core { inset: 26%; background: radial-gradient(circle at 33% 26%, #f2ffe1, #b1d6a5 12%, #589774 36%, #214d35 65%, #081e13 91%); box-shadow: inset 2px 3px 4px #e3ffd759, inset -7px -10px 18px #03150bd6, 0 10px 30px #0009, 0 0 45px #84b47726; }
    .workspace-nova .nv-core::before { content: ''; position: absolute; inset: 9% 17% 60% 14%; border-radius: 50%; background: linear-gradient(#f2ffe77d, transparent); transform: rotate(-32deg); }
    .workspace-nova .nv-ring { border-color: #a7c78b26; }
    .workspace-nova .nv-ring--2 { border-color: #a7c78b1a; }
    .workspace-nova .nv-ring::before { background: #bfe998; box-shadow: 0 0 8px #d9ffb259; }
    .workspace-nova .nv-inputrow { padding: 9px; gap: 8px; border-radius: 18px; border: 1px solid #a6c18e40; background: var(--ws-panel); box-shadow: var(--ws-shadow); }
    .workspace-nova .nv-input { padding: 13px 14px; border-radius: 10px; background: #06120999; border-color: #a6c18e26; font-size: 13px; }
    .workspace-nova .nv-iconbtn { color: #bdd4ad; border-color: #b2cb9833; border-radius: 10px; background: linear-gradient(#30452a, #1b2e1a); flex-shrink: 0; }
    .workspace-nova .nv-iconbtn[aria-pressed="true"] { background: #49653a; border-color: #c0d69e88; color: #eff9da; }
    .workspace-nova .nv-quick button { font-size: 10px; color: #aabe9b; letter-spacing: 0; text-transform: none; }
    .workspace-nova .nv-chat { max-height: 150px; }
    .workspace-nova .nv-foot { padding-block: 10px; }

    @media (max-width: 1000px) {
        .workspace-proof .pl-main, .workspace-palette .main { gap: 30px; padding-inline: 24px; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); }
        .workspace-proof .pl-main { padding-top: 48px; }
        .workspace-proof .ws-proof-bench { padding: 18px; }
        .ws-bench-label > span:last-child { display: none; }
        .workspace-slides .main { padding: 18px; gap: 18px; }
        .workspace-slides .left-panel { min-width: 280px; width: 310px; }
        .workspace-slides .right-panel { padding: 20px; }
        .ws-slide-object { height: 190px; }
        .ws-slide-object > div { padding: 20px; }
        .ws-slide-object strong { font-size: 36px; }
        .ws-slide-object i { width: 75px; height: 75px; border-width: 17px; right: 15px; }
    }
    @media (max-width: 768px) {
        .lab-workspace :is(.game-nav, .pl-nav, .nv-nav, .header) { min-height: 66px; padding: 12px 20px; }
        .lab-workspace .ws-nav-label { font-size: 9px; letter-spacing: .08em; }
        .lab-workspace .header-title { font-size: 9px; letter-spacing: .06em; }
        .lab-workspace :is(.ws-nav-label, .header-title) > span { margin-inline: 6px; }
        .lab-workspace :is(.game-nav-back, .pl-back, .nv-back, .back-btn, .ws-back) { padding: 8px 12px; min-height: 36px; font-size: 10px; }
        .lab-workspace :is(.game-title, .pl-title, .hero h1, .ws-cv-head h1) { font-size: 39px; }
        .lab-workspace :is(.game-subtitle, .pl-sub, .hero p, .ws-cv-head > p) { font-size: 13px; }
        .workspace-game .game-main { padding: 84px 20px 12px; }
        .workspace-game .game-header { margin-bottom: 18px; }
        .workspace-game .game-header .game-subtitle { max-width: 25ch; font-size: 10px; }
        .workspace-cycle .score-header { padding: 10px 14px; font-size: 8px; }
        .workspace-cycle .score-header :is(.score-val, .best-val) { font-size: 15px; padding: 5px 8px; min-width: 32px; }
        .workspace-cycle #startGameBtn, .workspace-cycle #restartGameBtn { padding: 10px 20px; font-size: 12px; }
        .workspace-game .start-hint { font-size: 10px; margin-top: 12px; }
        .ws-control-deck { font-size: 10px; gap: 12px; padding-block: 16px; }
        .ws-control-deck > span { gap: 6px; }
        .ws-control-deck kbd { font-size: 8px; padding: 7px; }
        .ws-deck-note { display: none !important; }
        .workspace-proof .pl-main, .workspace-palette .main { display: block; padding: 38px 20px 60px; }
        .workspace-proof .pl-head { margin: 0 0 30px; }
        .workspace-proof .pl-sub { max-width: 53ch; }
        .ws-steps { display: none; }
        .workspace-proof .pl-drop { padding: 18px 12px 25px; }
        .ws-proof-object { height: 190px; }
        .workspace-proof .pl-drop-title { font-size: 20px; }
        .workspace-proof .pl-drop-hint { font-size: 10px; }
        .workspace-palette .hero { margin-bottom: 25px; }
        .workspace-palette .hero h1 { max-width: none; }
        .workspace-palette .palettes-container { margin-top: 36px; }
        .workspace-palette .empty-state { min-height: 440px; }
        .workspace-palette .color-strip { height: 125px; }
        .workspace-palette .color-swatch .hex { font-size: 9px; padding: 4px; }
        .workspace-slides .main { height: auto; flex-direction: column; }
        .workspace-slides .left-panel { width: 100%; min-width: 0; overflow: visible; }
        .workspace-slides .right-panel { min-height: 480px; overflow: visible; }
        .workspace-slides .empty-state { padding: 30px 0; }
        .ws-slide-object { height: 210px; }
        .workspace-cv #mainContent > nav > div, .workspace-poster > nav > div { height: 66px; padding-inline: 20px; }
        .workspace-cv #mainContent > main { padding-top: 98px; }
        .workspace-poster .ws-nav-label { display: none; }
        .workspace-nova .nv-main { padding-top: 20px; }
        .workspace-nova .nv-voicesel { max-width: 220px; }
        .workspace-nova .nv-sub { font-size: 10px; max-width: 42ch; }
        .workspace-nova .ws-eyebrow { font-size: 7px; }
        .workspace-nova .nv-inputrow { display: grid; grid-template-columns: repeat(5, 1fr); padding: 8px; gap: 6px; }
        .workspace-nova .nv-input { grid-column: 1 / -1; grid-row: 1; width: 100%; font-size: 16px; }
        .workspace-nova .nv-iconbtn { width: 100%; height: 34px; }
        .workspace-nova #nvSend { grid-column: 5; }
        .workspace-nova .nv-chat { max-height: 90px; }
    }
    @media (max-width: 420px) {
        .lab-workspace .game-nav .ws-nav-label { display: none; }
        .workspace-game .game-header { grid-template-columns: 1fr; }
        .workspace-game .game-header .game-subtitle { display: none; }
        .workspace-proof .ws-proof-bench { padding: 13px; }
        .workspace-proof .pl-panel { padding: 14px; }
        .workspace-proof .pl-seg button { padding-inline: 10px; font-size: 10px; }
        .lab-workspace .header-left { gap: 10px; }
    }
    @media (max-height: 740px) {
        .workspace-nova { height: auto; min-height: 100svh; overflow-y: auto; }
        .workspace-nova .nv-orb-zone { min-height: 220px; }
        .workspace-nova .nv-orb-wrap { width: 190px; height: 190px; }
    }
    @media (max-height: 540px) {
        .workspace-game .game-nav { min-height: 48px; height: 48px; padding-block: 5px; }
        .workspace-game .game-main { padding-top: 61px; padding-bottom: 10px; }
        .workspace-game .game-header { margin-bottom: 13px; }
        .workspace-game .game-header .game-label { display: none; }
        .workspace-game .game-header .game-title { font-size: 23px; }
        .workspace-game .game-header .game-subtitle { display: none; }
        .workspace-game .game-tip, .workspace-game .ws-control-deck { display: none; }
        .workspace-cycle .score-header { padding-block: 5px; }
        .workspace-cycle #startGameBtn, .workspace-cycle #restartGameBtn { padding: 9px 18px; }
        .workspace-cycle .start-hint { margin-top: 8px; }
    }
    @media (prefers-reduced-motion: reduce) {
        .lab-workspace *, .lab-workspace *::before, .lab-workspace *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    }
}
