        /* «Мои модели» — редизайн 15.11.2026: группа «Фото» (персик + графит), одна рабочая зона в один экран.
           Свечение паспорта и знак «Аа» — нейросеть, их не трогаем */
        :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)); }
        main#main { padding-top: 1.25rem !important; padding-bottom: 2rem !important; }
        .md-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1rem; margin-bottom: 1rem; }
        .md-h1 { font-size: 28px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); }
        .md-lead { font-size: 15px; color: rgb(var(--c-6b655b)); }
        .md-zone { display: grid; grid-template-columns: 20rem minmax(0, 1fr); 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; }
        .md-list { background: linear-gradient(170deg, rgb(var(--c-fcf1ec)) 0%, rgb(var(--c-f9f7f2)) 55%, rgb(var(--c-fbf9f4)) 100%); border-right: 1px solid rgb(var(--c-e6e1d7)); padding: 1.15rem 1rem; max-height: 46rem; overflow-y: auto; }
        .md-cap { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: .75rem; }
        .md-new { padding: 1.15rem 1.5rem 1.25rem; min-width: 0; }
        .slots-count { font-size: 12px; background: rgb(var(--c-faf8f3) / .9); padding: .3rem .55rem; border-radius: 9999px; }
        .m-grid { grid-template-columns: 1fr !important; gap: .5rem !important; }
        /* в списке — одно фото: левая половина паспорта (портрет), по нажатию — паспорт целиком (просьба владельца 15.11.2026) */
        .m-card { flex-direction: row; align-items: stretch; border-color: rgb(var(--c-f3dacc)); border-radius: 1.1rem .55rem 1.1rem .55rem; }
        .m-zoom { position: relative; flex: none; width: 5.75rem; background: rgb(var(--c-ebe7de)); cursor: zoom-in; overflow: hidden; }
        .m-zoom img { width: 100%; height: 100%; min-height: 9rem; aspect-ratio: 3 / 5; object-fit: cover; object-position: 0% 30%; transition: transform .3s; }
        .m-zoom:hover img { transform: scale(1.03); }
        .m-zoom i { display: none; }
        .m-card .m-card-b { justify-content: center; }
        .m-card .m-card-b .m-use { white-space: nowrap; padding: .45rem .6rem; font-size: 12.5px; width: 100%; }
        /* имя — целиком, с переносом, без «…» (замечание владельца 15.11.2026: «Ири…» выглядит дёшево) */
        .m-card .m-name { align-items: flex-start; }
        .m-card .m-name span { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
        /* просмотр крупно */
        .m-view[open] { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); overflow: hidden; }  /* без полосы прокрутки: всё окно в экране */
        .m-view-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.25rem .8rem; }
        .m-view-use { padding: .5rem 1rem; white-space: nowrap; }
        .m-view-x { width: 2.25rem; height: 2.25rem; border-radius: 9999px; display: grid; place-items: center; color: rgb(var(--c-524d45)); font-size: 1.15rem; }
        .m-view-x:hover { background: rgb(var(--c-ebe7de)); color: var(--ink); }
        .m-view-pic { position: relative; background: rgb(var(--c-ebe7dd)); min-height: 0; flex: 1; display: flex; }
        .m-view-pic img { width: 100%; max-height: calc(100vh - 10rem); object-fit: contain; display: block; }
        .m-view-arr { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border-radius: 9999px; display: grid; place-items: center;
            background: rgb(var(--c-faf8f3) / .92); color: rgb(var(--c-30302f)); font-size: 1.2rem; box-shadow: 0 8px 24px -10px rgb(var(--c-2b2620) / .4); }
        .m-view-arr:hover { background: var(--card); }
        .m-view-arr.is-l { left: .9rem; } .m-view-arr.is-r { right: .9rem; }
        /* Заставка «тёплый пепел» (Р37): дымчатое стекло, пока грузится фото; фото проявляется из размытия */
        /* окно одной высоты и до, и после загрузки — паспорт 4 : 3, без скачка */
        .m-view-pic { background: rgb(var(--c-252525)); overflow: hidden; flex: none; width: min(100%, calc((100dvh - 14rem) * 4 / 3)); aspect-ratio: 4 / 3; margin: 0 auto; }
        .m-view-pic img { position: absolute; inset: 0; width: 100%; height: 100%; max-height: none; object-fit: cover; }
        .m-view-pic img { opacity: 0; filter: blur(14px); transform: scale(1.03); transition: opacity .6s ease, filter .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
        .m-view-pic img.is-in { opacity: 1; filter: none; transform: none; }
        .m-ash { position: absolute; inset: 0; overflow: hidden; transition: opacity .5s ease; }
        .m-ash::before { content: ""; position: absolute; inset: -30%; filter: blur(36px); opacity: .85; animation: ash-drift 9s ease-in-out infinite alternate;
            background: radial-gradient(circle at 38% 40%, rgb(var(--c-b2ab9e) / .75) 0, transparent 42%), radial-gradient(circle at 64% 62%, rgb(var(--c-8c867b) / .7) 0, transparent 44%),
                radial-gradient(circle at 62% 28%, rgb(var(--g1) / var(--g1a)) 0, transparent 38%); }
        .m-ash-glass { position: absolute; inset: 18px; border-radius: 1.2rem; background: rgb(var(--c-252525) / .32); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
            box-shadow: inset 0 0 0 1px rgb(var(--c-faf8f3) / .08), inset 0 1px 0 rgb(var(--c-faf8f3) / .12); display: grid; place-items: center; }
        .m-ash-c { display: grid; justify-items: center; gap: 14px; }
        .m-ash-c .slog-ai { font-size: 44px; }
        .m-ash-bar { width: 120px; height: 2px; border-radius: 2px; background: rgb(var(--c-faf8f3) / .12); overflow: hidden; }
        .m-ash-bar i { display: block; width: 40%; height: 100%; border-radius: 2px; background: rgb(var(--c-c49276)); animation: ash-run 1.6s ease-in-out infinite; }
        .m-ash-who { font-size: 12.5px; letter-spacing: .02em; color: rgb(var(--c-faf8f3) / .72); }
        .m-view-pic.is-loaded .m-ash { opacity: 0; pointer-events: none; }
        @keyframes ash-drift { from { transform: translate(-4%, -3%) rotate(0deg); } to { transform: translate(4%, 3%) rotate(14deg); } }
        @keyframes ash-run { 0% { transform: translateX(-110%); } 100% { transform: translateX(260%); } }
        @media (prefers-reduced-motion: reduce) { .m-ash::before, .m-ash-bar i { animation: none; } .m-view-pic img { transition: opacity .2s; filter: none; transform: none; } }
        .m-view-count { text-align: center; font-size: 12.5px; color: rgb(var(--c-6b655b)); padding: .55rem 0 .7rem; }
        .m-view-count:empty { padding: 0 0 .3rem; }
        .m-card-b { padding: .55rem .65rem; gap: .35rem; min-width: 0; }
        .m-name { font-size: 14px; }
        .m-icon { width: 1.75rem; height: 1.75rem; }
        .m-card .m-tag:nth-child(n+3) { display: none; }
        .m-use { padding: .4rem .5rem; font-size: 12.5px; border-radius: 9999px; }
        .m-card.is-empty { display: grid; grid-template-columns: 2rem minmax(0, 1fr); flex-wrap: nowrap; align-items: center; min-height: 0; padding: .6rem .7rem; gap: .35rem .6rem; text-align: left; justify-content: flex-start;
            border: 1.5px dashed var(--ph-onb); background: rgb(var(--c-faf8f3) / .7); }
        .m-card.is-empty .m-plus { width: 2rem; height: 2rem; font-size: 1.05rem; border-radius: .7rem; background: var(--ph-on); color: var(--ph-ink); }
        .m-card.is-empty .m-empty-h { font-size: 13.5px; flex: 1; }
        .m-card.is-empty .m-empty-s { display: none; }
        .m-card.is-empty .m-plus { grid-row: 1 / span 2; align-self: center; }
        .m-card.is-empty .m-use { grid-column: 2; width: 100% !important; margin: 0; padding: .35rem .7rem; white-space: nowrap; }
        .m-card.is-empty .m-empty-h { min-width: 0; font-size: 13px !important; }
        .m-make { grid-template-columns: minmax(0, 1fr) 19rem; gap: 1.5rem; }
        .m-hint { margin-top: .4rem; }
        .m-label { margin: .55rem 0 .3rem; font-size: 12px; }
        .m-chips { gap: .3rem; }
        .m-chip { padding: .32rem .7rem; border-radius: 9999px; }
        .m-chip[aria-checked="true"] { background: var(--ph-on); box-shadow: inset 0 0 0 1px var(--ph-onb); color: var(--ph-ink); }
        .m-field { padding: .55rem .8rem; }
        .m-field:focus { outline-color: var(--ph-onb); }
        .m-privacy { background: rgb(var(--c-fcf1ec)); margin-top: .7rem; padding: .55rem .75rem; font-size: 12px; }
        .m-privacy .text-violet-500 { color: var(--ph-acc) !important; }
        .m-cta { border-radius: 9999px; padding: .7rem; }
        .m-cta2 { border-radius: 9999px; padding: .6rem; }
        #make-btn { margin-top: .9rem; }
        .m-result { padding: .9rem; }
        .m-passport-empty { padding: 1rem; }
        .m-full { border-color: var(--ph-onb); }
        .m-rules li::before { color: var(--ph-acc); }
        #list-msg.text-violet-700 { color: var(--ph-ink); }
        .help-line { margin-top: 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)); }
        .hbody .help-lesson { margin: .25rem 0 1rem; width: 100%; max-width: none; }
        .hbody .m-rules { flex-direction: column; gap: .4rem; }
        @media (max-width: 1100px) { .m-make { grid-template-columns: minmax(0, 1fr) 17rem; } }
        @media (max-width: 900px) {
            .md-zone { grid-template-columns: 1fr; border-radius: 2rem 1rem 2rem 1rem; }
            .md-list { border-right: 0; border-bottom: 1px solid rgb(var(--c-e6e1d7)); max-height: none; }
            .md-new { padding: 1rem; }
            .m-make { grid-template-columns: 1fr; }
        }
    
