/* Input-driven browser examples; every selector stays inside the playground namespace. */
.pg-playground{color:#f4f6f8;min-width:0}
.pg-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;margin-bottom:20px}
.pg-heading-copy{min-width:0;max-width:76ch}
.pg-title{font:600 clamp(25px,2.5vw,34px)/1.12 Barlow,'Segoe UI',sans-serif;letter-spacing:-.02em;margin:0;text-wrap:balance}
.pg-task{font:400 17px/1.45 Barlow,'Segoe UI',sans-serif;color:#afbdd0;margin:9px 0 0;max-width:72ch}
.pg-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;align-items:stretch}
.pg-pane{min-width:0;display:flex;flex-direction:column;border:1px solid #30415b;border-radius:7px;background:#111e31;overflow:hidden}
.pg-pane-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;min-height:51px;padding:12px 16px;border-bottom:1px solid #30415b}
.pg-pane-title{margin:0;font:600 17px/1.3 Barlow,'Segoe UI',sans-serif;letter-spacing:0}
.pg-simulation-label{font:400 14px/1.3 Barlow,'Segoe UI',sans-serif;color:#afbdd0}
.pg-stage{min-width:0;padding:16px;display:flex;flex:1;flex-direction:column;gap:14px;font:400 14px/1.4 'Segoe UI',sans-serif}
.pg-instruction{margin:0;color:#d5deeb;font-size:14px;line-height:1.5;min-height:63px;max-width:70ch}
.pg-status{margin:0;min-height:62px;padding:12px 16px;background:#101c2d;border-top:1px solid #30415b;color:#afbdd0;font:400 14px/1.4 'Segoe UI',sans-serif}
.pg-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.pg-button{display:inline-flex;align-items:center;justify-content:center;min-height:42px;min-width:42px;padding:8px 12px;border:1px solid #536780;border-radius:4px;background:#192940;color:#f4f6f8;font:600 14px/1.3 'Segoe UI',sans-serif;text-align:center;cursor:pointer;touch-action:manipulation;transition:background-color 130ms ease-out,border-color 130ms ease-out}
.pg-button:hover{background:#263c57;border-color:#8399b5}
.pg-button[aria-pressed=true]{border-color:#5ec6ed;background:#233e57;color:#fff}
.pg-button:disabled{opacity:.45;cursor:default}
.pg-button:disabled:hover{background:#192940;border-color:#536780}
.pg-button.pg-primary{background:#f0cc58;color:#111927;border-color:#f0cc58}
.pg-button.pg-primary:hover{background:#ffe18a;border-color:#ffe18a}
.pg-button.pg-small{min-height:36px;padding:6px 10px}
.pg-button.pg-reset{flex-shrink:0;background:transparent}
.pg-playground :focus-visible{outline:3px solid #f0cc58;outline-offset:3px}
.pg-playground input,.pg-playground select,.pg-playground textarea{font:400 14px/1.4 'Segoe UI',sans-serif;color:#f4f6f8;accent-color:#5ec6ed;caret-color:#f0cc58}
.pg-playground input::placeholder{color:#afbdd0;opacity:1}
.pg-playground ::selection{background:#f0cc58;color:#111927}
.pg-footnote,.pg-muted{margin:0;color:#afbdd0;font-size:14px;line-height:1.5}
@media(max-width:760px){.pg-pair{grid-template-columns:1fr;gap:16px}.pg-heading{gap:12px}.pg-stage{padding:10px}.pg-task{font-size:16px}.pg-instruction{min-height:0}}
@media(max-width:390px){.pg-heading{flex-direction:column}.pg-reset{align-self:flex-start}.pg-pane-heading{padding:12px}.pg-stage{padding:8px}}
@media(prefers-reduced-motion:reduce){.pg-playground *{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
