:root {
  color: var(--p3-e536e0e426,#111);
  background: var(--p3-e1014c0844,#d9d9d5);
  color-scheme: light;
}

* { box-sizing: border-box; }

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  display: grid;
  min-height: 100vh;
  place-items: start center;
  padding: 24px;
}

.preview {
  width: min(100%, 1500px);
}

.device-grid {
  display: grid;
  /* The X has a 10.3" 4:3 display, the OG a 7.5" 5:3 display. With
     equal physical scaling, the OG's display width is about 78% of X. */
  grid-template-columns: minmax(0, 1.28fr) minmax(260px, 1fr);
  align-items: start;
  gap: clamp(18px, 2.4vw, 34px);
}

.device-card {
  min-width: 0;
}

.device-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  min-height: 28px;
  padding: 0 2px 7px;
  color: var(--p3-b342bab623,#5d5d59);
  font: 12px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
}

.device-label span:first-child {
  color: var(--p3-e536e0e426,#111);
  font-weight: 650;
}

.device {
  width: 100%;
  overflow: hidden;
  padding: clamp(12px, 2vw, 22px);
  border-radius: 22px;
  background: var(--p3-53fbec9901,#171717);
  box-shadow: 0 22px 60px var(--p3-c6560aa936,rgb(0 0 0 / 24%));
}

.dashboard-artwork {
  display: block;
  width: 100%;
  height: auto;
  background: var(--p3-6dbae17ef0,#f5f5f2);
}

.x-artwork {
  aspect-ratio: 4 / 3;
}

.og-artwork {
  aspect-ratio: 5 / 3;
}

html.render-screen body {
  background: var(--p3-6dbae17ef0,#f5f5f2);
  padding: 0;
}

html.render-screen .preview {
  width: min(100vw, calc(100vh * 4 / 3));
}

html.render-screen .device-grid {
  display: block;
}

html.render-screen .og-device,
html.render-screen .device-label {
  display: none;
}

html.render-screen .device {
  padding: 0;
  border-radius: 0;
  background: var(--p3-2923c2e2c2,transparent);
  box-shadow: none;
}

@media (max-width: 820px) {
  body { padding: 12px; }

  .device-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .og-device {
    width: 78%;
    justify-self: center;
  }

  .device {
    border-radius: 14px;
  }
}

/* Display-P3 palette; original sRGB values remain as var() fallbacks. */
@supports (color: color(display-p3 1 0 0)) {
  @media (color-gamut: p3) {
    :root {
      --p3-2923c2e2c2: color(display-p3 0 0 0 / 0);
      --p3-53fbec9901: color(display-p3 0.090196 0.090196 0.090196);
      --p3-6dbae17ef0: color(display-p3 0.960784 0.960784 0.94902);
      --p3-b342bab623: color(display-p3 0.364706 0.364706 0.34902);
      --p3-c6560aa936: color(display-p3 0 0 0 / 0.24);
      --p3-e1014c0844: color(display-p3 0.85098 0.85098 0.835294);
      --p3-e536e0e426: color(display-p3 0.066667 0.066667 0.066667);
    }
  }
}
