/* Switching Cost's thin shell on the kit's Live Stage tokens (vendor/exercise-kit/web/live-stage.css, linked first as
   /kit/live-stage.css). Pages rely only on the aliases and the .sc-* classes below, so moving the screens onto the kit's
   phone and wall shells later changes no page code. Fallbacks keep the look if the kit stylesheet is missing. */
:root {
  --stage: var(--kit-bg, #0f2c33); --stage-deep: var(--kit-deep, #0d1f26); --stage-card: var(--kit-surface, #163b44); --stage-line: var(--kit-border, #2a5560);
  --cream: var(--kit-ink, #faf3e8); --cream-dim: var(--kit-muted, #cfc6b8); --amber: var(--kit-code, #f2b33d); --amber-deep: #c98a17;
  --good: var(--kit-gain, #7fd1a8); --loss: var(--kit-loss, #ff8a7a); --c1: #f2b33d; --c2: #7fc8e8; --c3: #e89ad0; --c4: #a8e07f; --c5: #c8a8ff;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--stage); color: var(--cream); font-family: var(--font); line-height: 1.35; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
.sc-card { background: var(--stage-card); border: 1px solid var(--stage-line); border-radius: var(--radius); padding: 16px; }
.sc-btn { background: var(--amber); color: var(--stage-deep); border: 0; border-radius: 999px; padding: 12px 22px; font-weight: 700; min-height: 48px; }
.sc-btn[disabled] { opacity: .35; cursor: default; }
.sc-btn.ghost { background: transparent; color: var(--cream); border: 1px solid var(--stage-line); }
.sc-muted { color: var(--cream-dim); }
.sc-amber { color: var(--amber); }
.sc-loss { color: var(--loss); }
.sc-good { color: var(--good); }
.sc-build { position: fixed; left: 8px; bottom: 6px; font-size: 11px; color: var(--cream-dim); opacity: .7; pointer-events: none; }
.sc-tag { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--cream-dim); border: 1px solid var(--stage-line); border-radius: 999px; padding: 3px 10px; }
.sc-ribbon { position: fixed; top: 14px; right: -46px; transform: rotate(45deg); background: var(--amber); color: var(--stage-deep); font-weight: 800; padding: 4px 56px; z-index: 50; letter-spacing: .05em; }
.sc-error { background: #4a1f1f; color: var(--cream); border-radius: 10px; padding: 10px 14px; margin: 10px 0; }
input[type=text], input[type=number] { font: inherit; background: var(--stage-deep); color: var(--cream); border: 1px solid var(--stage-line); border-radius: 10px; padding: 12px; min-height: 48px; width: 100%; }
label { display: block; margin: 10px 0 4px; }
.sc-figure { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--stage-line); }
.sc-figure .v { font-weight: 800; font-variant-numeric: tabular-nums; }
.sc-figure .m { grid-column: 1 / -1; font-size: 13px; color: var(--cream-dim); }
@keyframes sc-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.sc-shake { animation: sc-shake .25s; }
@keyframes sc-walkin { from { transform: translateX(120%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes sc-flash { 0% { opacity: 0; transform: translateY(8px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .sc-shake, [class*=walkin] { animation: none !important; } }
