.neuro-preview {
  --np-orange: #fb7d12;
  --np-orange-dark: #e96800;
  --np-ink: #34343f;
  --np-muted: #777782;
  --np-line: #ece8e3;
  --np-soft: #fff8f0;
  background: linear-gradient(180deg, #fffaf5 0, #fff 520px);
  padding: 22px 20px 90px;
}

.neuro-preview * { box-sizing: border-box; }
.neuro-preview__shell { max-width: 1240px; margin: 0 auto; }
.neuro-preview__header { position: static; z-index: auto; top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin: 0 0 18px; background: transparent; box-shadow: none; }
.neuro-preview__header h1 { margin: 0 0 3px; color: var(--np-ink); font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -.035em; }
.neuro-preview__header p { margin: 0; color: var(--np-muted); font-size: 18px; }
.neuro-preview__eyebrow { display: inline-flex; padding: 7px 12px; border-radius: 999px; background: #fff0de; color: var(--np-orange-dark); font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.neuro-preview__privacy { flex: 0 0 auto; padding: 11px 15px; border: 1px solid #eadfd4; border-radius: 14px; background: #fff; color: #68636a; font-size: 14px; }
.neuro-preview__top-generate { display: flex; flex: 0 0 auto; min-height: 52px; align-items: center; justify-content: center; gap: 10px; padding: 12px 22px; border: 0; border-radius: 16px; background: linear-gradient(135deg, #ff8b22, #f46c00); box-shadow: 0 10px 22px rgba(235,105,0,.22); color: #fff; font-size: 17px; font-weight: 800; cursor: pointer; transition: transform .2s, opacity .2s, box-shadow .2s; }
.neuro-preview__guest-login { text-decoration: none; }
.neuro-preview.is-guest-preview:not(:has(.neuro-upload-slot--primary.has-image)) .neuro-preview__workspace { display: none; }
.neuro-preview.is-guest-preview:not(:has(.neuro-upload-slot--primary.has-image)) .neuro-preview__photos-bar { margin-bottom: 8px; }
.neuro-preview.is-guest-preview .neuro-preview__header { margin-bottom: 22px; }
.neuro-preview.is-guest-preview .neuro-preview__header { display: block; text-align: center; }
.neuro-preview.is-guest-preview .neuro-preview__header h1 { max-width: 980px; margin: 0 auto 14px; }
.neuro-preview.is-guest-preview .welcome-text { max-width: 980px; margin: 0 auto; color: var(--np-muted); font-size: 18px; line-height: 1.55; }
.neuro-preview.is-guest-preview .welcome-text p { margin: 0; }
.neuro-preview.is-guest-preview .neuro-preview__guest-login { display: none; }
.neuro-preview-guest-seo { margin-top: 34px; }
.neuro-preview__top-generate:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(235,105,0,.29); }
.neuro-preview__top-generate:disabled { opacity: .48; box-shadow: none; cursor: not-allowed; }
.neuro-preview__top-generate:disabled { background: #cbc8c5; color: #fff; opacity: 1; }
.neuro-preview__top-magic { width: 23px; height: 23px; object-fit: contain; }

.neuro-preview__workspace { display: grid; grid-template-columns: minmax(390px, 440px) minmax(0, 1fr); align-items: start; gap: 24px; }
.neuro-preview__mobile-flow, .neuro-preview__mobile-next { display: none; }
.neuro-preview__controls, .neuro-preview__output { border: 1px solid var(--np-line); border-radius: 26px; background: #fff; box-shadow: 0 18px 60px rgba(76, 48, 25, .08); }
.neuro-preview__controls { overflow: hidden; }
.neuro-preview__section { padding: 24px; border-bottom: 1px solid var(--np-line); }
.neuro-preview__section-heading { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; margin-bottom: 18px; }
.neuro-preview__step { display: grid; width: 34px; height: 34px; place-items: center; border-radius: 11px; background: var(--np-orange); color: #fff; font-size: 17px; font-weight: 800; }
.neuro-preview__section-heading h2 { margin: 0 0 3px; color: var(--np-ink); font-size: 20px; line-height: 1.25; }
.neuro-preview__section-heading p { margin: 0; color: var(--np-muted); font-size: 14px; line-height: 1.4; }

.neuro-preview .neuro-upload-grid { position: relative; display: grid !important; grid-template-columns: repeat(4, minmax(135px, 180px)); justify-content: end; gap: 10px; width: 100%; }
.neuro-preview .neuro-upload-slot { position: relative; display: flex; min-width: 0; min-height: 0 !important; height: 112px !important; aspect-ratio: auto !important; align-items: center; justify-content: center; padding: 10px; overflow: hidden; border: 1.5px dashed #cbc8c5; border-radius: 15px; background: #f8f8f8; cursor: pointer; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.neuro-preview .neuro-upload-slot--primary {
  z-index: 1;
  border: 0;
  background: linear-gradient(145deg, #fff 0%, #fffaf3 58%, #fff1df 100%);
  animation: np-primary-glow 2.1s ease-in-out infinite;
}
.neuro-preview .neuro-upload-slot--primary .neuro-upload-slot__title { color: var(--np-orange-dark); }
.neuro-preview .neuro-upload-slot--primary .neuro-upload-slot__hint { color: #9a8170; }
.neuro-preview .neuro-upload-slot--primary .neuro-upload-slot__icon { filter: none; }
.neuro-preview .neuro-upload-slot--primary .neuro-upload-slot__arrow { border-color: #fff; background: var(--np-orange); color: #fff; }
.neuro-preview .neuro-upload-slot--primary:hover,
.neuro-preview .neuro-upload-slot--primary:focus-visible {
  border-color: transparent;
  background: linear-gradient(145deg, #fff 0%, #fff7eb 55%, #ffe8cb 100%);
  box-shadow: 0 13px 26px rgba(235,105,0,.29);
  animation-play-state: paused;
  transform: translateY(-2px);
}
.neuro-preview .neuro-upload-slot:hover, .neuro-preview .neuro-upload-slot:focus-visible { border-color: var(--np-orange); background: #fff8ef; outline: 0; transform: translateY(-2px); }
.neuro-preview .neuro-upload-slot__empty { display: flex; min-width: 0; flex-direction: column; align-items: center; text-align: center; }
.neuro-preview .neuro-upload-slot__icon-stack { position: relative; display: block; width: 38px; height: 34px; margin-bottom: 7px; }
.neuro-preview .neuro-upload-slot__icon { display: block; width: 32px; height: 32px; margin: 0; object-fit: contain; }
.neuro-preview .neuro-upload-slot__arrow { position: absolute; right: 0; bottom: -1px; display: grid; width: 19px; height: 19px; place-items: center; border: 2px solid #fff; border-radius: 50%; background: var(--np-orange); color: #fff; font-size: 14px; font-weight: 900; line-height: 1; }
.neuro-preview .neuro-upload-slot__title { max-width: 150px; color: var(--np-ink); font-size: 13px; font-weight: 700; line-height: 1.15; }
.neuro-preview .neuro-upload-slot__hint { margin-top: 4px; color: #979298; font-size: 12px; }
.neuro-preview .file-input-sm-multi { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.neuro-preview .uploaded-photo-container-sm-multi { position: absolute; inset: 0; width: 100%; height: 100%; }
.neuro-preview .uploaded-photo-sm-multi-preview { width: 100%; height: 100%; object-fit: cover; }
.neuro-preview .delete-photo-btn-sm-multi { position: absolute; z-index: 3; top: 8px; right: 8px; display: grid; width: 32px; height: 32px; padding: 7px; place-items: center; border: 0; border-radius: 50%; background: rgba(30, 30, 34, .78); cursor: pointer; }
.neuro-preview .delete-photo-btn-sm-multi img { width: 100%; height: 100%; }
.neuro-preview .neuro-upload-slot.has-image { border-style: solid; animation: none; }
.neuro-preview .neuro-upload-slot.has-image .neuro-upload-slot__empty { display: none; }
@keyframes np-primary-glow {
  0%, 100% {
    box-shadow:
      0 10px 22px rgba(235, 105, 0, .25),
      0 0 10px 2px rgba(255, 141, 25, .4),
      0 0 24px 5px rgba(255, 190, 52, .18);
    filter: saturate(1);
  }
  50% {
    box-shadow:
      0 13px 28px rgba(235, 105, 0, .34),
      0 0 18px 5px rgba(255, 125, 12, .7),
      0 0 38px 10px rgba(255, 204, 62, .38);
    filter: saturate(1.18);
  }
}

.neuro-preview .tabs-preset {
  display: flex;
  width: 100%;
  gap: 4px;
  margin: 0 0 15px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid #ebe5df;
  border-radius: 16px;
  background: #f6f3f0;
  box-shadow: none;
  scrollbar-width: none;
}
.neuro-preview .tabs-preset::-webkit-scrollbar { display: none; }
.neuro-preview .tab-btn-preset {
  flex: 1 0 auto;
  min-width: max-content;
  min-height: 42px;
  padding: 9px 14px;
  border: 0 !important;
  border-radius: 12px;
  background: transparent !important;
  box-shadow: none !important;
  color: #615c63 !important;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, box-shadow .2s, transform .2s;
}
.neuro-preview .tab-btn-preset:hover:not(.active) { background: #fff !important; color: var(--np-orange-dark) !important; }
.neuro-preview .tab-btn-preset.active {
  background: linear-gradient(135deg, #ff8b22, #f46c00) !important;
  box-shadow: 0 6px 15px rgba(235,105,0,.24) !important;
  color: #fff !important;
}
.neuro-preview .tab-pane-preset { display: none; }
.neuro-preview .tab-pane-preset.active { display: block; }
.neuro-preview .preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; max-height: 304px; padding: 3px; overflow: auto; }
.neuro-preview .preset-item { position: relative; display: flex; min-width: 0; height: 112px; flex-direction: column; align-items: stretch; justify-content: flex-end; overflow: hidden; border: 2px solid transparent; border-radius: 14px; background: #f4f3f2; cursor: pointer; transition: border-color .2s, transform .2s; }
.neuro-preview .preset-item:hover { transform: translateY(-2px); }
.neuro-preview .preset-item.selected { border-color: var(--np-orange); box-shadow: 0 0 0 3px rgba(251,125,18,.12); }
.neuro-preview .preset-item input { position: absolute; opacity: 0; pointer-events: none; }
.neuro-preview .preset-item img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0 !important; border-radius: 0 !important; object-fit: cover; }
.neuro-preview .p_preset { position: relative; z-index: 2; min-height: 38px; display: flex; align-items: center; justify-content: center; padding: 5px; background: linear-gradient(180deg, transparent, rgba(20,20,24,.86)); color: #fff; font-size: 12px; font-weight: 700; line-height: 1.15; text-align: center; }
.neuro-preview__own-idea { align-items: center !important; justify-content: center !important; background: #fff5e9 !important; color: var(--np-orange-dark); }
.neuro-preview .neuro-preview__own-idea .p_preset.one {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 5px 0 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: var(--np-orange-dark) !important;
  font-size: 13px;
  text-align: center;
}
.neuro-preview__own-icon { position: relative; z-index: 2; display: block; flex: 0 0 auto; width: 100%; color: var(--np-orange); font-size: 29px; line-height: 1; text-align: center; }
.neuro-preview .neuro-preview__own-idea .p_preset.one { display: flex !important; align-items: center; justify-content: center; max-width: 100%; margin: 6px auto 0 !important; line-height: 1.25; text-wrap: balance; }

.neuro-preview .textarea-field { display: block; width: 100% !important; min-height: 116px; margin: 0; padding: 15px 16px; resize: vertical; border: 1.5px solid #ddd8d3; border-radius: 15px; background: #fff; color: var(--np-ink); font: inherit; font-size: 16px; line-height: 1.45; outline: none; }
.neuro-preview .textarea-field:focus { border-color: var(--np-orange); box-shadow: 0 0 0 4px rgba(251,125,18,.1); }
.neuro-preview .textarea-field::placeholder { color: #99949a; }
.neuro-preview .multi_promt.is-hidden-by-preset { display: none; }
.neuro-preview__launch { padding: 22px 24px 25px; background: #fffaf5; }
.neuro-preview .info-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 0 0 16px; }
.neuro-preview .info-row > div { display: flex; flex-direction: column; gap: 2px; color: var(--np-muted); font-size: 13px; }
.neuro-preview .info-row strong { display: flex; align-items: center; color: var(--np-ink); font-size: 16px; }
.neuro-preview .info-row img { width: 23px; height: 23px; margin-left: 4px; }
.neuro-preview__meta-label { color: #8b858b; }
.neuro-preview #bt_action { width: 100%; }
.neuro-preview #bt_action { display: block !important; }
.neuro-preview .action-button { display: flex; width: 100%; min-height: 56px; align-items: center; justify-content: center; gap: 9px; margin: 0; border: 0; border-radius: 16px; background: linear-gradient(135deg, #ff8b22, #f46c00); box-shadow: 0 10px 22px rgba(235,105,0,.25); color: #fff; font-size: 18px; font-weight: 800; text-decoration: none; cursor: pointer; }
.neuro-preview .action-button:hover { background: linear-gradient(135deg, #ff952f, #e96000); transform: translateY(-1px); }
.neuro-preview .action-button:disabled { background: #cbc8c5 !important; box-shadow: none !important; color: #fff; cursor: not-allowed; transform: none; }
.neuro-preview .action-button img { width: 23px; height: 23px; }
.neuro-preview__login { text-align: center; }
.neuro-preview .error-message { margin-bottom: 10px; color: #b6402c; font-size: 14px; text-align: center; }
.neuro-preview__launch-hint { margin: 10px 0 0; color: #8b858b; font-size: 13px; text-align: center; }

.neuro-preview__output { position: sticky; top: 94px; min-height: 690px; padding: 20px; }
.neuro-preview__photos-bar { display: grid; grid-template-columns: minmax(320px, 360px) minmax(0, 1fr); align-items: center; gap: 24px; margin: 0 0 18px; padding: 18px 22px; border: 1px solid var(--np-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 38px rgba(76,48,25,.07); }
.neuro-preview__photos-bar.is-hidden { display: none; }
.neuro-preview__photos-copy { display: flex; min-width: 0; align-items: center; gap: 16px; margin: 0; }
.neuro-preview__photos-copy .neuro-preview__step { flex: 0 0 34px; }
.neuro-preview__photos-copy > div { min-width: 0; }
.neuro-preview__photos-copy h2 { margin: 0 0 2px; color: var(--np-ink); font-size: 19px; line-height: 1.2; }
.neuro-preview__photos-copy p { margin: 0; color: var(--np-muted); font-size: 13px; line-height: 1.35; }
.neuro-preview__output-head { display: flex; min-height: 46px; align-items: center; justify-content: space-between; gap: 20px; padding: 0 5px 16px; color: var(--np-muted); font-size: 14px; }
.neuro-preview__output-head > div { display: flex; align-items: center; gap: 10px; color: var(--np-ink); font-size: 19px; }
.neuro-preview__live-dot { width: 9px; height: 9px; border-radius: 50%; background: #76bd63; box-shadow: 0 0 0 5px #edf8e9; }
.neuro-preview .result-section { display: block !important; margin: 0; }
.neuro-preview .ramka_rez { min-height: 555px; padding: 0; border: 0; border-radius: 20px; background: #f5f3f1; overflow: hidden; }
.neuro-preview .video-root { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; width: 100%; min-height: 555px; padding: 14px; }
.neuro-preview .video-container { position: relative; min-width: 0; }
.neuro-preview .video-root > .video-container:only-child { grid-column: 1 / -1; min-height: 527px; }
.neuro-preview .video-wrapper { width: 100%; height: 100%; min-height: 250px; border-radius: 16px; overflow: hidden; }
.neuro-preview .video-wrapper > img, .neuro-preview .video-wrapper > video { display: block; width: 100%; height: 100% !important; object-fit: contain; border-radius: 16px; background: #ebe7e3; }
.neuro-preview #processing-status { position: absolute; z-index: 5; inset: 50% auto auto 50%; width: min(420px, 82%); padding: 24px; transform: translate(-50%, -50%); border-radius: 18px; background: rgba(255,255,255,.97); box-shadow: 0 15px 50px rgba(30,20,10,.16); text-align: center; }
.neuro-preview__empty { display: flex; min-height: 527px; flex-direction: column; align-items: center; justify-content: center; padding: 45px; color: var(--np-muted); text-align: center; }
.neuro-preview__empty-visual { display: grid; width: 116px; height: 116px; margin-bottom: 24px; place-items: center; border: 1px solid #eadfd5; border-radius: 32px; background: linear-gradient(145deg, #fff, #fff0df); box-shadow: 0 20px 45px rgba(117,80,44,.12); transform: rotate(-4deg); }
.neuro-preview__empty-visual span { color: var(--np-orange); font-size: 47px; transform: rotate(4deg); }
.neuro-preview__empty h2 { max-width: 520px; margin: 0 0 10px; color: var(--np-ink); font-size: clamp(23px, 2.2vw, 32px); line-height: 1.18; }
.neuro-preview__empty p { max-width: 460px; margin: 0; font-size: 16px; line-height: 1.5; }
.neuro-preview__empty-steps { display: flex; align-items: center; gap: 10px; margin-top: 28px; color: #77717a; font-size: 13px; font-weight: 700; }
.neuro-preview__empty-steps i { width: 28px; height: 1px; background: #d7d0ca; }
.neuro-preview .video-container > .flex.new { margin-top: 10px; }
.neuro-preview__tips { display: flex; gap: 14px; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff8ee; color: #7d726a; font-size: 14px; }
.neuro-preview__tips strong { flex: 0 0 auto; color: var(--np-orange-dark); }
.neuro-preview-history { padding: 18px 20px 80px; background: #fff; }
.neuro-preview-history > .container { max-width: 1240px; margin: 0 auto; }
.neuro-preview-history #my_history > .container { max-width: none; padding: 0; }
.neuro-preview-history .history-section { margin-top: 18px; text-align: left; }
.neuro-preview-history .history-title { margin: 0 0 20px; color: var(--np-ink, #34343f); font-size: clamp(28px, 3vw, 38px); font-weight: 800; line-height: 1.15; letter-spacing: -.025em; }
.neuro-preview-history #animation-gallery { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; margin-top: 0; }
.neuro-preview-history #animation-gallery .gallery-item { padding: 12px; overflow: hidden; border: 1px solid #ece8e3; border-radius: 20px; background: #fff; box-shadow: 0 12px 36px rgba(76,48,25,.08); font-family: inherit; transition: transform .2s, box-shadow .2s; }
.neuro-preview-history #animation-gallery .gallery-item:hover { transform: translateY(-3px); box-shadow: 0 17px 42px rgba(76,48,25,.12); }
.neuro-preview-history #animation-gallery .g-image { display: block; width: 100%; line-height: 0; }
.neuro-preview-history #animation-gallery .gallery-image { display: block; width: 100%; aspect-ratio: 1 / 1; margin-bottom: 0; border-radius: 14px; object-fit: cover; }
.neuro-preview-history #animation-gallery .gallery-actions {
  display: flex;
  width: 100%;
  align-items: stretch;
  gap: 10px;
  margin: 10px 0 0;
  padding: 0;
}
.neuro-preview-history #animation-gallery .gallery-actions > a { display: flex; flex: 1 1 auto; min-width: 0; }
.neuro-preview-history #animation-gallery .gallery-download { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--np-orange, #fb7d12); border-radius: 12px; background: #fff; box-shadow: none; color: var(--np-orange-dark, #e96800); font-family: inherit; font-size: 15px; font-weight: 700; }
.neuro-preview-history #animation-gallery .gallery-download:hover { background: #fff7ee; box-shadow: 0 6px 15px rgba(235,105,0,.16); transform: translateY(-1px); }
.neuro-preview-history #animation-gallery .gallery-delete { flex: 0 0 46px; width: 46px; height: 46px; padding: 12px; border-radius: 12px; box-shadow: none; }
.neuro-preview-history #animation-gallery .gallery-item > a:not(.g-image) { display: block; width: 100%; }
.neuro-preview-history #animation-gallery .video-download { display: flex; width: 100%; min-width: 0; min-height: 48px; align-items: center; justify-content: center; gap: 8px; margin: 10px 0 0; padding: 9px 14px; border-radius: 13px; background: linear-gradient(135deg, #ff8b22, #f46c00); box-shadow: 0 8px 18px rgba(235,105,0,.22); color: #fff; font-family: inherit; font-size: 16px; font-weight: 800; }
.neuro-preview-history #animation-gallery a,
.neuro-preview-history #animation-gallery a:hover,
.neuro-preview-history #animation-gallery a:focus { text-decoration: none !important; }
.neuro-preview-history #animation-gallery .video-download:hover,
.neuro-preview-history #animation-gallery .video-download:focus-visible {
  background: linear-gradient(135deg, #ff952f, #e96000) !important;
  box-shadow: 0 8px 20px rgba(235,105,0,.3) !important;
  color: #fff !important;
  transform: translateY(-2px);
}

@media (max-width: 1050px) {
  .neuro-preview__workspace { grid-template-columns: minmax(340px, 400px) minmax(0, 1fr); gap: 16px; }
  .neuro-preview .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neuro-preview .neuro-upload-slot__title { font-size: 12px; }
  .neuro-preview__photos-bar { grid-template-columns: 220px minmax(0, 1fr); gap: 15px; }
}

@media (max-width: 840px) {
  .neuro-preview { padding: 28px 14px 60px; }
  .neuro-preview-history { padding: 12px 14px 60px; }
  .neuro-preview-history .history-section { margin-top: 12px; }
  .neuro-preview-history .history-title { margin-bottom: 15px; font-size: 29px; }
  .neuro-preview-history #animation-gallery { grid-template-columns: 1fr; gap: 14px; }
  .neuro-preview__header { align-items: flex-start; flex-direction: column; gap: 16px; }
  .neuro-preview__header h1 { font-size: 38px; }
  .neuro-preview__mobile-flow { position: sticky; z-index: 20; top: 8px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin: 0 0 14px; padding: 5px; border: 1px solid #e9e3dd; border-radius: 16px; background: rgba(255,255,255,.94); box-shadow: 0 8px 28px rgba(62,42,24,.12); backdrop-filter: blur(12px); }
  .neuro-preview__mobile-flow button { display: flex; min-width: 0; min-height: 44px; align-items: center; justify-content: center; gap: 6px; padding: 7px 5px; border: 0; border-radius: 11px; background: transparent; color: #77717a; font-size: 13px; font-weight: 700; }
  .neuro-preview__mobile-flow button span { display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: #eeeae6; color: #77717a; font-size: 12px; }
  .neuro-preview__mobile-flow button.is-active { background: #fff1e3; color: var(--np-orange-dark); }
  .neuro-preview__mobile-flow button.is-active span { background: var(--np-orange); color: #fff; }
  .neuro-preview__mobile-next { display: flex; width: 100%; min-height: 52px; align-items: center; justify-content: center; gap: 10px; grid-column: 1 / -1; margin-top: 2px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #ff8b22, #f46c00); box-shadow: 0 8px 18px rgba(235,105,0,.22); color: #fff; font-size: 16px; font-weight: 800; }
  .neuro-preview__mobile-next:disabled { opacity: .42; box-shadow: none; }
  .neuro-preview__mobile-next span { font-size: 22px; line-height: 1; }
  .neuro-preview__workspace { display: flex; flex-direction: column; }
  /* Photo/result is the first visual step on every mobile tool, even when settings come first in the desktop markup. */
  .neuro-preview__workspace > .neuro-preview__output { order: -1; }
  .neuro-preview__workspace > .neuro-preview__controls { order: 0; }
  .neuro-preview__photos-bar { grid-template-columns: 1fr; align-items: stretch; }
  .neuro-preview .neuro-upload-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); justify-content: stretch; }
  .neuro-preview__controls, .neuro-preview__output { width: 100%; border-radius: 22px; }
  .neuro-preview__output { position: static; min-height: 0; }
  .neuro-preview__launch { padding: 16px; }
  .neuro-preview .info-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 0;
    width: 100%;
    margin: 0 0 14px;
    padding: 10px 4px;
    border: 1px solid #ece5df;
    border-radius: 13px;
    background: #fff;
  }
  .neuro-preview .info-row > div {
    display: flex !important;
    flex: 1 1 50%;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 7px;
    width: auto !important;
    min-width: 0;
    min-height: 30px;
    padding: 2px 9px;
    border: 0;
    border-radius: 0;
    background: transparent;
    white-space: nowrap;
  }
  .neuro-preview .info-row > div + div { border-left: 1px solid #e7dfd7; }
  .neuro-preview .info-row strong { display: inline-flex !important; gap: 4px; font-size: 16px; }
  .neuro-preview .info-row img { width: 20px; height: 20px; margin-left: 1px; }
  .neuro-preview__meta-label { font-size: 13px; }
  .neuro-preview .action-button { width: 100%; min-height: 56px; margin: 0; border-radius: 14px; font-size: 18px; }
  .neuro-preview .neuro-upload-slot { height: 118px !important; }
  .neuro-preview .ramka_rez, .neuro-preview .video-root { min-height: 470px; }
  .neuro-preview .video-root > .video-container:only-child, .neuro-preview__empty { min-height: 442px; }
  .neuro-preview[data-mobile-step="photos"] .neuro-preview__workspace { display: none; }
  .neuro-preview[data-mobile-step="settings"] .neuro-preview__photos-bar,
  .neuro-preview[data-mobile-step="settings"] .neuro-preview__output { display: none; }
  .neuro-preview[data-mobile-step="result"] .neuro-preview__photos-bar,
  .neuro-preview[data-mobile-step="result"] .neuro-preview__controls { display: none; }
  .neuro-preview[data-mobile-step="result"] .neuro-preview__workspace { display: flex; }
}

@media (max-width: 520px) {
  .neuro-preview { padding: 22px 10px 50px; }
  .neuro-preview-history { padding: 8px 10px 50px; }
  .neuro-preview__header { margin-bottom: 20px; padding: 0 6px; }
  .neuro-preview__header h1 { font-size: 34px; }
  .neuro-preview__header p { font-size: 16px; line-height: 1.4; }
  .neuro-preview__top-generate { width: 100%; justify-content: center; }
  .neuro-preview__section { padding: 20px 16px; }
  .neuro-preview__launch { padding: 20px 16px; }
  .neuro-preview .neuro-upload-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .neuro-preview .neuro-upload-slot { height: 122px !important; }
  .neuro-preview .preset-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 374px; }
  .neuro-preview .preset-item { height: 114px; }
  .neuro-preview__output { padding: 14px; }
  .neuro-preview__output-head { align-items: flex-start; flex-direction: column; gap: 4px; }
  .neuro-preview .video-root { grid-template-columns: 1fr; min-height: 410px; padding: 9px; }
  .neuro-preview .video-root > .video-container:only-child, .neuro-preview__empty { min-height: 390px; }
  .neuro-preview__empty { padding: 28px 18px; }
  .neuro-preview__empty-visual { width: 92px; height: 92px; border-radius: 26px; }
  .neuro-preview__empty-steps { gap: 6px; font-size: 12px; }
  .neuro-preview__empty-steps i { width: 14px; }
  .neuro-preview__tips { flex-direction: column; gap: 3px; }
}

@media (max-width: 840px) {
  .neuro-preview__top-generate { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .neuro-preview .neuro-upload-slot--primary {
    animation: none;
    box-shadow: 0 0 16px 4px rgba(255, 141, 25, .55), 0 0 32px 8px rgba(255, 204, 62, .28);
  }
}

/* One-photo entry state; the full workspace appears after the primary upload. */
.neuro-preview.is-awaiting-primary .neuro-preview__top-generate,
.neuro-preview.is-awaiting-primary .neuro-preview__mobile-flow,
.neuro-preview.is-awaiting-primary .neuro-preview__workspace,
.neuro-preview.is-awaiting-primary .neuro-preview__photos-copy,
.neuro-preview.is-awaiting-primary .neuro-upload-slot--optional,
.neuro-preview.is-awaiting-primary .neuro-preview__mobile-next { display: none !important; }
.neuro-preview.is-awaiting-primary .neuro-preview__photos-bar { display: block !important; max-width: 980px; margin: 22px auto 18px; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--np-line); border-radius: 28px; background: #fff; box-shadow: 0 18px 50px rgba(54,45,38,.08); }
.neuro-preview.is-awaiting-primary .neuro-upload-grid { display: block !important; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary { display: flex; width: 100%; height: clamp(390px, 45vw, 530px) !important; align-items: center; justify-content: center; border: 0; border-radius: 23px; background: radial-gradient(circle at 50% 46%,#fff7eb 0,#fffaf5 33%,#f8f6f3 77%); box-shadow: inset 0 0 0 1px rgba(70,50,35,.05); animation: none; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary:hover,
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary:focus-visible { background: radial-gradient(circle at 50% 46%,#fff0dc 0,#fff9f1 38%,#f8f6f3 78%); box-shadow: inset 0 0 0 1px rgba(242,116,18,.13); transform: none; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__empty { width: min(390px, 82%); min-height: 215px; justify-content: center; padding: 26px 24px; border-radius: 22px; background: linear-gradient(135deg,#ff8b20,#f56b00); box-shadow: 0 17px 35px rgba(230,96,0,.27); transition: transform .2s, box-shadow .2s; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary:hover .neuro-upload-slot__empty { transform: translateY(-4px); box-shadow: 0 22px 42px rgba(230,96,0,.33); }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__icon-stack { width: 64px; height: 60px; margin-bottom: 12px; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__icon { width: 58px; height: 58px; filter: brightness(0) invert(1); }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__arrow { right: 0; bottom: -2px; width: 27px; height: 27px; border-color: #ff8120; background: #fff; color: #f5740b; font-size: 19px; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__title { max-width: none; color: #fff; font-size: clamp(22px,2.4vw,27px); line-height: 1.2; }
.neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__hint { margin-top: 8px; color: rgba(255,255,255,.87); font-size: 15px; line-height: 1.35; }
@media (max-width: 840px) {
  .neuro-preview.is-awaiting-primary .neuro-preview__photos-bar { margin-top: 12px; padding: 14px; border-radius: 23px; }
  .neuro-preview.is-awaiting-primary .neuro-upload-slot--primary { height: min(105vw,460px) !important; min-height: 350px !important; border-radius: 18px; }
  .neuro-preview.is-awaiting-primary .neuro-upload-slot--primary .neuro-upload-slot__empty { width: min(340px,88%); min-height: 205px; padding: 24px 18px; }
  .neuro-preview:not(.is-awaiting-primary)[data-mobile-step="photos"] .neuro-preview__workspace { display: flex; }
  .neuro-preview:not(.is-awaiting-primary)[data-mobile-step="photos"] .neuro-preview__workspace > .neuro-preview__controls { order: 0; }
  .neuro-preview:not(.is-awaiting-primary)[data-mobile-step="photos"] .neuro-preview__workspace > .neuro-preview__output { order: 1; }
}
