.sx-stage {
  --sx-stage: #0b0e0d;
  --sx-card: #f5f6f2;
  --sx-paper: #ffffff;
  --sx-ink: #121513;
  --sx-text: #4a524d;
  --sx-muted: #87908a;
  --sx-line: #e1e5de;
  --sx-violet: #5a2cff;
  --sx-magenta: #c21cc0;
  --sx-coral: #ff4a2b;
  --sx-cyan: #ff7ab8;
  --sx-hud: #8f9993;
  --sx-font: "Geist", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --sx-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  isolation: isolate;
  background: var(--sx-stage);
  contain: layout paint;
}
.sx-stage[data-layout="portrait"] { aspect-ratio: 4 / 5; }
.sx-comp {
  position: absolute;
  top: 0;
  left: 0;
  transform-origin: 0 0;
  perspective: 1800px;
  color: var(--sx-ink);
  font-family: var(--sx-font);
  font-size: 18px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  user-select: none;
}
.sx-comp * { box-sizing: border-box; }
.sx-comp img { display: block; max-width: none; }
.sx-mono { font-family: var(--sx-mono); letter-spacing: 0.02em; }
.sx-abs { position: absolute; top: 0; left: 0; }
.sx-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgb(255 255 255 / 7%) 1.2px, transparent 1.5px);
  background-size: 32px 32px;
  background-position: 16px 16px;
}
.sx-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 1100px;
  height: 1100px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgb(90 44 255 / 34%), rgb(194 28 192 / 12%) 45%, transparent 72%);
  opacity: 0;
  pointer-events: none;
}
.sx-cam { position: absolute; inset: 0; }
.sx-card {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 18px;
  background: var(--sx-card);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 5%);
  backface-visibility: hidden;
}
.sx-card--paper { background: var(--sx-paper); }
.sx-kicker {
  color: var(--sx-muted);
  font-family: var(--sx-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sx-check {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--sx-violet);
  color: #fff;
  flex: none;
}
.sx-check svg { width: 17px; height: 17px; }
.sx-threads { position: absolute; top: 0; left: 0; overflow: visible; pointer-events: none; }
.sx-threads path { fill: none; stroke-linecap: round; }
.sx-comp img.sx-pack { object-fit: contain; background: transparent; border-radius: 0; filter: drop-shadow(0 4px 5px rgb(17 20 18 / 18%)); }
.ux-new {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  background: #f4f5f1;
  color: var(--sx-ink);
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: 0 20px 40px -18px rgb(0 0 0 / 70%);
}
.ux-new svg { width: 20px; height: 20px; }
.ux-tap { position: absolute; top: 0; left: 0; width: 80px; height: 80px; border-radius: 50%; background: rgb(255 122 184 / 34%); box-shadow: 0 0 0 2px rgb(255 122 184 / 70%); pointer-events: none; }
.ux-fly { position: absolute; top: 0; left: 0; overflow: hidden; border-radius: 10px; box-shadow: 0 18px 30px -10px rgb(0 0 0 / 60%), 0 0 0 2px #fff; }
.ux-fly img, .ux-thumb img { width: 100%; height: 100%; object-fit: cover; }

.ux-folder { padding: 0 28px; overflow: hidden; border-radius: 22px; }
.ux-head { display: flex; align-items: center; gap: 16px; border-bottom: 1px solid var(--sx-line); }
.ux-thumb { position: relative; display: block; flex: none; overflow: hidden; border-radius: 10px; background: #eceee9; }
.ux-thumb--head { width: 60px; height: 80px; box-shadow: inset 0 0 0 1.5px #d3d8d0; }
.ux-thumb--head img { opacity: 0; }
.ux-title { flex: 1; min-width: 0; }
.ux-name { display: flex; align-items: center; height: 34px; font-size: 28px; font-weight: 500; letter-spacing: -0.03em; white-space: nowrap; }
.ux-caret { display: inline-block; width: 2px; height: 28px; margin-left: 2px; background: var(--sx-violet); }
.ux-meta { margin-top: 4px; color: var(--sx-muted); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }
.ux-status { position: relative; flex: none; width: 150px; height: 36px; }
.ux-pill {
  position: absolute;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
  white-space: nowrap;
}
.ux-pill svg { width: 16px; height: 16px; }
.ux-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.ux-pill[data-st="draft"] { background: #eceee9; color: #434b46; }
.ux-pill[data-st="draft"] .ux-dot { background: transparent; box-shadow: inset 0 0 0 1.5px currentColor; }
.ux-pill[data-st="review"] { background: #fff0cf; color: #7a5200; }
.ux-pill[data-st="ok"] { background: #ebe5ff; color: #4b22e0; }
.ux-prods { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--sx-line); }
.ux-prod { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 8px; border-radius: 999px; background: #f1f2ee; font-size: 15px; font-weight: 500; }
.ux-prod img.sx-pack { width: 16px; height: 30px; }
.ux-rows { border-bottom: 1px solid var(--sx-line); }
.ux-drop { position: absolute; left: 28px; right: 28px; display: grid; place-items: center; border-radius: 16px; opacity: 0; }
.ux-drop::before { position: absolute; inset: 0; border: 2px dashed #cfd5cc; border-radius: inherit; content: ""; }
.ux-drop__on { position: absolute; inset: 0; border: 2px dashed var(--sx-violet); border-radius: inherit; background: rgb(90 44 255 / 6%); opacity: 0; }
.ux-drop__in { position: relative; display: grid; justify-items: center; gap: 10px; color: var(--sx-muted); font-size: 16px; }
.ux-drop__in svg { width: 30px; height: 30px; color: var(--sx-violet); }
.is-portrait .ux-drop { left: 36px; right: 36px; border-radius: 22px; }
.is-portrait .ux-drop__in { gap: 14px; font-size: 24px; }
.is-portrait .ux-drop__in svg { width: 44px; height: 44px; }
.ux-row { display: grid; grid-template-columns: auto minmax(0, 1fr) 150px 30px; align-items: center; gap: 16px; }
.ux-row__txt { display: grid; gap: 3px; min-width: 0; }
.ux-row__txt b { font-size: 17px; font-weight: 500; }
.ux-row__txt span { color: var(--sx-muted); font-size: 13px; }
.ux-row__prog { display: grid; gap: 7px; }
.ux-row__prog [data-pct] { color: var(--sx-text); font-size: 13px; text-align: right; }
.ux-bar { position: relative; display: block; height: 5px; overflow: hidden; border-radius: 3px; background: #e7eae4; }
.ux-bar i { position: absolute; inset: 0; border-radius: 3px; background: linear-gradient(90deg, var(--sx-violet), var(--sx-magenta)); transform-origin: 0 50%; }
.ux-chat { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.ux-bubble { max-width: 80%; padding: 11px 16px; border-radius: 18px; font-size: 17px; line-height: 1.3; }
.ux-bubble--me { align-self: flex-end; min-height: 45px; border-bottom-right-radius: 6px; background: var(--sx-ink); color: #f4f5f1; }
.ux-bubble--team { align-self: flex-start; border-bottom-left-radius: 6px; background: #f1f2ee; }
.ux-bubble--team b { display: block; margin-bottom: 2px; color: var(--sx-muted); font-size: 12px; font-weight: 500; }
.ux-compose { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--sx-line); }
.ux-field { display: flex; flex: 1; align-items: center; height: 44px; padding: 0 16px; border-radius: 12px; background: #f4f5f1; color: var(--sx-muted); font-size: 16px; }
.ux-send { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 12px; background: var(--sx-ink); color: #f4f5f1; font-size: 15px; font-weight: 500; white-space: nowrap; }

.ux-review {
  display: grid;
  grid-template-columns: 300px;
  grid-template-areas: "top" "frame" "scrub" "side";
  row-gap: 14px;
  padding: 22px 24px 22px;
  border-radius: 22px;
}
.ux-rv__top { grid-area: top; display: flex; align-items: center; justify-content: space-between; height: 24px; }
.ux-rv__time { color: var(--sx-muted); font-size: 13px; }
.ux-rv__time b { color: var(--sx-ink); font-weight: 500; }
.ux-frame { grid-area: frame; position: relative; width: 300px; height: 400px; overflow: hidden; border-radius: 14px; background: #1a1f1d; }
.ux-frame > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ux-frame__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgb(11 14 13 / 30%), rgb(11 14 13 / 82%)); opacity: 0; }
.ux-ok { position: absolute; top: 34%; left: 50%; width: 124px; height: 124px; margin: -62px 0 0 -62px; }
.ux-ok__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, #5a2cff, #3547ff, #9a6bff, #c21cc0, #ff5aa8, #ff4a2b, #ffb0c4, #5a2cff);
  -webkit-mask: radial-gradient(closest-side, transparent 84%, #000 85%);
  mask: radial-gradient(closest-side, transparent 84%, #000 85%);
  transform: scale(0);
}
.ux-ok__burst { position: absolute; inset: 0; border: 2px solid rgb(255 255 255 / 75%); border-radius: 50%; }
.ux-ok__check { position: absolute; inset: 30px; width: 64px; height: 64px; }
.ux-ok__text { position: absolute; left: 0; right: 0; bottom: 30px; display: grid; justify-items: center; gap: 6px; color: #f4f5f1; text-align: center; }
.ux-ok__text > span { color: #8ff4f8; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; }
.ux-ok__text b { max-width: 260px; font-size: 32px; font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.ux-ok__text > * { opacity: 0; }
.ux-scrub { grid-area: scrub; position: relative; height: 16px; }
.ux-scrub__line, .ux-scrub__fill { position: absolute; top: 7px; left: 0; right: 0; height: 3px; border-radius: 2px; background: #e3e6e0; }
.ux-scrub__fill { background: linear-gradient(90deg, var(--sx-violet), var(--sx-magenta)); transform-origin: 0 50%; }
.ux-scrub__mark { position: absolute; top: 4px; left: -5px; width: 10px; height: 10px; border-radius: 50%; background: var(--sx-coral); box-shadow: 0 0 0 3px #fff; }
.ux-scrub__head { position: absolute; top: 1px; left: -7px; width: 14px; height: 14px; border-radius: 50%; background: var(--sx-ink); box-shadow: 0 0 0 3px #fff; }
.ux-rv__side { grid-area: side; display: grid; gap: 12px; align-content: start; }
.ux-who { display: flex; align-items: center; gap: 12px; }
.ux-avatar { position: relative; display: block; flex: none; width: 40px; height: 40px; }
.ux-avatar i { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, #5a2cff, #3547ff, #9a6bff, #c21cc0, #ff5aa8, #ff4a2b, #ffb0c4, #5a2cff); }
.ux-avatar span { position: absolute; inset: 3px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--sx-violet); font-size: 16px; font-weight: 600; }
.ux-who__txt { display: grid; }
.ux-who__txt b { font-size: 17px; font-weight: 500; line-height: 1.2; }
.ux-who__txt span { color: var(--sx-muted); font-size: 13px; }
.ux-typing { display: inline-flex; gap: 5px; margin-left: auto; padding: 11px 14px; border-radius: 16px; background: #f1f2ee; }
.ux-typing i { width: 8px; height: 8px; border-radius: 50%; background: #8a918c; }
.ux-rv__msg { max-width: 100%; }
.is-portrait .ux-new { height: 84px; padding: 0 36px 0 30px; gap: 14px; font-size: 32px; }
.is-portrait .ux-new svg { width: 30px; height: 30px; }
.is-portrait .ux-tap { width: 110px; height: 110px; }
.is-portrait .ux-folder { padding: 0 36px; border-radius: 28px; }
.is-portrait .ux-head { gap: 22px; }
.is-portrait .ux-thumb--head { width: 84px; height: 112px; border-radius: 14px; }
.is-portrait .ux-name { height: 54px; font-size: 44px; }
.is-portrait .ux-caret { width: 3px; height: 44px; }
.is-portrait .ux-meta { font-size: 20px; }
.is-portrait .ux-status { width: 196px; height: 50px; }
.is-portrait .ux-pill { height: 50px; padding: 0 20px; gap: 10px; font-size: 23px; }
.is-portrait .ux-pill svg { width: 22px; height: 22px; }
.is-portrait .ux-dot { width: 11px; height: 11px; }
.is-portrait .ux-prods { gap: 14px; }
.is-portrait .ux-prod { height: 56px; padding: 0 20px 0 12px; gap: 12px; font-size: 24px; }
.is-portrait .ux-prod img.sx-pack { width: 22px; height: 42px; }
.is-portrait .ux-thumb { border-radius: 14px; }
.is-portrait .ux-fly { border-radius: 14px; }
.is-portrait .ux-row { grid-template-columns: auto minmax(0, 1fr) 170px 44px; gap: 22px; }
.is-portrait .ux-row__txt b { font-size: 28px; }
.is-portrait .ux-row__txt span { font-size: 20px; }
.is-portrait .ux-row__prog [data-pct] { font-size: 21px; }
.is-portrait .ux-bar { height: 8px; border-radius: 4px; }
.is-portrait .sx-check { width: 44px; height: 44px; }
.is-portrait .sx-check svg { width: 24px; height: 24px; }
.is-portrait .ux-bubble { padding: 16px 24px; border-radius: 26px; font-size: 28px; }
.is-portrait .ux-bubble--me { min-height: 70px; border-bottom-right-radius: 8px; }
.is-portrait .ux-bubble--team { border-bottom-left-radius: 8px; }
.is-portrait .ux-bubble--team b { font-size: 19px; }
.is-portrait .ux-field { height: 64px; padding: 0 22px; border-radius: 16px; font-size: 25px; }
.is-portrait .ux-send { height: 64px; padding: 0 26px; border-radius: 16px; font-size: 24px; }
.is-portrait .sx-kicker { font-size: 20px; }
.is-portrait .ux-review {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "top top" "frame side" "scrub scrub";
  column-gap: 30px;
  row-gap: 22px;
  padding: 30px 36px 34px;
  border-radius: 28px;
  box-shadow: 0 -30px 80px -20px rgb(0 0 0 / 70%), 0 0 0 1px rgb(255 255 255 / 5%);
}
.is-portrait .ux-rv__top { height: 34px; }
.is-portrait .ux-rv__time { font-size: 22px; }
.is-portrait .ux-ok__text b { font-size: 36px; }
.is-portrait .ux-ok__text > span { font-size: 17px; }
.is-portrait .ux-scrub { height: 22px; }
.is-portrait .ux-scrub__line, .is-portrait .ux-scrub__fill { top: 9px; height: 4px; }
.is-portrait .ux-scrub__head { width: 20px; height: 20px; left: -10px; top: 1px; }
.is-portrait .ux-scrub__mark { width: 14px; height: 14px; left: -7px; top: 4px; }
.is-portrait .ux-rv__side { gap: 22px; }
.is-portrait .ux-who { flex-wrap: wrap; gap: 16px; }
.is-portrait .ux-avatar { width: 68px; height: 68px; }
.is-portrait .ux-avatar i + span { inset: 5px; font-size: 26px; }
.is-portrait .ux-who__txt b { font-size: 32px; }
.is-portrait .ux-who__txt span { font-size: 21px; }
.is-portrait .ux-typing { margin-left: 0; gap: 8px; padding: 18px 22px; border-radius: 24px; }
.is-portrait .ux-typing i { width: 12px; height: 12px; }

@media (prefers-reduced-motion: reduce) {
  .sx-stage * { transition: none !important; }
}
