/* /sandbox/ — uses the site's tokens. */
.sbx-card { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 24px; margin: 24px 0; }
.sbx-go { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.sbx-start { min-height: 64px; padding: 0 40px; font-size: 20px; }
.sbx-quick { min-height: 64px; }
.sbx-quick[disabled], .sbx-start[disabled] { opacity: .6; cursor: default; }
.sbx-pick { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted, #5b6875); }
.sbx-pick select { min-height: 48px; max-width: 100%; border: 1px solid var(--rule); border-radius: 8px; padding: 0 10px; background: var(--surface); color: var(--ink); font: inherit; }
.sbx-facts { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.sbx-phone { margin: 16px 0 0; padding: 12px 14px; border-radius: 8px; background: var(--bg); border: 1px solid var(--rule); }
.sbx-stage { margin: 0 0 32px; }
.sbx-bar-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sbx-live, .sbx-tools { display: flex; flex-wrap: wrap; gap: 8px; }
.sbx-frame { position: relative; border: 1px solid var(--rule); border-radius: 12px; overflow: hidden; background: #fff; height: min(82vh, 860px); min-height: 520px; }
.sbx-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.sbx-over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; background: var(--bg); text-align: center; padding: 24px; }
.sbx-over[hidden] { display: none; }
.sbx-msg { font-weight: 600; margin: 0; }
.sbx-sub { margin: 0; color: var(--muted, #5b6875); font-size: 14px; max-width: 40ch; }
.sbx-bar { width: min(420px, 90%); height: 10px; border-radius: 999px; background: var(--rule); overflow: hidden; }
.sbx-bar i { display: block; height: 100%; width: 0; background: var(--accent, #d42121); transition: width .4s ease; }
.sbx-spin { width: 34px; height: 34px; border-radius: 50%; border: 4px solid var(--rule); border-top-color: var(--accent, #d42121); animation: sbxspin 1s linear infinite; }
.is-error .sbx-spin { animation: none; border-top-color: var(--rule); }
.sbx-note { margin: 10px 0 0; font-size: 13px; color: var(--muted, #5b6875); }
.btn--sandbox { margin-left: 8px; }
@keyframes sbxspin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .sbx-spin { animation: none; } .sbx-bar i { transition: none; } }
@media (max-width: 640px) {
	.sbx-start, .sbx-quick { width: 100%; padding: 0 16px; }
	.sbx-go, .sbx-pick { width: 100%; }
	.sbx-frame { height: 70vh; min-height: 420px; }
}
.sbx-stage { scroll-margin-top: 84px; }
