/* The lab's ground: Dusk's font, canvas and the trading panel's frame. Only the
   slider is real; every other part of the panel is a static grey block shaped
   like it (data-focus-skeleton), so the eye stays on the slider. */
@import url("./tokens.css");

@font-face {
  font-family: "M Saans";
  src: url("./MSaansVF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: "M Saans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 20px;
  color: oklch(var(--ink));
  background: oklch(var(--surface-canvas));
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 0;
}
button { font: inherit; color: inherit; }

/* The stage: the two panels side by side, centred, filling the window. */
.stage {
  min-height: 100dvh;
  display: grid;
  place-content: center;
  grid-auto-flow: column;
  gap: 24px;
  padding: 24px 16px 96px;
}
@media (max-width: 767px) {
  .stage { grid-auto-flow: row; padding-top: 16px; }
}

/* The trading panel's column (orb4 shell, 1474 wide: 342 with 8 in). */
.panel {
  width: 360px;
  max-width: calc(100vw - 32px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 8px;
  border-radius: 20px;
  background: oklch(var(--surface-card));
  box-shadow: inset 0 0 0 1px oklch(var(--line));
}
.panel-cap {
  margin: 0 0 -4px 4px;
  font-size: 14px;
  color: oklch(var(--ink-muted));
}

/* Skeletons: flat, no shimmer. */
.sk { background: oklch(var(--skeleton)); border-radius: 14px; }
.sk-head { height: 92px; border-radius: 16px; }
.sk-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sk-pill { height: 44px; border-radius: 14px; }
.sk-field { height: 92px; border-radius: 16px; }
.sk-row { height: 44px; border-radius: 14px; }
.sk-cta { height: 46px; border-radius: 999px; }

/* The slider's slot inside the panel: the shell gives it 4 in from the card. */
.slot { padding: 4px 4px 0; }

/* Utilities the ported markup uses (Tailwind names, plain CSS). */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
