/* THE STUDIO KIT (17 Oct 2026). Every page (pages/*.js) and tool (tools/*.js)
 * is built from these and from studio.css's own: st-btn (primary, big, ghost,
 * danger), st-chip(s), st-q (a label over an input), st-group (a card),
 * st-toggle (iPhone switch), st-choice (a big tap card in st-add-choices),
 * st-label, st-muted, st-error, st-actions, st-pick/st-pick-one (pictures to
 * choose), st-x (close). Colours only from the variables (--bg, --surface,
 * --surface-2, --line, --text, --muted, --green, --green-ink, --gold).
 * A page's own extra CSS goes in pages/<name>.css or tools/<name>.css, every
 * rule starting with that page's own class, loaded by the module itself. */

.st-page { max-width: 1120px; margin: 0 auto; padding: 24px 24px 120px; display: grid; gap: 18px; }
.st-page > h2, .st-window-title { margin: 0; font-size: 24px; letter-spacing: -.01em; }
.st-window { display: block !important; width: min(760px, 100%) !important; }
.st-window.wide { width: min(1080px, 100%) !important; }
.st-window-title { padding-right: 48px; margin-bottom: 12px; }
.st-window-body { display: grid; gap: 16px; }
.st-toast { position: fixed; left: 50%; top: 18px; z-index: 60; transform: translate(-50%, -140%); max-width: min(560px, calc(100% - 32px)); padding: 12px 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font-weight: 700; box-shadow: 0 16px 40px rgba(0,0,0,.5); transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.st-toast.show { transform: translate(-50%, 0); }
.st-toast.success { border-color: var(--green); }
.st-toast.error { border-color: #e5484d; }
.st-steps-bar { height: 5px; border-radius: 3px; background: #22304b; overflow: hidden; }
.st-steps-bar i { display: block; height: 100%; background: var(--green); transition: width .4s ease; }
.st-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.st-grid-3 > * { min-height: 100%; }
@media (max-width: 760px) { .st-grid-3 { grid-template-columns: 1fr 1fr; } }
