/* Soft Commotion device lab v421 — display sizes are real iframe viewport widths, no transform scaling. */
.modal.sc-device-modal{width:min(1140px,calc(100vw - 28px));max-width:1140px;max-height:calc(100dvh - 18px);overflow:auto;padding:clamp(14px,2vw,28px);background:#fffdfb}
.sc-device-lab{color:#4e3241}.sc-device-heading h2{font-size:clamp(1.35rem,3vw,2.1rem);line-height:1.15;margin:5px 0 7px}
.sc-device-heading p{max-width:700px;margin:0 0 14px;font-size:.89rem;color:#775d68;line-height:1.55}
.sc-device-tools{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0 12px}
.sc-device-mode{appearance:none;min-height:42px;padding:9px 13px;border:1px solid #d8c3c8;border-radius:100px;background:#fff;color:#694152;font-size:.79rem;font-weight:650;cursor:pointer}
.sc-device-mode.is-active,.sc-device-mode[aria-pressed="true"]{background:#63394e;border-color:#63394e;color:#fff}
.sc-device-mode:focus-visible,.sc-device-meta button:focus-visible{outline:3px solid #a15a74;outline-offset:3px}
.sc-device-meta{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:9px;font-size:.75rem;color:#866977}
.sc-device-meta button{background:transparent;border:0;border-bottom:1px solid #976d7b;padding:6px 0;cursor:pointer;color:#69384d;font-size:.77rem}
.sc-device-canvas{display:flex;justify-content:center;align-items:flex-start;padding:clamp(10px,2vw,22px);border-radius:15px;background:linear-gradient(140deg,#eee5e8,#f5f0ed);overflow-x:auto}
.sc-device-canvas.is-wide{padding:9px}
.sc-device-frame{box-sizing:content-box;flex:none;width:var(--sc-screen-width,390px);max-width:none;border:7px solid #352a32;background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 12px 36px #38223130}
.sc-device-frame[data-size="desktop"]{width:100%;border-width:2px;border-radius:9px}
.sc-device-frame[data-size="tablet"]{border-radius:17px}
.sc-device-iframe{display:block;width:100%;height:min(66dvh,735px);min-height:390px;background:#faf7f3;border:0;scrollbar-gutter:stable}
.sc-device-frame[data-size="desktop"] .sc-device-iframe{height:min(64dvh,700px)}
.sc-device-footnote{font-size:.75rem;color:#7e6770;margin:10px 0 7px;line-height:1.5}
.sc-device-actions{margin:12px 0 0}
@media(max-width:520px){.sc-device-canvas{justify-content:flex-start;padding:8px}.sc-device-frame{margin:0 auto}.sc-device-tools{gap:5px}.sc-device-mode{padding:8px 9px;font-size:.73rem}.sc-device-iframe{height:min(63dvh,630px)}}
@media(prefers-reduced-motion:reduce){.sc-device-mode{transition:none!important}}