.phone-upload-copy,
.phone-photo-consent,
.phone-working-icon,
.phone-working-steps,
.phone-brief-toggle,
.phone-editor-head {
  display: none;
}
.phone-mode-options { display: contents; }

@media (max-width: 760px) {
  .home-v2 .home-v2-hero {
    min-height: 0;
    padding-top: 12px !important;
    padding-bottom: 0 !important;
  }
  .home-v2 main > .nw-video-promo { margin-top: 16px !important; }
  .home-v2 .workspace { order: 1 !important; margin-top: 0 !important; }
  .home-v2 .home-v2-hero > :is(.page-intro, .home-v2-hero-visual),
  .home-v2 .below-workspace,
  .home-v2 .editor-panel .nv-after-hint,
  .home-v2 .editor-panel :is(.studio-kicker, .studio-intro, .mode-help, .studio-progress, .photo-agree, .button-hint) {
    display: none !important;
  }
  .home-v2 #tryon-editor {
    display: flex;
    flex-direction: column;
    scroll-margin-top: 82px;
  }
  .phone-editor-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 0 0 13px;
  }
  .phone-editor-head h2 {
    margin: 0;
    color: #192140;
    font-size: clamp(1.28rem, 5.7vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: -.045em;
  }
  #phone-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    min-height: 40px;
    padding: 5px 10px 5px 12px;
    border: 1px solid #ddd4f8;
    border-radius: 13px;
    background: #f5f0ff;
    color: #513a92;
    font: inherit;
    font-size: .84rem;
    font-weight: 800;
  }
  #phone-mode-toggle .icon { width: 16px; height: 16px; }
  #phone-mode-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
  .phone-mode-options { display: none; }
  .phone-mode-options.is-open { display: block; }
  .home-v2 .editor-panel .panel-heading { margin: 0 0 8px; }
  .home-v2 .editor-panel .panel-heading h2 { font-size: 1.2rem; }
  .home-v2 .editor-panel .tryon-modes {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 5px;
    margin-bottom: 6px;
  }
  .home-v2 .editor-panel .tryon-modes button { min-height: 43px !important; }
  .home-v2 .editor-panel .tryon-modes button[hidden] { display: none !important; }
  .home-v2 .editor-panel .tryon-modes small,
  .home-v2 .editor-panel .beauty-modes-title { display: none; }
  .home-v2 .editor-panel .beauty-modes:not([hidden]) {
    display: block !important;
    margin: 0 0 12px;
    padding: 0;
    border: 0;
    background: transparent;
  }
  .home-v2 .editor-panel .beauty-mode-grid button { min-height: 42px; }
  .home-v2 .editor-panel .telegram-reward-card { display: none !important; }
  .home-v2 .editor-panel .uploads {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 8px !important;
    padding-block: 0 !important;
    margin: 0 !important;
    align-items: start !important;
  }
  .home-v2 .uploads #slot-person { order: -1; }
  .home-v2 .editor-panel .uploads::after { display: none !important; }
  .home-v2 .editor-panel .uploads .upload-slot {
    grid-column: 1 / -1 !important;
    display: block;
    min-height: 0 !important;
    padding: 0 !important;
    border: 1px solid #e2ddf7;
    border-radius: 20px;
    background: #f9f8fd;
    box-shadow: none;
    transform: none;
    scroll-margin-top: 92px;
  }
  .home-v2 .editor-panel .uploads .upload-slot[hidden] { display: none !important; }
  .home-v2 .editor-panel .uploads .upload-slot::before,
  .home-v2 .editor-panel .uploads .upload-slot::after,
  .home-v2 .editor-panel .uploads .slot-heading,
  .home-v2 .editor-panel .uploads .upload-placeholder,
  .home-v2 .editor-panel .uploads .replace-hint {
    display: none !important;
  }
  .home-v2 .editor-panel .uploads .upload-slot[data-phone-step="current"] {
    border-color: #a99ef8;
    background: linear-gradient(110deg, #ede6ff, #f9f7ff 64%, #eef7ff) !important;
    box-shadow: 0 8px 18px #5e47cb18;
  }
  .home-v2 .editor-panel .uploads .upload-slot[data-phone-step="complete"] { background: #fff; }
  .home-v2 .editor-panel .uploads .upload-slot .upload-target {
    --card-ink: #222039;
    display: block;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100% !important;
    height: auto !important;
    min-height: 86px !important;
    max-height: none !important;
    padding: 16px 18px !important;
    border: 0;
    border-radius: inherit;
    background: #fff !important;
    color: var(--card-ink);
    text-align: left;
    opacity: 1;
  }
  .home-v2 .editor-panel .uploads [data-phone-step="current"] .upload-target {
    min-height: clamp(185px, 50vw, 230px) !important;
    padding: 21px !important;
    background: radial-gradient(ellipse at 95% 10%, #e6e0ff 4%, transparent 60%),
      linear-gradient(120deg, #f9f7ff 18%, #ede7fd 74%, #e7edff) !important;
  }
  .uploads .upload-slot { --sample: url(example-garment.jpg); }
  .uploads #slot-person { --sample: url(example-person.jpg); }
  [data-photo-mode="pet"] #slot-person { --sample: url(showcase/dog.webp); }
  [data-photo-mode="duo"] #slot-person { --sample: url(showcase/couple.webp); }
  :is([data-photo-mode="portrait"], [data-photo-mode="hair"], [data-photo-mode="makeup"]) #slot-person { --sample: url(showcase/beauty-wow-portrait-before.webp); }
  [data-photo-mode="nails"] #slot-person { --sample: url(showcase/beauty-wow-hand-before.webp); }
  .home-v2 .editor-panel .uploads :is([data-phone-step="current"], [data-phone-step="next"]) .upload-target::after {
    content: '';
    position: absolute;
    pointer-events: none;
    inset: 50% 19px auto auto;
    z-index: 0;
    width: 46px;
    aspect-ratio: 4 / 5;
    transform: translateY(-50%) rotate(6deg);
    border: 3px solid white;
    border-radius: 8px;
    background: #ecebec var(--sample) center / contain no-repeat;
    box-shadow: 0 3px 10px #28214124;
  }
  .home-v2 .editor-panel .uploads [data-phone-step="current"] .upload-target::after {
    width: clamp(78px, 25vw, 132px);
    border: 5px solid white;
    border-radius: 13px;
    right: 7%;
    box-shadow: 0 10px 20px #33214730, -8px 7px 0 #f7f5ff, -9px 8px 0 #cec5e7;
    animation: phone-print-arrive .45s ease-out both;
  }
  .phone-upload-copy {
    display: flex;
    position: relative;
    z-index: 1;
    flex-direction: column;
    align-items: flex-start;
    width: calc(100% - 66px);
    gap: 5px;
    white-space: normal;
  }
  [data-phone-step="current"] .phone-upload-copy { width: 59%; gap: 9px; }
  .phone-upload-index {
    color: #584b79;
    font-size: .65rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
  .phone-upload-text strong, .phone-upload-text small { display: block; }
  .phone-upload-text strong { color: #222039; font-size: 1rem; line-height: 1.13; }
  [data-phone-step="current"] .phone-upload-text strong {
    font-size: clamp(1.4rem, 6.2vw, 1.9rem);
    letter-spacing: -.045em;
  }
  .phone-upload-text small { margin-top: 5px; color: #585368; font-size: .78rem; line-height: 1.35; }
  .phone-upload-plus { display: none; }
  [data-phone-step="current"] .phone-upload-plus, .upload-target[aria-busy="true"] .phone-upload-plus {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 5px;
    padding: 10px 13px;
    border-radius: 24px;
    background: #302450;
    color: white;
    font-size: .81rem;
    font-weight: 750;
  }
  .phone-upload-plus::before { content: '+'; color: #d5ff5a; font-size: 1.1rem; line-height: 1; }
  .upload-target[aria-busy="true"] .phone-upload-plus::before {
    content: '';
    width: 12px;
    height: 12px;
    border: 2px solid #ffffff55;
    border-top-color: #d5ff5a;
    border-radius: 50%;
    animation: phone-read .9s linear infinite;
  }
  [data-phone-step="complete"] .phone-upload-index { color: #416228; }
  .home-v2 .editor-panel .uploads .upload-target > img:not([hidden]) {
    position: absolute !important;
    inset: 8px 11px 8px auto !important;
    width: 52px !important;
    height: calc(100% - 16px) !important;
    min-height: 0 !important;
    border-radius: 10px;
    object-fit: cover !important;
  }
  .home-v2 .editor-panel .uploads .slot-actions { margin: 0 10px 6px; }
  .home-v2 .editor-panel .uploads .garment-link-trigger { min-height: 36px; margin: 0 10px 5px; }
  .home-v2 .editor-panel .uploads [data-phone-step="next"] .garment-link-trigger { display: none; }
  .home-v2 .editor-panel #tryon-addons { margin: 0 10px 5px; }
  .home-v2 .editor-panel:not(.phone-photos-ready) :is(#tryon-addons, .options) { display: none !important; }
  .home-v2 .editor-panel .studio-example { order: 1; margin: 7px 0 0; background: transparent; border: 0; padding: 0; }
  .home-v2 .editor-panel .studio-example button { min-height: 36px; font-size: .75rem; }
  .home-v2 .editor-panel .options { margin: 0; }
  .home-v2 .editor-panel .options summary { padding-block: 9px; font-size: .84rem; }
  .home-v2 .editor-panel .portrait-toggle { margin: 3px 0 0; padding: 6px 0; font-size: .84rem; }
  .home-v2 .editor-panel .portrait-note { margin: 0 0 6px; padding: 8px 10px; font-size: .8rem; }
  .phone-brief-toggle:not([hidden]) {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 42px;
    margin: 0 0 8px;
    padding: 7px 12px;
    border: 1px solid #e4dcf7;
    border-radius: 12px;
    background: #fff;
    color: #463288;
    font: inherit;
    font-size: .84rem;
    font-weight: 700;
    scroll-margin-top: 92px;
  }
  .phone-brief-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
  .home-v2 .editor-panel .stylist-brief:not(.phone-brief-open) { display: none !important; }
  .home-v2 .editor-panel #generate { margin: 8px 0 0; min-height: 48px; scroll-margin-top: 112px; }
  .phone-photo-consent {
    display: block;
    margin: 8px 1px 0;
    color: #515b78;
    font-size: .73rem;
    line-height: 1.45;
  }
  .phone-photo-consent a { color: #4636ad; text-underline-offset: 2px; }
  .home-v2 .editor-panel .unit-price { margin: 6px 0 0; font-size: .73rem; }
  .home-v2 .editor-panel .privacy-line { order: 1; margin-top: 6px; font-size: .75rem; }
  .home-v2 .editor-panel:not(.phone-photos-ready) :is(#generate, .unit-price, .phone-photo-consent, .privacy-line) {
    display: none !important;
  }
  .home-v2 .editor-panel:not(.phone-photo-added) .portrait-toggle { display: none !important; }
  .home-v2 #result-panel { scroll-margin-top: 89px; }
  .home-v2 #result-panel[data-tryon-view]:not([data-tryon-view="example"]) { display: block !important; }
  .home-v2 #result-panel[data-tryon-view="working"] {
    display: grid !important;
    min-height: 0;
    align-content: start;
    background: transparent !important;
    border: 0;
    box-shadow: none;
  }
  .home-v2 #working-view:not([hidden]) {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: grid !important;
    justify-items: center;
    gap: 22px;
    padding: 32px 18px 24px;
    border: 1px solid #e0d9f2;
    border-radius: 25px;
    text-align: center;
    background: radial-gradient(ellipse at 30% 18%, #e3d9fa, transparent 53%),
      radial-gradient(ellipse at 86% 28%, #d7e7ff, transparent 52%), #f9f7fc;
    box-shadow: 0 12px 32px #39305015;
  }
  .home-v2 #working-view .working-photo {
    display: block;
    width: clamp(112px, 37vw, 170px);
    aspect-ratio: 4 / 5;
    height: auto;
    overflow: hidden;
    border: 5px solid white;
    border-radius: 14px;
    background: #e7e1f2;
    transform: rotate(-4deg);
    box-shadow: 0 9px 22px #39304a27, 7px 6px 0 #f9f7ff, 8px 7px 0 #d6cde3;
  }
  .home-v2 #working-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 1;
    filter: none;
  }
  .home-v2 #working-view .working-photo::after { display: none; }
  .home-v2 #working-view .scan-line {
    inset: 0 0 auto;
    height: 28%;
    background: linear-gradient(transparent, #d4c3ff55 80%, #f0ecffcc);
    border-bottom: 2px solid #faf8ff;
    box-shadow: 0 4px 12px #8b6ac244;
    animation: phone-exposure 3.2s ease-in-out infinite alternate;
  }
  .home-v2 #working-view :is(.processing-badge, .working-small, #elapsed) { display: none; }
  .home-v2 #working-view .working-copy { width: 100%; padding: 0; }
  .home-v2 #working-title { margin: 0; font-size: 1.25rem; color: #221d45; }
  .home-v2 #working-description { margin: 5px 0 0; font-size: .86rem; color: #57516e; }
  .phone-working-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 300px;
  }
  .phone-working-steps li { color: #595372; font-size: .72rem; font-weight: 700; }
  .phone-working-steps li::before {
    content: '';
    display: block;
    width: 100%;
    height: 5px;
    margin: 13px 0 6px;
    border-radius: 99px;
    background: #e8e2f6;
  }
  .phone-working-steps li[aria-current="step"] { color: #4a308f; }
  .phone-working-steps li[aria-current="step"]::before {
    background: linear-gradient(90deg, #7547db, #e453c8, #60b7ea, #7547db);
    background-size: 200% 100%;
    animation: phone-tryon-flow 1.7s linear infinite;
  }
  #working-view[data-phone-phase="create"] [data-phone-phase="photo"]::before,
  #working-view[data-phone-phase="result"] :is([data-phone-phase="photo"], [data-phone-phase="create"])::before {
    background: #bfaff0;
  }
}

@keyframes phone-tryon-flow { to { background-position: 200% 0; } }
@keyframes phone-print-arrive {
  from { opacity: .1; transform: translate(6px, -46%) rotate(1deg); }
  to { opacity: 1; transform: translateY(-50%) rotate(6deg); }
}
@keyframes phone-read { to { transform: rotate(1turn); } }
@keyframes phone-exposure { from { top: -22%; } to { top: 92%; } }
@media (prefers-reduced-motion: reduce) {
  .home-v2 #working-view .scan-line { display: none; }
  .home-v2 .editor-panel .uploads [data-phone-step="current"] .upload-target::after,
  .upload-target[aria-busy="true"] .phone-upload-plus::before,
  .phone-working-steps li[aria-current="step"]::before { animation: none; }
}
