:root {
  --page-bg: #050505;
  --page-glow: rgba(214, 113, 31, 0.18);
  --shell-bg: #0f0f10;
  --shell-surface: #171718;
  --shell-surface-strong: #1d1d1f;
  --shell-surface-soft: #141416;
  --text: #f4efe6;
  --text-soft: rgba(244, 239, 230, 0.68);
  --text-muted: rgba(244, 239, 230, 0.46);
  --border: rgba(255, 255, 255, 0.08);
  --accent: #db7124;
  --accent-strong: #f08d42;
  --accent-purple: #4b2282;
  --accent-purple-soft: #6b34b3;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 10px 24px rgba(0, 0, 0, 0.28);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell-max: 470px;

  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-md: 15px;
  --font-size-lg: 20px;
  --font-size-xl: clamp(30px, 9vw, 44px);

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

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

body {
  color-scheme: dark;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(720px 420px at 50% -5%, var(--page-glow), transparent 58%),
    linear-gradient(180deg, #111112 0%, var(--page-bg) 100%);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.app-shell {
  position: relative;
  height: 100dvh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100%, var(--shell-max));
  margin: 0 auto;
  background:
    radial-gradient(420px 260px at 50% 0%, rgba(219, 113, 36, 0.08), transparent 62%),
    linear-gradient(180deg, #151516 0%, var(--shell-bg) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04),
    0 0 0 9999px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: rgba(5, 5, 5, 0.9);
  transition: opacity 360ms ease, visibility 360ms ease;
}

.splash-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.splash-card {
  position: relative;
  width: min(100%, var(--shell-max));
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  padding: 42px 24px 24px;
  overflow: hidden;
  background:
    radial-gradient(360px 220px at 50% 18%, rgba(219, 113, 36, 0.2), transparent 64%),
    radial-gradient(280px 180px at 50% 72%, rgba(255, 255, 255, 0.04), transparent 68%),
    linear-gradient(180deg, #161617 0%, #0f0f10 100%);
}

.splash-brand-lockup {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  padding-top: 8px;
  text-align: center;
  animation: splashBrandReveal 0.9s ease both;
}

.splash-logo {
  width: min(24vw, 92px);
  height: auto;
  display: block;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.44));
}

.splash-brand-copy {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.splash-brand-title {
  font-size: clamp(26px, 7vw, 36px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.96;
  color: #fff6ee;
}

.splash-brand-tagline {
  max-width: 250px;
  font-size: clamp(15px, 4.2vw, 18px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: rgba(255, 236, 220, 0.96);
}

.splash-montage {
  position: relative;
  z-index: 1;
  width: 100%;
  flex: 1;
  min-height: 0;
}

.splash-montage::before {
  content: "";
  position: absolute;
  inset: 16% 8% 14%;
  border-radius: 40px;
  background:
    radial-gradient(220px 180px at 50% 50%, rgba(219, 113, 36, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  filter: blur(10px);
}

.splash-shot {
  position: absolute;
  margin: 0;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  box-shadow:
    0 22px 50px rgba(0, 0, 0, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  opacity: 0;
  filter: blur(14px);
  transform-origin: center;
  animation: splashShotReveal 1.55s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.splash-shot--1 {
  --shot-rotate: -11deg;
  top: 10%;
  left: 2%;
  width: 34%;
  aspect-ratio: 4 / 5;
  transform: rotate(var(--shot-rotate)) translateY(18px) scale(0.84);
  animation-delay: 0.08s;
}

.splash-shot--2 {
  --shot-rotate: 10deg;
  top: 4%;
  right: 4%;
  width: 31%;
  aspect-ratio: 3 / 4;
  transform: rotate(var(--shot-rotate)) translateY(20px) scale(0.82);
  animation-delay: 0.24s;
}

.splash-shot--3 {
  --shot-rotate: -2deg;
  top: 23%;
  left: 27%;
  width: 46%;
  aspect-ratio: 4 / 5;
  z-index: 2;
  transform: rotate(var(--shot-rotate)) translateY(24px) scale(0.8);
  animation-delay: 0.4s;
}

.splash-shot--4 {
  --shot-rotate: -7deg;
  bottom: 13%;
  left: 7%;
  width: 33%;
  aspect-ratio: 3 / 4;
  transform: rotate(var(--shot-rotate)) translateY(22px) scale(0.82);
  animation-delay: 0.56s;
}

.splash-shot--5 {
  --shot-rotate: 8deg;
  bottom: 9%;
  right: 7%;
  width: 35%;
  aspect-ratio: 4 / 5;
  transform: rotate(var(--shot-rotate)) translateY(22px) scale(0.84);
  animation-delay: 0.72s;
}

.splash-shot-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.splash-shot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), transparent 28%, rgba(0, 0, 0, 0.14));
  pointer-events: none;
}

@media (max-width: 420px) {
  .splash-card {
    padding-top: 36px;
    gap: 24px;
  }

  .splash-montage {
    transform: scale(0.96);
    transform-origin: top center;
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(15, 15, 16, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.app-header-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  justify-self: start;
}

.app-header-center {
  min-width: 0;
  display: flex;
  justify-content: center;
}

.app-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: default;
  min-width: 0;
  text-align: center;
}

.app-brand-copy {
  display: grid;
  line-height: 1;
  justify-items: center;
}

.app-brand-title,
.app-brand-copy small,
.lang-link,
.lang-divider,
.status-chip,
.footer-link {
  font-size: var(--font-size-xs);
}

.app-brand-title {
  font-weight: var(--font-weight-medium);
  letter-spacing: -0.01em;
}

.app-brand-copy small {
  margin-top: 4px;
  color: var(--text-soft);
  font-weight: var(--font-weight-regular);
}

.app-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  justify-self: end;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.lang-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-weight: var(--font-weight-regular);
}

.lang-link--active {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.lang-divider {
  color: var(--text-muted);
}

.status-chip,
.icon-button,
.action-button,
.upload-dropzone {
  border: 1px solid transparent;
}

.icon-button {
  min-height: 38px;
  min-width: 38px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  display: grid;
  place-items: center;
  font-size: 15px;
}

.icon-button--back {
  min-width: auto;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #d8c3ff;
  background: rgba(107, 52, 179, 0.16);
  border-color: rgba(107, 52, 179, 0.24);
}

.icon-button-back-arrow {
  font-size: 22px;
  line-height: 1;
}

.icon-button-back-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.icon-button--profile {
  position: relative;
  color: #f4dcff;
  background: linear-gradient(180deg, rgba(107, 52, 179, 0.32) 0%, rgba(75, 34, 130, 0.4) 100%);
  border-color: rgba(160, 103, 237, 0.46);
  box-shadow:
    0 0 0 1px rgba(160, 103, 237, 0.1),
    0 10px 24px rgba(75, 34, 130, 0.28);
}

.icon-button--profile::after {
  content: "";
  position: absolute;
  top: 7px;
  right: 7px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #f08d42;
  box-shadow: 0 0 10px rgba(240, 141, 66, 0.7);
}

.icon-button--profile svg {
  width: 20px;
  height: 20px;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 12px;
  border-radius: 999px;
  font-weight: var(--font-weight-medium);
  letter-spacing: 0.02em;
  color: #f0b17e;
  background: rgba(219, 113, 36, 0.14);
  border-color: rgba(219, 113, 36, 0.18);
}

.profile-shell {
  width: 100%;
}

.profile-content {
  width: 100%;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 12px;
  align-content: start;
  padding-right: 2px;
}

.profile-card {
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 12px;
}

.profile-card--centered {
  justify-items: center;
  text-align: center;
}

.profile-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-card-label,
.profile-detail-label {
  font-size: var(--font-size-xs);
  color: var(--text-muted);
}

.profile-card-value,
.profile-detail-value {
  color: var(--text);
  font-weight: var(--font-weight-medium);
}

.profile-card-value {
  font-size: var(--font-size-md);
}

.profile-detail-grid,
.profile-images-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-detail-tile,
.profile-image-tile {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  display: grid;
  gap: 6px;
}

.profile-image-resolution {
  font-size: 13px;
  color: var(--text-soft);
}

.profile-image-count {
  font-size: 20px;
  color: var(--text);
  font-weight: var(--font-weight-medium);
}

.profile-status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: #f0b17e;
  background: rgba(219, 113, 36, 0.14);
  border: 1px solid rgba(219, 113, 36, 0.2);
}

.profile-status-badge--active {
  color: #d8c3ff;
  background: rgba(107, 52, 179, 0.18);
  border-color: rgba(107, 52, 179, 0.26);
}

.profile-status-badge--expired {
  color: #ffb4b4;
  background: rgba(180, 58, 58, 0.16);
  border-color: rgba(180, 58, 58, 0.24);
}

.profile-error-text {
  color: #ff8d8d;
}

.profile-legal-links {
  display: grid;
  gap: 10px;
}

.profile-legal-link {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-soft);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: left;
}

.profile-legal-link--button {
  width: 100%;
  font: inherit;
  cursor: pointer;
}

.app-main {
  min-height: 0;
  height: 100%;
  padding: 22px 20px 18px;
  overflow: hidden;
}

.screen {
  display: none;
  height: 100%;
}

.screen--active {
  display: block;
}

.screen--entry {
  height: 100%;
}

.screen--workflow {
  height: 100%;
}

.surface-card {
  border-radius: var(--radius-xl);
  background: var(--shell-surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.surface-card--strong {
  background: var(--shell-surface-strong);
}

.surface-card--nested {
  background: var(--shell-surface-soft);
  box-shadow: var(--shadow-soft);
}

.entry-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: stretch;
  padding-top: 28px;
  justify-items: center;
  text-align: center;
  gap: 30px;
}

.entry-copy {
  max-width: 300px;
}

.entry-actions {
  width: 100%;
  max-width: 300px;
  display: grid;
  align-self: center;
  gap: 12px;
}

.workflow-shell {
  height: 100%;
  display: grid;
  grid-template-rows: auto auto 1fr;
  align-content: stretch;
  justify-items: center;
  text-align: center;
  gap: 20px;
  padding-top: 12px;
}

.workflow-shell--confirm {
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.workflow-shell--wizard {
  grid-template-rows: auto 1fr auto;
  gap: 12px;
}

.screen-support-text {
  margin: 6px auto 0;
  max-width: 300px;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.screen-support-text p {
  margin: 0;
}

.screen-support-note {
  margin-top: 6px !important;
  color: #f0b17e;
}

.button-support-text {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.55;
  text-align: center;
}

.button-support-text--wide {
  max-width: 300px;
  margin-inline: auto;
}

.support-text--alert {
  color: #e56a6a !important;
}

.support-text-inline-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.section-head {
  margin-bottom: 0;
}

.section-head--tight {
  margin-bottom: 0;
}

.page-title,
.page-subtitle {
  margin: 0;
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.page-title {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
}

.page-subtitle {
  font-size: clamp(26px, 8vw, 36px);
  font-weight: var(--font-weight-semibold);
}

.workflow-title {
  margin: 0;
  font-size: clamp(20px, 5.3vw, 25px);
  font-weight: var(--font-weight-medium);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.body-text {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-size-md);
  line-height: 1.65;
}

.body-text--small {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.meta-chip--soft {
  color: var(--accent-strong);
  background: rgba(219, 113, 36, 0.12);
}

.action-button {
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #e67e34 0%, #c9641d 100%);
  border-color: rgba(255, 255, 255, 0.12);
  color: #fff8f1;
  font-size: 15px;
  font-weight: var(--font-weight-medium);
  box-shadow: 0 14px 32px rgba(201, 100, 29, 0.28);
}

.action-button:disabled {
  opacity: 0.62;
  cursor: default;
  box-shadow: none;
}

.workflow-actions {
  width: 100%;
  max-width: 300px;
  display: grid;
  align-self: center;
  gap: 10px;
}

.workflow-actions--bottom {
  align-self: end;
}

.upload-guidance {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: center;
  justify-items: center;
}

.upload-tips-card {
  width: 232px;
  display: grid;
  gap: 8px;
  justify-items: stretch;
}

.upload-tips-card-title {
  margin: 0;
  color: var(--text-soft);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  text-align: center;
}

.upload-tips-card-media-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
}

.upload-tips-card-arrow {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(244, 239, 230, 0.84);
  font-size: 24px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
}

.upload-tips-card-arrow:disabled {
  opacity: 0.35;
}

.upload-tips-card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(107, 52, 179, 0.12), transparent 72%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.upload-tips-overlay-zone {
  position: absolute;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease, border-color 0.4s ease, background-color 0.4s ease;
  z-index: 2;
}

.upload-tips-overlay-zone--body {
  top: 0;
  height: 55%;
  border: 2.5px dashed rgba(0, 0, 0, 0.95);
  border-bottom: none;
  background: rgba(255, 255, 255, 0.02);
  border-top-left-radius: 22px;
  border-top-right-radius: 22px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
  animation: pulse-body 1.8s infinite ease-in-out;
}

.upload-tips-overlay-zone--pallu {
  bottom: 0;
  height: 45%;
  border: 2.5px dashed rgba(0, 0, 0, 0.95);
  background: rgba(219, 113, 36, 0.04);
  border-bottom-left-radius: 22px;
  border-bottom-right-radius: 22px;
  box-shadow: inset 0 0 12px rgba(219, 113, 36, 0.25);
  animation: pulse-pallu 1.8s infinite ease-in-out;
}

.upload-tips-overlay-zone[hidden] {
  display: none !important;
}

.upload-tips-overlay-zone:not([hidden]) {
  opacity: 1;
}

.upload-tips-overlay-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  animation: pulse-chip 1.8s infinite ease-in-out;
}

@keyframes pulse-chip {
  0%, 100% {
    transform: scale(0.96);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  }
  50% {
    transform: scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45);
  }
}

.upload-tips-overlay-zone--body .upload-tips-overlay-label {
  background: rgba(0, 0, 0, 0.6);
  color: var(--text-soft);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.upload-tips-overlay-zone--pallu .upload-tips-overlay-label {
  background: rgba(25, 10, 0, 0.88);
  color: #f8c49a;
  border: 1px solid rgba(219, 113, 36, 0.4);
}

@keyframes pulse-body {
  0%, 100% {
    background-color: rgba(255, 255, 255, 0.02);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.1);
  }
  50% {
    background-color: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 0, 0, 0.95);
    box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.35);
  }
}

@keyframes pulse-pallu {
  0%, 100% {
    background-color: rgba(219, 113, 36, 0.03);
    border-color: rgba(0, 0, 0, 0.4);
    box-shadow: inset 0 0 4px rgba(219, 113, 36, 0.15);
  }
  50% {
    background-color: rgba(219, 113, 36, 0.1);
    border-color: rgba(0, 0, 0, 0.95);
    box-shadow: inset 0 0 20px rgba(219, 113, 36, 0.45);
  }
}

.upload-tips-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.upload-tips-card-copy {
  margin: 0;
  width: 100%;
  color: var(--text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.55;
  text-align: center;
}

.confirm-preview-card {
  width: 100%;
  display: grid;
  justify-items: center;
}

.confirm-preview-frame {
  position: relative;
  width: min(100%, 172px);
  aspect-ratio: 3 / 4;
  border-radius: 24px;
  overflow: hidden;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(219, 113, 36, 0.1), transparent 72%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.confirm-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.confirm-preview-empty {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
}

.confirm-status-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(10, 10, 10, 0.52);
  backdrop-filter: blur(8px);
}

.action-overlay {
  position: absolute;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(5, 5, 5, 0.48);
  backdrop-filter: blur(10px);
}

.action-overlay-card {
  min-width: 180px;
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(20, 20, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.confirm-modal-card {
  width: min(100%, 320px);
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 22px;
  background: rgba(20, 20, 22, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
  text-align: center;
}

.confirm-modal-title {
  margin: 0;
  color: var(--text);
  font-size: 20px;
  font-weight: var(--font-weight-medium);
  line-height: 1.2;
}

.confirm-modal-message {
  color: var(--text-soft);
}

.confirm-modal-actions {
  display: grid;
  gap: 10px;
}

.confirm-modal-actions .action-button {
  min-height: 46px;
  font-size: 14px;
}

.confirm-modal-actions .secondary-button {
  min-height: 34px;
  font-size: 11px;
}

.contact-modal-details {
  display: grid;
  gap: 10px;
  text-align: left;
}

.contact-modal-detail-row {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-modal-detail-label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.contact-modal-detail-value {
  font-size: 14px;
  color: var(--text);
  font-weight: var(--font-weight-medium);
  word-break: break-word;
}

.contact-modal-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-modal-action-row .secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.confirm-status-copy {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px;
}

.loader-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent-strong);
  animation: spin 900ms linear infinite;
}

.confirm-lower-panel {
  width: 100%;
  min-height: 0;
  height: 100%;
  display: grid;
  align-content: start;
  justify-items: center;
}

.confirm-state {
  width: 100%;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
}

.confirm-state--ready {
  min-height: 0;
  align-content: start;
}

.confirm-state--idle {
  align-self: center;
  padding-top: 0;
}

.confirm-guidance,
.confirm-error-text {
  text-align: center;
}

.garment-questions-list {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.question-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.question-label {
  font-size: 16px;
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.question-hint {
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.35;
}

.question-input,
.question-select,
.question-textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 15px;
}

.question-input,
.question-select {
  min-height: 40px;
  padding: 0 12px;
}

.question-textarea {
  min-height: 72px;
  padding: 10px 12px;
  resize: none;
}

.toggle-row {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  gap: 4px;
}

.toggle-button {
  min-height: 30px;
  min-width: 64px;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.toggle-button.is-selected {
  background: rgba(219, 113, 36, 0.18);
  color: var(--text);
}

.optional-flats-list {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 12px;
}

.model-selection-groups {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-right: 4px;
}

.resolution-aspect-divider {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resolution-aspect-divider::before,
.resolution-aspect-divider::after {
  content: "";
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}

.phone-auth-layout {
  width: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
}

.phone-auth-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

.phone-auth-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.phone-auth-number-row {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
}

.phone-auth-country-code,
.phone-auth-number-input,
.otp-digit-input {
  min-height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.phone-auth-country-code {
  display: grid;
  place-items: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
}

.phone-auth-number-input {
  width: 100%;
  padding: 0 12px;
  font-size: 15px;
  letter-spacing: 0.04em;
}

.phone-auth-inline-actions {
  display: grid;
  gap: 8px;
}

.phone-auth-consent {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
}

.phone-auth-consent-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
}

.phone-auth-consent-copy {
  display: block;
}

.otp-input-row {
  display: grid;
  grid-template-columns: repeat(4, 42px);
  gap: 8px;
  width: fit-content;
  margin: 0 auto;
}

.otp-digit-input {
  width: 42px;
  padding: 0;
  text-align: center;
  font-size: 17px;
  font-weight: var(--font-weight-medium);
}

.otp-digit-input--error {
  border-color: rgba(224, 72, 72, 0.86);
  box-shadow: 0 0 0 2px rgba(224, 72, 72, 0.14);
}

.phone-auth-number-input:focus,
.otp-digit-input:focus {
  outline: none;
  border-color: rgba(240, 141, 66, 0.52);
  box-shadow: 0 0 0 2px rgba(219, 113, 36, 0.14);
}

.phone-auth-resend-row {
  display: grid;
  gap: 8px;
}

.phone-auth-countdown {
  text-align: center;
}

.phone-auth-status-error {
  color: #ff8d8d;
}

#phoneAuthOtpStatusText {
  color: #ff8d8d;
}

.action-button--compact {
  min-height: 46px;
  font-size: 14px;
}

.model-selection-group {
  display: grid;
  gap: 8px;
  text-align: left;
}

.model-selection-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.model-selection-error {
  color: #f0b17e;
}

.background-selection-grid {
  width: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.background-tile {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.background-tile-thumb-container {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.background-tile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.background-tile-content {
  flex-grow: 1;
  display: grid;
  gap: 4px;
  min-width: 0;
}

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

.background-tile.is-selected {
  background: rgba(219, 113, 36, 0.12);
  border-color: rgba(240, 141, 66, 0.42);
}

.background-tile-label {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.background-tile-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(219, 113, 36, 0.18);
  color: #f8c49a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.background-tile-help {
  color: var(--text-soft);
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

.background-selection-loading {
  padding: 12px 0;
}

.background-selection-error {
  color: #f0b17e;
}

.optional-flat-card {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.optional-flat-thumb {
  width: 64px;
  aspect-ratio: 3 / 4;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120px 80px at 50% 0%, rgba(219, 113, 36, 0.08), transparent 70%),
    rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
}

.optional-flat-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.optional-flat-thumb-label {
  color: var(--text-muted);
  font-size: 11px;
  text-align: center;
  line-height: 1.2;
  padding: 8px;
}

.optional-flat-content {
  display: grid;
  gap: 8px;
  justify-items: start;
  text-align: left;
}

.optional-flat-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.optional-flat-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.optional-flat-help {
  color: var(--text-soft);
  font-size: var(--font-size-xs);
  line-height: 1.45;
}

.secondary-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 11px;
  font-weight: var(--font-weight-medium);
}

.secondary-button:disabled {
  opacity: 0.42;
  cursor: default;
  box-shadow: none;
  filter: grayscale(0.18);
}

.secondary-button--mobile-disabled {
  position: relative;
  opacity: 0.58 !important;
  color: rgba(244, 239, 230, 0.62);
}

.secondary-button--mobile-disabled::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 50%;
  height: 2px;
  background: rgba(230, 78, 78, 0.95);
  transform: translateY(-50%) rotate(-7deg);
  transform-origin: center;
  box-shadow: 0 0 6px rgba(230, 78, 78, 0.32);
  pointer-events: none;
}

.secondary-button--purple {
  background: linear-gradient(180deg, var(--accent-purple-soft) 0%, var(--accent-purple) 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f8f1ff;
  box-shadow: 0 10px 24px rgba(75, 34, 130, 0.28);
}

.secondary-button--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.1);
  color: var(--text-soft);
}

.garment-type-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.garment-type-select {
  width: 100%;
  grid-column: 1 / -1;
  min-height: 46px;
  font-size: 14px;
}

.garment-type-tile {
  position: relative;
  overflow: hidden;
  min-height: 54px;
  padding: 8px 10px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  text-align: center;
  font-size: 12px;
  line-height: 1.25;
  font-weight: var(--font-weight-medium);
}

.garment-type-tile.is-selected {
  background: rgba(219, 113, 36, 0.18);
  border-color: rgba(240, 141, 66, 0.42);
  color: var(--text);
}

.garment-type-tile.is-disabled,
.garment-type-tile:disabled {
  opacity: 0.38;
  cursor: default;
}

.resolution-choice-tile {
  min-height: 68px;
  display: grid;
  align-content: center;
  gap: 4px;
}

.preset-choice-tile {
  min-height: 78px;
  padding: 12px;
  text-align: left;
  display: grid;
  gap: 8px;
  align-content: start;
  grid-column: 1 / -1;
}

.preset-choice-label {
  display: block;
  font-size: 14px;
  line-height: 1.2;
  font-weight: var(--font-weight-medium);
  color: var(--text);
}

.preset-choice-top-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.preset-choice-help {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-soft);
}

.resolution-aspect-manual-anchor {
  scroll-margin-top: 12px;
}

.resolution-choice-label {
  display: block;
  font-size: 13px;
  line-height: 1.15;
  font-weight: var(--font-weight-medium);
}

.resolution-choice-badge {
  align-self: center;
  margin-bottom: 2px;
}

.resolution-choice-help {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: var(--text-muted);
}

.resolution-choice-tile.is-disabled::after,
.resolution-choice-tile:disabled::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -12%;
  width: 124%;
  height: 1.5px;
  background: rgba(227, 73, 73, 0.95);
  transform: rotate(-28deg);
  box-shadow: 0 0 10px rgba(227, 73, 73, 0.2);
}

.resolution-choice-tile.is-disabled .resolution-choice-help,
.resolution-choice-tile:disabled .resolution-choice-help {
  color: rgba(227, 73, 73, 0.75);
}

.resolution-aspect-hint {
  margin-top: -2px;
}

.generate-result-panel {
  width: 100%;
  min-height: 0;
  height: 100%;
  align-self: stretch;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: 8px;
}

.generate-result-panel--primary {
  grid-template-rows: minmax(0, 1fr);
}

.generate-result-panel--pose {
  grid-template-rows: minmax(0, 1fr) auto auto;
}

.generate-result-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
  justify-self: center;
  align-self: center;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(220px 120px at 50% 0%, rgba(219, 113, 36, 0.1), transparent 72%),
    rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
}

.generate-result-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.generate-recovery-state {
  width: min(100%, 260px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 20px;
  text-align: center;
}

.generate-recovery-text {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.generate-recovery-text--alert {
  color: #e56a6a;
}

.generate-recovery-button {
  width: 100%;
  min-height: 52px;
}

.pose-gallery-caption {
  color: var(--text-soft);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  text-align: center;
}

.pose-gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 34px;
  margin-top: -17px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 13, 0.64);
  color: var(--text);
  display: grid;
  place-items: center;
  font-size: 24px;
  line-height: 1;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
}

.pose-gallery-arrow--left {
  left: 10px;
}

.pose-gallery-arrow--right {
  right: 10px;
}

.pose-gallery-right-cue {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.pose-gallery-right-cue-gradient {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 72px;
  background: linear-gradient(270deg, rgba(15, 15, 16, 0.18) 0%, rgba(15, 15, 16, 0) 100%);
}

.pose-gallery-right-cue-arrow {
  position: absolute;
  top: 50%;
  right: 18px;
  transform: translateY(-50%);
  color: rgba(244, 239, 230, 0.72);
  font-size: 26px;
  line-height: 1;
  animation: poseCuePulse 1.15s ease-in-out infinite;
}

.secondary-button--full {
  width: 100%;
  justify-content: center;
}

.secondary-action-row {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.secondary-action-row--single {
  grid-template-columns: minmax(0, 1fr);
}

.app-footer {
  position: relative;
  z-index: 20;
  width: 100%;
  padding: 12px 20px calc(12px + env(safe-area-inset-bottom));
  background: rgba(15, 15, 16, 0.96);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
}

.app-footer-row--utility {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-footer-row--utility > * {
  flex: 1 1 0;
}

.footer-chip {
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.footer-chip--balance {
  color: #d8c3ff;
  background: rgba(107, 52, 179, 0.16);
  border-color: rgba(107, 52, 179, 0.24);
}

.footer-chip--recharge {
  color: #f8ebdf;
  background: rgba(219, 113, 36, 0.16);
  border-color: rgba(219, 113, 36, 0.24);
}

.footer-chip--images {
  color: #efe7ff;
  background: rgba(84, 100, 214, 0.16);
  border-color: rgba(84, 100, 214, 0.26);
}

.footer-chip[hidden] {
  display: none !important;
}

.my-images-shell {
  width: 100%;
  height: 100%;
  gap: 18px;
  grid-template-rows: auto auto 1fr auto;
}

.my-images-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.my-images-control-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 4px 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.my-images-control-group--filter {
  min-width: 0;
}

.my-images-control-group--pager {
  justify-self: end;
}

.my-images-control-group--pager .my-images-icon-button--accent {
  color: #fff7ef;
  background: linear-gradient(180deg, #f08f3e 0%, #da6f1d 100%);
  border-color: rgba(255, 168, 86, 0.44);
  box-shadow: 0 10px 24px rgba(195, 101, 23, 0.24);
}

.my-images-date-input {
  min-height: 38px;
  border-radius: 14px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  padding: 0 8px;
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  min-width: 0;
}

.my-images-date-input-wrap {
  position: relative;
  min-width: 0;
  flex: 1 1 auto;
}

.my-images-date-placeholder {
  position: absolute;
  inset: 50% auto auto 8px;
  transform: translateY(-50%);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  pointer-events: none;
}

.my-images-date-input-wrap:focus-within .my-images-date-placeholder {
  opacity: 0;
}

@media (min-width: 521px) {
  .my-images-date-placeholder {
    display: none;
  }
}

.my-images-date-input::-webkit-calendar-picker-indicator {
  filter: invert(0.92);
  cursor: pointer;
}

.my-images-icon-button {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.my-images-icon-button--accent {
  color: #f7efff;
  background: rgba(107, 52, 179, 0.26);
  border-color: rgba(160, 103, 237, 0.28);
  box-shadow: 0 10px 24px rgba(75, 34, 130, 0.22);
}

.my-images-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
  align-content: start;
  padding-right: 2px;
}

.my-images-card {
  width: 100%;
  border-radius: 26px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: var(--shadow-card);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.my-images-card-time {
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
}

.my-images-card-thumb-frame {
  width: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.05);
  min-height: 184px;
  max-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-images-card-thumb {
  display: block;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.my-images-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
}

.my-images-card-meta-value {
  color: var(--text-secondary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
}

.my-images-end-note {
  text-align: center;
  color: var(--text-soft);
  padding: 6px 8px 2px;
}

.my-images-pagination-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.my-images-viewer-frame {
  width: 100%;
  min-height: 220px;
  max-height: 62vh;
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.my-images-viewer-image {
  max-width: 100%;
  max-height: 62vh;
  width: auto;
  object-fit: contain;
  display: block;
}

.my-images-viewer-loading {
  width: 100%;
  min-height: 220px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.confirm-modal-card--image-viewer {
  width: calc(100vw - 40px);
  max-width: 400px;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

@media (max-width: 520px) {
  .my-images-filter-row {
    gap: 8px;
  }

  .my-images-control-group {
    gap: 6px;
    padding: 4px 6px;
  }

  .my-images-control-group--filter,
  .my-images-control-group--pager {
    min-width: 0;
  }

  .my-images-control-group--pager {
    justify-self: end;
  }

  .my-images-date-input {
    padding: 0 6px;
    font-size: 11px;
  }

  .my-images-date-placeholder {
    left: 6px;
    font-size: 11px;
  }

  #myImagesApplyButton {
    display: inline-flex;
  }

  .my-images-icon-button {
    width: 32px;
    height: 32px;
    font-size: 17px;
  }

  .my-images-card-thumb-frame {
    min-height: 166px;
    max-height: 194px;
  }

  .my-images-card-thumb {
    max-height: 194px;
  }

  .confirm-modal-card--image-viewer {
    width: calc(100vw - 28px);
    max-width: none;
  }
}

@keyframes splashLogoReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.82);
  }
  60% {
    opacity: 1;
    transform: translateY(0) scale(1.03);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashBrandReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes splashShotReveal {
  0% {
    opacity: 0;
    filter: blur(14px);
  }
  45% {
    opacity: 1;
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: rotate(var(--shot-rotate, 0deg)) translateY(0) scale(1);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes poseCuePulse {
  0%,
  100% {
    opacity: 0.28;
    transform: translateY(-50%) translateX(0);
  }
  50% {
    opacity: 0.9;
    transform: translateY(-50%) translateX(4px);
  }
}



@media (min-width: 820px) {
  body {
    padding: 0 24px;
  }

  .app-shell {
    min-height: 100vh;
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .app-header {
    padding: 16px 20px;
  }

  .app-main {
    padding: 24px 22px 18px;
  }

  .entry-shell {
    padding-top: 30px;
  }

  .workflow-shell {
    padding-top: 14px;
  }
}

/* Model Selection Accordion & Grid Styles */
.model-selection-groups {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

.model-accordion {
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: all 0.3s ease;
}

.model-accordion.is-expanded {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.12);
}

.model-accordion-header {
  width: 100%;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: none;
  color: var(--text-soft);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  text-align: left;
  transition: color 0.3s ease;
}

.model-accordion-header:hover {
  color: var(--text);
}

.model-accordion.is-expanded .model-accordion-header {
  color: var(--text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.model-accordion-chevron {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
  transition: transform 0.3s ease;
}

.model-accordion.is-expanded .model-accordion-chevron {
  transform: rotate(180deg);
  color: var(--brand-gold, #db7124);
}

.model-accordion-panel {
  padding: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-accordion.is-expanded .model-accordion-panel {
  padding: 16px;
  height: auto;
  max-height: 300px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  opacity: 1;
}

@media (min-height: 700px) {
  .model-accordion.is-expanded .model-accordion-panel {
    max-height: 40vh;
  }
}

@media (min-width: 820px) and (min-height: 800px) {
  .model-accordion.is-expanded .model-accordion-panel {
    max-height: 480px;
  }
}

.model-accordion-panel::-webkit-scrollbar {
  width: 4px;
}
.model-accordion-panel::-webkit-scrollbar-track {
  background: transparent;
}
.model-accordion-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.model-thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  width: 100%;
  padding-bottom: 20px;
}

@media (min-width: 500px) {
  .model-thumbnail-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.model-thumbnail-card {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.model-thumbnail-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.model-thumbnail-card.is-selected {
  border-color: var(--brand-gold, #db7124);
  box-shadow: 0 4px 14px rgba(219, 113, 36, 0.3);
}

.model-thumbnail-card-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--brand-gold, #db7124);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
