/* Workshop shell: locally scoped original CSS. Bootstrap is a local base. */
:root { --cex-ui-ink: #25363d; --cex-ui-muted: #5f737d; --cex-ui-primary: #165f66; --cex-ui-line: #d2dfdc; --cex-ui-paper: #fff; --cex-ui-mint: #e9f2ee; }
* { box-sizing: border-box; }
html, body { margin: 0; min-width: 0; background: #f7f7f2; }
body { color: var(--cex-ui-ink); font-family: system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 14px; line-height: 1.6; }
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { -webkit-tap-highlight-color: transparent; }
button { touch-action: manipulation; }
[hidden] { display: none !important; }
.cex-workshop { padding: clamp(16px, 3vw, 32px); max-width: 1280px; margin: auto; }
.cex-workshop h1, .cex-workshop h2, .cex-workshop h3 { color: var(--cex-ui-ink); font-weight: 750; letter-spacing: -.025em; line-height: 1.25; }
.cex-workshop h1 { font-size: clamp(26px, 3.1vw, 39px); margin: 6px 0 14px; max-width: 700px; }
.cex-workshop h2 { font-size: 22px; margin: 0; }
.cex-workshop h3 { font-size: 16px; }
.cex-workshop p { overflow-wrap: anywhere; }
.cex-eyebrow { color: var(--cex-ui-primary); font-size: 10px; font-weight: 750; text-transform: uppercase; letter-spacing: .12em; margin: 0 0 8px; }
.cex-intro { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 12px 0 30px; }
.cex-intro p:not(.cex-eyebrow) { max-width: 730px; margin: 0; color: var(--cex-ui-muted); font-size: 15px; }
.cex-intro-mark { flex: none; width: 114px; height: 114px; border-radius: 24px; display: flex; justify-content: center; align-items: center; flex-direction: column; background: var(--cex-ui-mint); color: var(--cex-ui-primary); font-size: 40px; font-weight: 750; border: 1px solid var(--cex-ui-line); transform: rotate(-6deg); line-height: 1.2; }
.cex-intro-mark span { font-size: 9px; letter-spacing: .1em; margin-top: 8px; }
.cex-library { padding-bottom: 28px; margin-bottom: 28px; border-bottom: 1px solid var(--cex-ui-line); }
.cex-section-line { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }
.cex-count, .cex-step { color: var(--cex-ui-primary); font-size: 11px; font-weight: 700; }
.cex-library-tools { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; margin-bottom: 18px; align-items: center; }
.cex-categories { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; }
.cex-categories button, .cex-code-tabs button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--cex-ui-line); border-radius: 9px; background: #fff; color: var(--cex-ui-ink); font-size: 12px; font-weight: 650; }
.cex-categories button[aria-pressed="true"], .cex-code-tabs button[aria-pressed="true"] { background: var(--cex-ui-primary); color: #fff; border-color: var(--cex-ui-primary); }
.cex-categories button[aria-pressed="false"]:hover, .cex-code-tabs button[aria-pressed="false"]:hover { background: var(--cex-ui-mint); color: #194c52; border-color: #96b7af; }
.cex-search { position: relative; flex: 0 1 218px; margin: 0; }
.cex-search svg { position: absolute; width: 17px; height: 17px; stroke: var(--cex-ui-muted); fill: none; top: 14px; left: 13px; stroke-width: 1.8; pointer-events: none; }
.cex-search input { padding-left: 39px !important; }
.cex-workshop .form-control, .cex-workshop .form-select { border: 1px solid #bed0cb; border-radius: 10px; min-height: 44px; background-color: #fff; color: var(--cex-ui-ink); box-shadow: none; padding: 9px 12px; font-size: 14px; }
.cex-workshop .form-control:focus, .cex-workshop .form-select:focus { border-color: var(--cex-ui-primary); box-shadow: 0 0 0 3px #165f6625; }
.cex-preset-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.cex-preset { padding: 7px 7px 11px; border: 1px solid var(--cex-ui-line); border-radius: 12px; background: #fff; text-align: left; color: var(--cex-ui-ink); min-width: 0; }
.cex-preset[aria-pressed="true"] { border: 2px solid var(--cex-ui-primary); padding: 6px 6px 10px; background: #eef5f1; }
.cex-preset:hover { border-color: var(--cex-ui-primary); background: #f0f6f2; color: var(--cex-ui-ink); }
.cex-preset-art { display: grid; place-items: center; min-height: 68px; border-radius: 7px; margin-bottom: 9px; background: #102f36; color: #c2eee3; overflow: hidden; }
.cex-preset-art span { font-size: 26px; font-weight: 800; line-height: 1.2; display: inline-block; }
.cex-preset-name { display: block; padding: 0 3px; font-size: 11px; font-weight: 700; line-height: 1.4; min-height: 31px; }
.cex-preset-category { display: block; color: var(--cex-ui-muted); padding: 0 3px; font-size: 9px; }
.cex-preset[data-category="letters"] .cex-preset-art span { letter-spacing: .06em; }
.cex-preset[data-category="gradients"] .cex-preset-art span { background: linear-gradient(120deg, #c2eee3, #ffca72); background-clip: text; -webkit-background-clip: text; color: transparent; }
.cex-preset[data-category="glow"] .cex-preset-art span { text-shadow: 0 0 9px #ffca7277; }
.cex-preset[data-category="reveal"] .cex-preset-art span { border-bottom: 2px solid #ffca72; }
.cex-preset[data-category="depth"] .cex-preset-art span { text-shadow: 2px 2px #287580, 3px 3px #287580; transform: skewY(-4deg); }
.cex-preset[data-category="micro"] .cex-preset-art span { outline: 1px solid #ffca7277; outline-offset: 5px; }
.cex-library-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }
.cex-library-bottom p { margin: 0; font-size: 11px; color: var(--cex-ui-muted); }
.cex-empty { padding: 20px; border: 1px dashed var(--cex-ui-line); border-radius: 12px; color: var(--cex-ui-muted); margin: 0; }
.cex-editor { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 18px; align-items: start; margin-bottom: 24px; }
.cex-panel { background: var(--cex-ui-paper); border: 1px solid var(--cex-ui-line); border-radius: 20px; box-shadow: 0 8px 24px #183d4104; min-width: 0; }
.cex-controls { padding: 22px; }
.cex-controls h2 { font-size: 19px; }
.cex-field { margin-bottom: 17px; }
.cex-field > label { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 650; margin: 0 0 6px; }
.cex-field label > span, .cex-field output { font-size: 10px; font-weight: 500; color: var(--cex-ui-muted); flex: none; }
.cex-field textarea { resize: vertical; }
.cex-help { margin: 6px 0 0; color: var(--cex-ui-muted); font-size: 11px; line-height: 1.65; }
.cex-colors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 19px; }
.cex-colors label { font-size: 11px; font-weight: 650; }
.cex-colors input { display: block; min-height: 44px; height: 44px; width: 100%; padding: 5px; border: 1px solid #bed0cb; border-radius: 8px; background: #fff; cursor: pointer; margin-top: 6px; }
.cex-workshop .form-range { min-height: 44px; margin: 0; padding: 10px 0; }
.cex-workshop .form-range::-webkit-slider-thumb { background: var(--cex-ui-primary); }
.cex-workshop .form-range::-moz-range-thumb { background: var(--cex-ui-primary); }
.cex-check label { justify-content: flex-start; min-height: 44px; cursor: pointer; gap: 10px; }
.cex-check input { width: 20px; height: 20px; accent-color: var(--cex-ui-primary); }
.cex-button { display: inline-flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 8px; min-height: 44px; border-radius: 10px; padding: 10px 16px; font-size: 12px; font-weight: 650; border: 1px solid var(--cex-ui-line); text-decoration: none; line-height: 1.35; cursor: pointer; }
.cex-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.cex-primary { background: var(--cex-ui-primary); color: #fff; border-color: var(--cex-ui-primary); }
.cex-primary:hover, .cex-primary:active { background: #10494e; color: #fff; border-color: #10494e; }
.cex-secondary { background: #fff; color: #2e4952; border-color: #bfcfcc; }
.cex-secondary:hover, .cex-secondary:active { background: #edf4f0; color: #194c52; border-color: #81a89e; }
.cex-button:disabled { opacity: .55; cursor: default; }
.cex-reset { width: 100%; }
.cex-mobile-jump { display: none; min-height: 44px; padding: 10px 0; font-size: 12px; color: var(--cex-ui-primary); text-decoration: underline; text-underline-offset: 3px; }
.cex-workshop button:focus-visible, .cex-workshop input:focus-visible, .cex-workshop textarea:focus-visible, .cex-workshop select:focus-visible, .cex-workshop a:focus-visible { outline: 3px solid #9c6a17; outline-offset: 3px; }
.cex-live { overflow: hidden; }
.cex-live-header { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 24px 24px 20px; }
.cex-live-header .cex-eyebrow { margin-bottom: 5px; }
.cex-state-pill { font-size: 10px; color: var(--cex-ui-primary); background: var(--cex-ui-mint); border: 1px solid var(--cex-ui-line); padding: 6px 9px; border-radius: 99px; }
.cex-live .cex-scene { min-height: 340px; }
.cex-play-tools { display: flex; flex-wrap: wrap; gap: 9px; padding: 20px 24px 0; }
.cex-feedback { margin: 11px 24px 0; color: var(--cex-ui-primary); font-size: 12px; }
.cex-context-help { margin: 6px 24px 20px; font-size: 11px; color: var(--cex-ui-muted); }
.cex-explanation { border-top: 1px solid var(--cex-ui-line); padding: 22px 24px; }
.cex-explanation > p { margin: 0 0 16px; }
.cex-explanation dl { margin-bottom: 16px; }
.cex-explanation dl > div { display: grid; grid-template-columns: 108px minmax(0, 1fr); gap: 12px; margin: 12px 0; }
.cex-explanation dt { font-size: 11px; color: var(--cex-ui-primary); }
.cex-explanation dd { font-size: 12px; color: var(--cex-ui-muted); margin: 0; }
.cex-explanation .cex-helper-note { border-radius: 10px; background: #edf4f0; padding: 12px; font-size: 11px; color: #45656c; margin: 0; }
.cex-export { padding: 24px; }
.cex-export > .cex-help { margin-top: -6px; max-width: 850px; }
.cex-code-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; justify-content: space-between; margin: 20px 0 10px; }
.cex-code-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cex-code { background: #0d2931; color: #d1ece7; padding: 18px; border-radius: 12px; font-size: 11px; line-height: 1.75; max-height: 300px; overflow: auto; white-space: pre; margin: 0; }
.cex-code-note { font-size: 11px; color: var(--cex-ui-muted); margin: 10px 0 0; }
.cex-code-note code { color: var(--cex-ui-primary); }
.cex-copy-status { min-height: 18px; margin: 10px 0 0; font-size: 11px; color: var(--cex-ui-primary); }
.cex-checks { padding: 28px 0; }
.cex-check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 20px; }
.cex-check-grid span { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--cex-ui-mint); color: var(--cex-ui-primary); font-weight: 650; margin-bottom: 12px; }
.cex-check-grid h3 { margin: 0 0 8px; }
.cex-check-grid p { font-size: 12px; color: var(--cex-ui-muted); margin: 0; }
.cex-footer { border-top: 1px solid var(--cex-ui-line); padding-top: 18px; font-size: 10px; color: var(--cex-ui-muted); }
.cex-footer p { margin: 0; }
.cex-noscript { border: 1px solid #cda850; padding: 16px; border-radius: 10px; margin-top: 20px; }
@media (max-width: 1050px) { .cex-preset-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cex-search { flex-basis: 100%; } .cex-editor { grid-template-columns: 285px minmax(0, 1fr); } }
@media (max-width: 750px) { .cex-intro { gap: 14px; align-items: flex-start; } .cex-intro-mark { width: 65px; height: 65px; font-size: 28px; border-radius: 15px; } .cex-intro-mark span { font-size: 7px; margin-top: 3px; } .cex-intro p:not(.cex-eyebrow) { font-size: 13px; } .cex-editor { grid-template-columns: 1fr; } .cex-controls { padding: 20px; } .cex-live { grid-row: 1; } .cex-live .cex-scene { min-height: 285px; } .cex-check-grid { gap: 15px; } .cex-mobile-jump { display: block; } .cex-controls > .cex-mobile-jump { margin: -8px 0 14px; } }
@media (max-width: 480px) { .cex-workshop { padding: 16px; } .cex-intro { padding: 6px 0 24px; } .cex-intro-mark { display: none; } .cex-workshop h1 { font-size: 28px; } .cex-workshop h2 { font-size: 20px; } .cex-preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .cex-preset-art { min-height: 60px; } .cex-preset-name { font-size: 11px; } .cex-library-bottom .cex-button { width: 100%; } .cex-categories button { font-size: 11px; padding: 8px 10px; } .cex-live-header, .cex-explanation { padding: 20px 18px; } .cex-play-tools { padding: 18px 18px 0; } .cex-play-tools .cex-primary { flex: 1 1 170px; } .cex-feedback, .cex-context-help { margin-left: 18px; margin-right: 18px; } .cex-explanation dl > div { grid-template-columns: 1fr; gap: 4px; } .cex-explanation dd { font-size: 12px; } .cex-export { padding: 20px 18px; } .cex-export .cex-section-line > .cex-button { width: 100%; } .cex-code-tools > .cex-button { width: 100%; } .cex-code { font-size: 10px; padding: 14px; } .cex-check-grid { grid-template-columns: 1fr; gap: 22px; } }
