.pattern-studio {
    --ps-ink: #25233c;
    --ps-muted: #6b6a7e;
    --ps-line: #e6e4ee;
    --ps-purple: #6d50bd;
    --ps-paper: #faf9fd;
    container-type: inline-size;
    max-width: 1140px;
    margin: 0 auto;
    padding: 28px 28px 40px;
    color: var(--ps-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    font-size: 15px;
}
.pattern-studio *, .pattern-studio *::before, .pattern-studio *::after { box-sizing: border-box; }
.pattern-studio button { font: inherit; cursor: pointer; }
.pattern-studio button:disabled { cursor: default; opacity: .45; }
.pattern-studio button, .pattern-studio a, .ps-sector-paint, .ps-node[role="button"] { -webkit-tap-highlight-color: transparent; }
.pattern-studio :focus-visible { outline: 3px solid #8671d0; outline-offset: 4px; }
.pattern-studio h1, .pattern-studio h2, .pattern-studio h3, .pattern-studio p, .pattern-studio figure { margin: 0; }
.pattern-studio a { color: var(--ps-purple); text-decoration: none; }
.pattern-studio a:hover { text-decoration: underline; }
.ps-domains { display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 12px; }
.ps-domains > div { display: flex; flex-wrap: wrap; max-width: 100%; gap: 4px; padding: 4px; border: 1px solid var(--ps-line); border-radius: 24px; background: white; }
.ps-domains > div a { padding: 5px 14px; border-radius: 18px; color: var(--ps-muted); }
.ps-domains > div a[aria-current] { background: #eee8fb; color: #5c3caa; font-weight: 700; }
.ps-back { font-weight: 600; }
.ps-hero { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px 0 28px; }
.ps-eyebrow { font-size: 10px; font-weight: 750; letter-spacing: 1.8px; color: #807192; text-transform: uppercase; }
.ps-beta { display: inline-block; margin-left: 8px; padding: 3px 8px; border: 1px solid #ead8aa; border-radius: 20px; background: #fff6df; color: #805c1d; font-size: 9px; font-weight: 750; letter-spacing: .8px; vertical-align: middle; }
.ps-hero h1 { margin: 12px 0 14px; font-size: clamp(30px, 4.2cqw, 48px); line-height: 1.14; letter-spacing: -1.7px; font-weight: 750; }
.ps-hero h1 em { font-style: normal; color: var(--ps-purple); }
.ps-hero p:last-child { color: var(--ps-muted); font-size: 14px; }
.ps-hero-art { flex: 0 0 28%; max-width: 290px; transform: rotate(-5deg); }
.ps-hero-art svg { width: 100%; }
.ps-lessons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 22px; }
.ps-lessons > button { display: flex; align-items: center; gap: 12px; position: relative; padding: 17px 15px; text-align: left; border: 1px solid var(--ps-line); border-radius: 14px; background: #fff; color: var(--ps-ink); transition: border-color .15s, box-shadow .15s; }
.ps-lessons > button[aria-pressed="true"] { background: #f7f3ff; border-color: #a78bd8; box-shadow: 0 2px 0 #dcd1ef; }
.ps-lessons > button:hover { border-color: #a78bd8; }
.ps-lessons strong { font-size: 13px; display: block; }
.ps-lessons > button, .ps-lessons > button > span { min-width: 0; }
.ps-lessons > button > span:not(.ps-lesson-icon) { max-width: 100%; }
.ps-lessons strong, .ps-lessons small, .ps-stage { overflow-wrap: anywhere; hyphens: auto; }
.ps-lessons small { font-size: 11px; display: block; color: var(--ps-muted); margin-top: 2px; }
.ps-lessons b { color: #aaa3b8; font-size: 10px; margin-left: auto; align-self: flex-start; }
.ps-lessons .is-complete b::after { content: " ✓"; color: #18786a; }
.ps-course-progress { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; margin: -8px 0 18px; font-size: 12px; color: #756984; }
.ps-course-progress strong { color: #58416f; }
.ps-course-summary { margin-top: 24px; padding: 28px; border: 1px solid #c7e6d8; background: #edf8f3; border-radius: 16px; }
.ps-course-summary[hidden] { display: none; }
.ps-course-summary h2 { margin: 8px 0; font-size: clamp(20px, 3vw, 28px); }
.ps-course-summary p { max-width: 660px; margin-bottom: 20px; line-height: 1.65; }
.ps-course-summary a { display: inline-block; text-decoration: none; }
.pattern-studio .ps-course-summary a.ps-primary { color: #fff; }
.ps-course-summary:focus, .ps-feedback:focus, [data-feedback-focus]:focus { outline: 2px solid #8061ae; outline-offset: 4px; }
.ps-lesson-icon { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; flex-shrink: 0; font-size: 27px; font-weight: 700; }
.ps-icon-wheel { background: #e2edfe; color: #437cdd; }
.ps-icon-nodes { background: #efe5fa; color: #8750b1; font-size: 17px; }
.ps-icon-buttons { background: #daf3e9; color: #278675; }
.ps-workshop { border: 1px solid var(--ps-line); border-radius: 21px; background: white; box-shadow: 0 12px 38px #29214507; overflow: clip; }
.ps-workshop-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 25px; background: #faf9fd; border-bottom: 1px solid var(--ps-line); font-size: 11px; color: var(--ps-muted); }
.ps-workshop-top > span { display: flex; align-items: center; gap: 7px; }
.ps-workshop-top i { display: inline-block; width: 6px; height: 6px; background: #38a98c; border-radius: 50%; }
.ps-text-button { border: 0; padding: 7px 4px; background: transparent; font-size: 12px !important; font-weight: 650 !important; color: var(--ps-purple); }
.ps-text-button:hover { text-decoration: underline; }
.ps-stages { display: grid; grid-template-columns: repeat(4, 1fr); padding: 19px 28px 0; gap: 9px; }
.ps-stage { display: flex; align-items: center; gap: 8px; padding: 0 0 15px; border: 0; border-bottom: 2px solid #efedf4; background: none; color: #878294; text-align: left; font-size: 12px !important; font-weight: 600 !important; }
.ps-stage span { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #f0eef5; font-size: 10px; }
.ps-stage[aria-current] { border-color: #8666ca; color: #6440ac; }
.ps-stage[aria-current] span { color: white; background: #7957ba; }
[data-lesson-body] { padding: 26px 28px 30px; }
.ps-lesson-heading { margin-bottom: 24px; }
.ps-lesson-heading h2 { font-size: clamp(24px, 3cqw, 32px); letter-spacing: -.8px; line-height: 1.2; margin: 7px 0 10px; font-weight: 730; scroll-margin-top: 88px; }
.ps-lesson-heading > p:last-child { color: var(--ps-muted); font-size: 13px; max-width: 700px; }
.ps-evidence { border: 1px solid var(--ps-line); border-radius: 13px; padding: 13px 16px; margin-bottom: 24px; background: #fdfcfe; }
.ps-evidence-label { display: flex; justify-content: space-between; gap: 10px; color: #8c8299; font-size: 10px; }
.ps-evidence-label span:first-child { font-weight: 700; letter-spacing: 1px; }
.ps-filmstrip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; margin-top: 8px; }
.ps-filmstrip figure { text-align: center; }
.ps-filmstrip .ps-wheel { width: 100%; display: block; }
.ps-filmstrip figcaption { font-size: 10px; color: #777183; margin-top: -6px; }
.ps-evidence-choice { display: block; width: 100%; min-width: 0; padding: 4px 3px 6px; color: inherit; text-align: center; border: 1px solid transparent; border-radius: 10px; background: transparent; transition: background .16s, border-color .16s, transform .16s; }
.ps-evidence-choice:hover { background: #f6f2fc; border-color: #d9cbed; transform: translateY(-2px); }
.ps-evidence-choice[aria-pressed="true"] { background: #f1eafa; border-color: #a991d0; box-shadow: 0 2px 7px #59408016; }
.ps-evidence-choice:focus-visible { outline-offset: 1px; }
.ps-evidence-choice .ps-wheel { pointer-events: none; }
.ps-evidence-transition { display: block; margin-bottom: 3px; color: #6745a1; font-size: 10px; font-weight: 750; letter-spacing: .3px; }
.ps-chart-cue { display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%; margin: -17px auto 24px; padding: 7px 12px; color: #60458c; background: #f2ecfa; border: 1px solid #e5d9f3; border-radius: 20px; font-size: 11px; font-weight: 650; text-align: center; }
.ps-chart-cue > span { display: grid; place-items: center; width: 19px; height: 19px; color: #fff; background: #7957b7; border-radius: 50%; font-size: 8px; }
.ps-motion-transition { padding: 3px 7px; color: #62489a; background: #f1eafb; border-radius: 6px; font-size: 10px; font-weight: 750; white-space: nowrap; }
.ps-missing { display: flex; flex-direction: column; justify-content: center; }
.ps-missing > div { display: grid; place-items: center; width: 69%; aspect-ratio: 1; margin: 12% auto 17%; border: 1.5px dashed #cfc7e0; border-radius: 50%; color: #a593c4; font-size: 25px; font-weight: 500; background: #f5f0fc; }
.ps-teaching-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 30px; align-items: start; }
.ps-motion, .ps-paint-board { position: relative; border: 1px solid #e4e0ef; border-radius: 17px; background: radial-gradient(ellipse at 50% 45%, #fff 30%, #f6f4fb 100%); padding: 18px 18px 20px; text-align: center; }
.ps-motion-title { display: flex; align-items: center; gap: 7px; text-align: left; font-size: 12px; font-weight: 650; }
.ps-motion-title > span:last-child:not(:first-child) { margin-left: auto; font-size: 10px; font-weight: 400; color: #82788f; }
.ps-color-dot { display: inline-block; width: 10px; height: 10px; flex: 0 0 10px; border-radius: 50%; }
.ps-color-dot.is-blue { background: #3b82f6; }
.ps-color-dot.is-pink { background: #f472b6; }
.ps-color-dot.is-white { background: white; border: 1px solid #a7a1b4; }
.ps-wheel { max-width: 320px; width: 100%; height: auto; overflow: visible; }
.ps-sector { stroke: #788097; stroke-width: 1.3; }
.ps-sector-letter { fill: #18233d; text-anchor: middle; dominant-baseline: central; font: 600 23px Inter, sans-serif; pointer-events: none; }
.ps-hop-number { text-anchor: middle; dominant-baseline: central; font: 700 15px Inter, sans-serif; fill: white; }
.ps-sector-paint { cursor: crosshair; transition: fill .15s; }
.ps-sector-paint:hover { stroke: #473874; stroke-width: 5; }
.ps-sector-paint:focus { stroke: #37245f; stroke-width: 5; outline: none; }
.ps-hop-count { display: inline-flex; align-items: center; text-align: left; gap: 10px; margin-top: -15px; }
.ps-hop-count > b { color: var(--ps-purple); font-size: 38px; font-variant-numeric: tabular-nums; line-height: 1; }
.ps-hop-count span { font-size: 10px; line-height: 1.5; color: var(--ps-muted); }
.ps-hop-count strong { color: #3e3953; font-size: 12px; }
.ps-hop-trail { min-height: 35px; font-size: 12px; font-weight: 650; display: flex; gap: 5px; align-items: center; justify-content: center; padding: 7px 0; }
.ps-muted { color: #ada5bc; }
.ps-play { padding: 10px 20px; color: #6046a5; background: #eee7fa; border: 1px solid #d7c8ed; border-radius: 9px; font-weight: 700 !important; font-size: 12px !important; width: 100%; }
.ps-play:hover { background: #e6daf7; }
.ps-transitions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.ps-secondary { border: 1px solid #ddd7e8; border-radius: 8px; padding: 9px 14px; color: #5c526f; background: #fff; font-size: 12px !important; font-weight: 600 !important; }
.ps-secondary:hover { background: #f8f5fd; border-color: #ab95d0; }
.ps-secondary[aria-pressed="true"] { background: #ece3fa; color: #6744af; border-color: #a487d1; }
.ps-transitions button { padding: 7px 2px; font-size: 10px !important; }
.ps-teaching { padding-top: 2px; }
.ps-teaching h3, .ps-node-teaching h3 { margin: 19px 0 8px; font-size: 17px; line-height: 1.3; letter-spacing: -.25px; }
.ps-teaching > p, .ps-predict p { font-size: 13px; color: var(--ps-muted); line-height: 1.7; }
.ps-note { padding: 15px 17px; background: #f7f8fc; border: 1px solid #e8e9f1; border-radius: 12px; }
.ps-note > span { display: block; font-size: 9px; letter-spacing: 1.2px; font-weight: 750; color: #83738d; margin-bottom: 6px; }
.ps-note p { font-size: 12px; color: #676075; line-height: 1.7; }
.ps-note strong { color: #433651; }
.ps-note.is-lilac { background: #f6f0fc; border-color: #eadcf8; margin-top: 18px; }
.ps-note.is-warning { background: #fff8ed; border-color: #f1dfbd; margin: 12px 0; }
.ps-jump-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin: 21px 0; }
.ps-jump-row > div { display: flex; flex-direction: column; align-items: center; background: #edf4ff; border: 1px solid #dbe7fc; padding: 9px 2px; border-radius: 10px; }
.ps-jump-row small { font-size: 9px; color: #7d8ba3; }
.ps-jump-row b { font-size: 27px; color: #4273c7; line-height: 1.5; }
.ps-jump-row span { font-size: 9px; color: #7d8ba3; }
.ps-jump-row em { color: #8a77a5; font-size: 9px; font-weight: 650; font-style: normal; padding-top: 5px; }
.ps-jump-row.is-pink > div { background: #fef1f8; border-color: #f7dce9; }
.ps-jump-row.is-pink b { color: #bd4c86; }
.ps-jump-row .ps-next-jump { border-style: dashed; background: white; }
.ps-wrap { padding: 15px; border: 1px solid #e9e4f3; border-radius: 11px; }
.ps-wrap > span { font-size: 11px; font-weight: 650; color: #6b577e; }
.ps-wrap > div:not(.ps-number-loop) { display: flex; align-items: center; gap: 12px; margin: 9px 0; font-size: 14px; }
.ps-wrap i { color: #b1a5c4; font-style: normal; }
.ps-wrap mark { background: #e5dbf6; color: #6644a6; padding: 1px 6px; border-radius: 4px; }
.ps-wrap p { color: var(--ps-muted); font-size: 11px; }
.ps-number-loop { display: flex; gap: 5px; align-items: center; justify-content: center; margin-top: 14px; }
.ps-number-loop span { width: 23px; height: 23px; display: grid; place-items: center; background: #f1eef6; border-radius: 50%; font-size: 10px; color: #867a98; }
.ps-number-loop .is-landed { background: #8058bb; color: white; }
.ps-number-loop > b { font-size: 11px; color: #937bb1; }
.ps-number-choices { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin-top: 14px; }
.ps-number-choices button { padding: 8px 0; }
.ps-primary { border: 1px solid #7353b4; border-radius: 9px; padding: 11px 20px; background: #7453b5; color: white; font-size: 12px !important; font-weight: 650 !important; box-shadow: 0 2px 3px #5b3d8720; }
.ps-primary:hover { background: #62439f; }
.ps-small { font-size: 10px; color: var(--ps-muted); margin-top: 12px !important; }
.ps-palette { display: flex; justify-content: center; gap: 7px; }
.ps-palette button { display: flex; gap: 6px; align-items: center; padding: 9px 11px; }
.ps-paint-readout { margin-top: 16px !important; color: var(--ps-muted); font-size: 12px; }
.ps-paint-readout > span { margin: 0 12px; color: #c4b9d5; }
.ps-paint-readout strong { color: var(--ps-ink); }
.ps-checklist { display: flex; flex-direction: column; gap: 12px; margin: 24px 0; font-size: 12px; color: #74677f; }
.ps-checklist span { display: flex; align-items: center; gap: 9px; }
.ps-feedback { border-radius: 10px; padding: 14px 16px; margin-top: 16px; font-size: 12px; border: 1px solid; }
.ps-feedback strong { display: block; font-size: 13px; margin-bottom: 4px; }
.ps-feedback p { font-size: 12px; line-height: 1.65; }
.ps-feedback.is-success { background: #edf8f3; border-color: #c7e6d8; color: #266c58; }
.ps-feedback.is-retry { background: #fffaef; border-color: #f1e3c8; color: #8d662c; }
.ps-track-feedback { margin-top: 10px; border: 1px solid #e7e3ef; border-radius: 10px; padding: 12px; }
.ps-track-feedback strong { display: flex; align-items: center; gap: 7px; font-size: 12px; }
.ps-track-feedback p { font-size: 11px; line-height: 1.6; color: #766b82; margin-top: 6px; }
.ps-track-feedback.is-correct { border-color: #d0e7db; }
.ps-track-feedback.is-wrong { border-color: #ead9bd; }
.ps-feedback-path { font-size: 11px; letter-spacing: .4px; color: #5b4a70; background: #f7f5fb; padding: 7px 9px; border-radius: 5px; margin-top: 8px; }
.ps-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 28px; background: #fcfbfe; border-top: 1px solid var(--ps-line); }
.ps-footer > span { color: #92889d; font-size: 10px; }
.ps-practice-cta { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 26px 0 32px; padding: 24px 28px; border: 1px solid #d8c9ee; border-radius: 22px; background: linear-gradient(115deg, #f3edfc 0%, #fbf8ff 58%, #f0f7ff 100%); box-shadow: 0 12px 30px #47346b12; }
.ps-practice-cta__copy { display: flex; align-items: center; gap: 16px; min-width: 0; }
.ps-practice-cta__icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 15px; background: #e5daf5; color: #6843a5; font-size: 25px; font-weight: 750; }
.ps-practice-cta__copy p { margin: 0; color: #302744; font-size: 18px; font-weight: 700; line-height: 1.4; }
.ps-practice-cta__link { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 56px; padding: 14px 24px; border: 1px solid #6843a5; border-radius: 14px; background: #6843a5; color: #fff !important; text-align: center; text-decoration: none; font-size: 16px; font-weight: 750; box-shadow: 0 5px 12px #6843a52e; transition: background .15s, transform .15s, box-shadow .15s; }
.ps-practice-cta__link:hover { background: #543487; box-shadow: 0 8px 18px #6843a540; transform: translateY(-2px); }
.ps-practice-cta__link:focus-visible { outline: 3px solid #8b68bd; outline-offset: 4px; }
@media (max-width: 640px) { .ps-practice-cta { align-items: stretch; flex-direction: column; gap: 17px; margin: 20px 0 26px; padding: 19px; border-radius: 18px; } .ps-practice-cta__copy { align-items: flex-start; gap: 13px; } .ps-practice-cta__icon { flex-basis: 42px; width: 42px; height: 42px; border-radius: 13px; } .ps-practice-cta__copy p { font-size: 17px; } .ps-practice-cta__link { width: 100%; box-sizing: border-box; min-height: 56px; padding: 14px 16px; font-size: 16px; } }
.ps-node-canvas { border: 1px solid #e7e2f0; border-radius: 15px; background: #fcfbfe; margin-bottom: 22px; padding: 6px; }
.ps-node-canvas svg { display: block; width: 100%; height: auto; }
.ps-node-link { stroke: #b39bd9; stroke-width: 5; fill: none; }
.ps-node-link.is-added { stroke: #48a98e; stroke-width: 4; stroke-dasharray: 8 5; }
.ps-node > circle { stroke: #c4bdd0; stroke-width: 3; fill: white; }
.ps-node.is-connected > circle { fill: #f0e8fb; stroke: #8561ba; }
.ps-node-value { font: 600 23px Inter, sans-serif; fill: #49375f; text-anchor: middle; dominant-baseline: central; pointer-events: none; }
.ps-node > rect { fill: #e8e1f1; stroke: #fff; stroke-width: 3; }
.ps-node-position { font: 600 14px Inter, sans-serif; text-anchor: middle; dominant-baseline: central; fill: #7c5ba7; }
.ps-node[role="button"] { cursor: pointer; }
.ps-node[role="button"]:focus { outline: none; }
.ps-node[role="button"]:hover > circle, .ps-node[role="button"]:focus > circle { fill: #ede3fa; stroke: #7354ae; stroke-width: 5; }
.ps-node[aria-disabled="true"] { cursor: default; }
.ps-faded { opacity: .25; }
.ps-dual-tracks { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.ps-dual-tracks > section { padding: 20px 14px; border: 1px solid #e9e4f1; border-radius: 12px; text-align: center; }
.ps-track-tag { font-size: 9px; font-weight: 750; letter-spacing: 1.3px; color: #8a719e; }
.ps-dual-tracks p { font-size: 12px; color: #82728e; }
.ps-track-strip { display: flex; align-items: center; justify-content: center; gap: 5px; margin: 22px 0; }
.ps-track-value { padding: 10px 0; flex: 1 1 0; text-align: center; background: #edf3ff; color: #3e6da8; border-radius: 9px; font-size: 22px; font-weight: 700; }
.ps-track-change { display: flex; flex-direction: column; align-items: center; flex: 0 1 35px; line-height: 1.3; }
.ps-track-change b { font-size: 12px; color: #5683c0; }
.ps-track-change span { color: #a7bbd7; font-size: 18px; }
.ps-track-strip.is-letter .ps-track-value { background: #fbeef5; color: #ac5687; }
.ps-track-strip.is-letter .ps-track-change b { color: #ac5687; }
.ps-node-teaching { max-width: 680px; margin: 0 auto; }
.ps-node-teaching > .ps-track-strip .ps-track-value { font-size: 30px; }
.ps-alphabet { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; margin: 14px 0 20px; }
.ps-alphabet > span { text-align: center; border-radius: 5px; background: #f6f4f9; color: #aaa0b3; font-weight: 650; padding: 5px 0; font-size: 12px; }
.ps-alphabet small { display: block; font-size: 8px; font-weight: 400; }
.ps-alphabet .is-used { color: #aa5283; background: #fbe9f4; }
.ps-alphabet .is-current { color: white; background: #bc5c94; outline: 3px solid #f3c9e1; }
.ps-letter-demo { border: 1px solid #eadcec; border-radius: 12px; padding: 17px; margin-bottom: 18px; background: #fdfafe; }
.ps-letter-trail { text-align: center; font-size: 14px; color: #9b4d80; margin: 18px 0; font-weight: 650; }
.ps-letter-trail span { display: block; font-size: 10px; color: #9c86a3; font-weight: 400; margin-top: 5px; }
.ps-letter-transitions { display: flex; gap: 8px; margin-top: 12px; }
.ps-letter-transitions button { flex: 1; padding: 8px 4px; }
.ps-letter-transitions b { margin-left: 7px; color: #a55a8c; font-size: 10px; }
.ps-answer-chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.ps-answer-chips button { min-width: 58px; }
.ps-connect-status { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ps-connect-status > div { margin-right: auto; }
.ps-connect-status h3 { font-size: 20px; margin: 4px 0; }
.ps-connect-status p { font-size: 12px; color: var(--ps-muted); }
.ps-order-receipt { display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.ps-order-receipt span { background: #f0e9f9; border-radius: 6px; font-size: 12px; font-weight: 600; padding: 7px; }
.ps-order-receipt i { font-size: 12px; color: #ab9abb; }
.ps-shape { display: block; width: 140px; max-width: 100%; }
.ps-before-after, .ps-effect-demo { display: flex; justify-content: center; gap: 35px; align-items: center; padding: 20px; border: 1px solid #e8e1f0; border-radius: 14px; background: #fcfbfe; margin-bottom: 22px; }
.ps-before-after figure { padding: 10px 25px; background: #fff; border: 1px solid #ebe6f2; border-radius: 12px; }
.ps-before-after > span { font-size: 35px; color: #a293b5; }
.ps-before-after figcaption, .ps-effect-demo figcaption, .ps-shape-comparison figcaption { font-size: 10px; color: #8a7b99; text-align: center; padding: 7px 0 2px; }
.ps-attribute-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
.ps-attribute-grid > div { padding: 20px; border: 1px solid #e7e2f0; border-radius: 11px; }
.ps-attribute-grid > div > span { display: block; font-size: 9px; font-weight: 700; letter-spacing: 1.1px; color: #9983a6; }
.ps-attribute-grid strong { display: flex; align-items: center; gap: 12px; font-size: 30px; line-height: 1.8; color: #6d488f; }
.ps-attribute-grid i:not(.ps-swatch) { font-weight: 400; color: #beb0c9; font-size: 21px; font-style: normal; }
.ps-attribute-grid p { font-size: 12px; color: #84758f; }
.ps-swatch { display: inline-block; width: 22px; height: 22px; border-radius: 6px; }
.ps-swatch.is-pink { background: #b00078; }
.ps-swatch.is-teal { background: #009c9c; }
.ps-effect-demo > div { text-align: center; min-width: 120px; }
.ps-effect-demo b { display: block; font-size: 12px; color: #765196; }
.ps-effect-demo > div > span { display: block; font-size: 35px; line-height: 1.2; color: #9e89ae; }
.ps-effect-demo p { font-size: 11px; color: #86748e; }
.ps-effect-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 18px 0; }
.ps-effect-card { position: relative; border: 1px solid #e2dbe9; border-radius: 12px; padding: 15px 12px 12px; background: #fff; text-align: left; color: var(--ps-ink); }
.ps-effect-card:hover { background: #fcfaff; border-color: #b198ca; }
.ps-effect-card[aria-pressed="true"] { border-color: #9d77c1; background: #faf5ff; box-shadow: 0 0 0 1px #b79ad13b; }
.ps-effect-number { position: absolute; top: 9px; left: 10px; background: #eee7f5; width: 21px; height: 21px; border-radius: 6px; display: grid; place-items: center; color: #86629e; font-size: 11px; font-weight: 700; }
.ps-effect-pair { display: flex; justify-content: center; align-items: center; padding: 8px 0 3px; }
.ps-effect-pair .ps-shape { width: 65px; }
.ps-effect-pair i { font-style: normal; color: #a59aae; padding: 0 7px; }
.ps-effect-card > strong { display: block; font-size: 11px; text-align: center; margin: 6px 0; }
.ps-effect-selection { display: block; text-align: center; color: #a28baa; font-size: 9px; }
.ps-effect-card[aria-pressed="true"] .ps-effect-selection { color: #7b4ea2; font-weight: 700; }
.ps-shape-comparison { display: flex; align-items: center; justify-content: center; gap: 20px; padding: 18px; background: #fcfbfe; border: 1px solid #e9e3f1; border-radius: 14px; }
.ps-shape-comparison figure { padding: 8px 20px; }
.ps-shape-comparison .ps-result-figure { border: 1px dashed #c5addb; border-radius: 12px; background: #fff; }
.ps-shape-comparison > span { color: #b4a5bf; font-size: 22px; }
.ps-shape-comparison .ps-compare-divider { color: #dcd2e5; }
.ps-selection-line { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: #86718e; padding: 10px 3px 0; }
.ps-feature-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; margin-top: 10px; }
.ps-feature-checks > div { padding: 11px 14px; border-radius: 8px; font-size: 11px; }
.ps-feature-checks .is-correct { background: #edf7f2; color: #38735c; }
.ps-feature-checks .is-wrong { background: #fff7e9; color: #936831; }
.ps-feature-checks p { font-size: 11px; margin-top: 5px; }
.ps-combo-check { margin-top: 24px; }
@container (max-width: 780px) {
    .ps-lessons > button { padding: 13px 10px; gap: 8px; }
    .ps-lessons b { display: none; }
    .ps-lesson-icon { width: 32px; height: 32px; font-size: 23px; }
    .ps-icon-nodes { font-size: 14px; }
    .ps-lessons strong { font-size: 11px; }
    .ps-lessons small { font-size: 9px; }
    .ps-teaching-grid { gap: 20px; }
    .ps-jump-row { gap: 5px; }
    .ps-wrap > div:not(.ps-number-loop) { font-size: 12px; gap: 6px; }
    .ps-shape-comparison { gap: 8px; }
    .ps-shape-comparison figure { padding: 5px 10px; }
    .ps-shape-comparison .ps-shape { width: 115px; }
    .ps-top-detail { display: none; }
}
@container (max-width: 600px) {
    .ps-hero-art { display: none; }
    .ps-hero { padding: 24px 0; }
    .ps-hero h1 { font-size: 34px; }
    .ps-domains { flex-wrap: wrap; }
    .ps-domains > div a { padding: 4px 11px; font-size: 10px; }
    .ps-lessons { gap: 7px; margin-bottom: 16px; }
    .ps-lessons > button { flex-direction: column; align-items: flex-start; gap: 8px; }
    .ps-lessons small { font-size: 9px; }
    .ps-stages { padding: 16px 16px 0; gap: 6px; }
    .ps-stage { font-size: 10px !important; gap: 4px; }
    .ps-stage span { width: 19px; height: 19px; font-size: 9px; }
    .ps-workshop-top { padding: 10px 16px; }
    [data-lesson-body] { padding: 23px 16px; }
    .ps-lesson-heading h2 { font-size: 26px; }
    .ps-lesson-heading > p:last-child { font-size: 12px; }
    .ps-filmstrip { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
    .ps-evidence { padding: 12px; }
    .ps-evidence-label { font-size: 9px; }
    .ps-evidence-label > span:last-child { text-align: right; }
    .ps-teaching-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .ps-motion .ps-wheel, .ps-paint-board .ps-wheel { max-width: 285px; display: block; margin: 0 auto; }
    .ps-motion, .ps-paint-board { padding: 17px; }
    .ps-jump-row { gap: 8px; }
    .ps-number-choices { gap: 7px; }
    .ps-footer { padding: 16px; flex-wrap: wrap; }
    .ps-footer > span { display: none; }
    .ps-footer .ps-primary { margin-left: auto; }
    .ps-dual-tracks { grid-template-columns: 1fr; }
    .ps-track-value { font-size: 22px; }
    .ps-node-value { font-size: 26px; }
    .ps-node-teaching > .ps-track-strip .ps-track-value { font-size: 23px; }
    .ps-before-after { gap: 18px; padding: 16px; }
    .ps-before-after figure { padding: 8px; }
    .ps-before-after .ps-shape { width: 105px; }
    .ps-attribute-grid { gap: 8px; }
    .ps-attribute-grid > div { padding: 11px; }
    .ps-attribute-grid > div > span { font-size: 8px; letter-spacing: .4px; }
    .ps-attribute-grid strong { font-size: 26px; gap: 5px; }
    .ps-attribute-grid p { font-size: 10px; }
    .ps-effect-demo { gap: 12px; padding: 15px; }
    .ps-effect-demo .ps-shape { width: 90px; }
    .ps-effect-demo > div { min-width: 70px; max-width: 100px; }
    .ps-effect-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
    .ps-effect-card { padding: 14px 7px 10px; }
    .ps-effect-pair .ps-shape { width: 53px; }
    .ps-effect-card > strong { font-size: 10px; }
    .ps-shape-comparison { padding: 12px 6px; gap: 4px; }
    .ps-shape-comparison { position: sticky; top: 70px; z-index: 2; background: #fcfbfe; box-shadow: 0 5px 12px #38264a0c; }
    .ps-shape-comparison figure { padding: 5px; flex: 1 1 0; min-width: 0; }
    .ps-shape-comparison .ps-shape { width: 100%; }
    .ps-shape-comparison figcaption { font-size: 8px; }
    .ps-shape-comparison > span { font-size: 16px; }
    .ps-feature-checks { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
    .pattern-studio { padding: 20px 12px 30px; }
    .ps-hero h1 { font-size: 31px; letter-spacing: -1.1px; }
}
@media (prefers-reduced-motion: reduce) {
    .pattern-studio *, .pattern-studio *::before, .pattern-studio *::after { transition: none !important; scroll-behavior: auto !important; }
}
