        /* ===== Студия — одна рабочая зона (макет принят 14.11.2026, Р1–Р9). Цвет выбранного — «персик + графит» (Р8) ===== */
        :root { --ph-on: rgb(var(--c-f4dccf)); --ph-onb: rgb(var(--c-dcb6a1)); --ph-acc: rgb(var(--c-c49276)); --ph-ink: rgb(var(--c-30302f)); --zline: rgb(var(--c-e6e1d7)); }
        .st-h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
        .st-lead { font-size: 15px; color: rgb(var(--c-6b655b)); }
        .st-head { display: flex; align-items: baseline; gap: .25rem 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
        .ai-zone.st-zone-wrap { position: relative; }
        .zone { display: grid; grid-template-columns: 17rem minmax(0, 1fr) 9.75rem; height: calc(100vh - 11rem); min-height: 44rem; max-height: 62rem;
            background: var(--card); border-radius: 2.75rem 1.25rem 2.75rem 1.25rem; box-shadow: 0 44px 90px -40px rgb(var(--c-2b2620) / .35), 0 2px 6px rgb(var(--c-2b2620) / .05); overflow: hidden; }
        .zh { display: flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink); }
        .sn { font-style: normal; display: inline-grid; place-items: center; width: 1.3rem; height: 1.3rem; border-radius: 9999px; background: var(--ph-on); color: var(--ph-ink); font-size: 12px; font-weight: 700; margin-right: .45rem; flex: none; }
        .zl { display: block; font-size: 12px; font-weight: 600; color: rgb(var(--c-6b655b)); margin-bottom: .4rem; }
        .zlink { display: inline-flex; align-items: center; gap: .3rem; font-size: 12.5px; font-weight: 600; color: rgb(var(--c-3e3b35)); }
        .zlink:hover { color: var(--ink); }
        .cta-sm { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; width: 100%; min-height: 2.6rem; border-radius: 9999px; background: var(--ink); color: rgb(var(--c-faf8f3)); font-weight: 600; font-size: 14px; cursor: pointer; }
        .cta-sm:disabled { background: rgb(var(--c-ddd8ce)); color: rgb(var(--c-8d867a)); }
        /* 1. Товар */
        .prod { background: linear-gradient(170deg, rgb(var(--c-fcf1ec)) 0%, rgb(var(--c-f9f7f2)) 55%, rgb(var(--c-fbf9f4)) 100%); border-right: 1px solid var(--zline); padding: 1.15rem 1.1rem; display: flex; flex-direction: column; gap: 1rem; overflow-y: auto; }
        .zcap { display: flex; align-items: center; justify-content: space-between; }
        .shots-empty { border-radius: 1rem; background: rgb(var(--c-faf8f3) / .85); padding: .8rem; font-size: 12.5px; color: rgb(var(--c-524d45)); line-height: 1.5; }
        .shots-empty .cta-sm { margin-top: .6rem; }
        .prod .shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
        .prod .field { background: var(--card); }
        .qr-box { font-size: 12.5px; }
        /* Карточка товара — в «Фотоальбоме»; здесь строка работает невидимо (открыть студию карточки по ссылке photo?card=…) */
        .zcard { display: none !important; }
        /* Фото */
        .canvas { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
        .cv-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem .35rem; }
        .cv-t { font-size: 14px; font-weight: 600; color: var(--ink); }
        .cv-ok { font-size: 12.5px; font-weight: 500; color: rgb(var(--c-526576)); margin-left: .6rem; white-space: nowrap; }
        .cv-ic { display: flex; gap: .2rem; align-items: center; }
        .cv-b { width: 2.25rem; height: 2.25rem; border-radius: 9999px; display: grid; place-items: center; color: rgb(var(--c-524d45)); font-size: 1.15rem; }
        .cv-b:hover { background: rgb(var(--c-ebe7de)); color: var(--ink); }
        .cv-b.is-on { color: var(--ph-acc); }
        .cv-dots { font-size: 1.25rem; line-height: 1; letter-spacing: .04em; font-weight: 700; }
        .more { position: absolute; right: 0; top: 2.5rem; z-index: 20; width: 15rem; background: var(--card); border: 1px solid var(--zline); border-radius: 1rem; box-shadow: 0 20px 40px -16px rgb(var(--c-2b2620) / .28); padding: .35rem; }
        .more-i { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .55rem .7rem; border-radius: .7rem; font-size: 13.5px; color: rgb(var(--c-3e3b35)); text-align: left; }
        .more-i:hover { background: rgb(var(--c-edeae1)); color: var(--ink); }
        .more-i[aria-pressed="true"] { background: var(--ph-on); color: var(--ph-ink); }
        .fix-pop { position: absolute; right: 1.25rem; top: 3.2rem; z-index: 19; width: 20rem; background: var(--card); border: 1px solid var(--zline); border-radius: 1rem; box-shadow: 0 20px 40px -16px rgb(var(--c-2b2620) / .28); padding: .85rem; }
        .canvas .stage { flex: 1 1 0; min-height: 0; max-width: none; width: auto; margin: 0 1.25rem; display: flex; align-items: center; justify-content: center; overflow: hidden; }
        .canvas .stage-drop, .canvas .stage-box { height: 100%; max-height: 100%; aspect-ratio: 3 / 4; width: auto; max-width: 100%; }
        .canvas .cmp, .canvas .cmp.is-single { height: 100%; width: 100%; max-width: none; margin: 0; display: flex; gap: .75rem; justify-content: center; align-items: stretch; }
        .canvas .cmp-fig { height: 100%; min-width: 0; display: flex; flex-direction: column; align-items: center; }
        .canvas .cmp-fig > img, .canvas .cmp-box { height: calc(100% - 1.7rem); width: auto; max-width: 100%; aspect-ratio: 3 / 4; flex: none; }
        .canvas .cmp-fig figcaption { margin-top: .35rem; }
        .canvas .cmp-main figcaption { display: none; }
        .canvas .cmp-main .cmp-box { height: 100%; }
        .canvas .feed { position: absolute; right: 0; bottom: 0; width: 15rem; background: var(--card); border-radius: 1rem; padding: .6rem; box-shadow: 0 20px 40px -20px rgb(var(--c-2b2620) / .3); }
        .cv-checks { margin: .4rem 1.25rem 0; }
        .cv-checks .cmp-checks li.is-ok, .cv-checks .cmp-checks li.is-note { display: none; }
        .canvas .st-msg { margin: .5rem 1.25rem 0; max-width: none; width: auto; }
        .zone .st-msg { background: rgb(var(--c-f6f3ed)); color: rgb(var(--c-3e3b35)); box-shadow: inset 0 0 0 1px rgb(var(--c-ddd8ce)); border: 0; }
        .zone .st-msg.is-ok, .zone .st-msg.is-info { background: rgb(var(--c-f6f3ed)); color: rgb(var(--c-3e3b35)); }
        .zone .st-msg-act { color: var(--ink); }
        /* 2. Лоток */
        .tray { border-top: 1px solid var(--zline); background: rgb(var(--c-f9f7f1)); padding: .8rem 1.25rem 1rem; max-height: 46%; overflow-y: auto; margin-top: .6rem; }
        .modes { display: flex; flex-wrap: wrap; gap: .4rem; margin: .55rem 0 .8rem; }
        .md { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid rgb(var(--c-ddd8ce)); background: var(--card); border-radius: 9999px; padding: .35rem .75rem; font-size: 13.5px; font-weight: 500; color: rgb(var(--c-3e3b35)); transition: border-color .15s, background-color .15s; }
        .md em { font-style: normal; font-size: 12.5px; color: rgb(var(--c-6b655b)); font-weight: 500; white-space: nowrap; }
        .md:hover { border-color: var(--ph-onb); }
        .md.is-on { background: var(--ph-on); border-color: var(--ph-onb); color: var(--ph-ink); font-weight: 600; }
        .md.is-on em { color: var(--ph-ink); }
        .md .rec { font-size: 10.5px; font-weight: 700; color: var(--ph-ink); background: var(--ph-on); border-radius: .35rem; padding: 0 .3rem; }
        .md.is-on .rec { background: var(--card); }
        .md[hidden] { display: none; }
        .tray .pane:not([hidden]) { display: grid; grid-template-columns: minmax(0, 1fr) 15.5rem; gap: 1.25rem; align-items: end; }
        .tray .pb { min-width: 0; }
        .tray .pg { position: sticky; bottom: 0; }
        .tray .pane-lead { margin: 0; }
        .zone .chip.is-on, .zone .look-act .chip.is-on { background: var(--ph-on); color: var(--ph-ink); box-shadow: inset 0 0 0 1.5px var(--ph-onb); }
        .zone .look-side.is-on { color: var(--ph-ink); background: var(--ph-on); }
        .zone .chip i { color: rgb(var(--c-6b655b)); }
        .zone .chip.is-on i { color: var(--ph-ink); }
        .zone .look-list i, .zone .look i.ph-check-circle { color: rgb(var(--c-526576)); }
        .zone .thumb.is-on img, .zone .thumb.is-on .thumb-plus { outline: 0; }
        .tray #f-place { flex-wrap: nowrap; overflow-x: auto; max-height: none; padding-bottom: .35rem; }
        .tray #f-place .chip { flex: none; }
        .tray .sw.is-on { box-shadow: 0 0 0 2px rgb(var(--c-fbf9f4)), 0 0 0 4px var(--ph-acc); border-color: transparent; }
        .canvas .drop-icon { background: var(--ph-on); color: var(--ph-ink); }
        /* Пустая студия: «облако» для снимков — компактная широкая зона, а не высокая карточка (замечание владельца 17.11.2026, п. 6):
           раньше она растягивалась на всю высоту и уходила под панель «Что нарисовать» */
        .canvas .stage-drop { height: auto; aspect-ratio: auto; width: min(100%, 34rem); max-height: 100%; flex-direction: row; gap: 1.1rem; justify-content: flex-start; text-align: left; padding: 1.4rem 1.6rem; }
        .canvas .stage-drop .drop-icon { flex: none; width: 3.5rem; height: 3.5rem; }
        .canvas .stage-drop .drop-txt { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
        @media (max-width: 1100px) { .canvas .stage:has(> #stage-drop:not([hidden])) { flex: none; height: auto; } }
        @media (max-width: 520px) { .canvas .stage-drop { flex-direction: column; text-align: center; justify-content: center; } }
        .tray .cta { font-size: 15px; }
        .tray .chip.is-on { background: var(--ph-on); color: var(--ph-ink); }
        details.fine { margin-top: .9rem; border: 1px solid var(--zline); border-radius: 1rem; padding: .6rem .85rem; background: var(--card); }
        details.fine > summary { display: flex; align-items: center; gap: .35rem; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--ink); list-style: none; }
        details.fine > summary span { font-weight: 500; color: rgb(var(--c-6b655b)); font-size: 12.5px; }
        details.fine > summary i { margin-left: auto; transition: transform .2s; }
        details.fine[open] > summary i { transform: rotate(180deg); }
        /* 3. Варианты */
        .vars { border-left: 1px solid var(--zline); background: rgb(var(--c-f6f3ed)); display: flex; flex-direction: column; min-height: 0; }
        .vars-h { padding: 1rem .9rem .5rem; align-items: flex-start; line-height: 1.3; }
        .vwrap { flex: 1; min-height: 0; overflow-y: auto; padding: 0 .9rem; }
        .vwrap .vlist { display: flex; flex-direction: column; gap: .6rem; }
        .vempty { font-size: 12.5px; color: rgb(var(--c-6b655b)); line-height: 1.45; }
        .vfoot { padding: .75rem .9rem 1rem; border-top: 1px solid var(--zline); font-size: 12.5px; color: rgb(var(--c-524d45)); display: grid; gap: .2rem; }
        .vguest { display: none !important; }
        .vguest-off { padding: .75rem .9rem 1rem; border-top: 1px solid var(--zline); font-size: 12.5px; color: rgb(var(--c-524d45)); line-height: 1.45; }
        .vlist .thumb-cell { position: relative; }
        .vlist .thumb { width: 100%; }
        .vlist .thumb img, .vlist .thumb-media { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: .85rem; }
        .vlist .thumb.is-on img { box-shadow: 0 0 0 2.5px var(--ph-acc); }
        .vlist .thumb-name, .vlist .thumb-price { display: none; }
        .v-heart { position: absolute; right: .35rem; top: .35rem; width: 1.8rem; height: 1.8rem; border-radius: 9999px; background: rgb(var(--c-faf8f3) / .95); display: grid; place-items: center; color: rgb(var(--c-8d867a)); font-size: 1rem; box-shadow: 0 1px 3px rgb(var(--c-000000) / .12); }
        .v-heart.is-on { color: var(--ph-acc); }
        .help-line { margin-top: 1.1rem; display: flex; align-items: center; gap: .5rem; font-size: 14px; color: rgb(var(--c-6b655b)); }
        .help-line button { font-weight: 600; color: rgb(var(--c-3e3b35)); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(var(--c-cbc5b9)); }
        @media (max-width: 1100px) {
            /* minmax(0, 1fr), а не 1fr: иначе колонку раздвигал ряд снимков, и «Новый товар», «3 из 10» и третий снимок обрезались справа (автопроверка 17.11.2026) */
            .zone { grid-template-columns: minmax(0, 1fr); height: auto; max-height: none; min-height: 0; }
            .prod { border-right: 0; border-bottom: 1px solid var(--zline); }
            .prod .shots { grid-template-columns: repeat(4, minmax(0, 1fr)); }
            .canvas .stage { flex: none; height: min(62vh, 32rem); }
            .tray { max-height: none; }
            .vars { border-left: 0; border-top: 1px solid var(--zline); }
            .vwrap { overflow: visible; padding-bottom: .9rem; }
            .vwrap .vlist { flex-direction: row; overflow-x: auto; }
            .vlist .thumb-cell { width: 5.5rem; flex: none; }
        }
        @media (max-width: 767px) {
            .zone { border-radius: 2rem 1rem 2rem 1rem; }
            .prod .shots { grid-template-columns: repeat(3, minmax(0, 1fr)); }
            .tray .pane:not([hidden]) { grid-template-columns: 1fr; }
            .cv-top { padding: .8rem 1rem .3rem; } .canvas .stage { margin: 0 1rem; } .tray { padding: .8rem 1rem 1rem; }
            .md { font-size: 13.5px; }
            details.fine > summary span { display: none; }
            .cv-ok { display: block; margin: .15rem 0 0; }
            .cv-t { font-size: 13.5px; }
        }
    
