[data-method-studio] .ps-hero > div:first-child { max-width: 720px; }
[data-method-studio] .ps-hero > div:first-child > p:last-child { max-width: 530px; }
[data-method-studio] .ps-lesson-icon { font-size: 21px; }
[data-method-studio] .ps-teaching h3 { margin-top: 14px; }
.ms-source { border: 1px solid #e4e0ed; border-radius: 12px; margin-bottom: 22px; background: #fdfcfe; overflow: clip; }
.ms-source summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; cursor: pointer; font-weight: 650; color: #625372; font-size: 12px; padding: 13px 16px; }
.ms-source summary::before { content: '+'; color: #9d87b2; }
.ms-source[open] summary::before { content: '−'; }
.ms-source summary > span { color: #9c8aa8; margin-left: auto; font-size: 10px; font-weight: 400; }
.ms-table-scroll, .ms-calendar-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.ms-scroll-hint { display: none; }
.ms-table-scroll table { width: 100%; border-collapse: collapse; text-align: right; font-size: 11px; font-variant-numeric: tabular-nums; min-width: 520px; }
.ms-table-scroll caption { text-align: left; font-size: 10px; color: #8b8198; padding: 0 16px 12px; caption-side: bottom; padding-top: 10px; }
.ms-table-scroll th, .ms-table-scroll td { padding: 12px 13px; border-top: 1px solid #ede9f3; }
.ms-table-scroll thead th { background: #f4f1f9; color: #877696; font-size: 9px; font-weight: 650; }
.ms-table-scroll th:first-child { text-align: left; font-weight: 600; color: #675a75; }
.ms-table-scroll tr.is-focused { background: #faf5ff; }
.ms-table-scroll td.is-evidence { background: #eee1fc; box-shadow: inset 0 -2px #a781c8; font-weight: 700; }
.ms-choices { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; margin: 16px 0 22px; }
.ms-choices .ps-secondary { font-size: 11px !important; padding: 9px 13px; text-align: left; }
.ms-demo { padding: 23px; border-radius: 16px; border: 1px solid #e7e1ef; background: radial-gradient(ellipse at top, white, #f8f5fc); }
.ms-bars { display: flex; flex-direction: column; gap: 18px; }
.ms-bar > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; font-size: 11px; color: #7a6c89; margin-bottom: 6px; }
.ms-bar strong { color: #524060; font-weight: 650; white-space: nowrap; }
.ms-bar-track { height: 20px; border-radius: 5px; background: #ede9f4; overflow: hidden; }
.ms-bar-fill { display: block; height: 100%; border-radius: 5px; transform-origin: left; animation: ms-grow .5s ease both; }
.ms-bar-fill > i { display: block; height: 100%; background: #7251b4; border-radius: 5px; }
[data-weighted-result] .ms-bar-fill { background: #e9e4f0; }
.ms-forward-mismatch { padding: 10px 12px; border-radius: 8px; background: #fff5df; color: #805b23; font-size: 12px; line-height: 1.5; }
.ms-color-0 { background: #b5d1f9; }
.ms-color-1 { background: #af96d7; }
.ms-color-2 { background: #a5d9c5; }
.ms-color-3 { background: #e6bddb; }
.ms-bar small { display: block; margin-top: 5px; font-size: 10px; color: #8d7c9a; }
.ms-bar small b { color: #6d508b; }
.ms-result { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 22px; padding-top: 18px; border-top: 1px dashed #d9cce8; }
.ms-result small { font-size: 9px; letter-spacing: 1.3px; color: #957da5; font-weight: 650; }
.ms-result strong { font-size: clamp(28px, 3.6cqw, 44px); letter-spacing: -1px; color: #6e4da8; line-height: 1.5; font-weight: 720; }
.ms-result em { font-style: normal; font-size: .45em; letter-spacing: 0; }
.ms-result > span { font-size: 11px; color: #8c799d; }
.ms-formula { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; margin: 23px 0 14px; }
.ms-operand { color: #705194; background: #f1e9fa; padding: 8px 11px; border: 1px solid #e8dbf4; border-radius: 8px; font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
.ms-operator { color: #a28db5; font-size: 12px; }
.ms-caption { font-size: 10px; text-align: center; color: #8e7b9b; margin: 12px 0 !important; line-height: 1.7; }
.ms-base-label { display: flex; justify-content: space-between; align-items: center; font-size: 11px; margin: 12px 0; color: #8c739f; }
.ms-base-label b { color: #76529d; font-size: 18px; }
.ms-growth-bar { display: flex; height: 68px; border-radius: 9px; overflow: hidden; }
.ms-growth-bar span { background: #a2bdec; display: grid; place-items: center; color: #334f80; font-size: 21px; font-weight: 700; }
.ms-growth-bar i { background: #c0e4d2; color: #4f8569; font-size: 12px; font-style: normal; display: grid; place-items: center; border-left: 3px solid white; }
.ms-brace { color: #8e7e9a; border-top: 1px solid #c8b9d8; margin-top: 13px; padding-top: 10px; text-align: center; font-size: 10px; }
.ms-method-cards { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.ms-method-cards > div { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #e9e2f1; border-radius: 9px; padding: 12px 14px; font-size: 11px; }
.ms-method-cards b { color: #6b4f85; }
.ms-method-cards span { color: #94809e; text-align: right; }
.ms-person-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; padding: 10px; }
.ms-person-grid span { aspect-ratio: 1; border: 1px dashed #d7cadf; border-radius: 9px; background: #f2edf7; }
.ms-person-grid .is-filled { background: #b398d9; border: 1px solid #a98dd0; animation: ms-pop .4s ease; }
.ms-slider { margin: 16px 0 28px; border-radius: 12px; padding: 18px 20px; border: 1px solid #e6dced; background: #faf7fe; }
.ms-slider label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 12px; color: #766084; }
.ms-slider output { color: #7950a7; font-weight: 700; font-size: 19px; }
.ms-slider input { width: 100%; margin: 15px 0 9px; accent-color: #9263c0; cursor: ew-resize; min-height: 24px; }
.ms-slider > div { display: flex; justify-content: space-between; color: #a38bac; font-size: 10px; }
.ms-legend-dot { display: inline-block; width: 8px; height: 8px; background: #7251b4; border-radius: 50%; margin: 0 5px 0 8px; }
.ms-legend-dot.is-pale { background: #d5cde6; }
[data-weighted-result] { margin-bottom: 25px; }
[data-weighted-result] .ms-bar-fill, [data-projection] .ms-bar-fill { animation: none; }
[data-weighted-result] .ms-bar-track { background: transparent; }
.ms-weight-result { padding: 12px 10px; text-align: center; }
.ms-donut { width: 180px; height: 180px; padding: 20px; border-radius: 50%; background: conic-gradient(#9470bf var(--fill), #eee7f5 0); margin: 0 auto; box-shadow: 0 5px 24px #8e6cb115; }
.ms-donut > div { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; }
.ms-donut strong { font-size: 26px; letter-spacing: -.5px; color: #765197; }
.ms-donut span { color: #ad94b7; font-size: 10px; }
.ms-reverse-path { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 13px; padding: 5px; }
.ms-reverse-path > div { width: 100%; border: 1px solid #e2d8eb; background: #fff; border-radius: 10px; padding: 13px; }
.ms-reverse-path small { display: block; font-size: 10px; color: #98839f; }
.ms-reverse-path b { color: #76529d; font-size: 28px; }
.ms-reverse-path > span { font-size: 12px; font-weight: 650; color: #8c709c; }
.ms-percent-blocks { display: flex; gap: 3px; margin: 20px 0 8px; }
.ms-percent-blocks span, .ms-percent-blocks i { display: grid; place-items: center; flex: 20; height: 34px; background: #d9c8ef; color: #83619f; font-size: 9px; border-radius: 3px; }
.ms-percent-blocks i { font-style: normal; background: #c6e5d9; color: #54856d; min-width: 0; }
.ms-practice-nav { display: flex; gap: 8px; align-items: center; margin: 20px 0; }
.ms-practice-nav > span { font-size: 10px; color: #9984a5; margin-left: auto; }
.ms-practice-nav button { min-width: 39px; }
.ms-practice-nav button[aria-current] { background: #efe5fa; color: #8054a9; border-color: #b39ac9; }
.ms-practice { border-top: 1px solid #ece6f1; padding-top: 22px; }
.ms-practice h3 { margin: 8px 0 20px; font-size: 20px; line-height: 1.4; letter-spacing: -.3px; }
.ms-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; margin-bottom: 23px; }
.ms-option { display: flex; align-items: center; gap: 12px; border: 1px solid #e5dceb; border-radius: 11px; padding: 15px; background: white; text-align: left; color: #72607f; font-size: 13px !important; }
.ms-option b { display: grid; place-items: center; width: 28px; height: 28px; flex-shrink: 0; border-radius: 7px; background: #f2edf7; color: #a189b2; font-size: 11px; }
.ms-option[aria-pressed="true"] { border-color: #a17cbf; background: #faf5ff; }
.ms-option[aria-pressed="true"] b { background: #9872b8; color: white; }
.ms-worked { padding: 18px; border: 1px solid #e7deef; border-radius: 10px; margin-top: 10px; }
.ms-worked > span { display: block; letter-spacing: 1.3px; font-size: 9px; color: #ab8fb9; margin-bottom: 7px; }
.ms-worked strong { font-size: 13px; color: #79538e; }
.ms-worked p { font-size: 12px; margin-top: 9px; color: #897295; }
.ms-worked small { display: block; font-size: 11px; padding-top: 12px; margin-top: 12px; border-top: 1px solid #ece5f1; color: #9985a4; }
.ms-order-board { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 9px; }
.ms-order-slot { display: flex; flex-direction: column; justify-content: center; text-align: center; gap: 15px; min-height: 95px; padding: 12px 4px; background: #fcfaff; border: 1px dashed #d7c8e5; border-radius: 11px; color: #a38bb7; }
.ms-order-slot small { font-size: 16px; font-weight: 600; color: #9475ac; }
.ms-order-slot b { font-size: 11px; font-weight: 650; }
.ms-order-slot.is-filled { background: #efe6f8; color: #775194; border-style: solid; border-color: #d1bcdf; animation: ms-pop .25s ease; }
button.ms-order-slot:hover { background: #eadef6; border-color: #9e76bb; }
.ms-demo > .ps-play { margin-top: 20px; }
.ms-below { margin-top: 23px; }
.ms-rules { display: flex; flex-direction: column; gap: 8px; }
.ms-rule { display: flex; align-items: flex-start; gap: 11px; border: 1px solid #eae4f0; padding: 12px 14px; border-radius: 10px; background: #fff; }
.ms-rule > span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: #f1ecf7; font-size: 14px; color: #a187b6; flex: 0 0 22px; }
.ms-rule b { font-size: 9px; letter-spacing: .7px; color: #a18daf; font-weight: 650; }
.ms-rule p { font-size: 11px; color: #80708c; margin-top: 3px; line-height: 1.6; }
.ms-rule.is-highlighted { background: #f5eefb; border-color: #cdb3df; }
.ms-rule.is-highlighted > span { background: #a37bbd; color: #fff; }
.ms-rule.is-removed { opacity: .48; text-decoration: line-through; background: #f6f3f8; }
.ms-rule.is-broken { border-color: #e4bf98; background: #fffbf2; }
.ms-rule.is-broken > span { color: #ad7d45; background: #fbecd8; }
.ms-linked-pair { display: flex; align-items: center; justify-content: center; gap: 8px; }
.ms-linked-pair > span { display: flex; flex-direction: column; text-align: center; border: 1px solid #d8c8e6; border-radius: 10px; padding: 14px 18px; color: #826098; background: #f2eaf9; font-size: 11px; }
.ms-linked-pair b { font-size: 26px; color: #9e7fb4; }
.ms-linked-pair i { color: #aa93bc; font-style: normal; }
.ms-distance { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 15px 8px; border-top: 1px dashed #dfd1e9; margin-top: 22px; font-size: 11px; color: #8d6e9f; }
.ms-distance > span { font-size: 9px; color: #a58bb3; }
.ms-proof-count { display: flex; align-items: center; gap: 15px; padding: 18px 22px; border: 1px solid #e2d8ec; border-radius: 12px; background: #f9f4fd; margin: 18px 0; }
.ms-proof-count > strong { font-size: 39px; color: #966fba; }
.ms-proof-count > span { font-weight: 650; font-size: 14px; color: #88639f; }
.ms-proof-count small { display: block; color: #a28bb1; font-size: 11px; font-weight: 400; margin-top: 3px; }
.ms-proof-order { margin-bottom: 18px; }
.ms-proof-order > span { display: block; font-size: 8px; letter-spacing: 1px; color: #a78ab5; margin-bottom: 8px; }
.ms-pool { display: flex; flex-wrap: wrap; gap: 9px; padding: 15px 0 22px; }
.ms-person { display: flex; align-items: center; gap: 7px; background: #fff; border: 1px solid #ddcde8; border-radius: 9px; color: #846598; padding: 10px 16px; font-size: 12px !important; }
.ms-person small { font-size: 8px; opacity: .65; }
.ms-person.is-placed { background: #f5f1f9; color: #b09bbc; border-style: dashed; }
.ms-person[aria-pressed="true"] { background: #936bb4; color: white; border-color: #936bb4; }
.ms-board-instruction { font-size: 12px; color: #9b7fae; background: #f8f3fc; border: 1px solid #e9dcf2; padding: 13px 16px; border-radius: 9px; }
.ms-board-actions { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.ms-board-actions + .ps-feedback { margin-bottom: 18px; }
.ms-calendar-scroll { border: 1px solid #e6dcec; border-radius: 12px; margin-top: 18px; }
.ms-calendar { width: 100%; border-collapse: collapse; table-layout: fixed; min-width: 560px; font-variant-numeric: tabular-nums; }
.ms-calendar caption { text-align: left; padding: 12px 14px; color: #9880a5; font-size: 10px; }
.ms-calendar th, .ms-calendar td { text-align: center; padding: 12px 4px; border-top: 1px solid #eae2f0; border-right: 1px solid #eee7f3; font-size: 12px; }
.ms-calendar th { background: #f8f3fc; font-size: 10px; color: #786285; font-weight: 600; }
.ms-calendar th:first-child { width: 90px; text-align: left; padding-left: 12px; }
.ms-calendar .is-free { color: #d3c5dd; }
.ms-calendar .is-busy { color: #9b587b; background: #f9edf4; font-size: 17px; }
.ms-calendar .is-unknown { background: repeating-linear-gradient(45deg, #faf4e7, #faf4e7 5px, #f4ead6 5px, #f4ead6 10px); color: #b29a6e; }
.ms-calendar .is-scanning { box-shadow: inset 0 0 0 2px #a180be; }
.ms-calendar-combined td { font-size: 13px; font-weight: 600; color: #c6b7d4; }
.ms-calendar .is-available { background: #e7f4ec; color: #2e7651; }
.ms-calendar .is-blocked { background: #f3f0f5; color: #b8aabc; }
.ms-calendar-answer td { padding: 6px 3px; }
.ms-calendar-answer button { width: 100%; min-height: 40px; padding: 7px 0; }
.ms-calendar-answer button[aria-pressed="true"] { background: #8db9a2; border-color: #72a48c; color: white; }
.ms-calendar-legend { display: flex; flex-wrap: wrap; gap: 20px; margin: 10px 0 18px; font-size: 10px; color: #a690b2; }
.ms-scan-message { border: 1px solid #e9dff0; border-radius: 9px; margin: 18px 0; padding: 14px 16px; font-size: 12px; color: #967aa7; }
.ms-scan-message b { color: #7e5994; }
.ms-duration-blocks { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin: 22px 0; }
.ms-duration-blocks span { padding: 12px 20px; background: #e7f2eb; border: 1px solid #c5dece; border-radius: 8px; font-size: 12px; color: #74a88a; }
.ms-duration-blocks i { font-style: normal; color: #b7a2c2; }
.ms-duration-blocks b { color: #947a9f; font-size: 12px; font-weight: 600; margin-left: 5px; }
.ms-windows { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 20px 0; }
.ms-windows > div { padding: 17px; text-align: center; background: #eff7f2; border: 1px solid #d4e7dc; border-radius: 10px; }
.ms-windows b { display: block; font-size: 18px; color: #74a08a; }
.ms-windows span { display: block; font-size: 10px; color: #96b3a3; margin-top: 6px; }
.ms-windows .is-no-window { background: #fbf5ec; border-color: #eadac1; }
.ms-windows .is-no-window b { color: #b2956a; }
.ms-selection-summary { margin: 16px 0; font-size: 12px; color: #9d7bad; }
.ms-rooms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 18px 0; }
.ms-room { border: 1px solid #e3d4ed; background: #fcf9ff; border-radius: 14px; padding: 16px; }
.ms-room-top { display: flex; align-items: center; gap: 10px; }
.ms-door { display: grid; place-items: center; height: 32px; width: 29px; font-size: 26px; color: #b89bcc; }
.ms-room-top h3 { font-size: 15px; font-weight: 650; color: #87619d; }
.ms-room-top p { font-size: 10px; color: #85708f; margin-top: 3px; line-height: 1.5; min-height: 28px; }
.ms-seats { display: flex; flex-direction: column; gap: 8px; margin: 18px 0 12px; }
.ms-seat { display: flex; gap: 8px; align-items: center; border: 1px dashed #e0d2e9; border-radius: 7px; color: #c6b1d0; padding: 9px 10px; }
.ms-seat > span { font-size: 15px; }
.ms-seat b { font-size: 12px; font-weight: 500; }
.ms-seat.is-taken { border-style: solid; background: #eee4f8; color: #70517f; border-color: #d8c2e8; animation: ms-pop .3s ease; }
.ms-room-count { text-align: right; font-size: 11px; color: #8d6aa0; }
.ms-room > button { width: 100%; margin-top: 13px; padding: 8px 3px; font-size: 10px !important; }
.ms-room.is-overfull { background: #fff7ee; border-color: #e6c399; }
.ms-room.is-overfull .ms-room-count { color: #9c6626; font-size: 14px; font-weight: 700; }
.ms-pair-people { margin: 20px 0; }
.ms-pair-people span { padding: 12px 30px; }
@keyframes ms-grow { from { transform: scaleX(.02); } to { transform: scaleX(1); } }
@keyframes ms-pop { from { opacity: .3; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
@container (max-width: 780px) {
    .ms-order-board { gap: 6px; }
    .ms-order-slot b { font-size: 10px; }
    .ms-order-slot small { font-size: 15px; }
    .ms-room { padding: 12px; }
    .ms-room-top { gap: 5px; }
    .ms-door { width: 20px; font-size: 20px; }
    .ms-demo { padding: 18px; }
    .ms-options { gap: 8px; }
}
@container (max-width: 600px) {
    .ms-scroll-hint { display: block; font-size: 10px; color: #8c729e; padding: 0 12px 10px; }
    .ms-table-scroll { position: relative; }
    .ms-table-scroll th:first-child { position: sticky; left: 0; z-index: 1; background: #faf7fd; }
    .ms-source summary { padding: 12px; font-size: 11px; gap: 8px; }
    .ms-source summary > span { font-size: 8px; }
    .ms-choices { gap: 7px; }
    .ms-choices button { flex: 1 1 auto; font-size: 10px !important; padding: 9px 10px !important; }
    .ms-demo { padding: 18px; }
    .ms-operand { padding: 7px 9px; font-size: 12px; }
    .ms-operator { font-size: 11px; }
    .ms-person-grid { max-width: 270px; margin: 0 auto; }
    .ms-result strong { font-size: 35px; }
    .ms-options { grid-template-columns: 1fr; }
    .ms-practice h3 { font-size: 18px; }
    .ms-order-board { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
    .ms-order-slot { min-height: 86px; }
    .ms-order-slot small { font-size: 16px; }
    .ms-order-slot b { font-size: 12px; }
    .ms-pool { gap: 7px; }
    .ms-person { padding: 10px 12px; font-size: 11px !important; }
    .ms-person small { font-size: 7px; }
    .ms-calendar { min-width: 485px; }
    .ms-calendar th:first-child { position: sticky; left: 0; z-index: 1; background: #f8f3fc; width: 80px; font-size: 10px; padding-left: 10px; }
    .ms-calendar caption { font-size: 9px; }
    .ms-rooms { grid-template-columns: 1fr; gap: 12px; }
    .ms-room { padding: 15px; }
    .ms-room-top { gap: 10px; }
    .ms-room-top p { min-height: 0; font-size: 10px; }
    .ms-door { width: 26px; }
    .ms-seats { flex-direction: row; flex-wrap: wrap; margin: 13px 0; }
    .ms-seat { flex: 1 1 70px; padding: 10px 6px; justify-content: center; min-width: 0; }
    .ms-seat b { font-size: 10px; }
    .ms-room > button { min-height: 40px; margin-top: 8px; }
    .ms-proof-count { padding: 15px; }
    .ms-proof-count small { font-size: 10px; }
    .ms-board-actions { gap: 9px; }
    .ms-board-actions .ps-primary { padding: 10px 15px; }
}
@media (prefers-reduced-motion: reduce) {
    [data-method-studio] * { animation: none !important; }
}
