.p-body {
  margin: 0;
  background: var(--background-primary);
  color: var(--text-primary);
  font: 400 16px / 1.6 var(--font-ui);
}
.p-body[data-surface="popup"] {
  width: 400px;
  max-width: none;
  min-height: 560px;
}
.p-body *,
.p-body *::before,
.p-body *::after {
  box-sizing: border-box;
}
.p-body :where(h1, h2, h3, p) {
  margin: 0;
}
.p-body :where(a) {
  color: inherit;
  text-decoration: none;
}
.p-body :where(button, input, select) {
  font: inherit;
}
.p-body :where(button, a, input, select, summary):focus-visible {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
}
.p-body [hidden] {
  display: none;
}
.p-body h1 {
  font-size: clamp(2.4rem, 5.4vw, 5.2rem);
  line-height: 1.06;
  font-weight: 450;
  letter-spacing: -0.06em;
}
.p-body h2 {
  font-size: clamp(1.8rem, 3.2vw, 3.15rem);
  line-height: 1.15;
  font-weight: 450;
  letter-spacing: -0.04em;
}
.p-body h3 {
  font-size: var(--type-heading-md);
  font-weight: 550;
}
.p-body :where(p) {
  color: var(--text-secondary);
}
.p-body :where(em) {
  font-style: normal;
  color: var(--accent-primary);
}
.p-button {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 550;
  line-height: 1.5;
  transition:
    background var(--motion-fast),
    transform var(--motion-fast),
    border-color var(--motion-fast);
}
.p-primary {
  background: var(--accent-primary);
  color: var(--accent-ink);
}
.p-primary:hover {
  background: var(--border-focus);
  transform: translateY(-1px);
}
.p-secondary {
  background: var(--surface-glass);
  color: var(--text-primary);
  border-color: var(--border-glass);
}
.p-secondary:hover {
  background: var(--surface-glass-hover);
  border-color: var(--accent-primary);
}
.p-button:disabled {
  background: var(--background-secondary);
  color: var(--text-muted);
  border-color: var(--border-glass);
  transform: none;
  cursor: not-allowed;
}
.p-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.p-between {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.p-kicker {
  font-size: 11px;
  letter-spacing: 0.15em;
  font-weight: 550;
  color: var(--text-muted);
}
.p-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 28px;
  font-weight: 650;
  letter-spacing: -0.07em;
}
.p-logo span {
  color: var(--accent-primary);
  font-weight: 400;
}
.p-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--accent-secondary);
}
.p-landing {
  max-width: 1440px;
  margin: auto;
  padding: 0 64px;
  position: relative;
  isolation: isolate;
}
.p-landing::before,
.p-app::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(ellipse 750px 600px at 88% 400px, var(--aurora-indigo), transparent),
    radial-gradient(ellipse 600px 500px at 0 700px, var(--aurora-violet), transparent),
    radial-gradient(ellipse 600px 650px at 95% 2000px, var(--aurora-cyan), transparent);
}
.p-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 100px;
  border-bottom: 1px solid var(--border-glass);
}
.p-nav nav {
  display: flex;
  gap: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
.p-nav :where(a) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.p-nav-try {
  font-size: 14px;
}
.p-hero {
  min-height: 690px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 48px;
  padding: 64px 0;
}
.p-hero h1 {
  margin: 24px 0;
}
.p-hero-description {
  max-width: 430px;
  font-size: 18px;
  line-height: 1.8;
}
.p-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 24px;
}
.p-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: var(--text-secondary);
  font-size: 12px;
}
.p-preview-label {
  margin-top: 20px;
  font-size: 11px;
  color: var(--text-muted);
}
.p-hero-editorial {
  height: 560px;
  min-width: 0;
  position: relative;
}
.p-editorial-label {
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.1em;
}
.p-hero-looks {
  position: absolute;
  inset: 50px 0 45px;
}
.p-look {
  min-width: 0;
  border: 1px solid var(--border-glass);
  border-radius: 20px;
  overflow: hidden;
  background: var(--surface-glass);
}
.p-look-visual {
  position: relative;
  overflow: hidden;
  aspect-ratio: 0.62;
  background: var(--background-secondary);
}
.p-look-visual img {
  display: block;
  height: 100%;
  width: 300%;
  max-width: none;
  object-fit: cover;
  object-position: center top;
}
.p-frame-1 img {
  transform: translateX(-33.333333%);
}
.p-frame-2 img {
  transform: translateX(-66.666667%);
}
.p-look-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 16px;
  flex-wrap: wrap;
  font-size: 12px;
}
.p-look-caption strong {
  font-weight: 500;
}
.p-look-caption span {
  color: var(--text-muted);
  font-size: 10px;
}
.p-hero-looks .p-look {
  position: absolute;
  width: 43%;
  top: 30px;
  box-shadow: var(--shadow-panel);
}
.p-hero-looks .p-look:nth-child(1) {
  left: 0;
  transform: rotate(-9deg);
}
.p-hero-looks .p-look:nth-child(2) {
  left: 29%;
  top: 0;
  z-index: 2;
}
.p-hero-looks .p-look:nth-child(3) {
  right: 0;
  transform: rotate(9deg);
}
.p-hero-looks .p-look-caption {
  display: block;
}
:where(.p-hero-looks) .p-look-caption span {
  display: block;
  margin-top: 4px;
  letter-spacing: 0.08em;
}
.p-floating-glass {
  position: absolute;
  bottom: 20px;
  left: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 16px;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-panel);
}
.p-floating-glass > span {
  color: var(--accent-secondary);
  font-size: 26px;
}
.p-floating-glass strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
}
.p-floating-glass small {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}
.p-editorial-footnote {
  position: absolute;
  bottom: -16px;
  width: 100%;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
}
.p-brand-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  border-block: 1px solid var(--border-glass);
  padding: 28px 0;
}
.p-brand-strip > span {
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}
.p-brand-strip p {
  font-size: 18px;
}
.p-section {
  padding: 88px 0;
  scroll-margin-top: 24px;
}
.p-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  margin-bottom: 40px;
}
.p-section-heading h2 {
  margin-top: 20px;
}
.p-section-heading > p {
  font-size: 14px;
}
.p-three-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.p-three-steps article {
  border-top: 1px solid var(--border-glass);
  padding-top: 24px;
}
.p-three-steps :where(article) > span {
  display: block;
  color: var(--accent-primary);
  margin-bottom: 28px;
  font-size: 12px;
}
.p-three-steps p {
  font-size: 14px;
  margin-top: 12px;
  max-width: 310px;
}
.p-demo-section,
.p-live-promo,
.p-extension-promo,
.p-tutorial {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 96px;
  align-items: center;
}
.p-demo-section {
  border-block: 1px solid var(--border-glass);
}
.p-demo-section h2,
.p-live-promo h2,
.p-extension-promo h2,
.p-tutorial h2 {
  margin: 20px 0 24px;
}
.p-demo-section > :where(div) > p,
.p-live-promo > :where(div) > p,
.p-extension-promo > :where(div) > p {
  max-width: 440px;
}
#demo-controls {
  margin: 24px 0;
}
#demo-controls [aria-pressed="true"] {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
#demo-look {
  max-width: 350px;
  width: 100%;
  justify-self: center;
}
:where(#demo-look) .p-look-visual {
  aspect-ratio: 0.82;
}
.p-text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--accent-primary);
  font-size: 14px;
}
.p-notice {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
}
.p-live-promo-art {
  padding: 28px;
  background: radial-gradient(ellipse, var(--aurora-violet), transparent 70%);
}
.p-promo-camera {
  position: relative;
  max-width: 390px;
  margin: auto;
  border-radius: 28px;
  padding: 12px;
  border: 1px solid var(--border-glass);
  transform: rotate(-3deg);
}
.p-promo-camera .p-look-caption {
  display: none;
}
.p-promo-camera .p-look-visual {
  aspect-ratio: 0.85;
}
.p-promo-live,
.p-promo-timer {
  position: absolute;
  z-index: 2;
  top: 32px;
  font-size: 10px;
  background: var(--surface-glass);
  border: 1px solid var(--border-glass);
  padding: 8px 12px;
  border-radius: 999px;
}
.p-promo-live {
  left: 28px;
  color: var(--accent-secondary);
}
.p-promo-timer {
  right: 28px;
}
.p-art-note {
  display: block;
  margin-top: 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 10px;
}
.p-feature-list {
  padding-left: 20px;
  margin: 24px 0 32px;
  font-size: 14px;
  color: var(--text-secondary);
}
.p-feature-list li {
  margin-bottom: 12px;
}
.p-feature-list li::marker {
  color: var(--accent-primary);
}
.p-extension-promo {
  border-block: 1px solid var(--border-glass);
}
.p-extension-promo .p-button {
  margin-top: 24px;
}
.p-mini-popup {
  max-width: 390px;
  padding: 28px;
  border-radius: 24px;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  box-shadow: var(--shadow-panel);
}
.p-local-pill {
  font-size: 9px;
  color: var(--accent-secondary);
}
.p-mini-popup .p-kicker {
  margin: 32px 0 8px;
}
.p-mini-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  padding: 16px;
  margin-top: 24px;
}
.p-mini-profile > span {
  background: var(--aurora-violet);
  color: var(--accent-primary);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.p-mini-profile strong,
.p-mini-profile small {
  display: block;
  font-size: 13px;
}
.p-mini-profile small {
  color: var(--text-muted);
  font-size: 11px;
}
.p-mini-profile b {
  margin-left: auto;
  color: var(--accent-primary);
}
.p-mini-popup .p-button {
  width: 100%;
}
.p-mini-footnote {
  display: block;
  text-align: center;
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 16px;
}
.p-privacy-section {
  text-align: center;
}
.p-privacy-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border: 1px solid var(--border-glass);
  background: var(--aurora-violet);
  color: var(--accent-primary);
  border-radius: 20px;
  font-size: 32px;
  margin-bottom: 28px;
}
.p-privacy-section h2 {
  margin: 20px 0 24px;
}
.p-privacy-section > p:not(.p-kicker) {
  max-width: 650px;
  margin-inline: auto;
  font-size: 15px;
}
.p-privacy-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  text-align: left;
}
.p-privacy-cards article {
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  border-radius: 20px;
  padding: 28px;
}
.p-privacy-cards p {
  font-size: 13px;
  margin-top: 12px;
}
.p-tutorial {
  border-top: 1px solid var(--border-glass);
  align-items: start;
}
.p-tutorial details {
  border-bottom: 1px solid var(--border-glass);
  padding: 16px 0;
}
.p-tutorial summary {
  padding: 8px 0;
  cursor: pointer;
  font-size: 15px;
}
.p-tutorial :where(details) p {
  font-size: 13px;
  padding: 16px 0;
}
.p-final-cta {
  padding: 72px 24px;
  text-align: center;
  background: radial-gradient(ellipse, var(--aurora-violet), transparent 70%);
  border-top: 1px solid var(--border-glass);
}
.p-final-cta h2 {
  margin: 24px 0 32px;
}
.p-final-cta .p-row {
  justify-content: center;
}
.p-footer {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid var(--border-glass);
  font-size: 12px;
  color: var(--text-muted);
}
.p-footer .p-row {
  margin-left: auto;
}
.p-app {
  position: relative;
  isolation: isolate;
  max-width: 1320px;
  min-height: 100vh;
  margin: auto;
  padding-inline: 48px;
}
.p-topbar {
  display: flex;
  gap: 24px;
  align-items: center;
  min-height: 92px;
  border-bottom: 1px solid var(--border-glass);
}
.p-top-label {
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.12em;
}
.p-help {
  margin-left: auto;
  font-size: 13px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.p-workspace {
  padding: 48px 0;
}
.p-workspace-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 32px;
}
.p-workspace-title h1 {
  font-size: 42px;
  margin: 12px 0;
}
.p-workspace-title p:not(.p-kicker) {
  font-size: 15px;
}
.p-usage {
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  background: var(--surface-glass);
  padding: 10px 16px;
  color: var(--accent-secondary);
  font-size: 12px;
  white-space: nowrap;
}
.p-input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.p-panel {
  padding: 28px;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: var(--surface-glass);
  min-width: 0;
}
.p-panel-title {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.p-panel-title h2 {
  font-size: 20px;
  letter-spacing: -0.02em;
}
.p-panel-title p {
  font-size: 12px;
  margin-top: 6px;
}
.p-step {
  border: 1px solid var(--border-glass);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: var(--accent-primary);
  font-size: 12px;
}
.p-upload {
  position: relative;
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
  background: var(--background-secondary);
  transition: border-color var(--motion-fast);
}
.p-upload:hover,
.p-upload:focus-within,
.p-upload.is-dragging {
  border-color: var(--accent-primary);
}
.p-upload-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 210px;
  padding: 24px;
  cursor: pointer;
}
.p-upload-symbol {
  font-size: 32px;
  color: var(--accent-primary);
  margin-bottom: 12px;
}
.p-upload-label strong {
  font-size: 14px;
  font-weight: 500;
}
.p-upload-label > span:not(.p-upload-symbol) {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 6px;
}
.p-upload-label small {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 14px;
}
.p-file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
}
.p-upload:focus-within {
  outline: 3px solid var(--border-focus);
  outline-offset: 4px;
}
.p-thumbnails {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 16px;
}
.p-thumbnail {
  width: 100px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  overflow: hidden;
  background: var(--background-secondary);
}
.p-thumbnail > img {
  width: 100%;
  height: 90px;
  display: block;
  object-fit: cover;
}
.p-thumb-controls {
  display: flex;
}
.p-thumbnail .p-button {
  min-height: 44px;
  padding: 6px;
  font-size: 11px;
  flex: 1;
  border-radius: 0;
}
.p-thumbnail > .p-button {
  width: 100%;
}
.p-page-detection {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--border-glass);
}
.p-page-detection h3 {
  font-size: 17px;
}
.p-detected-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
}
.p-detected-choice {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--background-secondary);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
}
.p-detected-choice:hover,
.p-detected-choice:focus-visible {
  border-color: var(--accent-primary);
}
.p-detected-image {
  display: block;
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 7px;
}
.p-detected-choice span {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-profile-list {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
  max-height: 340px;
  overflow: auto;
  padding: 4px;
}
.p-profile {
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  background: var(--background-secondary);
}
.p-profile-select {
  display: flex;
  width: 100%;
  text-align: left;
  padding: 12px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 14px;
  gap: 12px;
}
.p-profile-select[aria-pressed="true"] {
  border-color: var(--accent-primary);
}
.p-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.p-profile-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
}
.p-profile-copy strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}
.p-profile-copy small {
  font-size: 11px;
  color: var(--text-muted);
}
.p-profile-tools {
  display: flex;
  justify-content: end;
}
.p-profile-tools .p-button {
  background: transparent;
  border: 0;
  font-size: 11px;
  min-height: 44px;
  padding: 8px 12px;
}
.p-empty-profile {
  min-height: 200px;
  border: 1px dashed var(--border-glass);
  border-radius: 16px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 24px;
  color: var(--text-muted);
  font-size: 14px;
}
.p-generate-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0 32px;
  border-bottom: 1px solid var(--border-glass);
}
.p-generate-bar > span {
  font-size: 13px;
  color: var(--text-secondary);
  overflow-wrap: anywhere;
}
.p-results {
  padding-top: 48px;
}
.p-results-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}
.p-results-heading h2 {
  margin-top: 12px;
  font-size: 30px;
}
.p-results-heading .p-button {
  min-width: 44px;
  padding-inline: 12px;
}
.p-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 24px 4px 16px;
}
.p-carousel .p-look {
  flex: 0 0 calc((100% - 40px) / 3);
  scroll-snap-align: start;
}
.p-carousel .p-look-visual {
  aspect-ratio: 0.75;
}
.p-generated-look .p-look-visual img {
  width: 100%;
  object-fit: contain;
}
.p-hosted-consent {
  max-width: 850px;
  margin: 18px 0;
}
.p-result-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}
.p-results > .p-notice {
  text-align: center;
}
.p-generating {
  padding: 64px 24px;
  text-align: center;
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  background: var(--surface-glass);
}
.p-generating h2 {
  font-size: 28px;
  margin: 24px 0 12px;
}
.p-generation-steps {
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 12px;
}
.p-loader {
  display: inline-block;
  width: 48px;
  height: 48px;
  border: 2px solid var(--border-glass);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: p-spin 1.8s linear infinite;
}
@keyframes p-spin {
  to {
    transform: rotate(360deg);
  }
}
.p-privacy-line {
  display: flex;
  align-items: start;
  gap: 20px;
  padding: 32px 0;
}
.p-privacy-line > span {
  font-size: 24px;
  color: var(--accent-primary);
}
.p-privacy-line strong {
  font-size: 13px;
  font-weight: 500;
}
.p-privacy-line p {
  font-size: 12px;
  max-width: 750px;
  margin-top: 6px;
}
.p-link-button {
  margin-left: auto;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  min-height: 44px;
  font-size: 12px;
  white-space: nowrap;
}
.p-storage-details {
  font-size: 12px;
  padding: 16px 0;
  border-top: 1px solid var(--border-glass);
}
.p-storage-details summary {
  cursor: pointer;
  min-height: 44px;
  display: list-item;
  padding-block: 12px;
}
.p-storage-details p {
  max-width: 720px;
  margin-bottom: 16px;
}
.p-mock-note {
  font-size: 11px;
  text-align: center;
  color: var(--text-muted);
  margin-top: 20px;
}
.p-app-footer {
  border-top: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  font-size: 12px;
  color: var(--text-secondary);
}
.p-app-footer a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.p-inline-alert {
  color: var(--danger);
  font-size: 13px;
}
.p-inline-alert:not(:empty) {
  padding: 12px 0;
}
.p-operator-banner {
  margin: 10px 0 22px;
  padding: 13px 17px;
  border: 1px solid #cf9d80;
  border-radius: 15px;
  background: #fff1df;
  color: #713f2d;
  font-size: 13px;
  line-height: 1.5;
}
.atelier-theme #product.p-dashboard .p-dashboard-notifications {
  position: relative;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border: 1px solid #d9bcaa;
  border-radius: 50%;
  background: #fff9f2;
  color: #8e432b;
  font-size: 20px;
  cursor: pointer;
  list-style: none;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-toggle::-webkit-details-marker {
  display: none;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-toggle.has-notice::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b64b31;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-panel {
  position: absolute;
  z-index: 60;
  top: calc(100% + 12px);
  right: 0;
  width: min(330px, calc(100vw - 34px));
  padding: 16px;
  border: 1px solid #e1c5b2;
  border-radius: 18px;
  background: #fffaf3;
  box-shadow: 0 18px 48px #58321d35;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 10px;
  color: #6c493a;
  font-size: 13px;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-item p {
  flex: 1;
  margin: 0;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-item button {
  min-width: 24px;
  min-height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  color: #6c493a;
}
.atelier-theme #product.p-dashboard .p-dashboard-notification-empty {
  margin-bottom: 0;
  color: #806e64;
  font-size: 13px;
}
.p-dialog {
  background: var(--background-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 24px;
  width: min(520px, calc(100vw - 32px));
  max-height: 90vh;
  padding: 28px;
  box-shadow: var(--shadow-panel);
}
.p-dialog::backdrop {
  background: var(--surface-backdrop);
}
.p-dialog h2 {
  font-size: 24px;
}
.p-dialog .p-between > .p-button {
  min-width: 44px;
  padding: 8px;
}
.p-dialog-body {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}
.p-dialog-body .p-upload-label {
  min-height: 150px;
}
.p-field-label {
  font-size: 13px;
  margin-bottom: -8px;
}
.p-input,
.p-body select {
  width: 100%;
  min-height: 48px;
  padding: 12px;
  color: var(--text-primary);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--background-primary);
}
.p-check {
  display: flex;
  align-items: start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
}
.p-check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  accent-color: var(--accent-primary);
}
.p-dialog .p-notice {
  margin: 0;
}
.p-popup {
  width: min(400px, 100vw);
  min-width: 320px;
  padding-inline: 20px;
  margin: auto;
}
.p-popup .p-topbar {
  min-height: 72px;
}
.p-popup .p-top-label {
  display: none;
}
.p-popup .p-help {
  font-size: 11px;
}
.p-popup .p-workspace {
  padding: 24px 0;
}
.p-popup .p-workspace-title {
  display: block;
}
:where(.p-popup) .p-workspace-title h1 {
  font-size: 28px;
}
.p-popup .p-usage {
  display: inline-block;
  margin-top: 12px;
}
.p-popup .p-input-grid {
  grid-template-columns: 1fr;
  gap: 16px;
}
.p-popup .p-panel {
  padding: 20px;
  border-radius: 20px;
}
.p-popup .p-panel-title h2 {
  font-size: 17px;
}
.p-popup .p-upload-label {
  min-height: 165px;
}
.p-popup .p-generate-bar {
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
}
.p-popup #generate-action .p-button {
  width: 100%;
}
.p-popup .p-results-heading {
  display: block;
}
.p-popup .p-results-heading > .p-row {
  margin-top: 16px;
}
.p-popup .p-results-heading h2 {
  font-size: 25px;
}
.p-popup .p-carousel .p-look {
  flex-basis: 85%;
}
.p-popup .p-result-actions {
  display: grid;
}
.p-popup .p-privacy-line {
  flex-wrap: wrap;
}
.p-popup .p-privacy-line > div {
  flex: 1;
}
.p-popup .p-link-button {
  margin-left: 32px;
}
.p-welcome h1 {
  font-size: 32px;
  margin: 20px 0 16px;
}
.p-welcome > p:not(.p-kicker) {
  font-size: 13px;
}
.p-welcome-art {
  max-width: 230px;
  margin: 24px auto;
}
.p-welcome-art .p-look-visual {
  aspect-ratio: 1;
}
.p-welcome-actions {
  display: grid;
  gap: 12px;
}
.p-live-shell {
  max-width: 1440px;
  margin: auto;
  padding: 0 32px 24px;
}
.p-live-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding-inline: 8px;
  background: #fffaf2e8;
  backdrop-filter: blur(18px);
  min-height: 84px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.p-live-header > span {
  font-size: 16px;
}
.p-live-header b {
  color: var(--accent-primary);
}
.p-back {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
}
.p-live-timer {
  padding: 8px 16px;
  border: 1px solid var(--border-glass);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  color: var(--accent-secondary);
}
.p-timer-warning {
  color: var(--warning);
  border-color: var(--warning);
}
.p-live-stage {
  position: relative;
  height: min(75vh, 900px);
  min-height: 500px;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border-glass);
  background: var(--background-secondary);
  isolation: isolate;
}
@keyframes p-aurora-drift {
  from {
    transform: scale(1.08) translate(-2%, -1%);
  }
  to {
    transform: scale(1.14) translate(2%, 1%);
  }
}
.p-camera-atmosphere {
  animation: p-aurora-drift 24s ease-in-out infinite alternate;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 15% 40%, var(--aurora-violet), transparent 65%),
    radial-gradient(ellipse at 90% 80%, var(--aurora-cyan), transparent 60%);
  z-index: -1;
}
.p-live-stage video {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--background-primary);
}
#local-camera {
  transform: scaleX(-1);
}
.p-live-badge {
  position: absolute;
  top: 24px;
  left: 24px;
  padding: 8px 12px;
  border: 1px solid var(--border-glass);
  background: var(--surface-glass);
  border-radius: 999px;
  font-size: 10px;
  color: var(--text-secondary);
  z-index: 2;
}
.p-live-center {
  position: absolute;
  left: 24px;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  z-index: 3;
}
.p-live-center h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 20px 0;
}
.p-live-center p:not(.p-kicker) {
  max-width: 580px;
  margin: auto;
  font-size: 14px;
}
.p-live-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 24px;
}
.p-live-bottom {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  font-size: 10px;
  color: var(--text-secondary);
}
.p-body-guide {
  position: absolute;
  inset: 5% 0 10%;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.p-body-guide svg {
  height: 100%;
  max-width: 80%;
  stroke: var(--text-primary);
  stroke-width: 3;
  stroke-dasharray: 12 8;
  fill: var(--aurora-violet);
}
.p-live-shell[data-state="POSITIONING"] .p-live-center,
.p-live-shell[data-state="INITIALIZING"] .p-live-center,
.p-live-shell.p-is-active .p-live-center,
.p-live-shell[data-state="PLAYBACK"] .p-live-center {
  top: auto;
  bottom: 55px;
  transform: none;
  padding: 16px;
  border-radius: 20px;
  background: var(--surface-glass);
  max-width: 650px;
  margin: auto;
}
.p-live-shell[data-state="POSITIONING"] .p-live-center h1,
.p-live-shell[data-state="INITIALIZING"] .p-live-center h1,
.p-live-shell.p-is-active .p-live-center h1,
.p-live-shell[data-state="PLAYBACK"] .p-live-center h1 {
  font-size: 24px;
  margin-block: 0 8px;
}
.p-live-shell:not([data-state="IDLE"]) .p-live-center > .p-kicker {
  display: none;
}
.p-live-shell[data-state="PLAYBACK"] #session-playback {
  padding-bottom: 210px;
}
.p-is-initializing #local-camera {
  filter: blur(8px);
}
.p-live-privacy {
  max-width: 880px;
  margin: 24px auto 0;
}
.p-live-privacy > p {
  font-size: 12px;
  margin-top: 12px;
}
.p-live-privacy details {
  margin-top: 16px;
  font-size: 12px;
}
.p-live-privacy summary {
  min-height: 44px;
  cursor: pointer;
}
.p-live-privacy select {
  max-width: 250px;
  margin: 12px;
}
.p-skip {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 12px;
  z-index: 10;
  background: var(--background-secondary);
  transform: translateY(-200%);
}
.p-skip:focus {
  transform: none;
}
@media (max-width: 1100px) {
  .p-landing {
    padding-inline: 32px;
  }
  .p-nav nav {
    gap: 16px;
  }
  .p-nav nav a:nth-child(4) {
    display: none;
  }
  .p-hero {
    gap: 24px;
  }
  .p-hero-editorial {
    height: 470px;
  }
  .p-hero-looks {
    inset-inline: 12px;
  }
  .p-demo-section,
  .p-live-promo,
  .p-extension-promo,
  .p-tutorial {
    gap: 48px;
  }
  .p-brand-strip > span:last-child {
    display: none;
  }
  .p-app {
    padding-inline: 32px;
  }
  .p-top-label {
    display: none;
  }
}
@media (max-width: 760px) {
  .p-landing {
    padding-inline: 24px;
  }
  .p-nav {
    min-height: 80px;
    gap: 12px;
    flex-wrap: wrap;
    padding-block: 12px;
  }
  .p-nav nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
  }
  .p-nav nav a:nth-child(4) {
    display: inline-flex;
  }
  .p-nav .p-button {
    min-height: 44px;
    padding: 10px 14px;
    font-size: 12px;
  }
  .p-nav-try {
    font-size: 12px;
  }
  .p-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-block: 48px;
    gap: 48px;
  }
  .p-hero h1 {
    font-size: clamp(3rem, 10vw, 4.5rem);
  }
  .p-hero-description {
    font-size: 16px;
  }
  .p-hero-editorial {
    max-width: 520px;
    width: 100%;
    margin: auto;
    height: 520px;
  }
  .p-hero-looks {
    inset-inline: 16px;
  }
  .p-brand-strip {
    display: block;
  }
  .p-brand-strip p {
    margin-top: 8px;
  }
  .p-section {
    padding-block: 56px;
  }
  .p-section-heading {
    display: block;
  }
  .p-section-heading > p {
    margin-top: 20px;
  }
  .p-three-steps {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .p-three-steps :where(article) > span {
    margin-bottom: 12px;
  }
  .p-three-steps p {
    max-width: none;
  }
  .p-demo-section,
  .p-live-promo,
  .p-extension-promo,
  .p-tutorial {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .p-live-promo > div:last-child {
    grid-row: 1;
  }
  .p-mini-popup {
    width: 100%;
    margin: auto;
  }
  .p-privacy-cards {
    grid-template-columns: 1fr;
  }
  .p-footer {
    flex-wrap: wrap;
    gap: 16px;
  }
  .p-footer .p-row {
    width: 100%;
    margin-left: 0;
  }
  .p-app {
    padding-inline: 20px;
  }
  .p-workspace-title {
    display: block;
  }
  .p-workspace-title h1 {
    font-size: 32px;
  }
  .p-usage {
    display: inline-block;
    margin-top: 20px;
  }
  .p-input-grid {
    grid-template-columns: 1fr;
  }
  .p-panel {
    padding: 20px;
  }
  .p-generate-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  #generate-action .p-button {
    width: 100%;
  }
  .p-results-heading {
    align-items: start;
  }
  .p-results-heading h2 {
    font-size: 26px;
  }
  .p-results-heading > .p-row {
    flex-wrap: nowrap;
    gap: 8px;
  }
  .p-carousel .p-look {
    flex-basis: 76%;
  }
  .p-privacy-line {
    flex-wrap: wrap;
  }
  .p-privacy-line > div {
    flex: 1;
  }
  .p-link-button {
    margin-left: 32px;
  }
  .p-live-shell {
    padding-inline: 12px;
  }
  .p-live-stage {
    border-radius: 20px;
    min-height: 550px;
  }
  .p-live-center {
    left: 12px;
    right: 12px;
  }
  .p-live-bottom {
    left: 16px;
    right: 16px;
    bottom: 16px;
  }
  .p-live-bottom > span:last-child {
    display: none;
  }
  .p-live-badge {
    top: 16px;
    left: 16px;
    font-size: 9px;
  }
  .p-live-header > span {
    font-size: 14px;
  }
  .p-dialog {
    padding: 20px;
  }
  .p-live-controls {
    margin-top: 16px;
  }
  .p-live-privacy select {
    margin-left: 0;
  }
}
@media (max-width: 400px) {
  .p-landing {
    padding-inline: 16px;
  }
  .p-nav > .p-row {
    gap: 10px;
  }
  .p-nav .p-logo {
    font-size: 25px;
  }
  .p-hero-editorial {
    height: 405px;
  }
  .p-hero-looks .p-look {
    border-radius: 12px;
  }
  .p-hero-looks .p-look-caption {
    padding: 10px;
    font-size: 10px;
  }
  :where(.p-hero-looks) .p-look-caption span {
    font-size: 8px;
  }
  .p-floating-glass {
    left: 0;
    bottom: 8px;
    padding: 12px;
  }
  .p-panel-title h2 {
    font-size: 18px;
  }
  .p-results-heading {
    display: block;
  }
  .p-results-heading > .p-row {
    margin-top: 16px;
  }
  .p-hero-meta {
    gap: 10px;
    font-size: 11px;
  }
  .p-hero-actions {
    gap: 10px;
  }
  .p-hero-actions .p-button {
    font-size: 12px;
    padding: 12px 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-body .p-button,
  .p-body .p-upload {
    transition: none;
  }
  .p-body .p-camera-atmosphere,
  .p-body .p-loader {
    animation: none;
  }
  .p-body .p-primary:hover {
    transform: none;
  }
}

/* Customer palette: warm editorial surfaces, tactile controls, and selective glass. */
.atelier-theme {
  color-scheme: light;
  --background-primary: #f7f0e9;
  --background-secondary: #f1e7dc;
  --surface-glass: #fffaf2b8;
  --surface-glass-hover: #fffaf2eb;
  --surface-input: #f7f0e9;
  --surface-backdrop: #38241eb8;
  --text-primary: #30231f;
  --text-secondary: #65534b;
  --text-muted: #756259;
  --accent-primary: #ad4b30;
  --accent-secondary: #965329;
  --accent-ink: #fffaf4;
  --success: #2f7252;
  --warning: #9a5324;
  --danger: #a12e29;
  --info: #415d72;
  --border-glass: #67473432;
  --border-focus: #ae4d2e;
  --aurora-indigo: #f8c2a169;
  --aurora-violet: #f4b99580;
  --aurora-magenta: #eaa28c5c;
  --aurora-cyan: #eacdc071;
  --shadow-panel: 14px 20px 42px #8c584024, -12px -12px 32px #ffffffbd;
  --font-ui: "Segoe UI Variable", "Segoe UI", Arial, sans-serif;
}
.atelier-theme.p-body {
  background:
    radial-gradient(ellipse 55% 24% at 90% 8%, #f6c1a2ad, transparent 80%),
    radial-gradient(ellipse 48% 28% at 3% 44%, #f9d6bdbd, transparent 78%),
    linear-gradient(145deg, #fffaf3, #f5eae0 48%, #f9f5ee);
  background-attachment: fixed;
}
.atelier-theme .p-landing::before,
.atelier-theme .p-app::before {
  background:
    radial-gradient(ellipse 640px 500px at 93% 450px, #e9936552, transparent),
    radial-gradient(ellipse 520px 440px at 0 1600px, #f2a87c4d, transparent),
    radial-gradient(ellipse 680px 510px at 100% 3100px, #ffd4a46b, transparent);
}
.atelier-theme .p-body :where(p) {
  color: var(--text-secondary);
}
.atelier-theme #product .p-kicker {
  color: #8f503b;
  font-weight: 700;
}
.atelier-theme .p-logo {
  gap: 0;
  font-weight: 800;
  letter-spacing: -0.09em;
}
.atelier-theme .p-logo span {
  color: #ed875c;
  text-shadow: 0 2px 8px #ec875781;
}
.atelier-theme .p-logo i {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-left: 4px;
  border-radius: 7px;
  background: #f1b991;
  color: #893b29;
  box-shadow:
    3px 4px 7px #bb7d603b,
    inset 1px 1px #fff3df;
  font-size: 12px;
  font-style: normal;
  letter-spacing: normal;
  transform: rotate(-12deg);
}
.atelier-theme .p-nav {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 76px;
  margin-top: 20px;
  padding: 10px 12px 10px 24px;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  background: #fffaf2b8;
  backdrop-filter: blur(18px);
  box-shadow:
    10px 12px 30px #a8795f29,
    -7px -7px 24px #ffffffed,
    inset 1px 1px #fff;
}
.atelier-theme .p-topbar {
  position: sticky;
  top: 12px;
  z-index: 40;
  min-height: 76px;
  margin-top: 20px;
  padding: 8px 22px;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  background: #fffaf2b8;
  backdrop-filter: blur(18px);
  box-shadow:
    10px 12px 30px #a8795f29,
    -7px -7px 24px #ffffffed,
    inset 1px 1px #fff;
}

/* One dashboard flow: person, product, generation, then the selected profile's looks. */
.p-dashboard {
  max-width: 1210px;
}
.p-dashboard .p-workspace {
  max-width: 1060px;
  margin: 0 auto;
  padding-top: 38px;
}
.p-dashboard .p-workspace-title {
  margin-bottom: 26px;
}
.p-dashboard .p-input-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.p-dashboard .p-panel {
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid #ffffffd9;
  border-radius: 26px;
  background: #fffaf2c9;
  box-shadow:
    9px 12px 28px #a77d6330,
    inset 1px 1px #fff;
}
.p-dashboard .p-panel-title {
  margin-bottom: 18px;
}
.p-dashboard .p-panel-title h2 {
  font-size: clamp(21px, 2.5vw, 28px);
}
.p-dashboard .p-panel-title p {
  font-size: 13px;
}
.p-dashboard .p-profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(245px, 1fr));
  max-height: none;
  overflow: visible;
  gap: 10px;
  margin-bottom: 10px;
  padding: 0;
}
.p-dashboard .p-profile {
  display: flex;
  align-items: center;
  min-width: 0;
  border: 1px solid #dac5b6;
  border-radius: 18px;
  background: #f6ede4c7;
  transition:
    border-color var(--motion-fast),
    background var(--motion-fast);
}
.p-dashboard .p-profile:has(.p-profile-select[aria-pressed="true"]) {
  border-color: #b35d42;
  background: #fff8ef;
}
.p-dashboard .p-profile-select {
  flex: 1;
  min-width: 0;
  width: auto;
  padding: 9px 10px;
  border: 0;
  box-shadow: none;
}
.p-dashboard .p-profile-select[aria-pressed="true"] {
  border: 0;
}
.p-dashboard .p-profile-select .p-avatar {
  width: 42px;
  height: 42px;
}
.p-dashboard .p-profile-tools {
  gap: 2px;
  padding-right: 7px;
}
.p-dashboard .p-profile-tools .p-button {
  min-height: 34px;
  padding: 6px 8px;
  border-radius: 9px;
  color: #6d4e40;
}
.p-dashboard #profile-actions {
  margin: 8px 0 4px;
}
.p-dashboard #profile-actions .p-button {
  min-height: 39px;
  border-radius: 999px;
  font-size: 12px;
}
.p-dashboard #portability-actions {
  margin: 10px 0 0;
  gap: 8px;
}
.p-dashboard #portability-actions .p-button {
  min-height: 38px;
  border-radius: 999px;
  font-size: 12px;
}
.p-dashboard #person-panel .p-notice {
  margin-top: 10px;
  font-size: 12px;
}
.p-dashboard .p-upload-label {
  min-height: 145px;
  padding: 20px;
}
.p-dashboard #garment-panel.has-selection .p-upload-label {
  min-height: 68px;
  flex-direction: row;
  gap: 10px;
  padding: 12px;
}
.p-dashboard #garment-panel.has-selection .p-upload-label > span:not(.p-upload-symbol),
.p-dashboard #garment-panel.has-selection .p-upload-label small {
  display: none;
}
.p-dashboard #garment-panel.has-selection .p-upload-symbol {
  margin: 0;
  font-size: 19px;
}
.p-dashboard #garment-list .p-thumbnail {
  width: 150px;
  border-radius: 16px;
  background: #fff8ef;
}
.p-dashboard #garment-list .p-thumbnail > img {
  height: 145px;
  object-fit: contain;
  background: #f3ebe2;
}
.p-dashboard #garment-list .p-thumb-name {
  display: block;
  overflow: hidden;
  padding: 8px 9px 2px;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.p-dashboard .p-upload-symbol {
  margin-bottom: 5px;
}
.p-dashboard .p-thumbnails {
  margin-bottom: 0;
}
.p-dashboard .p-generate-bar {
  padding: 20px 4px 30px;
  border-bottom: 0;
}
.p-dashboard .p-results {
  padding: 16px 0 0;
}
.p-dashboard #history-workspace {
  margin-top: 32px;
}
.p-guest-photo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #dcbfae;
  border-radius: 14px;
  background: #fff9f2;
}
.p-guest-photo .p-button {
  margin-left: auto;
  min-height: 38px;
  border-radius: 999px;
  font-size: 12px;
}
.p-guest-dashboard #person-panel .p-upload {
  margin-bottom: 12px;
}
.p-library {
  position: relative;
  overflow: hidden;
  margin: 0 0 28px;
  padding: clamp(22px, 3vw, 42px);
  border: 1px solid #ffffffc9;
  border-radius: 32px;
  background:
    radial-gradient(circle at 93% 2%, #e8b39980, transparent 34%),
    linear-gradient(125deg, #fffaf3ed, #f6e8dff0 66%, #efe0d3ed);
  box-shadow:
    20px 24px 52px #8c5c442a,
    -9px -9px 26px #ffffffda,
    inset 1px 1px #fff;
}
.p-library-heading,
.p-library-toolbar,
.p-library-product {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.p-library-heading h2 {
  max-width: 660px;
  margin: 7px 0 9px;
  font-size: clamp(29px, 3.6vw, 42px);
  line-height: 1.06;
  letter-spacing: -0.055em;
}
.p-library-heading p:last-child {
  max-width: 560px;
  font-size: 14px;
}
.p-library-profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 17px 8px 8px;
  border: 1px solid #ffffffd9;
  border-radius: 999px;
  background: #fffaf2ae;
  box-shadow:
    6px 7px 15px #ac80633b,
    inset 1px 1px #fff;
  font-size: 13px;
  white-space: nowrap;
}
.p-library-profile img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
}
.p-library-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 29px 0 20px;
}
.p-library-switcher .p-button,
.p-library-filters .p-button {
  min-height: 38px;
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 12px;
}
.p-library-switcher [aria-pressed="true"],
.p-library-filters [aria-pressed="true"] {
  border-color: #b95c3e;
  background: #a94e33;
  color: #fff;
  box-shadow: 4px 6px 13px #a34c3961;
}
.p-library-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
  margin: 23px 0 28px;
}
.p-library-metric {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 18px 21px;
  border: 1px solid #ffffffca;
  border-radius: 18px;
  background: #fffaf296;
  box-shadow:
    inset 2px 2px 4px #ffffffdb,
    7px 9px 17px #bc8d7040;
}
.p-library-metric strong {
  font: 500 clamp(27px, 3vw, 40px) / 1 var(--font-display);
  letter-spacing: -0.05em;
}
.p-library-metric span {
  color: var(--text-muted);
  font-size: 12px;
}
.p-library-toolbar {
  margin-bottom: 17px;
}
.p-library-toolbar h3 {
  margin-top: 4px;
  font-size: clamp(21px, 2.5vw, 29px);
}
.p-library-filters {
  display: flex;
  gap: 7px;
  padding: 5px;
  border-radius: 999px;
  background: #ead9cbbb;
  box-shadow:
    inset 4px 4px 9px #b69a855c,
    inset -3px -3px 7px #ffffffbf;
}
.p-library-grid {
  display: grid;
  gap: 20px;
}
.p-library-card {
  padding: 22px;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  background: #fffaf3cf;
  box-shadow:
    10px 13px 29px #aa755833,
    -3px -3px 12px #ffffffb5;
}
.p-library-product {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  align-items: center;
  padding-bottom: 18px;
  border-bottom: 1px solid #c6a99366;
}
.p-library-product-image {
  width: 96px;
  height: 108px;
  border-radius: 15px;
  object-fit: contain;
  background: #f5eee6;
}
.p-library-product-copy {
  min-width: 0;
}
.p-library-product-copy h3 {
  max-width: 510px;
  margin: 5px 0;
  font-size: clamp(17px, 2vw, 24px);
  overflow-wrap: anywhere;
}
.p-library-product-copy p:last-child {
  font-size: 12px;
}
.p-library-product-actions {
  display: grid;
  justify-items: end;
  gap: 5px;
  max-width: 260px;
}
.p-library-product-actions .p-button {
  min-height: 40px;
  border-radius: 999px;
  white-space: nowrap;
}
.p-library-product-actions small {
  color: var(--text-muted);
  font-size: 10px;
  text-align: right;
}
.p-library-product-actions .p-library-remove {
  min-height: 30px;
  padding: 4px 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
  color: var(--text-muted);
  font-size: 11px;
}
.p-library-batches {
  display: grid;
  gap: 14px;
  padding-top: 19px;
}
.p-library-batch-label {
  margin-bottom: 9px;
  color: #8e563f;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-library-media-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}
.p-library-tile {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #ffffffc9;
  border-radius: 15px;
  background: #e9d8c9;
  box-shadow:
    4px 6px 12px #9d735747,
    inset 1px 1px #fff;
  cursor: pointer;
}
.p-library-tile img,
.p-library-tile video {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: cover;
}
.p-library-tile span {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  width: fit-content;
  padding: 4px 9px;
  border: 1px solid #ffffffa8;
  border-radius: 999px;
  background: #30241dbb;
  color: #fff;
  font-size: 11px;
  text-transform: capitalize;
}
.p-library-empty {
  display: grid;
  justify-items: center;
  padding: 28px 25px;
  border: 1px dashed #b99480a6;
  border-radius: 22px;
  text-align: center;
}
.p-library-empty span {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #ead0c0;
  color: #a44c32;
  font-size: 28px;
  box-shadow:
    5px 6px 11px #ae806143,
    inset 1px 1px #fff;
}
.p-library-empty h3 {
  margin-bottom: 7px;
}
.p-library-lightbox {
  max-width: min(920px, 92vw);
  max-height: 92vh;
  padding: 12px;
  border: 1px solid #ffffffc9;
  border-radius: 20px;
  background: #fcf5ed;
  box-shadow: 20px 25px 70px #2b1a1680;
}
.p-library-lightbox::backdrop {
  background: #201712ba;
  backdrop-filter: blur(7px);
}
.p-library-lightbox > .p-button {
  display: block;
  margin: 0 0 9px auto;
}
.p-library-lightbox img,
.p-library-lightbox video {
  display: block;
  max-width: 100%;
  max-height: 76vh;
  margin: auto;
}
@media (max-width: 840px) {
  .p-dashboard .p-profile-list {
    grid-template-columns: 1fr;
  }
  .p-library-heading,
  .p-library-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .p-library-product {
    grid-template-columns: 76px minmax(0, 1fr);
  }
  .p-library-product-image {
    width: 76px;
    height: 90px;
  }
  .p-library-product-actions {
    grid-column: 1 / -1;
    justify-items: start;
    max-width: none;
  }
  .p-library-product-actions small {
    text-align: left;
  }
}
@media (max-width: 560px) {
  .p-dashboard .p-workspace {
    padding-top: 26px;
  }
  .p-dashboard .p-profile {
    flex-wrap: wrap;
  }
  .p-dashboard .p-profile-tools {
    width: 100%;
    justify-content: flex-start;
    padding: 0 8px 7px;
  }
  .p-dashboard .p-generate-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }
  .p-guest-photo {
    flex-wrap: wrap;
  }
  .p-guest-photo .p-button {
    margin-left: 0;
  }
  .p-library {
    padding: 20px;
    border-radius: 22px;
  }
  .p-library-summary {
    gap: 7px;
  }
  .p-library-metric {
    display: grid;
    gap: 4px;
    padding: 13px 10px;
  }
  .p-library-metric span {
    font-size: 10px;
  }
  .p-library-media-row {
    gap: 6px;
  }
  .p-library-tile {
    min-height: 110px;
  }
  .p-library-tile img,
  .p-library-tile video {
    height: 135px;
  }
  .p-library-tile span {
    right: 4px;
    bottom: 4px;
    left: 4px;
    padding: 2px 5px;
    font-size: 9px;
  }
}
.p-nav-badge {
  padding: 7px 11px;
  border-radius: 999px;
  background: #f1d5c4;
  box-shadow:
    inset 3px 3px 8px #be826452,
    inset -3px -3px 7px #ffffffa6;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  white-space: nowrap;
  color: #8d432d;
}
.atelier-theme .p-nav-badge i {
  font-style: normal;
  margin-left: 5px;
}
.atelier-theme .p-nav nav {
  gap: 10px;
  padding: 5px;
  border-radius: 999px;
  background: #efe4da9c;
  box-shadow:
    inset 4px 4px 10px #bf9f8b4d,
    inset -3px -3px 9px #ffffffc2;
}
.atelier-theme .p-nav nav a {
  padding: 0 12px;
  border-radius: 999px;
}
.atelier-theme .p-nav nav a:hover {
  background: #fffaf2d9;
}
.atelier-theme #product .p-button {
  border-radius: 999px;
  font-weight: 700;
  box-shadow:
    5px 6px 12px #a77d6945,
    -4px -4px 12px #fffdf4bf,
    inset 1px 1px #ffffffa8;
}
.atelier-theme .p-primary {
  background: linear-gradient(135deg, #c7613f, #a7422b);
  border-color: #a7422b;
  color: #fffaf4;
  box-shadow:
    6px 8px 17px #a34c3970,
    -4px -4px 12px #fffdf4b8,
    inset 2px 2px 3px #f7b08e70;
}
.atelier-theme .p-primary:hover {
  background: linear-gradient(135deg, #b34f32, #8f3525);
}
.atelier-theme .p-button:active,
.atelier-theme #demo-controls [aria-pressed="true"] {
  transform: translateY(1px);
  box-shadow:
    inset 4px 4px 10px #a9736069,
    inset -4px -4px 12px #fffaf2e3;
}
.atelier-theme .p-primary:active {
  box-shadow:
    inset 4px 4px 10px #66291e99,
    inset -3px -3px 10px #f29b73a1;
}
.atelier-theme #product .p-button:disabled,
.atelier-theme #policy-accept.p-button.p-primary:disabled {
  background: #e9dacf;
  color: #77665c;
  border-color: #d6bba9;
  box-shadow:
    inset 3px 3px 8px #ab8a7566,
    inset -3px -3px 8px #fff9ed;
}
.atelier-theme .p-hero {
  min-height: 660px;
}
.atelier-theme .p-hero-copy {
  position: relative;
}
.atelier-theme .p-hero-copy::after {
  content: "✦";
  position: absolute;
  top: -50px;
  right: 15%;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 17px;
  background: #f2c5a5;
  color: #8e422c;
  font-size: 26px;
  transform: rotate(-16deg);
  box-shadow:
    7px 8px 16px #b282695e,
    inset -4px -5px 9px #d8997799,
    inset 3px 3px 8px #fff8e0;
}
.atelier-theme #product .p-hero h1 {
  font-size: clamp(3.5rem, 6.2vw, 6.2rem);
  line-height: 0.98;
}
.atelier-theme #product :is(.p-hero h1, .p-lookbook-heading) em {
  color: #bd5339;
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.065em;
}
.atelier-theme .p-hero-editorial::before {
  content: "";
  position: absolute;
  inset: 8% 10%;
  border-radius: 50%;
  background: radial-gradient(circle, #efaa79af, #f4d7ba65 54%, transparent 72%);
  filter: blur(12px);
}
.atelier-theme .p-hero-editorial::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 45px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, #fff8e8, #eab892 42%, #c4785b 78%);
  box-shadow:
    12px 18px 25px #ac705b5c,
    inset -8px -12px 18px #a34d3959;
}
.p-lookbook-tile {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid;
  border-radius: 26px;
}
.p-lookbook-image {
  width: 100%;
  aspect-ratio: 1;
  background-image: url("assets/garments/lookbook-demo-v2.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.atelier-theme #product .p-look,
.atelier-theme #product .p-lookbook-tile {
  border-color: #ffffffc2;
  background: #fffbf4e3;
  box-shadow:
    9px 14px 24px #9d6d5840,
    -6px -6px 18px #fffdf5b8,
    inset 1px 1px #fff;
}
.p-lookbook-image-0 {
  background-position: 0 0;
}
.p-lookbook-image-1 {
  background-position: 50% 0;
}
.p-lookbook-image-2 {
  background-position: 100% 0;
}
.p-lookbook-image-3 {
  background-position: 0 100%;
}
.p-lookbook-image-4 {
  background-position: 50% 100%;
}
.p-lookbook-image-5 {
  background-position: 100% 100%;
}
.atelier-theme .p-floating-glass,
.atelier-theme .p-panel,
.atelier-theme .p-mini-popup,
.atelier-theme .p-privacy-cards article,
.atelier-theme .p-generating,
.atelier-theme .p-dialog {
  background: #fffaf2b8;
  border-color: #ffffffdf;
  backdrop-filter: blur(18px);
  box-shadow:
    12px 16px 34px #a4776030,
    -8px -8px 20px #ffffffd4,
    inset 1px 1px #fff;
}
.atelier-theme .p-floating-glass {
  bottom: 40px;
  z-index: 5;
  border-radius: 22px;
}
.atelier-theme .p-three-steps article {
  padding: 28px;
  border: 1px solid #ffffffb8;
  border-radius: 28px;
  background: #fffaf285;
  box-shadow:
    8px 10px 22px #a8776030,
    -5px -5px 14px #ffffffbd;
}
.p-lookbook-section {
  border-block: 1px solid var(--border-glass);
}
.p-lookbook-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 34px;
}
.atelier-theme #product .p-lookbook-heading h2 {
  margin-top: 14px;
}
.p-lookbook-heading > p {
  max-width: 350px;
  font-size: 14px;
}
.p-lookbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.p-lookbook-tile:nth-child(2),
.p-lookbook-tile:nth-child(5) {
  transform: translateY(16px);
}
.p-lookbook-caption {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 20px;
  font-size: 13px;
}
.p-lookbook-try {
  display: block;
  align-self: stretch;
  margin: auto 16px 16px;
  padding: 12px 16px;
  border: 1px solid #fffaf2;
  border-radius: 999px;
  background: #a4472e;
  box-shadow:
    5px 7px 13px #7e493544,
    inset 1px 1px #ffd7bd;
  color: #fffaf2;
  font-size: 12px;
  font-weight: 750;
  text-align: center;
  text-decoration: none;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}
.p-lookbook-try:hover,
.p-lookbook-try:focus-visible {
  transform: translateY(-2px);
  box-shadow:
    7px 10px 18px #7e493555,
    inset 1px 1px #ffd7bd;
}
.atelier-theme .p-lookbook-caption span {
  color: var(--text-muted);
  font-size: 11px;
}
.atelier-theme .p-upload,
.atelier-theme .p-empty-profile,
.atelier-theme .p-input,
.atelier-theme .p-body select {
  background: #f2e7dc;
  border-color: #c6a995b8;
  box-shadow:
    inset 5px 5px 12px #bc9b875c,
    inset -5px -5px 12px #fffdf4;
}
.atelier-theme .p-profile,
.atelier-theme .p-mini-profile,
.atelier-theme .p-step,
.atelier-theme .p-thumbnail,
.atelier-theme .p-usage {
  background: #f5e7dacf;
  border-color: #e3c7b4;
  box-shadow:
    5px 6px 12px #ae826e3b,
    -4px -4px 10px #fffdf4bd;
}
.atelier-theme .p-profile-select[aria-pressed="true"] {
  background: #fff9f0;
  box-shadow:
    inset 3px 3px 8px #ba90794d,
    inset -3px -3px 8px #fff;
}
.atelier-theme .p-mini-profile > span,
.atelier-theme .p-privacy-icon {
  background: #f3bd9d;
  border-color: #fff1db;
  box-shadow:
    8px 9px 15px #ae74574f,
    inset -4px -5px 9px #b6775766,
    inset 3px 3px 8px #fff8e9;
}
.atelier-theme .p-final-cta {
  background: radial-gradient(ellipse, #f2bb9d9c, transparent 72%);
}
.atelier-theme .p-live-stage {
  --text-primary: #fff8ef;
  --text-secondary: #f1d9c9;
  --text-muted: #e4beaa;
  --surface-glass: #32241fd9;
  --background-primary: #241b19;
  color: var(--text-primary);
  border-color: #f6cfaf;
  background: #372724;
  box-shadow:
    14px 18px 36px #945e4a59,
    -8px -8px 20px #fffdf5b8;
}
.atelier-theme #product .p-live-stage .p-kicker,
.atelier-theme #product .p-live-stage :where(p) {
  color: var(--text-secondary);
}
.atelier-theme .p-camera-atmosphere {
  background:
    radial-gradient(ellipse at 16% 38%, #c65f5070, transparent 65%),
    radial-gradient(ellipse at 90% 80%, #efbc8873, transparent 60%);
}
.atelier-theme .p-live-badge {
  border-color: #ffffff52;
}
@media (max-width: 1250px) {
  .atelier-theme .p-nav-badge {
    display: none;
  }
}
@media (max-width: 760px) {
  .atelier-theme .p-nav {
    border-radius: 20px;
    padding: 12px 16px;
  }
  .atelier-theme .p-nav nav {
    overflow-x: auto;
    width: 100%;
  }
  .p-lookbook-heading {
    display: block;
  }
  .p-lookbook-heading > p {
    margin-top: 14px;
  }
  .p-lookbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .p-lookbook-tile:nth-child(2),
  .p-lookbook-tile:nth-child(5) {
    transform: none;
  }
  .p-lookbook-caption {
    display: block;
    padding: 12px;
  }
  .p-lookbook-caption span {
    display: block;
    margin-top: 3px;
  }
  .atelier-theme .p-hero-copy::after {
    display: none;
  }
}
@media (max-width: 400px) {
  .p-lookbook-caption {
    font-size: 11px;
  }
  .p-lookbook-caption span {
    font-size: 10px;
  }
}

/* Product story: a tangible inspiration-to-try-on example. */
.atelier-theme .p-story-console {
  width: min(100%, 540px);
  scroll-margin-top: 108px;
  justify-self: end;
  padding: 16px;
  border: 1px solid #ffffffd9;
  border-radius: 28px;
  background: #fffaf2c9;
  backdrop-filter: blur(18px);
  box-shadow:
    16px 22px 38px #9b62493c,
    -8px -8px 22px #fffdf1d6,
    inset 1px 1px #fff;
}
.p-story-console-top,
.p-story-rail-label,
.p-story-source {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.p-story-console-top,
.p-story-rail-label {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.atelier-theme .p-story-console-top i {
  margin-right: 10px;
  color: #d07f60;
  font-size: 8px;
  font-style: normal;
  letter-spacing: 1px;
}
.p-story-status {
  padding: 7px 10px;
  border-radius: 999px;
  background: #f0cfb8;
  color: #8e422c;
  box-shadow:
    inset 3px 3px 7px #c28a6b6b,
    inset -2px -2px 7px #fff6e4;
}
.p-story-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 400px;
  margin: 14px 0;
  overflow: hidden;
  border-radius: 20px;
  background: radial-gradient(circle at 48% 45%, #f7c4a4, #e4ab85 60%, #d18b6c), #e4ab85;
  box-shadow:
    inset 6px 6px 14px #9d61494f,
    inset -5px -5px 12px #ffe9d5;
}
.p-story-scene::before {
  content: "";
  position: absolute;
  width: 390px;
  height: 390px;
  border: 18px solid #fff3d774;
  border-radius: 50%;
  filter: blur(2px);
  transform: translate(40%, 10%);
}
.p-story-person,
.p-wardrobe-thumb {
  display: block;
  aspect-ratio: 2 / 3;
  background-image: url("assets/garments/switch-demo.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
}
.p-story-person {
  width: min(64%, 255px);
  border: 5px solid #fff9f2;
  border-radius: 150px 150px 22px 22px;
  box-shadow:
    12px 16px 30px #89564361,
    -5px -5px 12px #fff5e5;
  z-index: 1;
}
.p-story-video {
  position: relative;
  width: min(64%, 255px);
  aspect-ratio: 2 / 3;
  overflow: hidden;
  border: 5px solid #fff9f2;
  border-radius: 150px 150px 22px 22px;
  box-shadow:
    12px 16px 30px #89564361,
    -5px -5px 12px #fff5e5;
  background-image: url("assets/garments/switch-demo.png");
  background-size: 300% 200%;
  background-repeat: no-repeat;
  z-index: 1;
}
.p-story-video video {
  position: absolute;
  inset: 0;
  width: 500%;
  height: 100%;
  max-width: none;
  opacity: 0;
  transition: opacity 250ms ease;
}
.p-story-video.is-playing video {
  opacity: 1;
}
.p-story-video.p-switch-1 video {
  left: 0;
}
.p-story-video.p-switch-2 video {
  left: -100%;
}
.p-story-video.p-switch-3 video {
  left: -200%;
}
.p-story-video.p-switch-4 video {
  left: -300%;
}
.p-story-video.p-switch-5 video {
  left: -400%;
}
.p-switch-0 {
  background-position: 0 0;
}
.p-switch-1 {
  background-position: 50% 0;
}
.p-switch-2 {
  background-position: 100% 0;
}
.p-switch-3 {
  background-position: 0 100%;
}
.p-switch-4 {
  background-position: 50% 100%;
}
.p-switch-5 {
  background-position: 100% 100%;
}
.p-story-overlay {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: grid;
  gap: 2px;
  padding: 12px 16px;
  border: 1px solid #ffffffab;
  border-radius: 14px;
  background: #fffaf1de;
  backdrop-filter: blur(12px);
  box-shadow: 5px 7px 16px #7f4c3842;
}
.atelier-theme .p-story-overlay span,
.atelier-theme .p-story-overlay small {
  color: #805543;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.p-story-overlay strong {
  font-size: 19px;
  line-height: 1.15;
}
.p-story-source {
  flex-wrap: wrap;
  padding: 2px 4px 14px;
  font-size: 11px;
}
.p-source-options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.p-source-choice {
  min-height: 38px;
  padding: 7px 12px;
  border: 1px solid #d7baa5;
  border-radius: 999px;
  background: #fff8ee;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 10px;
}
.p-source-choice[aria-pressed="true"] {
  background: #9b422b;
  color: #fff9f0;
  border-color: #9b422b;
}
.p-story-rail-label {
  padding: 10px 4px;
}
.p-story-wardrobe {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.p-wardrobe-choice {
  display: grid;
  gap: 5px;
  align-content: start;
  min-width: 0;
  min-height: 44px;
  padding: 5px;
  overflow: hidden;
  border: 1px solid #e9d4c4;
  border-radius: 12px;
  background: #fff9f0;
  color: #58433b;
  cursor: pointer;
  text-align: left;
  box-shadow: 3px 4px 8px #9d6c5540;
  transition:
    transform var(--motion-fast),
    border-color var(--motion-fast);
}
.p-wardrobe-choice:hover {
  transform: translateY(-3px);
}
.p-wardrobe-choice[aria-pressed="true"] {
  border: 2px solid #a84b33;
  box-shadow: inset 2px 2px 5px #c599805c;
}
.p-wardrobe-thumb {
  width: 100%;
  border-radius: 7px;
}
.p-wardrobe-choice strong {
  padding: 0 2px 3px;
  font-size: 9px;
  line-height: 1.25;
}
.atelier-theme .p-story-honesty {
  margin: 12px 4px 0;
  color: var(--text-muted);
  font-size: 10px;
}
.p-possibilities .p-section-heading {
  align-items: end;
}
.p-possibilities .p-preview-label {
  margin-top: 36px;
}
.p-ways {
  border-block: 1px solid var(--border-glass);
}
.p-ways-intro {
  max-width: 650px;
  margin-bottom: 32px;
}
.atelier-theme #product .p-ways-intro h2 {
  margin: 14px 0 18px;
}
.atelier-theme #product .p-ways-intro h2 em {
  color: #bd5339;
  font-family: Georgia, serif;
  font-weight: 400;
}
.p-ways-intro > p:last-child {
  max-width: 540px;
  font-size: 15px;
}
.p-mode-tabs {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: #ead7c8;
  box-shadow:
    inset 4px 4px 10px #b7897054,
    inset -3px -3px 9px #fffaef;
}
.p-mode-tabs button {
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
}
.p-mode-tabs button[aria-selected="true"] {
  background: #fffaf2;
  color: #893f2c;
  box-shadow:
    4px 5px 11px #af806845,
    inset 1px 1px #fff;
}
.p-mode-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 48px;
  align-items: center;
  margin-top: 24px;
  padding: 42px;
  border: 1px solid #ffffffdb;
  border-radius: 32px;
  background: #fff9f0aa;
  box-shadow:
    12px 16px 34px #a4776030,
    -8px -8px 20px #ffffffd4;
}
.p-mode-copy {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 16px;
}
.p-mode-copy h3 {
  max-width: 420px;
  font-size: clamp(1.8rem, 3vw, 2.75rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.p-mode-copy p {
  max-width: 430px;
  font-size: 14px;
}
.atelier-theme .p-mode-copy small {
  max-width: 380px;
  color: var(--text-muted);
  font-size: 11px;
}
.p-mode-number {
  color: #9a523c;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-mode-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
  padding: 28px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 55% 45%, #f5c6a4, transparent 58%),
    linear-gradient(135deg, #f8e6d7, #e4ad8c);
  box-shadow:
    inset 6px 6px 14px #ad745653,
    inset -4px -4px 10px #fff4dd;
}
.p-mode-art #demo-look {
  width: min(100%, 275px);
  transform: rotate(-3deg);
  box-shadow: 10px 16px 26px #96584166;
}
.p-mode-glass-note {
  position: absolute;
  right: 16px;
  bottom: 18px;
  padding: 9px 12px;
  border: 1px solid #ffffffc2;
  border-radius: 999px;
  background: #fffaf2c9;
  backdrop-filter: blur(12px);
  color: #7b4734;
  font-size: 10px;
  font-weight: 700;
}
.p-motion-screen {
  position: relative;
  width: min(100%, 310px);
  padding: 12px;
  border: 2px solid #fff9f0;
  border-radius: 28px;
  background: #3a2926;
  box-shadow: 12px 18px 28px #955b4875;
  transform: rotate(3deg);
}
.p-motion-screen .p-male-motion {
  position: relative;
  aspect-ratio: 0.67;
  overflow: hidden;
  border-radius: 17px;
  background-image: url("assets/garments/male-live-concept.png");
  background-size: 300% 100%;
  background-position: 0 0;
}
.p-motion-screen .p-male-motion video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 250ms ease;
}
.p-male-motion.is-playing video {
  opacity: 1;
}
.p-motion-head,
.p-motion-footer {
  display: flex;
  justify-content: space-between;
  padding: 7px 8px;
  color: #fff7ed;
  font-size: 10px;
  font-weight: 700;
}
.p-motion-footer {
  justify-content: center;
  font-weight: 400;
}
.p-how-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.atelier-theme .p-how-grid article {
  display: flex;
  flex-direction: column;
  align-items: start;
  min-height: 330px;
  padding: 24px;
  border: 1px solid #fffefa;
  border-radius: 26px;
  background: #fff9f0b8;
  box-shadow:
    8px 12px 22px #9b6c5730,
    -5px -5px 15px #ffffffbd;
}
.atelier-theme .p-how-grid article > span {
  color: #8e513c;
  font-size: 11px;
  font-weight: 800;
}
.p-how-icon {
  display: grid;
  place-items: center;
  width: 55px;
  height: 55px;
  margin: 20px 0;
  border-radius: 18px;
  background: #f2c09f;
  color: #8c3e2b;
  font-size: 25px;
  box-shadow:
    6px 7px 12px #b4795b59,
    inset -4px -4px 8px #c1836280,
    inset 3px 3px 8px #fff5e6;
}
.p-how-grid h3 {
  font-size: 17px;
}
.p-how-grid p {
  margin: 12px 0 20px;
  font-size: 12px;
}
.p-how-grid .p-text-link {
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
@keyframes p-story-enter {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.atelier-theme .p-hero-copy {
  animation: p-story-enter 520ms var(--ease-out) both;
}
.atelier-theme .p-story-console {
  animation: p-story-enter 680ms 100ms var(--ease-out) both;
}
.p-mode-panel:not([hidden]) {
  animation: p-story-enter 420ms var(--ease-out) both;
}
@media (max-width: 1100px) {
  .p-how-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-how-grid article {
    min-height: 280px;
  }
}
@media (max-width: 760px) {
  .atelier-theme .p-story-console {
    width: 100%;
    justify-self: center;
  }
  .p-story-scene {
    min-height: 350px;
  }
  .p-story-person,
  .p-story-video {
    width: min(65%, 230px);
  }
  .p-mode-panel {
    grid-template-columns: 1fr;
    padding: 20px;
    gap: 24px;
  }
  .p-mode-art {
    min-height: 410px;
  }
  .p-how-grid {
    grid-template-columns: 1fr;
  }
  .p-how-grid article {
    min-height: 0;
  }
}
@media (max-width: 400px) {
  .p-story-console-top {
    font-size: 8px;
  }
  .p-story-scene {
    min-height: 325px;
  }
  .p-story-person,
  .p-story-video {
    width: min(70%, 205px);
  }
  .p-story-wardrobe {
    gap: 4px;
  }
  .p-wardrobe-choice {
    padding: 3px;
  }
  .p-wardrobe-choice strong {
    font-size: 8px;
  }
  .p-mode-tabs button {
    padding: 9px 13px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-wardrobe-choice {
    transition: none;
  }
  .p-story-video video,
  .p-male-motion video {
    transition: none;
  }
  .atelier-theme .p-hero-copy,
  .atelier-theme .p-story-console,
  .p-mode-panel:not([hidden]) {
    animation: none;
  }
}

.p-legal-main {
  max-width: 1000px;
  margin: 0 auto;
  padding: 72px 0 96px;
}
.p-preview-closed {
  min-height: 100vh;
  display: grid;
  align-content: center;
  gap: 20px;
}
.p-legal-hero {
  max-width: 760px;
  padding: 24px 0 58px;
}
.p-legal-hero > p:not(.p-kicker) {
  max-width: 660px;
  margin-top: 24px;
  font-size: clamp(17px, 2vw, 21px);
}
.p-legal-meta,
.p-legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-secondary);
}
.p-legal-callout,
.p-legal-section,
.p-legal-end {
  padding: clamp(24px, 4vw, 52px);
  border: 1px solid #ffffffdb;
  border-radius: 28px;
  background: #fffaf2c9;
  box-shadow:
    12px 16px 34px #a4776021,
    inset 1px 1px #fff;
  backdrop-filter: blur(18px);
}
.p-legal-callout {
  border-left: 5px solid #c56746;
}
.p-legal-callout p {
  margin-top: 8px;
}
.p-legal-index {
  justify-content: space-between;
  padding: 28px 8px;
  margin: 0 0 12px;
}
.p-legal-jump,
.p-policy-full {
  color: #9a4b35;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.p-legal-section {
  margin-top: 20px;
  scroll-margin-top: 115px;
}
.p-legal-title {
  margin: 8px 0 30px;
}
.p-legal-admin-text {
  white-space: pre-wrap;
}
.p-legal-section h3 {
  margin: 28px 0 8px;
}
.p-legal-section :where(p, li) {
  max-width: 78ch;
  line-height: 1.75;
}
.p-legal-section ul,
.p-policy-dialog ul {
  padding-left: 24px;
}
.p-legal-section li + li,
.p-policy-dialog li + li {
  margin-top: 10px;
}
.p-legal-end {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  margin-top: 20px;
}
.p-policy-dialog {
  width: min(600px, calc(100vw - 24px));
  overflow-y: auto;
}
#policy-title {
  margin: 8px 0 18px;
}
.p-policy-dialog ul {
  margin: 16px 0;
}
.p-policy-full {
  display: inline-block;
  margin: 8px 0 16px;
}
.p-policy-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 600;
}
.p-policy-check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 3px;
  accent-color: #9a4b35;
}
.p-policy-actions {
  justify-content: flex-end;
}
.p-policy-error {
  color: #a32b27;
}
@media (max-width: 760px) {
  .p-legal-main {
    padding-top: 36px;
  }
  .p-legal-end {
    align-items: flex-start;
    flex-direction: column;
  }
  .p-policy-actions {
    flex-wrap: wrap;
  }
}

/* Installed toolbar companion (ADR-041). */
.p-body[data-surface="popup"] {
  width: 400px;
  max-width: none;
  min-height: 0;
}
.p-body[data-surface="popup"] .p-policy-dialog {
  width: min(360px, calc(100vw - 20px));
  max-height: calc(100vh - 20px);
  padding: 16px 18px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.4;
}
.p-body[data-surface="popup"] #policy-title {
  margin: 4px 0 10px;
  font-size: 22px;
}
.p-body[data-surface="popup"] .p-policy-full {
  margin: 8px 0;
}
.p-body[data-surface="popup"] .p-policy-check {
  margin-bottom: 10px;
  font-size: 12px;
}
.p-body[data-surface="popup"] .p-policy-actions {
  gap: 8px;
}
.p-body[data-surface="popup"] .p-policy-actions :is(#policy-accept, .p-secondary) {
  min-height: 44px;
  padding: 8px 12px;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup {
  --pc-bg: #f8f5ef;
  --pc-card: #fffdf9;
  --pc-text: #292d27;
  --pc-muted: #626960;
  --pc-border: #dedbd2;
  width: 400px;
  max-width: none;
  min-height: 540px;
  max-height: 600px;
  overflow-y: auto;
  background: var(--pc-bg);
  color: var(--pc-text);
  font: 14px / 1.45 var(--font-ui);
}
.atelier-theme #product.p-compact-popup[data-appearance="dark"] {
  color-scheme: dark;
  --pc-bg: #202621;
  --pc-card: #303a31;
  --pc-text: #f6f5ec;
  --pc-muted: #ced7cb;
  --pc-border: #556458;
}
.atelier-theme #product.p-compact-popup .pc-header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 62px;
  padding: 0 18px;
  background: var(--pc-card);
  border-bottom: 1px solid var(--pc-border);
}
.atelier-theme #product.p-compact-popup .pc-logo {
  font:
    600 25px / 1 Georgia,
    serif;
  letter-spacing: -0.06em;
  margin-right: auto;
}
.atelier-theme #product.p-compact-popup .pc-icon {
  min-width: 38px;
  min-height: 38px;
  border: 1px solid var(--pc-border);
  border-radius: 11px;
  background: transparent;
  color: var(--pc-text);
  cursor: pointer;
}
.atelier-theme #product.p-compact-popup .pc-content {
  display: grid;
  gap: 14px;
  padding: 21px 18px 24px;
}
.atelier-theme #product.p-compact-popup :where(h1, h2, p) {
  margin: 0;
}
.atelier-theme #product.p-compact-popup h1 {
  font:
    500 31px / 1.08 Georgia,
    serif;
  letter-spacing: -0.035em;
}
.atelier-theme #product.p-compact-popup h2 {
  font-size: 16px;
  margin-top: 5px;
}
.atelier-theme #product.p-compact-popup .pc-eyebrow {
  color: #8c6947;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.atelier-theme #product.p-compact-popup .pc-intro,
.atelier-theme #product.p-compact-popup .pc-status,
.atelier-theme #product.p-compact-popup .pc-footnote {
  color: var(--pc-muted);
}
.atelier-theme #product.p-compact-popup .pc-footnote {
  font-size: 11px;
  line-height: 1.5;
}
.atelier-theme #product.p-compact-popup .pc-policy-link {
  color: var(--pc-muted);
  font-size: 12px;
  text-decoration: underline;
}
.atelier-theme #product.p-compact-popup .pc-profile {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 51px;
  width: 100%;
  padding: 6px 11px;
  border: 1px solid var(--pc-border);
  border-radius: 14px;
  background: var(--pc-card);
  color: var(--pc-text);
  text-align: left;
  cursor: pointer;
}
.atelier-theme #product.p-compact-popup .pc-profile span:last-child {
  margin-left: auto;
}
.atelier-theme #product.p-compact-popup .pc-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 50%;
}
.atelier-theme #product.p-compact-popup .pc-card {
  display: grid;
  gap: 11px;
  padding: 15px;
  border: 1px solid var(--pc-border);
  border-radius: 17px;
  background: var(--pc-card);
}
.atelier-theme #product.p-compact-popup .pc-candidates {
  display: flex;
  gap: 9px;
  overflow-x: auto;
  padding: 2px 0 5px;
}
.atelier-theme #product.p-compact-popup .pc-candidate {
  display: grid;
  gap: 5px;
  min-width: 92px;
  width: 92px;
  padding: 5px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: transparent;
  color: var(--pc-text);
  cursor: pointer;
  text-align: left;
}
.atelier-theme #product.p-compact-popup .pc-candidate img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 7px;
}
.atelier-theme #product.p-compact-popup .pc-candidate span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.atelier-theme #product.p-compact-popup .pc-candidate-slot {
  position: relative;
  flex: 0 0 92px;
}
.atelier-theme #product.p-compact-popup .pc-candidate-slot .pc-candidate {
  height: 100%;
}
.atelier-theme #product.p-compact-popup .pc-candidate-slot .pc-candidate-selected {
  border: 2px solid #63896b;
  padding: 4px;
  background: rgba(117, 156, 119, 0.08);
}
.atelier-theme #product.p-compact-popup .pc-candidate-selected img {
  filter: saturate(0.84) brightness(0.94);
}
.atelier-theme #product.p-compact-popup .pc-candidate-remove {
  position: absolute;
  top: 9px;
  right: 9px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  min-height: 23px;
  padding: 0;
  border: 1px solid white;
  border-radius: 50%;
  background: rgba(27, 49, 34, 0.88);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.atelier-theme #product.p-compact-popup .pc-candidate-remove:focus-visible {
  outline: 2px solid #173e27;
  outline-offset: 2px;
}
.atelier-theme #product.p-compact-popup .pc-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.atelier-theme #product.p-compact-popup .p-button {
  border-radius: 11px;
  box-shadow: none;
}
.atelier-theme #product.p-compact-popup .pc-actions .p-button {
  width: 100%;
  padding: 10px;
  min-height: 48px;
  font-size: 13px;
}
.atelier-theme #product.p-compact-popup .p-primary {
  background: #b65d3d;
  border-color: #b65d3d;
  color: #fffaf4;
}
.atelier-theme #product.p-compact-popup .p-secondary {
  background: var(--pc-card);
  border-color: var(--pc-border);
  color: var(--pc-text);
}
.atelier-theme #product.p-compact-popup .p-button:disabled {
  opacity: 0.48;
  cursor: not-allowed;
}
.atelier-theme #product.p-compact-popup .pc-upload {
  border-style: dashed;
}
.atelier-theme #product.p-compact-popup .pc-drag {
  border-color: #c07643;
  background: #fff2df;
}
.atelier-theme #product.p-compact-popup .pc-form {
  display: grid;
  gap: 14px;
}
.atelier-theme #product.p-compact-popup .pc-form label:not(.pc-check) {
  display: grid;
  gap: 6px;
  font-weight: 650;
}
.atelier-theme #product.p-compact-popup .pc-form input:not([type="checkbox"]) {
  width: 100%;
  min-height: 44px;
  padding: 9px;
  border: 1px solid var(--pc-border);
  border-radius: 9px;
  background: var(--pc-card);
  color: var(--pc-text);
}
.atelier-theme #product.p-compact-popup .pc-check {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: var(--pc-muted);
}
.atelier-theme #product.p-compact-popup .pc-check input {
  margin-top: 2px;
  min-width: 17px;
  min-height: 17px;
}
.atelier-theme #product.p-compact-popup .pc-setting-row {
  display: flex;
  gap: 8px;
}
.atelier-theme #product.p-compact-popup .pc-setting-row .p-button:first-child {
  flex: 1;
  justify-content: start;
}
.atelier-theme #product.p-compact-popup[data-view="settings"] .pc-content {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 488px;
}
.atelier-theme #product.p-compact-popup .pc-account-status {
  align-self: flex-end;
  max-width: 260px;
  color: var(--pc-muted);
  font-size: 11px;
  text-align: right;
}
.atelier-theme #product.p-compact-popup .pc-account-status:empty {
  display: none;
}
.atelier-theme #product.p-compact-popup .pc-account-actions {
  display: flex;
  align-self: flex-end;
  justify-content: flex-end;
  gap: 7px;
  margin-top: auto;
  padding-top: 9px;
}
.atelier-theme #product.p-compact-popup .pc-account-action {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid var(--pc-border);
  border-radius: 10px;
  background: var(--pc-card);
  color: var(--pc-text);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.atelier-theme #product.p-compact-popup .pc-account-action:hover,
.atelier-theme #product.p-compact-popup .pc-account-action:focus-visible {
  border-color: #b65d3d;
}
.atelier-theme #product.p-compact-popup .pc-gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.atelier-theme #product.p-compact-popup .pc-look {
  min-width: 83%;
  scroll-snap-align: start;
}
.atelier-theme #product.p-compact-popup .pc-look img {
  display: block;
  width: 100%;
  height: 275px;
  object-fit: cover;
  border-radius: 13px;
}
.atelier-theme #product.p-compact-popup .pc-look .p-look-visual {
  height: 275px;
  overflow: hidden;
}
.atelier-theme #product.p-compact-popup .pc-look strong {
  display: block;
  padding: 7px 2px;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup .pc-live-stage {
  height: 285px;
  background: #1e2823;
  border-radius: 16px;
  overflow: hidden;
}
.atelier-theme #product.p-compact-popup .pc-live-stage video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scaleX(-1);
}
.atelier-theme #product.p-compact-popup .pc-alert {
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff0e9;
  color: #7b3116;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup .pc-dismissible {
  position: relative;
  padding-right: 34px;
}
.atelier-theme #product.p-compact-popup .pc-dismissible button {
  position: absolute;
  top: 5px;
  right: 5px;
  display: grid;
  place-items: center;
  width: 23px;
  min-width: 23px;
  height: 23px;
  min-height: 23px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 15px;
  line-height: 1;
}
.atelier-theme #product.p-compact-popup .pc-dismissible button:hover,
.atelier-theme #product.p-compact-popup .pc-dismissible button:focus-visible {
  background: #7b31161c;
}
.atelier-theme #product.p-compact-popup[data-appearance="dark"] .p-secondary {
  background: #3b473d;
  color: #f6f5ec;
  border-color: #556458;
}
/* ADR-042: the toolbar stays compact; a native extension window can be moved and resized. */
.p-body[data-surface="popup"][data-ready="true"] {
  min-height: 0;
}
@media (max-width: 400px) {
  .p-body[data-surface="popup"]:not([data-installed="true"]) {
    width: 100%;
  }
}
.atelier-theme #product.p-compact-popup {
  min-height: 0;
  max-height: none;
  overflow: visible;
}
.atelier-theme #product.p-compact-popup .pc-header {
  height: 52px;
  padding-inline: 14px;
}
.atelier-theme #product.p-compact-popup .pc-logo {
  font-size: 26px;
  gap: 1px;
}
.atelier-theme #product.p-compact-popup .pc-logo span {
  color: #b65d3d;
  font-weight: 400;
}
.atelier-theme #product.p-compact-popup .pc-logo i {
  font:
    normal 13px / 1 Georgia,
    serif;
  color: #c8914c;
  margin-left: 3px;
  align-self: flex-start;
}
.atelier-theme #product.p-compact-popup .pc-content {
  gap: 9px;
  padding: 14px 15px 17px;
}
.atelier-theme #product.p-compact-popup h1 {
  font-size: 27px;
}
.atelier-theme #product.p-compact-popup .pc-profile {
  min-height: 45px;
}
.atelier-theme #product.p-compact-popup .pc-card {
  gap: 8px;
  padding: 12px;
}
.atelier-theme #product.p-compact-popup:where([data-view="home"]) .pc-card {
  min-height: 260px;
  align-content: start;
}
.atelier-theme #product.p-compact-popup .pc-actions .p-button {
  min-height: 43px;
  padding: 8px;
}
.atelier-theme #product.p-compact-popup .pc-profile-picker {
  display: grid;
  gap: 4px;
  padding: 6px;
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: var(--pc-card);
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-content {
  gap: 7px;
  padding-block: 10px 12px;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-intro {
  font-size: 11px;
  line-height: 1.3;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-form {
  gap: 8px;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-form input:not([type="checkbox"]) {
  min-height: 34px;
  padding: 6px 8px;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-form label:not(.pc-check) {
  gap: 3px;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-check {
  font-size: 10px;
  line-height: 1.3;
}
.atelier-theme #product.p-compact-popup[data-view="profile"] .pc-form > button {
  min-height: 38px;
  padding: 6px;
}
.atelier-theme #product.p-compact-popup .pc-profile-picker .p-button {
  min-height: 35px;
  justify-content: flex-start;
}
.atelier-theme #product.p-compact-popup .pc-item-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.atelier-theme #product.p-compact-popup .pc-item-tools > .p-button,
.atelier-theme #product.p-compact-popup .pc-rescan {
  width: auto;
  min-height: 31px;
  padding: 5px 10px;
  font-size: 11px;
}
.atelier-theme #product.p-compact-popup .pc-variants {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.atelier-theme #product.p-compact-popup .pc-variants .p-button {
  display: grid;
  gap: 3px;
  justify-items: center;
  width: 65px;
  min-height: 78px;
  padding: 4px;
  font-size: 11px;
}
.atelier-theme #product.p-compact-popup .pc-variant-image {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
}
.atelier-theme #product.p-compact-popup .pc-variant-label {
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.atelier-theme #product.p-compact-popup .pc-variants [aria-pressed="true"] {
  border-color: #b65d3d;
  color: #a1492e;
}
.atelier-theme #product.p-compact-popup .pc-featured-look {
  height: 115px;
  overflow: hidden;
  border-radius: 11px;
  background: #eeeae2;
}
.atelier-theme #product.p-compact-popup .pc-featured-look img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.atelier-theme #product.p-compact-popup .pc-look-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.atelier-theme #product.p-compact-popup .pc-look-controls .p-button {
  min-height: 30px;
  padding: 4px 10px;
}
.atelier-theme #product.p-compact-popup .pc-setting-row .p-button {
  min-height: 36px;
  padding: 6px 8px;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup .pc-delete {
  color: #9f392e;
}
.atelier-theme #product.p-compact-popup .pc-live-stage {
  position: relative;
  height: 270px;
}
.atelier-theme #product.p-compact-popup .pc-camera-guide {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.8;
}
.atelier-theme #product.p-compact-popup .pc-guide-head {
  position: absolute;
  top: 14%;
  left: 43%;
  width: 14%;
  aspect-ratio: 1;
  border: 2px solid #e8f4dc;
  border-radius: 50%;
  box-shadow: 0 0 0 999px #071b1240;
}
.atelier-theme #product.p-compact-popup .pc-guide-body {
  position: absolute;
  top: 34%;
  left: 22%;
  width: 56%;
  height: 65%;
  border: 2px solid #e8f4dc;
  border-bottom: 0;
  border-radius: 48% 48% 0 0;
}
.atelier-theme #product.p-compact-popup .pc-camera-instruction {
  position: absolute;
  bottom: 12px;
  left: 10px;
  right: 10px;
  color: white;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 1px 4px #000;
}
.p-body[data-surface="popup"][data-detached="true"] {
  width: auto;
  min-width: 400px;
  min-height: 100vh;
}
.p-body[data-detached="true"] #product.p-compact-popup .pc-featured-look {
  height: min(48vh, 420px);
}
.p-body[data-detached="true"] #product.p-compact-popup .pc-live-stage {
  height: min(63vh, 540px);
}

/* Shared landing tokens; raised controls, frosted panels and rounded clay accents. */
.atelier-theme #product.p-compact-popup {
  --pc-bg: var(--background-primary);
  --pc-card: var(--surface-glass);
  --pc-text: var(--text-primary);
  --pc-muted: var(--text-secondary);
  --pc-border: var(--border-glass);
  background: radial-gradient(ellipse at 95% 0%, #f3bb9b88, transparent 65%), var(--pc-bg);
}
.atelier-theme #product.p-compact-popup .pc-header {
  margin: 10px 10px 0;
  border: 1px solid #ffffffd9;
  border-radius: 24px;
  background: #fffaf2b8;
  backdrop-filter: blur(18px);
  box-shadow:
    10px 12px 30px #a8795f29,
    -7px -7px 24px #ffffffed,
    inset 1px 1px #fff;
}
.atelier-theme #product.p-compact-popup .pc-logo {
  font: 800 28px / 1 var(--font-ui);
  letter-spacing: -0.09em;
}
.atelier-theme #product.p-compact-popup .pc-logo span {
  color: #ed875c;
  font-weight: 800;
}
.atelier-theme #product.p-compact-popup .pc-logo i {
  align-self: center;
  font: normal 12px / 1 var(--font-ui);
  color: #893b29;
}
.atelier-theme #product.p-compact-popup h1 {
  font-family: var(--font-ui);
  font-weight: 550;
}
.atelier-theme #product.p-compact-popup .pc-card {
  backdrop-filter: blur(16px);
  border-color: #ffffffa8;
  border-radius: 24px;
  box-shadow:
    8px 10px 25px #8c584019,
    -6px -6px 20px #ffffffa0,
    inset 0 1px #fff;
}
.atelier-theme #product.p-compact-popup :is(.pc-profile, .pc-icon, .p-secondary) {
  background: var(--pc-bg);
  box-shadow:
    4px 4px 10px #8c584022,
    -4px -4px 10px #ffffffa6;
  transition:
    box-shadow 160ms ease,
    transform 160ms ease;
}
.atelier-theme #product.p-compact-popup :is(.pc-profile, .pc-icon, .p-secondary):active {
  box-shadow:
    inset 3px 3px 7px #8c584025,
    inset -3px -3px 7px #ffffffa6;
  transform: translateY(1px);
}
.atelier-theme #product.p-compact-popup .p-primary {
  background: linear-gradient(145deg, #cf7953, var(--accent-primary));
  border-radius: 17px;
  box-shadow:
    4px 5px 12px #a14e3030,
    inset 1px 2px 3px #ffd3aa8a,
    inset -2px -3px 5px #78311e35;
}
.atelier-theme #product.p-compact-popup .pc-profile-control {
  position: relative;
  z-index: 5;
}
.atelier-theme #product.p-compact-popup .pc-profile-picker {
  position: absolute;
  top: calc(100% + 8px);
  inset-inline: 0;
  max-height: 310px;
  overflow-y: auto;
  backdrop-filter: blur(22px);
  background: var(--surface-glass-hover);
  box-shadow: var(--shadow-panel);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transform-origin: top center;
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    visibility 180ms ease;
}
.atelier-theme #product.p-compact-popup .pc-profile-control[data-open="true"] .pc-profile-picker {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}
.atelier-theme #product.p-compact-popup .pc-upload {
  min-height: 108px;
  white-space: pre-line;
  text-align: center;
  border-radius: 18px;
}
.atelier-theme #product.p-compact-popup .pc-candidates {
  flex-wrap: wrap;
  overflow: visible;
}
.atelier-theme #product.p-compact-popup .pc-candidates > .pc-variants {
  flex: 1;
  align-content: center;
  justify-content: flex-start;
}
@media (prefers-reduced-motion: reduce) {
  .atelier-theme #product.p-compact-popup * {
    transition: none;
    animation: none;
  }
}
.p-body[data-detached="true"] #product.p-compact-popup {
  width: 100%;
  min-height: 100vh;
}
.atelier-theme #product.p-compact-popup .pc-generation-progress {
  display: grid;
  justify-items: center;
  gap: 13px;
  min-height: 315px;
  padding: 22px 10px;
  text-align: center;
}
.atelier-theme #product.p-compact-popup .pc-generation-progress strong {
  max-width: 240px;
  font:
    600 22px / 1.15 Georgia,
    serif;
}
.atelier-theme #product.p-compact-popup .pc-generation-progress small {
  max-width: 290px;
  color: var(--pc-muted);
}
.atelier-theme #product.p-compact-popup .pc-generation-time {
  margin: 0;
  color: var(--pc-muted);
  font-variant-numeric: tabular-nums;
}
.atelier-theme #product.p-compact-popup .pc-generation-orbit {
  position: relative;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff9, #edb59a 55%, #bc623e);
  box-shadow:
    0 12px 28px #a45b4b49,
    inset 0 2px 8px #fff9;
  animation: pc-orbit-breathe 2.8s ease-in-out infinite;
}
.atelier-theme #product.p-compact-popup .pc-generation-orbit span {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fffaf0;
  box-shadow: 0 0 11px #fff;
  animation: pc-sparkle 1.8s ease-in-out infinite alternate;
}
.atelier-theme #product.p-compact-popup .pc-generation-orbit span:nth-child(1) {
  top: 19px;
  left: 20px;
}
.atelier-theme #product.p-compact-popup .pc-generation-orbit span:nth-child(2) {
  top: 35px;
  right: 16px;
  animation-delay: 0.5s;
}
.atelier-theme #product.p-compact-popup .pc-generation-orbit span:nth-child(3) {
  bottom: 16px;
  left: 32px;
  animation-delay: 1s;
}
.atelier-theme #product.p-compact-popup .pc-generation-cards {
  display: flex;
  gap: 9px;
}
.atelier-theme #product.p-compact-popup .pc-generation-cards span {
  width: 48px;
  height: 62px;
  border-radius: 11px;
  background: linear-gradient(115deg, #e6c2ae, #fff2df, #d99c80);
  background-size: 220% 100%;
  box-shadow: 0 5px 13px #87594224;
  animation: pc-card-shimmer 2s linear infinite;
}
.atelier-theme #product.p-compact-popup .pc-generation-cards span:nth-child(2) {
  animation-delay: 0.25s;
}
.atelier-theme #product.p-compact-popup .pc-generation-cards span:nth-child(3) {
  animation-delay: 0.5s;
}
@keyframes pc-orbit-breathe {
  50% {
    transform: scale(1.08) rotate(10deg);
  }
}
@keyframes pc-sparkle {
  to {
    opacity: 0.28;
    transform: scale(0.55);
  }
}
@keyframes pc-card-shimmer {
  to {
    background-position-x: -220%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-theme #product.p-compact-popup .pc-generation-orbit,
  .atelier-theme #product.p-compact-popup .pc-generation-orbit span,
  .atelier-theme #product.p-compact-popup .pc-generation-cards span {
    animation: none;
  }
}
.p-body[data-embedded="true"] {
  min-width: 0;
  width: 100%;
}
.p-body[data-embedded="true"] #product.p-compact-popup .pc-header {
  cursor: move;
  touch-action: none;
}
.p-body[data-embedded="true"] {
  height: 100vh;
  overflow: hidden;
}
.p-body[data-embedded="true"] #product.p-compact-popup {
  width: 100%;
  height: 100vh;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  scrollbar-width: none;
}
.p-body[data-embedded="true"] #product.p-compact-popup::-webkit-scrollbar {
  display: none;
}
.p-visitor-dashboard {
  max-width: 540px;
  margin: min(12vh, 120px) auto;
  padding: 32px;
  display: grid;
  gap: 18px;
}
.atelier-theme #product .p-visitor-dashboard h1,
.atelier-theme #product .p-visitor-dashboard p {
  margin: 0;
}
.pc-account {
  margin: 16px;
  padding: 20px;
}
.pc-account form,
.pc-account label {
  display: grid;
  gap: 12px;
}
.atelier-theme.p-body #product .pc-account input,
.atelier-theme.p-body #product .pc-account select,
.atelier-theme.p-body #product .pc-category select {
  max-width: 100%;
  padding: 10px;
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  background: var(--surface-glass);
  color: var(--text-primary);
}
.pc-category {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
}
.p-body[data-surface="popup"][data-installed="true"]:not([data-ready="true"])
  #product.p-compact-popup {
  min-height: 540px;
}
/* Shared perspective photo viewer: full outfits, bounded layout, no autoplay. */
.p-perspective {
  width: 100%;
  min-width: 0;
}
.p-perspective-stage {
  position: relative;
  height: clamp(320px, 42vw, 490px);
  overflow: hidden;
  perspective: 1100px;
  touch-action: pan-y;
  border-radius: 24px;
}
.p-perspective .p-perspective-card {
  position: absolute;
  inset: 16px auto 24px 50%;
  width: min(58%, 340px);
  height: calc(100% - 40px);
  margin: 0;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  background: #eee3d7;
  border: 1px solid #fff9;
  box-shadow: 0 18px 32px #65433429;
  transform: translateX(-50%);
  transition:
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 420ms,
    filter 420ms;
}
.p-perspective .p-perspective-card[data-position="left"] {
  transform: translateX(-115%) rotateY(28deg) scale(0.82);
  opacity: 0.65;
  filter: saturate(0.6);
  z-index: 1;
}
.p-perspective .p-perspective-card[data-position="right"] {
  transform: translateX(15%) rotateY(-28deg) scale(0.82);
  opacity: 0.65;
  filter: saturate(0.6);
  z-index: 1;
}
.p-perspective .p-perspective-card[data-position="active"] {
  z-index: 2;
}
.p-perspective .p-perspective-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.p-perspective .p-look-visual {
  height: calc(100% - 64px);
  min-height: 0;
}
.p-perspective .p-look-caption {
  height: 64px;
  padding: 10px 16px;
}
.p-perspective-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}
.p-perspective-controls .p-button {
  min-width: 44px;
  min-height: 44px;
  padding: 8px;
}
.p-perspective-status {
  font-size: 13px;
  text-align: center;
  min-width: 130px;
}
.p-perspective-dots {
  display: flex;
  justify-content: center;
  gap: 4px;
}
.p-perspective-dots .p-button {
  min-width: 28px;
  min-height: 28px;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.p-perspective-dots .p-button::after {
  content: "";
  display: block;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bcb0a4;
}
.p-perspective-dots .p-button[aria-pressed="true"]::after {
  background: #ae4e30;
  width: 18px;
  border-radius: 8px;
}
.p-perspective-stage:focus-visible {
  outline: 2px solid #ae4e30;
  outline-offset: -3px;
}
.atelier-theme #product.p-compact-popup .p-perspective-stage {
  height: 210px;
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look {
  height: calc(100% - 24px);
  inset-block: 8px 16px;
  width: 58%;
  min-height: 0;
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look img {
  height: 100%;
  object-fit: contain;
}
.p-dashboard .p-profile-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 210px));
  gap: 18px;
}
.p-dashboard .p-profile {
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 24px;
  background: #fff8f0;
  overflow: hidden;
}
.p-dashboard .p-profile .p-profile-select {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 235px;
  padding: 0;
  border-radius: 19px;
  overflow: hidden;
  background: #e8d9cb;
}
.p-dashboard .p-profile .p-avatar {
  width: 100%;
  height: 235px;
  border-radius: 0;
  object-fit: cover;
  object-position: center top;
  transition:
    transform 400ms,
    filter 400ms;
  filter: saturate(0.6);
}
.p-dashboard .p-profile .p-profile-copy {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 30px 14px 14px;
  background: linear-gradient(transparent, #211811e6);
  color: white;
  text-align: left;
  transform: translateY(4px);
  transition: transform 300ms;
}
.p-dashboard .p-profile .p-profile-copy small {
  color: #fff9ed;
}
.p-dashboard .p-profile-select > span:last-child:not(.p-profile-copy) {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff6ed;
  color: #86432c;
  display: grid;
  place-items: center;
}
.p-dashboard .p-profile:is(:hover, :focus-within) .p-avatar,
.p-dashboard .p-profile-select[aria-pressed="true"] .p-avatar {
  transform: scale(1.035);
  filter: saturate(1);
}
.p-dashboard .p-profile:is(:hover, :focus-within) .p-profile-copy {
  transform: translateY(0);
}
.p-dashboard .p-profile .p-profile-tools {
  display: flex;
  justify-content: space-between;
  width: 100%;
  padding: 6px 4px 0;
}
.p-dashboard .p-profile .p-profile-tools .p-button {
  min-height: 36px;
  padding: 8px 16px;
  box-shadow: none;
}
@media (max-width: 520px) {
  .p-dashboard .p-profile-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-dashboard .p-profile .p-avatar {
    height: 195px;
  }
  .p-dashboard .p-profile .p-profile-select {
    min-height: 195px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-perspective .p-perspective-card,
  .p-dashboard .p-profile .p-avatar,
  .p-dashboard .p-profile .p-profile-copy {
    transition: none;
  }
}
/* Override the theme's pill-button treatment for portrait cards and pagination. */
.atelier-theme #product.p-dashboard .p-profile-select {
  border-radius: 19px;
  padding: 0;
  box-shadow: none;
}
.atelier-theme #product .p-perspective-dots .p-button {
  padding: 0;
  min-width: 28px;
  min-height: 28px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.atelier-theme #product .p-perspective-controls .p-button {
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}
@media (max-height: 680px) {
  .atelier-theme #product.p-compact-popup .p-perspective-stage {
    height: 150px;
  }
}
/* Keep the image itself dominant and let the visible neighbors select the next look. */
.p-perspective-stage {
  max-width: 660px;
  margin-inline: auto;
}
.p-perspective .p-perspective-card {
  width: min(72%, 400px);
}
.p-perspective .p-perspective-card[data-position="left"],
.p-perspective .p-perspective-card[data-position="right"] {
  cursor: pointer;
}
.p-perspective .p-perspective-card[data-position="left"] {
  transform: translateX(-119%) rotateY(19deg) scale(0.86);
}
.p-perspective .p-perspective-card[data-position="right"] {
  transform: translateX(19%) rotateY(-19deg) scale(0.86);
}
.p-perspective-compact .p-perspective-stage {
  max-width: none;
}
.atelier-theme #product.p-compact-popup .p-perspective-stage {
  height: 280px;
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look {
  width: 82%;
  height: calc(100% - 16px);
  inset-block: 8px;
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look img {
  transform: scale(1.06);
}
.p-perspective-compact .p-perspective-controls {
  min-height: 22px;
}
.atelier-theme #product.p-compact-popup .pc-saved-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  font-size: 12px;
}
.atelier-theme #product.p-compact-popup .pc-saved-heading span {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.atelier-theme #product.p-compact-popup .pc-saved-heading a {
  white-space: nowrap;
  color: #a64f33;
}
.atelier-theme #product.p-compact-popup .pc-media-modes {
  display: flex;
  gap: 8px;
}
.atelier-theme #product.p-compact-popup .pc-media-modes .p-button {
  min-height: 30px;
  padding: 5px 12px;
}
.atelier-theme #product.p-compact-popup .pc-media-modes [aria-pressed="true"] {
  border-color: #ab563a;
  color: #963d26;
}
.atelier-theme #product.p-compact-popup .pc-saved-video {
  width: 100%;
  height: 280px;
  background: #201d19;
  border-radius: 16px;
}
.atelier-theme #product.p-compact-popup .pc-saved-player {
  position: relative;
}
.atelier-theme #product.p-compact-popup .pc-video-toggle {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  border: 1px solid #fff9;
  border-radius: 50%;
  background: #211b1bc7;
  color: white;
  cursor: pointer;
  backdrop-filter: blur(12px);
  transform: translate(-50%, -50%);
}
.atelier-theme #product.p-compact-popup .pc-start-ai:not([hidden]) {
  width: 100%;
  min-height: 48px;
}
@media (max-height: 680px) {
  .atelier-theme #product.p-compact-popup .p-perspective-stage,
  .atelier-theme #product.p-compact-popup .pc-saved-video {
    height: 180px;
  }
}
.p-body[data-detached="true"] #product.p-compact-popup .p-perspective .pc-featured-look {
  height: calc(100% - 16px);
}
@media (max-height: 680px) {
  .atelier-theme #product.p-compact-popup .pc-content {
    gap: 5px;
    padding: 10px 12px;
  }
  .atelier-theme #product.p-compact-popup .pc-card {
    gap: 5px;
    padding: 9px;
  }
}
.p-body[data-detached="true"] {
  display: flow-root;
}
.p-body[data-detached="true"] #product.p-compact-popup {
  display: flow-root;
}
/* Keep the generated person portrait-oriented in the taller in-page companion. */
.atelier-theme #product.p-compact-popup .p-perspective-stage,
.atelier-theme #product.p-compact-popup .pc-saved-video {
  height: clamp(320px, 48vh, 410px);
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look {
  width: 69%;
}
.atelier-theme #product.p-compact-popup .p-perspective .pc-featured-look img {
  object-fit: cover;
  object-position: center;
  transform: none;
}
.atelier-theme #product.p-compact-popup .pc-live-connecting:not([hidden]) {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border: 1px solid #fff8;
  border-radius: inherit;
  background: radial-gradient(circle at 50% 43%, #dc9a7590, #32251fd9 70%);
  color: #fff;
  text-align: center;
  backdrop-filter: blur(16px);
}
.atelier-theme #product.p-compact-popup .pc-live-spark {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 1px solid #fff9;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff9, #eead88aa);
  box-shadow:
    0 0 42px #eaa47fa8,
    inset 0 0 22px #fff8;
  font-size: 38px;
  animation: pc-live-bloom 2.4s ease-in-out infinite;
}
.atelier-theme #product.p-compact-popup .pc-live-connecting small {
  color: #fffde7;
}
@keyframes pc-live-bloom {
  50% {
    transform: scale(1.12) rotate(12deg);
    filter: brightness(1.35);
  }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-theme #product.p-compact-popup .pc-live-spark {
    animation: none;
  }
}

/* Extension fitting room: generous canvas, compact product-first collection. */
.atelier-theme #product.p-dashboard {
  width: 100%;
  max-width: none;
  padding-inline: clamp(20px, 3vw, 72px);
}
.atelier-theme #product.p-dashboard .p-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
}
.atelier-theme #product.p-extension-dashboard {
  background:
    radial-gradient(circle at 91% 7%, #eac4b1a8, transparent 30%),
    radial-gradient(circle at 7% 42%, #f3ddc6a6, transparent 34%), #fcf8f2;
}
.atelier-theme #product.p-extension-dashboard .p-topbar {
  position: sticky;
  top: 12px;
  margin-top: 16px;
  min-height: 72px;
}
.atelier-theme #product.p-extension-dashboard .p-workspace {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 28px 0 50px;
}
.atelier-theme #product.p-extension-dashboard .p-workspace-title {
  margin-bottom: 20px;
}
.atelier-theme #product.p-extension-dashboard .p-workspace-title h1 {
  margin-block: 5px;
  font-size: clamp(36px, 4vw, 64px);
  letter-spacing: -0.055em;
}
.p-dashboard-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.atelier-theme #product .p-account-entry,
.atelier-theme #product .p-dashboard-settings {
  min-height: 38px;
  padding: 7px 13px;
  border: 1px solid #d6bbaa;
  border-radius: 999px;
  background: #fffaf2c9;
  color: #482f27;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.atelier-theme #product .p-dashboard-settings {
  width: 39px;
  padding: 0;
  font-size: 18px;
}
.atelier-theme #product :is(.p-account-entry, .p-dashboard-settings):hover,
.atelier-theme #product :is(.p-account-entry, .p-dashboard-settings):focus-visible {
  border-color: #a94e33;
  background: #fff3e9;
}
.atelier-theme #product.p-extension-dashboard .p-input-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  align-items: start;
  gap: 18px;
}
.atelier-theme #product.p-extension-dashboard .p-panel {
  min-width: 0;
  padding: clamp(20px, 2vw, 30px);
  border-radius: 28px;
  background: #fffaf3df;
}
.atelier-theme #product.p-extension-dashboard .p-panel-title h2 {
  font-size: clamp(23px, 2vw, 30px);
}
.atelier-theme #product.p-extension-dashboard .p-profile-list {
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}
.atelier-theme #product.p-extension-dashboard .p-profile {
  min-width: 0;
  padding: 4px;
  border-radius: 19px;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-profile-select {
  min-height: 145px;
  border-radius: 15px;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-avatar {
  height: 145px;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-profile-copy {
  padding: 24px 9px 8px;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-profile-copy small {
  font-size: 10px;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-profile-tools {
  padding: 2px 0 0;
}
.atelier-theme #product.p-extension-dashboard .p-profile .p-profile-tools .p-button {
  min-height: 28px;
  padding: 4px 9px;
  font-size: 11px;
}
.atelier-theme #product.p-extension-dashboard #garment-panel .p-upload-label {
  min-height: 115px;
  padding: 17px;
  border-radius: 18px;
  background: linear-gradient(135deg, #f2e5d9, #fff9f1);
}
.atelier-theme #product.p-extension-dashboard #garment-panel.has-selection .p-upload-label {
  min-height: 46px;
  justify-content: center;
}
.atelier-theme #product.p-extension-dashboard #garment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.atelier-theme #product.p-extension-dashboard #garment-list .p-thumbnail {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  width: min(100%, 430px);
  min-height: 87px;
  padding: 7px;
  border: 1px solid #dfcbbd;
  border-radius: 15px;
  background: #fffdf9;
  box-shadow: 4px 6px 14px #9c705226;
}
.atelier-theme #product.p-extension-dashboard #garment-list .p-thumbnail > img {
  width: 70px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}
.atelier-theme #product.p-extension-dashboard #garment-list .p-thumb-name {
  min-width: 0;
  padding: 0 12px;
  color: #43332d;
  font-size: 12px;
}
.atelier-theme #product.p-extension-dashboard #garment-list .p-thumb-controls {
  position: static;
  display: flex;
  gap: 3px;
}
.atelier-theme #product.p-extension-dashboard #garment-list .p-thumb-controls .p-button {
  min-width: 28px;
  min-height: 28px;
  padding: 3px;
}
.atelier-theme #product.p-extension-dashboard .p-generate-bar {
  margin-top: 12px;
  padding: 14px 0 20px;
}
.atelier-theme #product.p-extension-dashboard #history-workspace {
  margin-top: 16px;
}
.atelier-theme #product.p-dashboard .p-library {
  padding: clamp(20px, 2.5vw, 36px);
  background: #fffbf6d9;
}
.atelier-theme #product.p-dashboard .p-library-heading h2 {
  font-size: clamp(30px, 3vw, 44px);
}
.atelier-theme #product.p-dashboard .p-library-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 17px 0 21px;
}
.atelier-theme #product.p-dashboard .p-library-metric {
  gap: 7px;
  padding: 8px 13px;
  border-radius: 999px;
  box-shadow: none;
}
.atelier-theme #product.p-dashboard .p-library-metric strong {
  font-size: 20px;
}
.atelier-theme #product.p-dashboard .p-library-toolbar {
  margin-bottom: 13px;
}
.atelier-theme #product.p-dashboard .p-library-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.atelier-theme #product.p-dashboard .p-library-card {
  min-width: 0;
  padding: 15px;
  border-radius: 22px;
  background: #fffdf9;
  box-shadow: 7px 10px 21px #9c705222;
}
.atelier-theme #product.p-dashboard .p-library-product {
  grid-template-columns: 62px minmax(0, 1fr) auto;
  gap: 10px;
  padding-bottom: 12px;
}
.atelier-theme #product.p-dashboard .p-library-product-image {
  width: 62px;
  height: 68px;
  border-radius: 10px;
  object-fit: cover;
}
.atelier-theme #product.p-dashboard .p-library-product-copy h3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  margin: 2px 0;
  font-size: 15px;
  line-height: 1.25;
}
.atelier-theme #product.p-dashboard .p-library-product-copy p:last-child {
  font-size: 11px;
}
.atelier-theme #product.p-dashboard .p-library-product-actions {
  gap: 3px;
}
.atelier-theme #product.p-dashboard .p-library-product-actions .p-button {
  min-height: 31px;
  padding: 5px 10px;
  font-size: 11px;
}
.atelier-theme #product.p-dashboard .p-library-gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  gap: 8px;
  padding-top: 11px;
}
.atelier-theme #product.p-dashboard .p-library-stage {
  position: relative;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 100%;
  height: 228px;
  padding: 0;
  overflow: hidden;
  border: 1px solid #eadbd0;
  border-radius: 16px;
  background: #f4ece5;
}
.atelier-theme #product.p-dashboard .p-library-stage-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}
.atelier-theme #product.p-dashboard .p-library-stage :is(img, video) {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
}
.atelier-theme #product.p-dashboard .p-library-stage video {
  background: #211c1a;
}
.atelier-theme #product.p-dashboard .p-library-stage-label {
  position: absolute;
  bottom: 9px;
  left: 10px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #30241dc7;
  color: white;
  font-size: 10px;
  text-transform: capitalize;
}
.atelier-theme #product.p-dashboard .p-library-gallery-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  grid-column: 1;
  gap: 9px;
  height: 28px;
  color: #6a5145;
  font-size: 11px;
}
.atelier-theme #product.p-dashboard .p-library-gallery-controls[hidden] {
  display: none;
}
.atelier-theme #product.p-dashboard .p-library-gallery-controls .p-button {
  min-width: 28px;
  min-height: 28px;
  padding: 2px;
  border-radius: 50%;
}
.atelier-theme #product.p-dashboard .p-library-photo-rail {
  grid-column: 2;
  grid-row: 1 / 3;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 264px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.atelier-theme #product.p-dashboard .p-library-tile {
  flex: 0 0 59px;
  width: 59px;
  min-height: 59px;
  border-radius: 9px;
}
.atelier-theme #product.p-dashboard .p-library-tile :is(img, video) {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.atelier-theme #product.p-dashboard .p-library-tile {
  position: relative;
  overflow: hidden;
}
.atelier-theme #product.p-dashboard .p-library-video-glyph {
  position: absolute;
  inset: auto 4px 4px auto;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #261d1dcc;
  color: white;
  font-size: 10px;
}
.atelier-theme #product.p-dashboard :is(.p-library-video-play, .p-library-video-fullscreen) {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  border: 1px solid #ffffffbd;
  border-radius: 50%;
  background: #251c1cbd;
  color: white;
  cursor: pointer;
}
.atelier-theme #product.p-dashboard .p-library-video-play {
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%, -50%);
}
.atelier-theme #product.p-dashboard .p-library-video-fullscreen {
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
}
@media (max-width: 1399px) {
  .atelier-theme #product.p-dashboard .p-library-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 819px) {
  .atelier-theme #product.p-dashboard .p-library-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.atelier-theme #product.p-dashboard .p-library-clips {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}
.atelier-theme #product.p-dashboard .p-library-clip-frame {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: #191717;
}
.atelier-theme #product.p-dashboard .p-library-clip-frame video {
  display: block;
  width: 100%;
  height: 238px;
  object-fit: contain;
}
.atelier-theme #product.p-dashboard .p-library-clip-frame:fullscreen video {
  height: 100%;
}
.atelier-theme #product.p-dashboard .p-library-clip-controls {
  position: absolute;
  right: 9px;
  bottom: 9px;
  left: 9px;
  display: flex;
  justify-content: space-between;
}
.atelier-theme #product.p-dashboard .p-library-clip-controls .p-button {
  min-height: 32px;
  padding: 5px 12px;
  border: 1px solid #ffffffa8;
  border-radius: 999px;
  background: #231b1bbb;
  color: #fff;
  box-shadow: none;
  font-size: 12px;
}
.atelier-theme #product .p-library-lightbox {
  width: min(840px, 94vw);
  max-width: 94vw;
  max-height: 92vh;
  padding: 14px;
}
.atelier-theme #product .p-library-lightbox-top,
.atelier-theme #product .p-library-lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.atelier-theme #product .p-library-lightbox-controls[hidden] {
  display: none;
}
.atelier-theme #product .p-library-lightbox-media {
  display: grid;
  place-items: center;
  min-height: 0;
  margin-block: 9px;
}
.atelier-theme #product .p-library-lightbox-media :is(img, video) {
  max-width: 100%;
  max-height: 73vh;
  object-fit: contain;
}
.atelier-theme #product .p-library-lightbox-controls .p-button {
  min-width: 40px;
  min-height: 40px;
  border-radius: 50%;
}
.atelier-theme .p-dashboard-usage {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid #e0c5b1;
  border-radius: 14px;
  background: #fff9f2;
}
.atelier-theme .p-dialog.p-dashboard-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(430px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0;
  padding: 26px;
  overflow-y: auto;
  border-radius: 26px 0 0 26px;
  box-shadow: -24px 0 72px #3a1a1740;
  animation: tryon-drawer-enter 220ms ease-out;
}
@keyframes tryon-drawer-enter {
  from {
    transform: translateX(28px);
    opacity: 0.6;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-theme .p-dialog.p-dashboard-drawer {
    animation: none;
  }
}
.atelier-theme .p-dashboard-usage p {
  margin: 0;
}
.p-profile-ai-consent[hidden] {
  display: none;
}
.atelier-theme .p-settings-data .p-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
@media (max-width: 900px) {
  .atelier-theme #product.p-extension-dashboard .p-input-grid {
    grid-template-columns: 1fr;
  }
  .atelier-theme #product.p-extension-dashboard .p-top-label {
    display: none;
  }
}
@media (min-width: 901px) {
  .atelier-theme #product.p-guest-dashboard .p-input-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
}
@media (max-width: 600px) {
  .atelier-theme #product.p-dashboard {
    padding-inline: 12px;
  }
  .atelier-theme #product.p-extension-dashboard .p-topbar {
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px;
  }
  .atelier-theme #product.p-extension-dashboard .p-help {
    display: none;
  }
  .atelier-theme #product.p-extension-dashboard .p-dashboard-header-actions {
    margin-left: auto;
  }
  .atelier-theme #product.p-dashboard .p-library-product {
    grid-template-columns: 54px minmax(0, 1fr);
  }
  .atelier-theme #product.p-dashboard .p-library-product-actions {
    grid-column: 1 / -1;
    justify-items: start;
  }
}

/* Product-led welcome page. The other customer surfaces keep their existing layout. */
.atelier-theme #product.p-landing {
  max-width: 1512px;
  padding-inline: clamp(20px, 4.5vw, 76px);
}
.atelier-theme #product.p-landing::before {
  background:
    radial-gradient(ellipse 48% 18% at 78% 6%, #e5a8857d, transparent 75%),
    radial-gradient(ellipse 38% 15% at 8% 37%, #f2c8aa73, transparent 75%),
    radial-gradient(ellipse 45% 17% at 84% 74%, #f5d8c56b, transparent 76%);
}
.atelier-theme .p-landing .p-nav {
  top: 10px;
  margin-top: 16px;
  border-color: #ffffffeb;
  background: #fffbf4d9;
  box-shadow:
    0 16px 40px #8c5d4924,
    inset 1px 1px #fff;
}
.atelier-theme .p-landing .p-nav nav {
  background: #f1e6dc9e;
}
.atelier-theme .p-landing .p-hero {
  min-height: 735px;
  gap: clamp(30px, 5vw, 90px);
  padding-block: clamp(62px, 7vw, 112px) 86px;
}
.atelier-theme .p-landing .p-hero-copy::after {
  top: -48px;
  right: 8%;
  width: 47px;
  height: 47px;
}
.atelier-theme #product.p-landing .p-hero h1 {
  max-width: 760px;
  margin: 28px 0 24px;
  font-size: clamp(3.8rem, 6.7vw, 7rem);
  line-height: 0.93;
  letter-spacing: -0.068em;
}
.atelier-theme .p-landing .p-hero-description {
  max-width: 590px;
  color: #5d4a40;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.65;
}
.atelier-theme .p-landing .p-hero-actions {
  margin-top: 34px;
}
.atelier-theme .p-landing .p-hero-meta {
  gap: 14px;
  margin-top: 36px;
}
.atelier-theme .p-landing .p-hero-meta span {
  padding: 8px 11px;
  border: 1px solid #ffffffdb;
  border-radius: 999px;
  background: #fffaf0a9;
  color: #735a4d;
  backdrop-filter: blur(9px);
  font-size: 11px;
  font-weight: 650;
}
.atelier-theme .p-landing .p-story-console {
  width: min(100%, 565px);
  padding: 18px;
  background: #fffaf4d8;
  box-shadow:
    18px 25px 55px #9b62493a,
    -8px -8px 24px #fffdf4d9;
}
.atelier-theme .p-landing .p-story-scene {
  min-height: 415px;
  margin-block: 14px 11px;
  background: radial-gradient(circle at 50% 41%, #f7c3a3, #e5a585 65%, #c77e64);
}
.p-story-video.is-switching video {
  opacity: 0.25;
  filter: blur(6px);
}
.p-story-video video {
  transition:
    opacity 150ms ease,
    filter 150ms ease;
}
.atelier-theme .p-landing .p-story-overlay {
  padding: 14px 18px;
  background: #fffaf3de;
}
.atelier-theme .p-landing .p-story-source {
  padding: 3px 3px 10px;
  font-size: 12px;
  font-weight: 650;
}
.atelier-theme .p-landing .p-story-honesty {
  margin-top: 14px;
  color: #866b5e;
  font-size: 11px;
}
.atelier-theme .p-landing .p-brand-strip {
  padding-block: 25px;
}
.atelier-theme .p-landing .p-brand-strip p {
  color: #56372e;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 600;
  letter-spacing: -0.04em;
}
.atelier-theme .p-landing .p-brand-strip em {
  color: #b94f37;
  font-family: Georgia, serif;
  font-weight: 400;
}
.atelier-theme .p-landing .p-section {
  padding-block: clamp(74px, 8vw, 124px);
  scroll-margin-top: 110px;
}
.atelier-theme .p-landing .p-section-heading h2,
.atelier-theme .p-landing .p-ways-intro h2,
.atelier-theme .p-landing .p-extension-promo h2 {
  font-size: clamp(2.8rem, 5.1vw, 5.2rem);
  line-height: 0.99;
  letter-spacing: -0.06em;
}
.atelier-theme .p-landing .p-section-heading > p {
  max-width: 370px;
  color: #6f5a4e;
  font-size: 16px;
  line-height: 1.65;
}
.atelier-theme .p-landing .p-product-flow {
  padding-top: 110px;
}
.p-flow-layout {
  position: relative;
  min-height: 610px;
  padding: 42px 9% 28px 4%;
  overflow: hidden;
  border: 1px solid #fff9f0;
  border-radius: 35px;
  background:
    radial-gradient(circle at 75% 22%, #f6d0bca6, transparent 45%),
    linear-gradient(135deg, #e8c7b4, #f8e9dc 52%, #ddb49c);
  box-shadow:
    15px 21px 45px #97634b3a,
    inset 2px 2px #fff8ec;
}
.p-flow-browser {
  width: min(75%, 930px);
  min-height: 505px;
  overflow: hidden;
  border: 1px solid #ffffffeb;
  border-radius: 22px;
  background: #fffaf2;
  box-shadow: 16px 21px 36px #87574444;
  transform: rotate(-2deg);
}
.p-flow-browser-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 45px;
  padding-inline: 16px;
  border-bottom: 1px solid #eadaca;
  color: #94796b;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.p-flow-browser-bar > span:first-child {
  display: flex;
  gap: 5px;
}
.p-flow-browser-bar i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d99a7c;
}
.p-flow-editorial {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  min-height: 460px;
}
.p-flow-editorial-image {
  background: url("assets/garments/lookbook-product-v3.png") 50% 0 / 300% 200% no-repeat;
}
.p-flow-editorial-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: clamp(18px, 3vw, 42px);
  background: linear-gradient(140deg, #fcf4eb, #eddbcb);
}
.p-flow-editorial-copy > span,
.p-flow-editorial-copy small {
  color: #98735f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.11em;
}
.p-flow-editorial-copy strong {
  color: #3b2a25;
  font-size: clamp(22px, 3vw, 43px);
  line-height: 1.1;
  letter-spacing: -0.06em;
}
.p-flow-companion {
  position: absolute;
  top: 85px;
  right: 5%;
  width: min(345px, 38%);
  border: 1px solid #fffef5;
  border-radius: 24px;
  background: #fffaf0e9;
  backdrop-filter: blur(20px);
  box-shadow:
    12px 18px 36px #70432e5e,
    inset 1px 1px #fff;
  transform: rotate(3deg);
}
.p-flow-companion-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid #e7cbbb;
}
.p-flow-companion-top .p-logo {
  font-size: 22px;
}
.p-flow-companion-top > span:last-child {
  color: #98624d;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.p-flow-companion-body {
  display: grid;
  gap: 13px;
  padding: 20px;
}
.p-flow-companion-body .p-kicker {
  margin: 0;
  font-size: 9px;
}
.p-flow-selected,
.p-flow-profile {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 70px;
  padding: 9px;
  border: 1px solid #ead4c5;
  border-radius: 14px;
  background: #fffdf6;
}
.p-flow-selected-image {
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 9px;
  background: url("assets/garments/lookbook-product-v3.png") 50% 0 / 300% 200% no-repeat;
}
.p-flow-selected > div:nth-child(2),
.p-flow-profile > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.p-flow-selected strong,
.p-flow-profile strong {
  font-size: 11px;
  line-height: 1.2;
}
.p-flow-selected small,
.p-flow-profile small {
  color: #9a7564;
  font-size: 9px;
}
.p-flow-selected > span,
.p-flow-profile > span:last-child {
  margin-left: auto;
  color: #a04c32;
  font-weight: 800;
}
.p-flow-profile > span:first-child {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #f0d0bc;
  color: #a04c32;
  font-size: 25px;
}
.p-flow-actions {
  display: flex;
  gap: 6px;
}
.p-flow-actions span {
  flex: 1;
  padding: 10px 5px;
  border: 1px solid #d9af9c;
  border-radius: 999px;
  color: #8f4732;
  font-size: 9px;
  font-weight: 800;
  text-align: center;
}
.p-flow-actions span:first-child {
  background: #a94b32;
  color: white;
}
.p-flow-tag {
  position: absolute;
  bottom: 23px;
  left: 7%;
  display: grid;
  gap: 4px;
  padding: 11px 17px;
  border: 1px solid #ffffffd9;
  border-radius: 14px;
  background: #fffaf3ca;
  backdrop-filter: blur(13px);
  color: #5d3d30;
  box-shadow: 5px 7px 16px #9d6d514a;
}
.p-flow-tag span {
  color: #a6654c;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.p-flow-tag strong {
  font-size: 13px;
}
.atelier-theme .p-landing .p-lookbook-image {
  background-image: url("assets/garments/lookbook-product-v3.png");
}
.atelier-theme .p-landing .p-lookbook-tile {
  border-radius: 22px;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease;
}
.atelier-theme .p-landing .p-lookbook-tile:hover {
  transform: translateY(-5px);
  box-shadow: 13px 19px 28px #9d6d5845;
}
.atelier-theme .p-landing .p-lookbook-tile:nth-child(2),
.atelier-theme .p-landing .p-lookbook-tile:nth-child(5) {
  transform: translateY(13px);
}
.atelier-theme .p-landing .p-lookbook-tile:nth-child(2):hover,
.atelier-theme .p-landing .p-lookbook-tile:nth-child(5):hover {
  transform: translateY(8px);
}
.atelier-theme .p-landing .p-lookbook-caption {
  align-items: center;
  padding: 17px 19px 10px;
}
.atelier-theme .p-landing .p-lookbook-caption strong {
  font-size: 16px;
  letter-spacing: -0.025em;
}
.atelier-theme .p-landing .p-lookbook-caption span {
  color: #ac5a40;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.atelier-theme .p-landing .p-lookbook-try {
  margin-top: 6px;
}
.atelier-theme .p-landing .p-ways {
  border-top: 0;
}
.atelier-theme .p-landing .p-ways-intro {
  max-width: 730px;
}
.atelier-theme .p-landing .p-mode-panel {
  background: #fffaf1cb;
}
.atelier-theme .p-landing .p-mode-copy h3 {
  font-size: clamp(2rem, 3.3vw, 3.5rem);
  font-weight: 650;
}
.atelier-theme .p-landing .p-how-grid article {
  min-height: 290px;
  background: #fffaf2da;
}
.atelier-theme .p-landing .p-extension-promo {
  gap: clamp(36px, 7vw, 110px);
  align-items: center;
  border: 1px solid #fffdf4;
  border-radius: 35px;
  padding: clamp(36px, 5vw, 74px);
  background: linear-gradient(135deg, #f8e3d4, #e6b797 60%, #cf8e71);
  box-shadow: 13px 20px 42px #a6755a3b;
}
.atelier-theme .p-landing .p-extension-promo > div:first-child > p:not(.p-kicker) {
  max-width: 460px;
  font-size: 16px;
  line-height: 1.65;
}
.atelier-theme .p-landing .p-mini-popup {
  width: min(100%, 430px);
  padding: 20px;
}
.p-mini-lookbook {
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 270px;
  gap: 16px;
  margin-block: 20px;
  border-radius: 18px;
  background: #f7e8d9;
  overflow: hidden;
}
.p-mini-lookbook > div:first-child {
  background: url("assets/garments/lookbook-product-v3.png") 100% 100% / 300% 200% no-repeat;
}
.p-mini-lookbook > div:last-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 12px;
}
.p-mini-lookbook span {
  color: #a25238;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.p-mini-lookbook h3 {
  font-size: clamp(19px, 2vw, 27px);
  line-height: 1.1;
}
.p-mini-lookbook p {
  font-size: 11px;
}
.atelier-theme .p-landing .p-privacy-section {
  margin-top: 90px;
  border: 1px solid #f5e5d6;
  border-radius: 32px;
  background: #fffaf2bb;
}
.atelier-theme .p-landing .p-privacy-section > p:not(.p-kicker) {
  max-width: 640px;
}
.atelier-theme .p-landing .p-final-cta {
  margin-block: 30px;
  border: 1px solid #f2d9c9;
  border-radius: 35px;
  background: radial-gradient(circle at 50% 20%, #efc0a3, #fae9dc 60%, #fff9f1);
}
.atelier-theme .p-landing .p-final-cta h2 em {
  color: #aa4931;
  font-family: Georgia, serif;
  font-weight: 400;
}
@media (max-width: 1100px) {
  .atelier-theme .p-landing .p-nav-badge {
    display: none;
  }
  .p-flow-companion {
    right: 3%;
    width: 40%;
  }
}
@media (max-width: 760px) {
  .atelier-theme .p-landing .p-hero {
    padding-block: 58px 65px;
    gap: 36px;
  }
  .atelier-theme #product.p-landing .p-hero h1 {
    font-size: clamp(3.4rem, 10.8vw, 5.5rem);
  }
  .atelier-theme .p-landing .p-story-console {
    justify-self: center;
  }
  .atelier-theme .p-landing .p-section-heading h2 {
    font-size: clamp(2.7rem, 9vw, 4.5rem);
  }
  .p-flow-layout {
    min-height: 760px;
    padding: 20px;
  }
  .p-flow-browser {
    width: 100%;
    min-height: 480px;
    transform: none;
  }
  .p-flow-editorial {
    min-height: 435px;
  }
  .p-flow-companion {
    top: auto;
    right: 22px;
    bottom: 58px;
    width: min(330px, 84%);
    transform: rotate(2deg);
  }
  .p-flow-tag {
    left: 22px;
    bottom: 20px;
  }
  .atelier-theme .p-landing .p-lookbook-tile:nth-child(2),
  .atelier-theme .p-landing .p-lookbook-tile:nth-child(5) {
    transform: none;
  }
  .atelier-theme .p-landing .p-lookbook-tile:nth-child(2):hover,
  .atelier-theme .p-landing .p-lookbook-tile:nth-child(5):hover {
    transform: translateY(-5px);
  }
  .atelier-theme .p-landing .p-privacy-section {
    margin-top: 55px;
    padding-inline: 22px;
  }
}
@media (max-width: 500px) {
  .atelier-theme .p-landing .p-nav {
    padding: 10px;
  }
  .atelier-theme .p-landing .p-nav-try {
    display: none;
  }
  .atelier-theme .p-landing .p-hero-meta {
    gap: 7px;
  }
  .atelier-theme .p-landing .p-hero-meta span {
    font-size: 10px;
  }
  .atelier-theme .p-landing .p-story-console {
    padding: 12px;
  }
  .atelier-theme .p-landing .p-story-wardrobe {
    gap: 5px;
  }
  .atelier-theme .p-landing .p-story-wardrobe strong {
    font-size: 8px;
  }
  .atelier-theme .p-landing .p-brand-strip > span:last-child {
    display: none;
  }
  .p-flow-layout {
    min-height: 685px;
  }
  .p-flow-browser {
    min-height: 415px;
  }
  .p-flow-editorial {
    min-height: 370px;
    grid-template-columns: 1fr 42%;
  }
  .p-flow-editorial-copy {
    padding: 12px;
  }
  .p-flow-editorial-copy strong {
    font-size: 20px;
  }
  .p-flow-editorial-copy small {
    display: none;
  }
  .p-flow-companion {
    bottom: 54px;
    width: min(305px, 87%);
  }
  .p-flow-tag {
    display: none;
  }
  .atelier-theme .p-landing .p-section-heading > p {
    font-size: 14px;
  }
  .atelier-theme .p-landing .p-extension-promo {
    padding: 30px 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .atelier-theme .p-landing .p-lookbook-tile,
  .p-story-video video {
    transition: none;
  }
}

/* Cinematic landing / self-hosted type, dimensional product display and film. */
@font-face {
  font-family: "TryOn Serif";
  src: url("assets/fonts/InstrumentSerif-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "TryOn Serif";
  src: url("assets/fonts/InstrumentSerif-Italic.ttf") format("truetype");
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "TryOn Sans";
  src: url("assets/fonts/Manrope-wght.ttf") format("truetype");
  font-weight: 200 800;
  font-display: swap;
}
.atelier-theme #product.p-landing {
  font-family: "TryOn Sans", Arial, sans-serif;
}
.atelier-theme
  #product.p-landing
  :is(h1, h2, .p-object-copy h3, .p-mode-copy h3, .p-final-cta h2, .p-demo-sculpture strong) {
  font-family: "TryOn Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.025em;
}
.atelier-theme
  #product.p-landing
  :is(h1, h2, .p-object-copy h3, .p-mode-copy h3, .p-final-cta h2, .p-demo-sculpture strong)
  em {
  color: #b44e35;
  font-family: "TryOn Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
}
.atelier-theme .p-landing .p-nav {
  z-index: 60;
}
.atelier-theme .p-landing .p-cinematic-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: center;
  gap: clamp(30px, 4vw, 70px);
  min-height: 760px;
  padding-block: 95px 105px;
  perspective: 1200px;
}
.atelier-theme #product.p-landing .p-cinematic-hero h1 {
  max-width: 710px;
  margin-block: 30px 24px;
  font-size: clamp(4.9rem, 7.2vw, 8.8rem);
  line-height: 0.84;
  letter-spacing: -0.038em;
}
.atelier-theme .p-landing .p-cinematic-hero .p-hero-description {
  max-width: 500px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.7;
}
.atelier-theme .p-landing .p-cinematic-hero .p-hero-meta {
  margin-top: 41px;
}
.atelier-theme .p-landing .p-cinematic-hero .p-hero-meta span {
  font-size: 10px;
  letter-spacing: 0.04em;
}
.p-hero-film {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 2px solid #fff9f1;
  border-radius: 33px;
  background: #e9bd9e;
  box-shadow:
    22px 32px 75px #8f513f48,
    -10px -12px 32px #ffffffca;
  transform: rotateY(-5deg) rotateX(3deg);
  transition:
    transform 600ms cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 600ms ease;
}
.p-hero-film:hover,
.p-hero-film:focus-within {
  transform: rotateY(0) rotateX(0) translateY(-5px);
  box-shadow:
    25px 38px 85px #8f513f55,
    -10px -12px 32px #ffffffca;
}
.p-hero-film::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #2b1a154d, transparent 21%, transparent 72%, #2b1a157d);
  pointer-events: none;
  content: "";
}
.p-hero-film > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.p-film-chrome,
.p-film-caption {
  position: absolute;
  z-index: 2;
  color: #fffaf0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-film-chrome {
  top: 22px;
  right: 25px;
  left: 25px;
  display: flex;
  justify-content: space-between;
}
.p-film-caption {
  right: 25px;
  bottom: 25px;
}
.p-film-play {
  position: absolute;
  z-index: 3;
  bottom: 24px;
  left: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffffcf;
  border-radius: 999px;
  padding: 11px 18px;
  background: #fffaf0d9;
  backdrop-filter: blur(16px);
  color: #4c2f24;
  box-shadow: 4px 9px 22px #3f211b52;
  cursor: pointer;
  font-family: "TryOn Sans", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  transition:
    transform 180ms ease,
    background 180ms ease;
}
.p-film-play:hover {
  transform: translateY(-3px) scale(1.03);
  background: #fff;
}
.p-film-dialog {
  width: min(94vw, 1300px);
  max-width: none;
  max-height: 94vh;
  overflow: visible;
  border: 1px solid #fffbf2;
  border-radius: 26px;
  padding: 9px;
  background: #271c1a;
  box-shadow: 0 32px 110px #1d100de0;
}
.p-film-dialog::backdrop {
  background: #24120edf;
  backdrop-filter: blur(12px);
}
.p-film-dialog video {
  display: block;
  width: 100%;
  max-height: calc(94vh - 18px);
  border-radius: 18px;
}
.p-film-dialog > button {
  position: absolute;
  z-index: 3;
  top: -18px;
  right: -18px;
  width: 42px;
  height: 42px;
  border: 1px solid white;
  border-radius: 50%;
  background: #fff9ef;
  color: #4c3028;
  cursor: pointer;
}
.atelier-theme .p-landing .p-demo-lab {
  padding-top: 70px;
}
.p-demo-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(24px, 4vw, 70px);
  margin-top: 43px;
  perspective: 1400px;
}
.atelier-theme .p-landing .p-demo-layout .p-story-console {
  width: 100%;
  max-width: 575px;
  justify-self: end;
  transform: rotateY(-3deg);
  transition: transform 550ms cubic-bezier(0.2, 0.75, 0.2, 1);
}
.atelier-theme .p-landing .p-demo-layout .p-story-console:hover,
.atelier-theme .p-landing .p-demo-layout .p-story-console:focus-within {
  transform: rotateY(0);
}
.p-demo-sculpture {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 650px;
  overflow: hidden;
  border: 1px solid #fff8ef;
  border-radius: 36px;
  padding: 38px;
  background: radial-gradient(circle at 55% 44%, #fdf1dd, #e8b595 62%, #c4785c);
  box-shadow: 15px 22px 52px #a66b513f;
  isolation: isolate;
}
.p-demo-sculpture-ring {
  position: absolute;
  top: 4%;
  left: -15%;
  width: 130%;
  aspect-ratio: 1;
  border: 2px solid #fff9e7a8;
  border-radius: 50%;
  box-shadow:
    0 0 0 35px #ffffff20,
    0 0 0 80px #fff9e514,
    inset 0 0 30px #fff8ebaa;
  transform: rotateX(65deg) rotate(-22deg);
  animation: p-orbit-tilt 12s ease-in-out infinite alternate;
}
.p-demo-sculpture-item {
  position: absolute;
  top: 4%;
  left: 10%;
  width: 84%;
  aspect-ratio: 1;
  background: url("assets/garments/fashion-objects-v1.png") 100% 100% / 200% 200% no-repeat;
  filter: drop-shadow(25px 35px 20px #733a3450);
  animation: p-object-bob 5s ease-in-out infinite;
}
.p-demo-sculpture > span,
.p-demo-sculpture > strong {
  position: relative;
  z-index: 2;
  color: #fff9ee;
  text-shadow: 1px 2px 9px #55382a5c;
}
.p-demo-sculpture > span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.15em;
}
.p-demo-sculpture > strong {
  margin-top: 15px;
  font-size: clamp(3.3rem, 5vw, 6.2rem);
  line-height: 0.91;
}
.atelier-theme #product.p-landing .p-demo-sculpture > strong em {
  color: #fff0d8;
}
.atelier-theme .p-landing .p-brand-strip {
  margin-top: 100px;
}
.atelier-theme .p-landing .p-brand-strip p,
.atelier-theme .p-landing .p-brand-strip p em {
  font-family: "TryOn Serif", Georgia, serif;
  font-size: clamp(25px, 3vw, 39px);
  font-weight: 400;
}
.p-object-gallery {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.05fr) minmax(178px, 0.36fr);
  align-items: center;
  gap: clamp(18px, 3vw, 50px);
  min-height: 560px;
  overflow: hidden;
  margin-block: 50px 70px;
  border: 1px solid #fffdf5;
  border-radius: 38px;
  padding: 32px clamp(20px, 4vw, 60px);
  background: radial-gradient(circle at 59% 35%, #fff3e5, #f0d1bc 55%, #dfaa8b);
  box-shadow:
    14px 22px 48px #9f65463b,
    inset 2px 2px #fff;
}
.p-object-copy {
  position: relative;
  z-index: 2;
}
.p-object-copy > span:nth-child(2) {
  display: block;
  margin-top: 38px;
  color: #a45138;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
}
.atelier-theme #product.p-landing .p-object-copy h3 {
  margin: 15px 0 13px;
  font-size: clamp(3.1rem, 4.8vw, 5.6rem);
  line-height: 0.93;
}
.p-object-copy p {
  max-width: 300px;
  color: #654a3d;
  font-size: 15px;
  line-height: 1.7;
}
.p-object-copy .p-button {
  margin-top: 30px;
}
.p-object-arena {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  perspective: 900px;
  transform-style: preserve-3d;
}
.p-object-orbit {
  position: absolute;
  top: 11%;
  left: 4%;
  width: 92%;
  height: 75%;
  border: 2px solid #fff8efab;
  border-radius: 50%;
  box-shadow:
    inset 0 2px 25px #fff6dc80,
    0 0 26px #ffffff65;
  transform: rotateX(64deg) rotateZ(-24deg);
  animation: p-orbit-tilt 13s ease-in-out infinite alternate;
}
.p-object-orbit-two {
  top: 18%;
  left: 9%;
  width: 82%;
  height: 65%;
  transform: rotateX(58deg) rotateZ(30deg);
  animation-delay: -6s;
}
.p-object-feature {
  position: absolute;
  inset: 7% 5%;
  background-image: url("assets/garments/fashion-objects-v1.png");
  background-size: 200% 200%;
  background-repeat: no-repeat;
  filter: drop-shadow(18px 31px 20px #67372d59);
  transform: rotateX(var(--object-x, 0deg)) rotateY(var(--object-y, 0deg));
  transition: transform 300ms ease;
  animation: p-object-bob 5.3s ease-in-out infinite;
}
.p-object-0,
.p-object-control.p-object-0 .p-object-control-image {
  background-position: 0 0;
}
.p-object-1,
.p-object-control.p-object-1 .p-object-control-image {
  background-position: 100% 0;
}
.p-object-feature.p-object-0,
.p-object-feature.p-object-1,
.p-object-control.p-object-0 .p-object-control-image,
.p-object-control.p-object-1 .p-object-control-image {
  mask-image: linear-gradient(#000 0 78%, transparent 86%);
}
.p-object-2,
.p-object-control.p-object-2 .p-object-control-image {
  background-position: 0 100%;
}
.p-object-3,
.p-object-control.p-object-3 .p-object-control-image {
  background-position: 100% 100%;
}
.p-object-floor {
  position: absolute;
  right: 14%;
  bottom: 8%;
  left: 14%;
  height: 38px;
  border-radius: 50%;
  background: #834d3c3b;
  filter: blur(18px);
}
.p-object-star {
  position: absolute;
  color: #fff8ed;
  text-shadow: 0 0 14px #fff;
  animation: p-object-bob 4s ease-in-out infinite;
}
.p-object-star-a {
  top: 15%;
  right: 13%;
  font-size: 42px;
}
.p-object-star-b {
  bottom: 20%;
  left: 5%;
  font-size: 29px;
  animation-delay: -1.5s;
}
.p-object-controls {
  display: grid;
  gap: 10px;
  position: relative;
  z-index: 2;
}
.p-object-control {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 74px;
  border: 1px solid #fff9eedb;
  border-radius: 16px;
  padding: 5px 11px 5px 5px;
  background: #fff9ed8c;
  backdrop-filter: blur(12px);
  color: #5c3e34;
  box-shadow: 3px 5px 12px #915b452e;
  cursor: pointer;
  font-family: "TryOn Sans", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  text-align: left;
  transition:
    transform 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}
.p-object-control:hover,
.p-object-control[aria-pressed="true"] {
  transform: translateX(-7px);
  background: #fffcf5;
  box-shadow: 5px 9px 20px #88574645;
}
.p-object-control[aria-pressed="true"] {
  border-color: #b35335;
}
.p-object-control-image {
  display: block;
  width: 61px;
  height: 61px;
  flex: none;
  border-radius: 12px;
  background:
    url("assets/garments/fashion-objects-v1.png") 0 0 / 200% 200% no-repeat,
    #f3d6c0;
}
.atelier-theme .p-landing .p-lookbook-grid {
  perspective: 1000px;
}
.atelier-theme .p-landing .p-lookbook-tile {
  transform-style: preserve-3d;
  transition:
    transform 500ms cubic-bezier(0.2, 0.75, 0.2, 1),
    box-shadow 500ms ease;
}
.atelier-theme .p-landing .p-lookbook-tile:hover {
  transform: translateY(-12px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 18px 27px 38px #9d6d5850;
}
.p-live-cinema {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(35px, 7vw, 105px);
  min-height: 710px;
  overflow: hidden;
  border: 1px solid #6d4237;
  border-radius: 39px;
  padding: clamp(28px, 5vw, 72px);
  background: radial-gradient(circle at 73% 40%, #a1664e, #4b2e2b 59%, #281d1d);
  color: #fff9f1;
  box-shadow: 20px 30px 65px #713e3854;
}
.p-live-cinema .p-kicker {
  color: #ffcaab;
}
.atelier-theme #product.p-landing .p-live-cinema h2 {
  margin-block: 30px 27px;
  color: #fff7ed;
  font-size: clamp(4.6rem, 6vw, 7.2rem);
  line-height: 0.88;
}
.atelier-theme #product.p-landing .p-live-cinema h2 em {
  color: #f3a680;
}
.p-live-cinema-copy > p:not(.p-kicker) {
  max-width: 410px;
  color: #f5d8c6;
  font-size: 17px;
  line-height: 1.75;
}
.p-live-cinema-copy > span {
  display: inline-block;
  margin-top: 56px;
  color: #f4b59a;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.13em;
}
.p-live-cinema-stage {
  position: relative;
  height: min(600px, 52vw);
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #ffe6d6ba;
  border-radius: 30px;
  background: radial-gradient(circle at 50% 30%, #e9b28d, #724637 70%);
  box-shadow:
    16px 22px 45px #170e0d7a,
    inset 2px 2px #fff6e57a;
}
.p-live-cinema-stage > video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(1.08);
}
.p-live-cinema-top,
.p-live-cinema-bottom {
  position: absolute;
  right: 17px;
  left: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #fff9f0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.11em;
}
.p-live-cinema-top {
  top: 17px;
}
.p-live-cinema-bottom {
  bottom: 17px;
}
.p-live-cinema-top span,
.p-live-cinema-bottom span {
  border: 1px solid #ffffff6e;
  border-radius: 999px;
  padding: 9px 12px;
  background: #301b19a6;
  backdrop-filter: blur(10px);
}
.p-live-cinema-bottom button {
  border: 1px solid #fff7e9;
  border-radius: 999px;
  padding: 10px 14px;
  background: #fff8eddc;
  color: #4b2a23;
  cursor: pointer;
  font:
    800 11px "TryOn Sans",
    Arial,
    sans-serif;
}
.atelier-theme .p-landing .p-ways {
  margin-top: 100px;
}
.atelier-theme .p-landing .p-ways-intro {
  max-width: 800px;
}
.atelier-theme #product.p-landing .p-ways-intro h2 {
  font-size: clamp(3.7rem, 5.7vw, 6.6rem);
  line-height: 0.91;
}
.atelier-theme #product.p-landing .p-section-heading h2,
.atelier-theme #product.p-landing .p-privacy-section h2,
.atelier-theme #product.p-landing .p-tutorial h2,
.atelier-theme #product.p-landing .p-final-cta h2 {
  font-size: clamp(3.8rem, 5.4vw, 6.7rem);
  line-height: 0.91;
}
.atelier-theme #product.p-landing .p-mode-copy h3 {
  font-size: clamp(3rem, 4vw, 5rem);
  line-height: 0.95;
}
.atelier-theme .p-landing .p-final-cta {
  margin-top: 90px;
}
@keyframes p-object-bob {
  0%,
  100% {
    translate: 0 -5px;
  }
  50% {
    translate: 0 12px;
  }
}
@keyframes p-orbit-tilt {
  from {
    rotate: -12deg;
  }
  to {
    rotate: 14deg;
  }
}
@media (max-width: 1080px) {
  .atelier-theme .p-landing .p-cinematic-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding-block: 65px;
  }
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    max-width: 900px;
  }
  .p-hero-film {
    max-width: 800px;
    justify-self: center;
  }
  .p-object-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .p-object-controls {
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
  }
  .p-object-control {
    flex: 1;
    max-width: 220px;
  }
}
@media (max-width: 760px) {
  .atelier-theme .p-landing .p-cinematic-hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-block: 40px 75px;
  }
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    font-size: clamp(4.5rem, 11vw, 6.5rem);
  }
  .p-hero-film {
    order: -1;
    transform: none;
    border-radius: 21px;
  }
  .p-hero-film:hover,
  .p-hero-film:focus-within {
    transform: none;
  }
  .p-demo-layout {
    grid-template-columns: 1fr;
  }
  .p-demo-sculpture {
    min-height: 360px;
  }
  .p-demo-sculpture-item {
    top: -24%;
    left: 40%;
    width: 65%;
  }
  .atelier-theme .p-landing .p-demo-layout .p-story-console {
    justify-self: center;
    transform: none;
  }
  .p-object-gallery {
    grid-template-columns: 1fr;
    padding: 30px 22px;
  }
  .p-object-copy > span:nth-child(2) {
    margin-top: 20px;
  }
  .p-object-arena {
    width: min(100%, 450px);
    margin-inline: auto;
  }
  .p-object-controls {
    grid-column: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .p-object-control {
    max-width: none;
  }
  .p-live-cinema {
    grid-template-columns: 1fr;
  }
  .p-live-cinema-stage {
    width: min(100%, 550px);
    height: 520px;
    min-height: 0;
    margin-inline: auto;
  }
  .p-live-cinema-copy > span {
    margin-top: 28px;
  }
}
@media (max-width: 500px) {
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    font-size: clamp(4rem, 13vw, 5.5rem);
  }
  .p-hero-film {
    width: calc(100% + 12px);
    margin-left: -6px;
  }
  .p-film-chrome,
  .p-film-caption {
    display: none;
  }
  .p-film-play {
    bottom: 11px;
    left: 11px;
    padding: 8px 11px;
    font-size: 10px;
  }
  .p-demo-sculpture {
    min-height: 310px;
    padding: 25px;
  }
  .atelier-theme #product.p-landing .p-demo-sculpture strong {
    font-size: 3.5rem;
  }
  .p-object-gallery {
    margin-block: 35px 50px;
  }
  .p-object-control {
    min-height: 61px;
    padding-right: 4px;
    font-size: 9px;
  }
  .p-object-control-image {
    width: 47px;
    height: 47px;
  }
  .p-live-cinema {
    padding: 34px 18px;
  }
  .atelier-theme #product.p-landing .p-live-cinema h2 {
    font-size: 4.2rem;
  }
  .p-live-cinema-stage {
    height: 430px;
  }
  .p-live-cinema-top span:last-child {
    display: none;
  }
  .p-live-cinema-bottom span {
    font-size: 8px;
  }
  .p-live-cinema-bottom button {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-demo-sculpture-ring,
  .p-demo-sculpture-item,
  .p-object-orbit,
  .p-object-feature,
  .p-object-star {
    animation: none;
  }
  .p-hero-film,
  .p-object-control,
  .p-object-feature,
  .atelier-theme .p-landing .p-lookbook-tile {
    transition: none;
  }
}

/* Editorial landing composition: the working studio leads, the film supports. */
.atelier-theme #product.p-landing {
  width: 100%;
  max-width: 1920px;
  padding-inline: clamp(18px, 2.6vw, 52px);
}
.atelier-theme .p-landing .p-nav {
  margin-inline: auto;
  border-radius: 18px;
}
.atelier-theme .p-landing .p-cinematic-hero {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(28px, 4vw, 82px);
  min-height: 0;
  padding-block: clamp(52px, 5vw, 92px) clamp(65px, 6vw, 110px);
  perspective: none;
}
.atelier-theme .p-landing .p-cinematic-hero .p-hero-copy {
  align-self: center;
  padding-left: clamp(0px, 1.4vw, 25px);
}
.atelier-theme #product.p-landing .p-cinematic-hero h1 {
  max-width: 850px;
  margin: 29px 0 31px;
  font-size: clamp(5.1rem, 6.9vw, 9rem);
  line-height: 0.83;
  letter-spacing: -0.035em;
}
.atelier-theme .p-landing .p-cinematic-hero .p-hero-description {
  max-width: 610px;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.58;
}
.atelier-theme .p-landing .p-hero-actions {
  margin-top: 42px;
}
.p-hero-steps {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  max-width: 560px;
  margin-top: clamp(56px, 8vw, 124px);
  border-top: 1px solid #aa715763;
  padding-top: 20px;
  color: #815846;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.p-hero-steps i {
  width: 18px;
  height: 1px;
  background: #b8846b;
}
.p-hero-studio {
  min-width: 0;
  padding: clamp(10px, 1.2vw, 20px);
  border: 1px solid #fffdf5;
  border-radius: 32px;
  background: linear-gradient(150deg, #f6e7dcba, #e9b99b8a 58%, #edcec0a3);
  box-shadow:
    0 24px 62px #a85f4538,
    inset 1px 1px #fff;
}
.p-hero-studio-intro,
.p-studio-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 10px 14px;
  color: #885841;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.atelier-theme .p-landing .p-hero-studio .p-story-console {
  width: 100%;
  max-width: none;
  padding: clamp(12px, 1.2vw, 18px);
  border-radius: 22px;
  background: #fffaf5e3;
  box-shadow:
    0 16px 44px #8f584037,
    inset 1px 1px #fff;
}
.atelier-theme .p-landing .p-hero-studio .p-story-scene {
  min-height: clamp(350px, 32vw, 510px);
  margin-top: 13px;
  border-radius: 15px;
}
.atelier-theme .p-landing .p-hero-studio .p-story-person,
.atelier-theme .p-landing .p-hero-studio .p-story-video {
  width: min(48%, 335px);
}
.atelier-theme .p-landing .p-hero-studio .p-story-wardrobe {
  gap: clamp(6px, 0.7vw, 12px);
}
.p-studio-footnote {
  display: block;
  margin: 0;
  padding: 15px 10px 3px;
  font-weight: 650;
  letter-spacing: 0.03em;
}
.atelier-theme .p-landing .p-brand-strip {
  margin-top: 0;
}
.p-source-paths {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.6fr);
  gap: clamp(30px, 5vw, 95px);
  align-items: end;
  padding: clamp(80px, 8vw, 145px) clamp(0px, 1.4vw, 24px) clamp(30px, 5vw, 70px);
}
.atelier-theme #product.p-landing .p-source-heading h2 {
  margin: 20px 0 0;
  font-family: "TryOn Serif", Georgia, serif;
  font-size: clamp(3.7rem, 5vw, 7rem);
  font-weight: 400;
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.atelier-theme #product.p-landing .p-source-heading h2 em {
  color: #b44e35;
  font-weight: 400;
}
.p-source-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid #a36c556f;
}
.p-source-grid article {
  position: relative;
  min-height: 245px;
  padding: 20px clamp(15px, 1.6vw, 29px) 35px;
  border-left: 1px solid #a36c556f;
}
.p-source-grid article:first-child {
  border-left: 0;
}
.p-source-grid span {
  color: #ad563a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-source-grid strong {
  display: block;
  margin-top: 26px;
  color: #362620;
  font-family: "TryOn Serif", Georgia, serif;
  font-size: clamp(27px, 2.25vw, 38px);
  font-weight: 400;
}
.p-source-grid p {
  max-width: 235px;
  margin: 10px 0 0;
  color: #71594c;
  font-size: 13px;
  line-height: 1.5;
}
.p-source-grid i {
  position: absolute;
  right: 20px;
  bottom: 14px;
  color: #aa563a;
  font-size: 22px;
  font-style: normal;
}
.atelier-theme .p-landing .p-product-flow,
.atelier-theme .p-landing .p-possibilities,
.atelier-theme .p-landing .p-ways,
.atelier-theme .p-landing .p-how {
  padding-inline: clamp(0px, 1.4vw, 24px);
}
.atelier-theme .p-landing .p-section-heading {
  align-items: end;
}
.atelier-theme .p-landing .p-section-heading > p {
  max-width: 510px;
}
.p-object-gallery {
  grid-template-columns: minmax(250px, 0.7fr) minmax(300px, 1.15fr) minmax(185px, 0.33fr);
  border-radius: 25px;
  background: radial-gradient(circle at 60% 40%, #fbecdc, #edc4ab 65%, #d9a282);
}
.p-object-index {
  display: inline-block;
  margin-top: 35px;
  border-top: 1px solid #a560476b;
  padding-top: 13px;
  color: #98523d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-possibility-intro,
.p-possibility-end {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid #a36c5557;
  padding-block: 18px 22px;
}
.p-possibility-intro span,
.p-possibility-end span {
  color: #a4583b;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
}
.p-possibility-intro p {
  max-width: 680px;
  margin: 0;
  color: #674a3c;
  font-family: "TryOn Serif", Georgia, serif;
  font-size: clamp(21px, 2.25vw, 33px);
  line-height: 1.15;
}
.p-possibility-end {
  align-items: center;
  margin-top: 38px;
  border-top: 0;
  border-bottom: 1px solid #a36c5557;
}
.atelier-theme .p-landing .p-lookbook-grid {
  gap: clamp(12px, 1.35vw, 24px);
}
.atelier-theme .p-landing .p-lookbook-tile {
  border-radius: 18px;
  box-shadow: 0 13px 30px #7a50452b;
}
.atelier-theme .p-landing .p-lookbook-tile:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 38px #7a504540;
}
.atelier-theme .p-landing .p-lookbook-caption {
  min-height: 72px;
  padding: 14px 15px;
}
.p-live-cinema {
  grid-template-columns: minmax(0, 0.74fr) minmax(0, 1.26fr);
  gap: clamp(35px, 5vw, 90px);
  min-height: 0;
  padding: clamp(34px, 4vw, 70px);
  border-radius: 26px;
  background: radial-gradient(circle at 82% 10%, #875744, #3e2925 62%, #251b1a);
}
.atelier-theme #product.p-landing .p-live-cinema h2 {
  font-size: clamp(4.8rem, 6vw, 8.5rem);
}
.p-live-cinema-stage {
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  background: #e8cab3;
}
.p-live-cinema-stage > video {
  object-fit: cover;
}
.p-film-inline-open {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  min-width: 220px;
  margin-top: 45px;
  border: 1px solid #f0cbb477;
  border-radius: 999px;
  padding: 15px 18px;
  background: #fff7ebdb;
  color: #422a23;
  cursor: pointer;
  font:
    800 12px "TryOn Sans",
    Arial,
    sans-serif;
  transition:
    transform 180ms ease,
    background 180ms ease;
}
.p-film-inline-open:hover {
  transform: translateY(-3px);
  background: white;
}
.p-film-inline-open span {
  color: #a16b52;
  font-size: 10px;
}
@media (max-width: 1080px) {
  .atelier-theme .p-landing .p-cinematic-hero {
    grid-template-columns: 1fr;
    gap: 35px;
  }
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    max-width: 900px;
  }
  .p-hero-steps {
    margin-top: 40px;
  }
  .p-hero-studio {
    width: min(100%, 780px);
    margin-inline: auto;
  }
  .p-object-gallery {
    grid-template-columns: 1fr 1fr;
  }
  .p-object-controls {
    grid-column: 1 / -1;
  }
  .p-source-paths {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .atelier-theme #product.p-landing {
    padding-inline: 16px;
  }
  .atelier-theme .p-landing .p-cinematic-hero {
    gap: 33px;
    padding-block: 44px 70px;
  }
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    font-size: clamp(4.6rem, 13.5vw, 7rem);
  }
  .p-hero-studio-intro span:last-child {
    display: none;
  }
  .atelier-theme .p-landing .p-hero-studio .p-story-scene {
    min-height: 340px;
  }
  .atelier-theme .p-landing .p-hero-studio .p-story-person,
  .atelier-theme .p-landing .p-hero-studio .p-story-video {
    width: min(60%, 250px);
  }
  .p-hero-steps {
    gap: 8px;
    font-size: 9px;
  }
  .p-hero-steps i {
    width: 12px;
  }
  .p-source-grid {
    grid-template-columns: 1fr;
  }
  .p-source-grid article {
    min-height: 0;
    border-left: 0;
    border-bottom: 1px solid #a36c556f;
    padding: 20px 35px 25px 0;
  }
  .p-source-grid strong {
    margin-top: 12px;
  }
  .p-source-grid i {
    right: 4px;
  }
  .p-possibility-intro,
  .p-possibility-end {
    display: block;
  }
  .p-possibility-intro p,
  .p-possibility-end a {
    display: block;
    margin-top: 12px;
  }
  .p-object-gallery {
    grid-template-columns: 1fr;
  }
  .p-object-controls {
    grid-column: auto;
  }
  .p-live-cinema {
    grid-template-columns: 1fr;
  }
  .p-live-cinema-stage {
    width: 100%;
    height: auto;
  }
}
@media (max-width: 500px) {
  .atelier-theme #product.p-landing .p-cinematic-hero h1 {
    font-size: clamp(3.9rem, 14vw, 5.2rem);
  }
  .p-hero-steps i {
    display: none;
  }
  .p-hero-steps span {
    width: 100%;
  }
  .atelier-theme .p-landing .p-hero-studio .p-story-scene {
    min-height: 300px;
  }
  .atelier-theme .p-landing .p-hero-studio .p-story-person,
  .atelier-theme .p-landing .p-hero-studio .p-story-video {
    width: min(58%, 210px);
  }
  .p-live-cinema-top span,
  .p-live-cinema-bottom span {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-film-inline-open {
    transition: none;
  }
}
/* Account surfaces share the extension palette without using the old backup modal. */
.p-account-entry-host,
.pc-account-entry-host {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.p-account-entry,
.pc-account-entry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 0.95rem;
  border: 1px solid #ddc8b7;
  border-radius: 999px;
  background: #fffaf5;
  color: #352721;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
}
.pc-account-entry {
  padding: 0.38rem 0.5rem;
  font-size: 0.75rem;
}
.p-account-menu {
  position: relative;
  z-index: 25;
}
.p-account-menu-toggle {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.7rem 0.35rem 0.35rem;
  border: 1px solid #dec7b6;
  border-radius: 999px;
  background: #fff9f3;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
  font-weight: 700;
}
.p-account-menu-toggle::-webkit-details-marker {
  display: none;
}
.p-account-avatar {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #af5037;
  color: white;
  font-weight: 800;
}
.p-account-menu-options {
  position: absolute;
  right: 0;
  top: calc(100% + 0.5rem);
  min-width: 11rem;
  padding: 0.45rem;
  background: #fffaf5;
  border: 1px solid #e5cab9;
  border-radius: 1rem;
  box-shadow: 0 12px 30px #4c271b22;
  display: grid;
  gap: 0.2rem;
}
.p-account-menu-options a,
.p-account-menu-options button {
  display: block;
  text-align: left;
  padding: 0.7rem;
  border: 0;
  background: transparent;
  color: #352721;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
  border-radius: 0.6rem;
}
.p-account-menu-options a:hover,
.p-account-menu-options button:hover {
  background: #f4e4da;
}
.p-account-page {
  min-height: 100vh;
  background: radial-gradient(circle at 83% 3%, #f7d6c5 0, transparent 37%), #fbf4ec;
  color: #352721;
  padding: clamp(1rem, 3vw, 3rem);
  font-family: inherit;
}
.p-account-shell {
  max-width: 1180px;
  margin: auto;
}
.p-account-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border: 2px solid white;
  border-radius: 1.5rem;
  background: #fff9f3c9;
  box-shadow: 0 18px 34px #ad775722;
}
.p-account-back {
  color: #684338;
  text-decoration: none;
}
.p-account-heading {
  padding: clamp(2rem, 5vw, 4rem) 0 1.5rem;
}
.p-account-heading h1 {
  font-size: clamp(2.5rem, 5vw, 5rem);
  letter-spacing: -0.055em;
  line-height: 1;
  margin: 0.5rem 0;
}
.p-account-status:not(:empty) {
  padding: 0.9rem 1.1rem;
  border-radius: 0.8rem;
  background: #fff5e8;
  border: 1px solid #d9bea6;
}
.p-account-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-bottom: 3rem;
}
.p-account-content.is-auth {
  grid-template-columns: minmax(0, 620px);
  justify-content: center;
}
.p-account-card {
  background: #fffaf5e8;
  border: 1px solid #fff;
  border-radius: 1.4rem;
  padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 16px 38px #9c6f501c;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: flex-start;
}
.p-account-card h2 {
  font-size: 1.5rem;
  margin: 0;
}
.p-account-card p {
  margin: 0.1rem 0;
  color: #705b50;
  line-height: 1.55;
}
.p-account-card .p-input {
  width: min(100%, 28rem);
  padding: 0.9rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid #d9c5b7;
  background: #fff;
}
.p-account-card button {
  border-radius: 999px;
  padding: 0.75rem 1rem;
  border: 1px solid #d8bea9;
  background: #fff6ec;
  color: #3d2820;
  font-weight: 700;
  cursor: pointer;
}
.p-account-card button:first-of-type {
  background: #b65339;
  color: white;
  border-color: #b65339;
}
.p-account-consent {
  display: flex;
  gap: 0.6rem;
  max-width: 34rem;
  line-height: 1.5;
  font-size: 0.9rem;
}
.p-account-consent input {
  align-self: flex-start;
  flex: none;
  margin-top: 0.3rem;
}
.p-account-checkbox {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #b65339;
}
.p-account-form-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.p-account-help {
  width: 100%;
  padding-top: 1rem;
  border-top: 1px solid #ead8cc;
}
.p-account-help summary {
  cursor: pointer;
}
.p-account-data-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  width: 100%;
  padding: 0.7rem 0;
  border-bottom: 1px solid #ead8cc;
}
@media (max-width: 750px) {
  .p-account-content {
    grid-template-columns: 1fr;
  }
  .p-account-name {
    max-width: 7rem;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .p-account-page {
    padding: 1rem;
  }
}
/* Account access: editorial image and warm, translucent glass. */
.p-account-page.is-signed-out {
  min-height: 100dvh;
  padding: 24px;
  background: #e8d3c4;
}
.is-signed-out .p-account-shell {
  max-width: 1480px;
}
.is-signed-out .p-account-top {
  margin-bottom: 18px;
  padding: 18px 26px;
  background: rgb(255 250 244 / 55%);
  backdrop-filter: blur(22px);
}
.is-signed-out .p-account-content.is-auth {
  display: block;
  max-width: none;
}
.p-auth-stage {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(390px, 0.9fr);
  min-height: min(780px, calc(100dvh - 140px));
  border-radius: 32px;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 65%);
  background: #b77d61;
  box-shadow: 0 28px 80px #52362126;
}
.p-auth-editorial {
  min-height: 660px;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.p-auth-editorial > img {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  object-fit: cover;
  object-position: 18% center;
  z-index: -2;
}
.p-auth-editorial::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, #322319b8);
  z-index: -1;
}
.p-auth-editorial-copy {
  position: absolute;
  inset: auto 42px 38px;
  color: #fffaf2;
}
.p-auth-edition {
  font:
    600 10px / 1.4 Manrope,
    sans-serif;
  letter-spacing: 0.22em;
}
.p-auth-editorial-copy h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(48px, 5vw, 78px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.04em;
  max-width: 440px;
  margin: 22px 0;
}
.p-auth-editorial-copy h2 em {
  display: block;
  font-weight: 400;
}
.p-auth-editorial-copy p {
  max-width: 300px;
  font-size: 13px;
  color: #fff5e9;
}
.p-auth-glass {
  padding: 34px clamp(28px, 4vw, 66px);
  position: relative;
  background: linear-gradient(135deg, #fffaf0de, #f6e6d6b0);
  backdrop-filter: blur(30px) saturate(1.25);
  border-left: 1px solid #ffffffa6;
  color: #362820;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.p-auth-tabs {
  display: flex;
  align-self: flex-start;
  gap: 4px;
  padding: 5px;
  border: 1px solid #fff9;
  background: #fff5;
  border-radius: 30px;
  margin-bottom: 32px;
}
.p-auth-tabs a {
  padding: 9px 23px;
  border-radius: 24px;
  font-size: 12px;
  text-decoration: none;
  color: #755846;
}
.p-auth-tabs a[aria-current] {
  background: #fffcf5;
  color: #39291f;
  box-shadow: 0 3px 12px #6b493a16;
}
.p-auth-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #926449;
  margin: 0 0 12px;
}
.p-auth-glass > h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(42px, 4vw, 58px);
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 0;
}
.p-auth-intro {
  font-size: 13px;
  color: #786252;
  line-height: 1.7;
  margin: 10px 0 26px;
}
.p-auth-form {
  display: grid;
  gap: 17px;
}
.p-auth-field {
  display: grid;
  gap: 7px;
  position: relative;
  font-size: 11px;
  font-weight: 600;
  color: #6f5545;
}
.p-auth-field input {
  width: 100%;
  min-height: 48px;
  padding: 12px 16px;
  border: 1px solid #fff9;
  border-bottom-color: #bba28c;
  border-radius: 12px;
  background: #fffcf56e;
  color: #38291e;
  font: inherit;
  font-size: 14px;
  box-shadow: inset 0 1px 0 #fff7;
}
.p-auth-field input:focus {
  outline: 2px solid #ad5b38;
  outline-offset: 3px;
  background: #fff9;
}
.p-auth-field input[type="password"] {
  padding-right: 65px;
}
.p-auth-password-toggle {
  position: absolute;
  right: 13px;
  bottom: 12px;
  border: 0;
  padding: 5px;
  background: none;
  box-shadow: none;
  color: #755846;
  font-size: 11px;
}
.p-auth-submit {
  min-height: 50px;
  border: 1px solid #76462b;
  border-radius: 13px;
  background: #513b2e;
  color: #fffaf2;
  font:
    600 13px Manrope,
    sans-serif;
  box-shadow: 0 9px 20px #583e3421;
  transition:
    background 0.2s,
    transform 0.2s;
}
.p-auth-submit:hover {
  background: #704b35;
  transform: translateY(-1px);
}
.p-auth-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
  line-height: 1.7;
  color: #715b4c;
}
.p-auth-consent input {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin: 2px 0 0;
  accent-color: #9f5436;
}
.p-auth-consent a {
  color: #713c24;
  text-underline-offset: 3px;
}
.p-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #9d8370;
  margin: 20px 0;
}
.p-auth-divider::before,
.p-auth-divider::after {
  content: "";
  height: 1px;
  background: #b8a18b55;
  flex: 1;
}
.p-auth-google {
  width: 100%;
  min-height: 46px;
  border: 1px solid #fff9;
  background: #fff8;
  border-radius: 12px;
  color: #4d3a2b;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: none;
}
.p-auth-google > span {
  font-size: 20px;
  font-weight: 700;
}
.p-auth-google:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.p-auth-provider-status {
  font-size: 10px;
  color: #806855;
  text-align: center;
  margin: 8px 0 0;
}
.p-auth-footer {
  text-align: center;
  margin-top: 22px;
  font-size: 12px;
}
.p-auth-footer a {
  color: #70452f;
  text-underline-offset: 4px;
}
.p-auth-glass .p-account-status:not(:empty) {
  font-size: 12px;
  padding: 12px;
  margin: 16px 0 0;
  background: #fff9;
  border-color: #cfaa8b;
}
.pc-settings-account {
  border-top: 1px solid #b7987c44;
  margin-top: 20px;
  padding-top: 16px;
}
.pc-settings-account h2 {
  font-size: 15px;
  margin: 0 0 12px;
}
.pc-settings-account .pc-account-entry-host {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}
.pc-settings-account .p-account-menu-options {
  bottom: 100%;
  top: auto;
}
@media (max-width: 780px) {
  .p-auth-stage {
    grid-template-columns: 1fr;
  }
  .p-auth-editorial {
    min-height: 250px;
  }
  .p-auth-editorial > img {
    object-position: center 35%;
  }
  .p-auth-editorial-copy {
    inset: auto 25px 23px;
  }
  .p-auth-editorial-copy h2 {
    font-size: 42px;
    margin: 12px 0 0;
  }
  .p-auth-editorial-copy p {
    display: none;
  }
  .p-auth-glass {
    padding: 30px 26px;
    border-left: 0;
  }
  .p-account-page.is-signed-out {
    padding: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .p-auth-submit {
    transition: none;
  }
}

/* Signed-in account studio */
.p-account-page:not(.is-signed-out) {
  background: radial-gradient(circle at 92% 1%, #e8ad8e75, transparent 34%), #f7efe7;
}
.p-account-page:not(.is-signed-out) .p-account-shell {
  max-width: 1500px;
}
.p-account-page:not(.is-signed-out) .p-account-heading {
  padding: 30px 4px 22px;
}
.p-account-page:not(.is-signed-out) .p-account-heading h1 {
  font:
    400 clamp(44px, 5vw, 72px) / 1.02 "Instrument Serif",
    Georgia,
    serif;
  letter-spacing: -0.04em;
}
.p-account-page:not(.is-signed-out) .p-account-content {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}
.p-account-rail {
  position: sticky;
  top: 22px;
  display: grid;
  justify-items: start;
  gap: 6px;
  padding: 26px 20px;
  border: 1px solid #fff9;
  border-radius: 24px;
  background: #fffaf2c9;
  backdrop-filter: blur(20px);
  box-shadow: 0 14px 35px #8863471b;
}
.p-account-rail-avatar {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 12px;
  border-radius: 20px;
  background: #54392d;
  color: #fff7ed;
  font:
    36px "Instrument Serif",
    Georgia,
    serif;
}
.p-account-rail strong {
  font-size: 17px;
}
.p-account-rail small {
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #75675c;
}
.p-account-nav {
  display: grid;
  gap: 5px;
  width: 100%;
  padding-top: 20px;
  margin-top: 18px;
  border-top: 1px solid #ddc8b7;
}
.p-account-nav a {
  padding: 12px 13px;
  border-radius: 12px;
  color: #59463d;
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  transition:
    background 0.2s,
    transform 0.2s;
}
.p-account-nav a:hover,
.p-account-nav a:focus-visible {
  background: #efdccf;
  transform: translateX(3px);
  outline-offset: 2px;
}
.p-account-rail-note {
  color: #826c5e;
  font-size: 11px;
  line-height: 1.6;
}
.p-account-workspace {
  min-width: 0;
}
.p-account-hero {
  position: relative;
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 30px clamp(24px, 4vw, 56px);
  overflow: hidden;
  border-radius: 26px;
  color: #fff5ee;
  background: linear-gradient(105deg, #33261f 5%, #76442e 60%, #b96e49);
}
.p-account-hero::after {
  content: "✦";
  position: absolute;
  right: 5%;
  top: -74px;
  color: #ffffff24;
  font-size: 280px;
  line-height: 1;
}
.p-account-hero-eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.22em;
}
.p-account-hero h2 {
  z-index: 1;
  max-width: 75%;
  margin: 0;
  font:
    400 clamp(34px, 4vw, 54px) / 1 "Instrument Serif",
    Georgia,
    serif;
}
.p-account-hero p {
  z-index: 1;
  margin: 0;
  color: #f6ded0;
  font-size: 13px;
}
.p-account-sections {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.p-account-sections .p-account-card {
  min-width: 0;
  padding: 26px;
  border: 1px solid #fff;
  border-radius: 22px;
  background: #fffcf8d6;
  backdrop-filter: blur(18px);
}
.p-account-sections .p-account-card h2 {
  font:
    400 29px "Instrument Serif",
    Georgia,
    serif;
}
.p-account-sections #account-data {
  grid-column: 1 / -1;
}
.p-account-sections #account-session {
  grid-column: 1 / -1;
  border-color: #e7c4b7;
  background: #fff8f2;
}
.p-account-sections .p-account-card button {
  min-height: 42px;
}
.p-account-sections .p-account-card button:focus-visible {
  outline: 2px solid #8d412d;
  outline-offset: 3px;
}
.p-account-sections .p-account-data-row {
  padding: 13px 0;
}
.p-account-sections .p-account-data-row strong {
  font-size: 14px;
}
@media (max-width: 980px) {
  .p-account-page:not(.is-signed-out) .p-account-content {
    grid-template-columns: 1fr;
  }
  .p-account-rail {
    position: static;
    grid-template-columns: auto 1fr;
    align-items: center;
  }
  .p-account-rail small {
    grid-column: 2;
  }
  .p-account-nav {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
  }
  .p-account-rail-note {
    display: none;
  }
}
@media (max-width: 650px) {
  .p-account-sections {
    grid-template-columns: 1fr;
  }
  .p-account-sections #account-data,
  .p-account-sections #account-session {
    grid-column: auto;
  }
  .p-account-hero h2 {
    max-width: 100%;
  }
  .p-account-hero {
    min-height: 175px;
  }
  .p-account-page:not(.is-signed-out) .p-account-heading h1 {
    font-size: 44px;
  }
  .p-account-nav a {
    padding: 10px;
  }
}

.p-account-sections #account-data > button:last-child,
.p-account-sections #account-session > button:first-of-type {
  background: transparent;
  color: #a13f35;
  border-color: #dcb4a8;
  box-shadow: none;
}
.p-account-sections #account-session > button:last-child {
  background: #53392c;
  color: #fff7f0;
  border-color: #53392c;
}

/* Crystal companion: presentation only; identity and interaction contracts stay intact. */
.p-body[data-surface="popup"] {
  background: #e7e3df;
}
.atelier-theme #product.p-compact-popup {
  --pc-bg: #e7e3df;
  --pc-card: rgba(255, 255, 255, 0.2);
  --pc-text: #26272a;
  --pc-muted: #5c5b60;
  --pc-border: rgba(255, 255, 255, 0.78);
  --pc-glass-shadow: 0 8px 26px #27212612, inset 0 1px 0 #ffffffed, inset 0 -1px 0 #ffffff50;
  --pc-control: rgba(255, 255, 255, 0.2);
  --pc-focus: #ad4c2c;
  background:
    radial-gradient(ellipse at 96% 5%, #efa77b99, transparent 48%),
    radial-gradient(ellipse at 4% 64%, #ffffffed, transparent 55%),
    radial-gradient(ellipse at 100% 90%, #777a8550, transparent 60%),
    linear-gradient(145deg, #ece9e5, #dedbd8 60%, #e8ded7);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI Variable", "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
.atelier-theme #product.p-compact-popup[data-appearance="dark"] {
  --pc-bg: #242529;
  --pc-card: rgba(100, 100, 110, 0.2);
  --pc-control: rgba(120, 120, 130, 0.2);
  --pc-text: #f7f4f1;
  --pc-muted: #c6c1be;
  --pc-border: rgba(255, 255, 255, 0.2);
  --pc-glass-shadow: 0 10px 30px #0000002b, inset 0 1px 0 #ffffff2b, inset 0 -1px 0 #ffffff09;
  --pc-focus: #ffb88e;
  background:
    radial-gradient(ellipse at 100% 4%, #c8774c70, transparent 50%),
    radial-gradient(ellipse at 4% 68%, #8b8c9d50, transparent 52%),
    linear-gradient(150deg, #303035, #1d1e22 65%, #352b29);
}
.atelier-theme #product.p-compact-popup .pc-header {
  border-color: var(--pc-border);
  background: linear-gradient(120deg, #ffffff0c, #ffffff00 45%, #ffffff08), var(--pc-card);
  border-radius: 22px;
  box-shadow: var(--pc-glass-shadow);
  backdrop-filter: blur(40px) saturate(160%);
}
.atelier-theme #product.p-compact-popup h1 {
  font-family: inherit;
  font-weight: 650;
  font-size: 29px;
  letter-spacing: -0.045em;
  line-height: 1.12;
}
.atelier-theme #product.p-compact-popup h2 {
  font-family: inherit;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.atelier-theme #product.p-compact-popup .pc-eyebrow {
  color: var(--pc-focus);
  font-size: 10px;
  letter-spacing: 0.13em;
  font-weight: 700;
}
.atelier-theme #product.p-compact-popup :is(.pc-card, .pc-profile-picker) {
  border: 1px solid var(--pc-border);
  border-radius: 22px;
  background: linear-gradient(135deg, #ffffff0c, #ffffff00 45%, #ffffff08), var(--pc-card);
  box-shadow: var(--pc-glass-shadow);
  backdrop-filter: blur(40px) saturate(160%);
}
.atelier-theme #product.p-compact-popup .pc-profile-picker {
  background-color: color-mix(in srgb, var(--pc-bg) 65%, transparent);
}
.atelier-theme
  #product.p-compact-popup
  :is(.pc-profile, .pc-icon, .p-secondary, .pc-account-action) {
  border-color: var(--pc-border);
  background: linear-gradient(160deg, #ffffff24, #ffffff00), var(--pc-control);
  color: var(--pc-text);
  box-shadow:
    0 3px 9px #2421260b,
    inset 0 1px 0 #ffffff4d;
  backdrop-filter: blur(12px);
}
.atelier-theme #product.p-compact-popup :is(.p-button, .pc-account-action) {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: -0.015em;
  border-radius: 15px;
}
.atelier-theme #product.p-compact-popup .pc-icon {
  border-radius: 50%;
  font-size: 17px;
}
.atelier-theme #product.p-compact-popup .pc-profile {
  border-radius: 18px;
}
.atelier-theme #product.p-compact-popup .p-primary {
  color: #fffaf7;
  border-color: #f7bd9ba6;
  background: linear-gradient(155deg, #d58a63, #b95f3d 60%, #a94e30);
  box-shadow:
    0 5px 15px #a14d3424,
    inset 0 1px 0 #ffe4d5b3,
    inset 0 -1px 0 #7133212b;
}
.atelier-theme #product.p-compact-popup .pc-upload {
  border: 1px dashed #9873617d;
  background: linear-gradient(135deg, #ffffff18, #efb99b16), var(--pc-control);
  color: var(--pc-muted);
  box-shadow: inset 0 1px 8px #30272808;
}
.atelier-theme #product.p-compact-popup .pc-drag {
  border-color: var(--pc-focus);
  background: #e9a47b38;
}
.atelier-theme #product.p-compact-popup .pc-form input:not([type="checkbox"]) {
  border: 1px solid var(--pc-border);
  border-radius: 12px;
  background: var(--pc-control);
  color: var(--pc-text);
  font-family: inherit;
  box-shadow:
    inset 0 2px 5px #201b1709,
    0 1px 0 #ffffff30;
}
.atelier-theme #product.p-compact-popup input::file-selector-button {
  margin-right: 8px;
  padding: 5px 9px;
  border: 1px solid var(--pc-border);
  border-radius: 8px;
  background: var(--pc-card);
  color: var(--pc-text);
  font: inherit;
}
.atelier-theme #product.p-compact-popup input[type="checkbox"] {
  accent-color: #b65d3d;
}
.atelier-theme #product.p-compact-popup :is(.pc-candidate, .pc-variant-choice) {
  border-color: var(--pc-border);
  background: var(--pc-control);
  border-radius: 13px;
  box-shadow: inset 0 1px 0 #ffffff55;
}
.atelier-theme
  #product.p-compact-popup
  :is(
    .pc-candidate-slot .pc-candidate-selected,
    .pc-variants [aria-pressed="true"],
    .pc-media-modes [aria-pressed="true"]
  ) {
  border-color: var(--pc-focus);
  color: var(--pc-text);
  background: #df94652b;
}
.atelier-theme #product.p-compact-popup .pc-media-modes {
  width: fit-content;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--pc-border);
  border-radius: 18px;
  background: #2421260a;
  box-shadow: inset 0 1px 4px #2421260b;
}
.atelier-theme #product.p-compact-popup :is(.pc-live-stage, .pc-saved-video, .pc-featured-look) {
  border-radius: 20px;
  background-color: #28282c;
  box-shadow:
    0 8px 24px #19191c18,
    0 0 0 1px var(--pc-border);
}
.atelier-theme #product.p-compact-popup .pc-video-toggle {
  border-color: #ffffff80;
  background: #2424287a;
  box-shadow:
    inset 0 1px 0 #ffffff66,
    0 5px 24px #0003;
  backdrop-filter: blur(20px);
}
.atelier-theme #product.p-compact-popup .pc-generation-progress strong {
  font-family: inherit;
  letter-spacing: -0.03em;
}
.atelier-theme #product.p-compact-popup .pc-delete {
  color: #a33f31;
}
.atelier-theme
  #product.p-compact-popup[data-appearance="dark"]
  :is(.pc-delete, .pc-saved-heading a) {
  color: #ffb08d;
}
.atelier-theme #product.p-compact-popup :is(button, a, input):focus-visible {
  outline: 2px solid var(--pc-focus);
  outline-offset: 3px;
}
@media (hover: hover) {
  .atelier-theme
    #product.p-compact-popup
    :is(.p-button, .pc-icon, .pc-profile, .pc-account-action):not(:disabled):hover {
    border-color: var(--pc-focus);
    filter: brightness(1.035);
  }
}
@media (prefers-reduced-motion: no-preference) {
  .atelier-theme
    #product.p-compact-popup
    :is(.p-button, .pc-icon, .pc-profile, .pc-account-action, .pc-candidate) {
    transition:
      transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
      box-shadow 180ms ease,
      border-color 180ms ease,
      background-color 180ms ease;
  }
  .atelier-theme
    #product.p-compact-popup
    :is(.p-button, .pc-icon, .pc-profile, .pc-account-action):not(:disabled):active {
    transform: scale(0.975);
    box-shadow: inset 0 2px 6px #201b1717;
  }
  .atelier-theme #product.p-compact-popup .pc-content {
    animation: pc-glass-arrive 260ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  }
}
@keyframes pc-glass-arrive {
  from {
    opacity: 0.65;
    translate: 0 5px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .atelier-theme #product.p-compact-popup {
    --pc-card: #f5f2ef;
    --pc-control: #eeebe8;
  }
  .atelier-theme #product.p-compact-popup[data-appearance="dark"] {
    --pc-card: #343439;
    --pc-control: #404045;
  }
}
@media (forced-colors: active) {
  .atelier-theme
    #product.p-compact-popup
    :is(.pc-card, .pc-header, .pc-profile, .pc-icon, .p-button) {
    border: 1px solid ButtonText;
    background: Canvas;
    color: CanvasText;
    box-shadow: none;
  }
}
/* Keep the existing dark-mode controls in the crystal palette. */
.atelier-theme #product.p-compact-popup[data-appearance="dark"] .p-secondary,
.atelier-theme #product.p-compact-popup :is(.pc-account-entry, .p-account-menu-toggle) {
  border-color: var(--pc-border);
  background: linear-gradient(160deg, #ffffff24, #ffffff00), var(--pc-control);
  color: var(--pc-text);
  box-shadow:
    0 3px 9px #2421260b,
    inset 0 1px 0 #ffffff4d;
  backdrop-filter: blur(12px);
}
/* Water-clear controls: retain opaque labels over the translucent material. */
.atelier-theme
  #product.p-compact-popup
  :is(
    .pc-profile,
    .pc-icon,
    .p-secondary,
    .pc-account-action,
    .pc-account-entry,
    .p-account-menu-toggle
  ),
.atelier-theme #product.p-compact-popup[data-appearance="dark"] .p-secondary {
  background: linear-gradient(160deg, #ffffff0c, transparent 48%, #ffffff08), var(--pc-control);
  backdrop-filter: blur(32px) saturate(155%);
  box-shadow:
    inset 0 1px 0 #ffffff80,
    inset 1px 0 0 #ffffff20,
    inset 0 -1px 0 #ffffff20,
    0 4px 16px #201b1710;
}

/* The embedded companion is one glass sheet over the merchant page.
   Merchant backdrop blur belongs to the host outside the isolated iframe. */
.p-body[data-surface="popup"][data-embedded="true"] {
  background: transparent;
}
.atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup {
  background: linear-gradient(135deg, #fffaf522, #f8e2d510 48%, #e3e5ed1a);
}
.atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup[data-appearance="dark"] {
  background: linear-gradient(145deg, #24242bd9, #24242bb3 60%, #372c27b8);
}
.atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup :is(.pc-header, .pc-card) {
  background: var(--pc-card);
  border-color: var(--pc-border);
  box-shadow:
    0 3px 12px #201b170b,
    inset 0 1px 0 #ffffff50;
}
@media (prefers-reduced-transparency: reduce) {
  .atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup {
    background: #f2eeea;
  }
  .atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup[data-appearance="dark"] {
    background: #24242b;
  }
}
@media (forced-colors: active) {
  .atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup,
  .atelier-theme.p-body[data-embedded="true"] #product.p-compact-popup[data-appearance="dark"] {
    background: Canvas;
  }
}

/* Keep browsing text free of an editing caret without preventing text selection. */
body {
  caret-color: transparent;
}
input,
textarea,
[contenteditable="true"],
[contenteditable="plaintext-only"] {
  caret-color: auto;
}

.p-guest-transfer {
  max-width: 540px;
  border-radius: 24px;
  padding: 28px;
}
.p-guest-transfer .p-button {
  display: block;
  margin-top: 12px;
  width: 100%;
}
.pc-camera-guide[hidden],
.pc-camera-instruction[hidden] {
  display: none;
}
.p-analytics-control {
  position: fixed;
  z-index: 1000;
  left: 1rem;
  bottom: 1rem;
  padding: 0.6rem 0.85rem;
  border: 1px solid rgba(77, 49, 38, 0.25);
  border-radius: 999px;
  background: rgba(255, 249, 241, 0.88);
  color: #392922;
  box-shadow: 0 8px 28px rgba(56, 36, 28, 0.14);
  backdrop-filter: blur(18px);
  cursor: pointer;
}

.p-analytics-panel {
  position: fixed;
  z-index: 1001;
  left: 1rem;
  bottom: 4.5rem;
  width: min(24rem, calc(100vw - 2rem));
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: 1.25rem;
  background: rgba(255, 249, 241, 0.94);
  color: #392922;
  box-shadow: 0 20px 60px rgba(56, 36, 28, 0.2);
  backdrop-filter: blur(24px);
}
.p-analytics-panel[hidden] {
  display: none;
}
.p-analytics-panel p {
  margin: 0.6rem 0 1rem;
  line-height: 1.5;
}
.p-analytics-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.p-analytics-actions button {
  padding: 0.6rem 0.85rem;
  border: 1px solid #ad6447;
  border-radius: 999px;
  background: transparent;
  color: #6a3829;
  cursor: pointer;
}
.p-analytics-actions button:last-child {
  background: #aa4d35;
  color: white;
}
.p-analytics-panel small {
  display: block;
  margin-top: 0.5rem;
}
