:root {
  color-scheme: light;
  --primary: #2d6cdf;
  --secondary: #5cc8a1;
  --background: #f5f7fb;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --border: #e2e8f0;
  --shadow: 0 30px 90px rgba(15, 23, 42, 0.14);
  --soft-shadow: 0 18px 54px rgba(15, 23, 42, 0.09);
  --radius: 24px;
  --card-radius: 18px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
}

body.dark {
  color-scheme: dark;
  --background: #090d14;
  --surface: #111827;
  --text: #f8fafc;
  --muted: #94a3b8;
  --border: #243041;
  --shadow: 0 24px 64px rgba(0, 0, 0, 0.38);
  --soft-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 14% 5%, rgba(92, 200, 161, 0.16), transparent 28%),
    radial-gradient(circle at 86% 3%, rgba(45, 108, 223, 0.14), transparent 32%),
    var(--background);
  color: var(--text);
  font-family: var(--font);
  letter-spacing: 0;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.workspace {
  display: grid;
  grid-template-columns: 296px minmax(0, 1fr);
  min-height: 100vh;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px;
  border-right: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(22px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

body.dark .rail {
  background: rgba(17, 24, 39, 0.78);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-lockup strong,
.rail-panel strong {
  display: block;
  font-size: 16px;
}

.brand-lockup span,
.rail-panel p,
.topbar p,
.screen-copy,
.micro,
.meta {
  color: var(--muted);
}

.brand-logo.mark {
  height: 44px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.brand-logo.mark b {
  min-width: 34px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.brand-logo.mark b:last-child {
  border-right: 0;
}

.role-tabs {
  display: grid;
  gap: 8px;
}

.nav-chip {
  min-height: 44px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 14px;
  text-align: left;
  padding: 0 14px;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-chip:hover,
.nav-chip:focus-visible,
.btn:hover,
.fab:hover {
  transform: translateY(-1px);
}

.nav-chip.is-active {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.rail-panel,
.component-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 18px;
}

.rail-panel.compact {
  box-shadow: none;
}

.eyebrow {
  display: inline-block;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.score-ring {
  width: 116px;
  height: 116px;
  margin: 16px 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at center, var(--surface) 58%, transparent 59%),
    conic-gradient(var(--primary) 0 94%, var(--border) 94% 100%);
}

.score-ring span {
  font-size: 32px;
  font-weight: 800;
}

.swatches {
  display: flex;
  gap: 8px;
}

.swatches span {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: var(--swatch);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.mode-toggle {
  margin-top: auto;
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.mode-toggle input {
  width: 42px;
  height: 24px;
  accent-color: var(--primary);
}

.canvas {
  padding: 32px;
  min-width: 0;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: flex-end;
  margin-bottom: 32px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 32px;
  line-height: 1.05;
  margin: 6px 0 10px;
}

h2 {
  font-size: 24px;
  margin-top: 6px;
}

h3 {
  font-size: 18px;
  margin-bottom: 14px;
}

.topbar p {
  max-width: 680px;
  font-size: 16px;
  line-height: 1.5;
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-actions span {
  min-height: 40px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  padding: 9px 14px;
  color: var(--muted);
  white-space: nowrap;
}

.topbar-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--text);
  color: var(--surface);
  padding: 9px 14px;
  font-weight: 800;
  text-decoration: none;
}

.prototype-hero {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  display: grid;
  align-items: end;
  border-radius: 38px;
  margin-bottom: 40px;
  background: #0f172a;
  box-shadow: var(--shadow);
}

.prototype-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prototype-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 23, 42, 0.88), rgba(15, 23, 42, 0.28)),
    linear-gradient(0deg, rgba(15, 23, 42, 0.68), transparent 54%);
}

.prototype-hero-copy {
  position: relative;
  z-index: 1;
  max-width: 720px;
  padding: 36px;
  color: #fff;
}

.prototype-hero-copy .eyebrow {
  color: var(--secondary);
}

.prototype-hero-copy h2 {
  max-width: 680px;
  margin: 10px 0 14px;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 0.98;
}

.prototype-hero-copy p {
  max-width: 600px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 17px;
  line-height: 1.55;
}

.prototype-hero-card {
  position: absolute;
  z-index: 2;
  right: 28px;
  bottom: 28px;
  display: grid;
  gap: 4px;
  min-width: 178px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  backdrop-filter: blur(22px);
  padding: 18px;
}

.prototype-hero-card strong {
  font-size: 32px;
}

.prototype-hero-card span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
}

.topbar-actions strong {
  color: var(--text);
}

.section {
  margin-bottom: 40px;
}

.section-heading {
  margin-bottom: 18px;
}

.system-grid,
.structure-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(220px, 1fr));
  gap: 16px;
}

.structure-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.structure-grid article {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
  padding: 16px;
}

.structure-grid span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.42;
}

.button-row,
.badge-row,
.stats-row,
.quick-row,
.tabbar,
.option-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.btn,
.fab {
  min-height: 44px;
  border-radius: 14px;
  border: 1px solid transparent;
  padding: 0 16px;
  font-weight: 750;
  transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
}

.btn.primary,
.fab {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 14px 30px rgba(45, 108, 223, 0.24);
}

.btn.secondary {
  color: #073f33;
  background: var(--secondary);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.danger {
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
}

.btn.loading {
  margin-top: 12px;
  opacity: 0.78;
}

.fab {
  width: 48px;
  padding: 0;
  border-radius: 18px;
  font-size: 24px;
}

.input-shell {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.input-shell input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--background);
  color: var(--text);
  padding: 0 12px;
}

.otp-row span {
  width: 42px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--background);
  font-weight: 800;
}

.verified-card {
  display: flex;
  align-items: center;
  gap: 12px;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background:
    linear-gradient(145deg, rgba(92, 200, 161, 0.95), rgba(45, 108, 223, 0.95));
  color: #fff;
  font-size: 12px;
  font-weight: 850;
}

.avatar.large {
  width: 56px;
  height: 56px;
  font-size: 15px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.badge.verified {
  color: var(--primary);
  background: rgba(45, 108, 223, 0.1);
  border-color: rgba(45, 108, 223, 0.18);
}

.badge.gold {
  color: #a16207;
  background: rgba(245, 158, 11, 0.13);
  border-color: rgba(245, 158, 11, 0.22);
}

.toast {
  min-height: 40px;
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 750;
}

.toast.success {
  color: #0f6b36;
  background: rgba(34, 197, 94, 0.13);
}

.toast.warning {
  color: #92580b;
  background: rgba(245, 158, 11, 0.13);
}

.toast.danger {
  color: #b42318;
  background: rgba(239, 68, 68, 0.12);
}

.phone-nav-demo,
.nav-bar-demo {
  min-height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--background);
  margin-bottom: 10px;
  padding: 8px;
}

.phone-nav-demo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.phone-nav-demo .active {
  color: var(--primary);
}

.nav-bar-demo {
  justify-content: space-between;
}

.sheet-demo,
.dialog-demo {
  display: grid;
  gap: 10px;
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 22px 22px 16px 16px;
  padding: 14px;
}

.sheet-demo > span {
  width: 44px;
  height: 4px;
  justify-self: center;
  border-radius: 999px;
  background: var(--border);
}

.sheet-demo p,
.dialog-demo p,
.motion-stack p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.motion-stack {
  display: grid;
  gap: 10px;
}

.motion-stack div {
  display: grid;
  grid-template-columns: 18px 1fr;
  column-gap: 10px;
  align-items: center;
}

.motion-stack p {
  grid-column: 2;
}

.motion-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(45, 108, 223, 0.1);
}

.motion-dot.success {
  background: var(--success);
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}

.motion-dot.warning {
  background: var(--warning);
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.12);
}

.phone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(328px, 1fr));
  gap: 30px;
  align-items: start;
}

.phone {
  min-height: 704px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 44px;
  background:
    linear-gradient(145deg, #05070b, #151b27);
  padding: 10px;
  box-shadow:
    0 36px 92px rgba(15, 23, 42, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: transform 220ms ease, opacity 220ms ease;
}

.phone.is-hidden {
  display: none;
}

.phone:hover {
  transform: translateY(-3px);
}

.phone-screen {
  position: relative;
  overflow: hidden;
  min-height: 682px;
  border-radius: 34px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 250, 252, 0.98));
  color: var(--text);
  display: flex;
  flex-direction: column;
}

body.dark .phone-screen {
  background:
    linear-gradient(180deg, rgba(17, 24, 39, 0.98), rgba(9, 13, 20, 0.98));
}

.phone-status {
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.app-brand {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px 6px;
}

.app-brand em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.mini-logo {
  height: 26px;
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  backdrop-filter: blur(14px);
}

.mini-logo b {
  min-width: 24px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--border);
  font-size: 8px;
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.mini-logo b:last-child {
  border-right: 0;
}

body.dark .mini-logo {
  background: rgba(17, 24, 39, 0.82);
}

.phone-content {
  flex: 1;
  padding: 12px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.screen-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.screen-title {
  font-size: 25px;
  line-height: 1.02;
  letter-spacing: 0;
}

.screen-copy {
  font-size: 14px;
  line-height: 1.45;
  margin-top: 6px;
}

.icon-button {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  color: var(--text);
  display: grid;
  place-items: center;
  font-weight: 900;
}

.hero-card,
.mini-card,
.list-card,
.map-card,
.message-card,
.metric-card,
.payment-card,
.calendar-card {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.06);
}

.hero-card {
  min-height: 148px;
  display: grid;
  align-content: end;
  gap: 10px;
  color: #fff;
  background:
    linear-gradient(160deg, rgba(15, 23, 42, 0.08), rgba(15, 23, 42, 0.76)),
    linear-gradient(135deg, #5cc8a1, #2d6cdf 62%, #0f172a);
}

.photo-card {
  position: relative;
  overflow: hidden;
  min-height: 210px;
  display: grid;
  align-items: end;
  border-radius: 28px;
  background: #0f172a;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.14);
}

.photo-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 18%, rgba(15, 23, 42, 0.76)),
    linear-gradient(90deg, rgba(15, 23, 42, 0.2), transparent 58%);
}

.photo-card > div {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 7px;
  padding: 18px;
  color: #fff;
}

.photo-card strong {
  max-width: 260px;
  font-size: 22px;
  line-height: 1.08;
}

.photo-card p {
  max-width: 260px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  line-height: 1.42;
}

.glass-panel {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.44));
  backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  padding: 15px;
}

.glass-panel strong {
  font-size: 17px;
}

body.dark .glass-panel,
body.dark .hero-card,
body.dark .mini-card,
body.dark .list-card,
body.dark .map-card,
body.dark .message-card,
body.dark .payment-card,
body.dark .calendar-card,
body.dark .icon-button {
  background: rgba(17, 24, 39, 0.72);
}

.hero-card.light {
  color: var(--text);
  background:
    linear-gradient(135deg, rgba(92, 200, 161, 0.22), rgba(45, 108, 223, 0.12)),
    var(--background);
}

.hero-card strong {
  font-size: 21px;
  line-height: 1.12;
}

.search-pill {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 18px;
  padding: 0 14px;
  color: var(--muted);
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stat {
  min-height: 72px;
  display: grid;
  align-content: center;
  gap: 3px;
  border-radius: 16px;
  background: var(--background);
  border: 1px solid var(--border);
  padding: 10px;
}

.stat strong {
  font-size: 18px;
}

.stat span,
.meta,
.micro {
  font-size: 12px;
}

.list-card {
  display: flex;
  gap: 12px;
  align-items: center;
}

.list-card,
.mini-card,
.payment-card,
.calendar-card,
.message-card,
.map-card {
  backdrop-filter: blur(18px);
}

.list-card .grow {
  min-width: 0;
  flex: 1;
}

.list-card strong,
.message-card strong {
  display: block;
  font-size: 15px;
}

.price {
  font-size: 16px;
  color: var(--text);
  font-weight: 850;
}

.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
}

.progress span {
  display: block;
  height: 100%;
  width: var(--value, 72%);
  border-radius: inherit;
  background: var(--primary);
}

.trust-breakdown {
  display: grid;
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 10px;
  padding-left: 6px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 8px;
  align-items: start;
}

.dot {
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 6px rgba(45, 108, 223, 0.1);
}

.map-card {
  min-height: 184px;
  background:
    linear-gradient(90deg, transparent 23px, rgba(45, 108, 223, 0.08) 24px, transparent 25px),
    linear-gradient(transparent 23px, rgba(45, 108, 223, 0.08) 24px, transparent 25px),
    var(--background);
  background-size: 48px 48px;
  position: relative;
}

.pin {
  position: absolute;
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 8px;
  background: var(--primary);
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 16px 28px rgba(45, 108, 223, 0.24);
}

.pin span {
  transform: rotate(45deg);
  font-size: 11px;
  font-weight: 900;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}

.calendar-grid span {
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: var(--background);
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 750;
}

.calendar-grid .active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.option-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.option-row .mini-card {
  min-height: 72px;
}

.bottom-action {
  margin-top: auto;
  display: grid;
  gap: 10px;
}

.tabbar {
  min-height: 56px;
  align-items: center;
  justify-content: space-around;
  margin: 0 12px 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(20px);
  border-radius: 22px;
}

body.dark .tabbar {
  background: rgba(17, 24, 39, 0.86);
}

.tabbar span {
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
}

.tabbar .active {
  color: var(--primary);
}

.message-card {
  max-width: 86%;
  padding: 12px;
  border-radius: 18px;
  background: var(--background);
}

.message-card.sent {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
}

.table-card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
}

.table-row {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr 0.8fr;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  font-size: 12px;
  align-items: center;
}

.table-row:last-child {
  border-bottom: 0;
}

.admin-chart {
  height: 120px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--card-radius);
  background: var(--background);
}

.admin-chart span {
  flex: 1;
  min-height: 16px;
  height: var(--h);
  border-radius: 8px 8px 3px 3px;
  background: var(--primary);
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
  }

  .rail {
    position: static;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }

  .role-tabs {
    grid-template-columns: repeat(5, minmax(120px, 1fr));
    overflow-x: auto;
  }

  .topbar,
  .system-grid {
    grid-template-columns: 1fr;
    display: grid;
  }

  .topbar-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .canvas,
  .rail {
    padding: 16px;
  }

  .phone-grid {
    grid-template-columns: 1fr;
  }

  .phone {
    min-height: auto;
  }

  .phone-screen {
    min-height: 640px;
  }

  .system-grid {
    grid-template-columns: 1fr;
  }
}
