/* Vision Flow — «Мастерская промпта» (чёрный бархат, белое золото) */
@media (max-width: 640px) { html.vfpg-lock, html.vfpg-lock body { overflow: hidden !important; } }

/* ---------- кнопка в поле ввода ---------- */
.vfpg-btn {
    position: relative; width: 38px; height: 38px; border-radius: 12px; display: inline-grid; place-items: center; cursor: pointer; flex: 0 0 auto;
    color: #f2e8d3; background: rgba(247, 239, 222, 0.05); border: 1px solid rgba(236, 224, 198, 0.22);
    transition: background 0.2s, border-color 0.2s, transform 0.35s cubic-bezier(.34, 1.56, .64, 1);
}
.vfpg-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.vfpg-btn:hover { background: rgba(247, 239, 222, 0.1); border-color: rgba(242, 232, 211, 0.55); transform: translateY(-1px); }
.vfpg-btn:hover svg:not(.vf-aster) path:nth-child(n+3) { animation: vfpg-twinkle 1s ease-in-out infinite alternate; transform-box: fill-box; transform-origin: center; }
.vfpg-btn:hover svg:not(.vf-aster) path:nth-child(4) { animation-delay: -0.35s; }
.vfpg-btn:hover svg:not(.vf-aster) path:nth-child(5) { animation-delay: -0.7s; }
@keyframes vfpg-twinkle { to { transform: scale(0.55) rotate(25deg); opacity: 0.5; } }
.vfpg-btn__badge {
    position: absolute; right: -5px; top: -5px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px; box-sizing: border-box;
    font: 700 9px/16px "Inter", sans-serif; font-style: normal; text-align: center; color: #1d1a14;
    background: linear-gradient(180deg, #fffaf0, #e8dcc2 55%, #cbb994); box-shadow: 0 0 0 2px #0a0a09;
}
.vfpg-btn__badge:empty { display: none; }
.vfpg-btn__badge.is-rocket { display: inline-flex; align-items: center; justify-content: center; width: 18px; min-width: 18px; height: 18px; padding: 0; }
.vfpg-btn__badge .vfpg-btn__rocket { width: 11px; height: 11px; display: block; fill: #1d1a14; stroke: #1d1a14; stroke-width: 1.2; stroke-linejoin: round; stroke-linecap: round; transform: translate(-0.3px, 0.3px); }
.vfpg-btn__badge .vfpg-btn__rocket path:nth-child(2), .vfpg-btn__badge .vfpg-btn__rocket path:nth-child(3) { fill: none; }
.vfpg-btn__badge .vfpg-btn__rocket .vfpg-btn__rocket-win { fill: #f3e9d2; stroke: none; }

/* ---------- окно ---------- */
.vfpg { position: fixed; inset: 0; z-index: 2147482000; display: grid; place-items: center; padding: 20px; pointer-events: none; visibility: hidden; contain: layout style; transition: visibility 0s linear 0.42s; }
.vfpg.is-open { pointer-events: auto; visibility: visible; transition: visibility 0s; }
.vfpg__veil { position: absolute; inset: 0; background: rgba(3, 3, 2, 0.72); opacity: 0; transition: opacity 0.35s ease; will-change: opacity; }
.vfpg.is-open .vfpg__veil { opacity: 1; }
.vfpg__box {
    position: relative; width: min(680px, 100%); max-height: min(calc(88vh / var(--vf-z, 1)), 860px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
    background: radial-gradient(120% 70% at 50% 0%, rgba(247, 239, 222, 0.06), transparent 60%), linear-gradient(180deg, #13120e, #0a0a08);
    border: 1px solid rgba(236, 224, 198, 0.26);
    box-shadow: inset 0 1px 0 rgba(255, 252, 245, 0.06), inset 0 0 0 6px rgba(5, 5, 4, 0.6), inset 0 0 0 7px rgba(236, 224, 198, 0.06), 0 30px 80px rgba(0, 0, 0, 0.7);
    opacity: 0; transform: translateY(18px) scale(0.975); transition: opacity 0.28s ease, transform 0.42s cubic-bezier(.22, 1, .36, 1);
    will-change: opacity, transform;
}
.vfpg.is-open .vfpg__box { opacity: 1; transform: none; }
.vfpg__head { display: flex; align-items: center; gap: 14px; padding: 20px 22px 14px; border-bottom: 1px solid rgba(236, 224, 198, 0.12); }
.vfpg__title { flex: 1; min-width: 0; display: grid; gap: 4px; }
.vfpg__title b { font: 700 1.5rem/1.1 var(--vf-antiqua, "Cormorant Garamond", Georgia, serif); color: #f5eddc; letter-spacing: 0.01em; }
.vfpg__sub { font: 400 0.82rem/1.4 "Inter", sans-serif; color: rgba(245, 237, 220, 0.55); }
.vfpg__quota { position: relative; display: flex; align-items: center; gap: 8px; flex: 0 0 auto; max-width: 46%; }
.vfpg__ring { width: 40px; height: 40px; flex: 0 0 40px; transform: rotate(-90deg); }
.vfpg__ring-bg { fill: none; stroke: rgba(236, 224, 198, 0.14); stroke-width: 2.4; }
.vfpg__ring-val { fill: none; stroke: #f2e8d3; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 0 100; transition: stroke-dasharray 0.8s cubic-bezier(.22, 1, .36, 1); filter: drop-shadow(0 0 3px rgba(242, 232, 211, 0.6)); }
.vfpg__qnum { position: absolute; left: 0; width: 40px; text-align: center; font: 700 0.86rem/1 "Inter", sans-serif; color: #f5eddc; font-variant-numeric: tabular-nums; }
.vfpg__qtxt { font: 500 0.72rem/1.3 "Inter", sans-serif; color: rgba(236, 224, 198, 0.7); }
.vfpg__qtxt a, .vfpg__err a { color: #f2e8d3; }
.vfpg__quota.is-empty .vfpg__qnum::after { content: "🚀"; font-size: 0.7rem; }
.vfpg__quota.is-empty .vfpg__qnum { font-size: 0; }
.vfpg__x { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #f2e8d3; background: rgba(247, 239, 222, 0.04); border: 1px solid rgba(236, 224, 198, 0.22); transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), background 0.2s; }
.vfpg__x:hover { transform: rotate(90deg); background: rgba(247, 239, 222, 0.1); }
.vfpg__x svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }

.vfpg__scroll { overflow-y: auto; padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: rgba(236, 224, 198, 0.3) transparent; }
.vfpg__label { font: 600 0.64rem/1 "Inter", sans-serif; letter-spacing: 0.22em; text-transform: uppercase; color: rgba(236, 224, 198, 0.58); }
.vfpg__label::before { content: "◆  "; font-size: 0.5rem; vertical-align: 1px; }
.vfpg__idea, .vfpg__out {
    width: 100%; box-sizing: border-box; resize: vertical; border-radius: 16px; padding: 14px 16px; color: #f5eddc;
    font: 400 0.95rem/1.55 "Inter", sans-serif; background: rgba(5, 5, 4, 0.6); border: 1px solid rgba(236, 224, 198, 0.2); outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.vfpg__idea:focus, .vfpg__out:focus { border-color: rgba(242, 232, 211, 0.6); box-shadow: 0 0 0 3px rgba(236, 224, 198, 0.08); }
.vfpg__idea::placeholder { color: rgba(245, 237, 220, 0.35); }
.vfpg__ex { display: flex; flex-wrap: wrap; gap: 6px; }
.vfpg__chip {
    cursor: pointer; border-radius: 999px; padding: 7px 12px; font: 500 0.78rem/1.1 "Inter", sans-serif; color: rgba(245, 237, 220, 0.78);
    background: rgba(247, 239, 222, 0.03); border: 1px solid rgba(236, 224, 198, 0.16); transition: border-color 0.2s, background 0.2s, color 0.2s, transform 0.3s cubic-bezier(.34, 1.56, .64, 1);
}
.vfpg__chip:hover { border-color: rgba(236, 224, 198, 0.45); color: #fffaf0; transform: translateY(-1px); }
.vfpg__chip--ex { font-style: italic; }
.vfpg__chip--ex::before { content: "✦ "; color: rgba(236, 224, 198, 0.6); font-style: normal; }
.vfpg__chip.is-on { color: #1d1a14; border-color: transparent; background: linear-gradient(180deg, #fffaf0, #e8dcc2 55%, #cbb994); }
.vfpg__more { border-top: 1px solid rgba(236, 224, 198, 0.1); padding-top: 10px; }
.vfpg__more summary { cursor: pointer; list-style: none; font: 600 0.82rem/1 "Inter", sans-serif; color: #f2e8d3; display: inline-flex; align-items: center; gap: 8px; }
.vfpg__more summary::-webkit-details-marker { display: none; }
.vfpg__more summary::before { content: "＋"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid rgba(236, 224, 198, 0.35); font-size: 0.7rem; transition: transform 0.3s; }
.vfpg__more[open] summary::before { transform: rotate(45deg); }
.vfpg__more summary em { font: italic 400 0.8rem/1 var(--vf-antiqua, Georgia, serif); color: rgba(236, 224, 198, 0.5); }
.vfpg__groups { display: grid; gap: 10px; margin-top: 12px; }
.vfpg__group { display: grid; grid-template-columns: 96px 1fr; gap: 10px; align-items: start; }
.vfpg__group > span { font: 600 0.72rem/2.2 "Inter", sans-serif; color: rgba(236, 224, 198, 0.6); letter-spacing: 0.04em; }
.vfpg__group > div { display: flex; flex-wrap: wrap; gap: 6px; }
.vfpg__row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 2px; }
.vfpg__lang { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid rgba(236, 224, 198, 0.2); background: rgba(5, 5, 4, 0.5); }
.vfpg__lang button { cursor: pointer; border: 0; border-radius: 999px; padding: 6px 12px; font: 700 0.72rem/1 "Inter", sans-serif; letter-spacing: 0.08em; color: rgba(236, 224, 198, 0.6); background: transparent; }
.vfpg__lang button.is-on { color: #1d1a14; background: linear-gradient(180deg, #fffaf0, #e8dcc2 55%, #cbb994); }
.vfpg__acts, .vfpg__res-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.vfpg__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; border-radius: 999px; cursor: pointer;
    font: 700 0.78rem/1 "Inter", sans-serif; letter-spacing: 0.04em; color: #f2e8d3;
    background: radial-gradient(circle at 50% 30%, #1f1c16, #0b0b0a 75%); border: 1px solid rgba(236, 224, 198, 0.3);
    transition: transform 0.35s cubic-bezier(.34, 1.56, .64, 1), border-color 0.2s, filter 0.2s;
}
.vfpg__btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.vfpg__btn:hover { transform: translateY(-1px); border-color: rgba(242, 232, 211, 0.65); }
.vfpg__btn--go, .vfpg__btn--put { color: #1d1a14; border-color: transparent; background: linear-gradient(180deg, #fffaf0, #e8dcc2 55%, #cbb994); box-shadow: 0 0 0 3px rgba(5, 5, 4, 0.8), 0 0 0 4px rgba(236, 224, 198, 0.3), 0 8px 22px rgba(236, 224, 198, 0.16); }
.vfpg__btn--idea:hover svg { animation: vf-roll 0.7s cubic-bezier(.34, 1.3, .64, 1); }
.vfpg__btn.is-done { border-color: rgba(242, 232, 211, 0.8); }
.vfpg.is-busy .vfpg__btn--go, .vfpg.is-busy .vfpg__btn--idea { pointer-events: none; filter: brightness(0.7); }

.vfpg__res { display: grid; gap: 10px; padding: 14px; border-radius: 18px; border: 1px solid rgba(236, 224, 198, 0.24);
    background: radial-gradient(120% 100% at 0% 0%, rgba(247, 239, 222, 0.06), transparent 60%), rgba(5, 5, 4, 0.5); animation: vfpg-in 0.45s cubic-bezier(.22, 1, .36, 1); }
@keyframes vfpg-in { from { opacity: 0; transform: translateY(8px); } }
.vfpg__res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vfpg__res-title { font: italic 600 1.05rem/1 var(--vf-antiqua, Georgia, serif); color: #f5eddc; }
.vfpg__res-note { font: 600 0.7rem/1 "Inter", sans-serif; color: rgba(236, 224, 198, 0.6); letter-spacing: 0.04em; }
.vfpg__out { min-height: 150px; background: rgba(0, 0, 0, 0.35); }
.vfpg__out.is-typing { caret-color: transparent; }
/* пока собирается — «проявляющиеся» строки */
.vfpg__res.is-loading .vfpg__out {
    color: transparent; background:
        repeating-linear-gradient(180deg, transparent 0 14px, rgba(236, 224, 198, 0.1) 14px 22px, transparent 22px 28px) 16px 14px / calc(100% - 32px) calc(100% - 28px) no-repeat,
        linear-gradient(105deg, transparent 30%, rgba(247, 239, 222, 0.1) 50%, transparent 70%) -150% 0 / 250% 100% no-repeat,
        rgba(0, 0, 0, 0.35);
    animation: vf-dev-sheen 1.6s linear infinite;
}
.vfpg__res.is-loading .vfpg__res-title::after { content: " проявляется…"; color: rgba(236, 224, 198, 0.55); }
.vfpg__res.is-loading .vfpg__res-acts { opacity: 0.4; pointer-events: none; }
.vfpg__err { margin: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid rgba(236, 224, 198, 0.22); background: rgba(247, 239, 222, 0.04); font: 500 0.84rem/1.45 "Inter", sans-serif; color: rgba(245, 237, 220, 0.85); }

/* ---------- телефон: окно снизу листом ---------- */
@media (max-width: 640px) {
    .vfpg { padding: 0; place-items: end stretch; }
    .vfpg__box { width: 100%; max-height: calc(92vh / var(--vf-z, 1)); border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom); transform: translateY(40px); }
    .vfpg__head { flex-wrap: wrap; padding: 16px 16px 12px; }
    .vfpg__title b { font-size: 1.3rem; }
    .vfpg__quota { order: 3; max-width: 100%; flex: 1 1 100%; }
    .vfpg__scroll { padding: 14px 16px 18px; }
    .vfpg__group { grid-template-columns: 1fr; gap: 6px; }
    .vfpg__group > span { line-height: 1; }
    .vfpg__row { flex-direction: column; align-items: stretch; }
    .vfpg__acts, .vfpg__res-acts { display: grid; grid-template-columns: 1fr 1fr; }
    .vfpg__btn { justify-content: center; }
    .vfpg__btn--go, .vfpg__btn--put { grid-column: 1 / -1; order: -1; height: 48px; }
}
@media (prefers-reduced-motion: reduce) { .vfpg__box, .vfpg__res, .vfpg__ring-val { transition: none !important; animation: none !important; } }
.vfpg [hidden] { display: none !important; }
.vfpg__scroll > * { flex-shrink: 0; }
.vfpg__idea { min-height: 92px; }
@media (max-width: 640px) { .vfpg__acts .vfpg__btn--idea { grid-column: 1 / -1; } .vfpg__btn span { white-space: nowrap; } }

/* ---------- выбор нейросети ---------- */
.vfpg__targets { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.vfpg__target { font-weight: 600; }
.vfpg__target.is-on { box-shadow: 0 0 0 3px rgba(5, 5, 4, 0.8), 0 0 0 4px rgba(236, 224, 198, 0.35); }

/* ---------- сборка: строки техзадания пишутся по очереди, перо всегда на кончике строки ---------- */
.vfpg__res.is-loading .vfpg__out { display: none; }
.vfpg__load { display: none; flex-direction: column; gap: 14px; padding: 22px 24px 18px; border-radius: 16px; min-height: 200px; box-sizing: border-box;
    background: radial-gradient(90% 90% at 0% 0%, rgba(247, 239, 222, 0.05), transparent 60%), rgba(0, 0, 0, 0.35); border: 1px solid rgba(236, 224, 198, 0.14); }
.vfpg__res.is-loading .vfpg__load { display: flex; }
.vfpg__sheet { display: grid; gap: 13px; }
.vfpg__ln { margin: 0; height: 8px; display: flex; align-items: center; }
.vfpg__ln--h { height: 10px; margin-top: 4px; }
.vfpg__ln > i { position: relative; display: block; height: 100%; width: 0; border-radius: 6px;
    background: linear-gradient(90deg, rgba(203, 185, 148, 0.35), rgba(242, 232, 211, 0.75)); }
.vfpg__ln--h > i { background: linear-gradient(90deg, #cbb994, #fffaf0); box-shadow: 0 0 10px rgba(255, 246, 224, 0.25); }
/* перо: ромбик-кончик на конце строки — двигается вместе с ней, не отрывается */
.vfpg__ln > i::after { content: ""; position: absolute; right: -5px; top: 50%; width: 9px; height: 9px; margin-top: -4.5px; transform: rotate(45deg);
    background: #fffaf0; box-shadow: 0 0 10px 2px rgba(255, 246, 224, 0.85); opacity: 0; }
/* цикл 5 с: заголовок → строка → строка → заголовок → строка → пауза → гаснет */
.vfpg__ln--h > i  { --w: 34%; animation: vfpg-l1 5s cubic-bezier(.45, .05, .35, 1) infinite; }
.vfpg__ln--1 > i  { --w: 92%; animation: vfpg-l2 5s cubic-bezier(.45, .05, .35, 1) infinite; }
.vfpg__ln--2 > i  { --w: 74%; animation: vfpg-l3 5s cubic-bezier(.45, .05, .35, 1) infinite; }
.vfpg__ln--h2 > i { --w: 28%; animation: vfpg-l4 5s cubic-bezier(.45, .05, .35, 1) infinite; }
.vfpg__ln--3 > i  { --w: 86%; animation: vfpg-l5 5s cubic-bezier(.45, .05, .35, 1) infinite; }
.vfpg__ln--h > i::after  { animation: vfpg-n1 5s linear infinite; }
.vfpg__ln--1 > i::after  { animation: vfpg-n2 5s linear infinite; }
.vfpg__ln--2 > i::after  { animation: vfpg-n3 5s linear infinite; }
.vfpg__ln--h2 > i::after { animation: vfpg-n4 5s linear infinite; }
.vfpg__ln--3 > i::after  { animation: vfpg-n5 5s linear infinite; }
@keyframes vfpg-l1 { 0% { width: 0; opacity: 1; } 12% { width: var(--w); } 88% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes vfpg-l2 { 0%, 12% { width: 0; opacity: 1; } 30% { width: var(--w); } 88% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes vfpg-l3 { 0%, 30% { width: 0; opacity: 1; } 46% { width: var(--w); } 88% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes vfpg-l4 { 0%, 46% { width: 0; opacity: 1; } 56% { width: var(--w); } 88% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes vfpg-l5 { 0%, 56% { width: 0; opacity: 1; } 76% { width: var(--w); } 88% { width: var(--w); opacity: 1; } 100% { width: var(--w); opacity: 0; } }
@keyframes vfpg-n1 { 0%, 11% { opacity: 1; } 13%, 100% { opacity: 0; } }
@keyframes vfpg-n2 { 0%, 11.5% { opacity: 0; } 12.5%, 29% { opacity: 1; } 31%, 100% { opacity: 0; } }
@keyframes vfpg-n3 { 0%, 29.5% { opacity: 0; } 30.5%, 45% { opacity: 1; } 47%, 100% { opacity: 0; } }
@keyframes vfpg-n4 { 0%, 45.5% { opacity: 0; } 46.5%, 55% { opacity: 1; } 57%, 100% { opacity: 0; } }
@keyframes vfpg-n5 { 0%, 55.5% { opacity: 0; } 56.5%, 75% { opacity: 1; } 77%, 100% { opacity: 0; } }
.vfpg__stage { margin: 4px 0 0; min-height: 1.3em; text-align: left; border-top: 1px solid rgba(236, 224, 198, 0.12); padding-top: 12px; }
.vfpg__stage span { display: inline-block; font: italic 600 1.02rem/1.2 var(--vf-antiqua, Georgia, serif); color: rgba(242, 232, 211, 0.85); }
.vfpg__stage span::before { content: "✦  "; font-style: normal; font-size: 0.75rem; color: rgba(236, 224, 198, 0.6); }
.vfpg__stage span.is-in { animation: vf-stage-in 0.6s cubic-bezier(.22, 1, .36, 1); }
.vfpg__res.is-loading .vfpg__res-title::after { content: none !important; }
/* готовый промпт многострочный — поле выше, переносы сохраняются */
.vfpg__out { min-height: 260px !important; white-space: pre-wrap; line-height: 1.6 !important; font-size: 0.9rem !important; }
@media (prefers-reduced-motion: reduce) { .vfpg__ln > i { animation: none !important; width: var(--w) !important; } .vfpg__ln > i::after { display: none; } }

/* ---------- примеры под «＋ Примеры» ---------- */
.vfpg__exwrap { border-top: 0; padding-top: 0; }
.vfpg__exwrap .vfpg__ex { margin-top: 10px; }
.vfpg__chip--ex { animation: vfpg-in 0.4s cubic-bezier(.22, 1, .36, 1) both; }
.vfpg__exmore { margin-top: 8px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 999px; cursor: pointer;
    background: none; color: rgba(236, 224, 198, 0.7); font: 600 0.74rem/1 "Inter", sans-serif; }
.vfpg__exmore svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.vfpg__exmore:hover { color: #fffaf0; }
.vfpg__exmore:hover svg { animation: vf-roll 0.7s cubic-bezier(.34, 1.3, .64, 1); }

/* ---------- окно шире: слева — идея и настройки, справа — готовый промпт ---------- */
.vfpg__ph { display: none; }
@media (min-width: 980px) {
    .vfpg { padding: 28px; }
    .vfpg__box { width: min(1120px, 100%); max-height: min(calc(90vh / var(--vf-z, 1)), 920px); }
    .vfpg__head { padding: 22px 26px 16px; }
    .vfpg__scroll { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); column-gap: 28px; row-gap: 12px; align-items: start; align-content: start; padding: 20px 26px 26px; }
    .vfpg__scroll > * { grid-column: 1; min-width: 0; }
    .vfpg__scroll > .vfpg__res, .vfpg__scroll > .vfpg__ph { grid-column: 2; grid-row: 1 / span 12; position: sticky; top: 0; align-self: start; }
    .vfpg__res { min-height: 100%; }
    .vfpg__out { min-height: 430px !important; max-height: calc(58vh / var(--vf-z, 1)); }
    .vfpg__load { min-height: 430px; }
    .vfpg__ph {
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 480px; padding: 28px 34px; box-sizing: border-box; text-align: center;
        border-radius: 18px; border: 1px dashed rgba(236, 224, 198, 0.2);
        background: radial-gradient(70% 60% at 50% 40%, rgba(247, 239, 222, 0.05), transparent 70%), rgba(5, 5, 4, 0.35);
    }
    .vfpg__ph svg { width: 54px; height: 54px; fill: none; stroke: rgba(236, 224, 198, 0.7); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 4px; }
    .vfpg__ph b { font: italic 600 1.25rem/1.2 var(--vf-antiqua, Georgia, serif); color: #f5eddc; }
    .vfpg__ph span { max-width: 360px; font: 400 0.84rem/1.55 "Inter", sans-serif; color: rgba(245, 237, 220, 0.5); }
    .vfpg__res:not([hidden]) ~ .vfpg__ph { display: none; }
    .vfpg__row { flex-wrap: nowrap; }
    .vfpg__group { grid-template-columns: 88px 1fr; }
}
/* «Примеры» и «Уточнить» раскрываются мягко */
.vfpg__more[open] > div, .vfpg__more[open] > .vfpg__exmore { animation: vfpg-in 0.4s cubic-bezier(.22, 1, .36, 1) both; }

/* ---------- окно выше: почти во всю высоту экрана, поле идеи и область промпта растут вместе с ним ---------- */
@media (min-width: 980px) {
    .vfpg { --vfpg-h: min(calc(94vh / var(--vf-z, 1)), 1040px); padding: calc(3vh / var(--vf-z, 1)) 28px; }
    .vfpg__box { height: var(--vfpg-h); max-height: var(--vfpg-h); }
    .vfpg__scroll { flex: 1 1 auto; min-height: 0; }
    .vfpg__idea { min-height: clamp(150px, calc(var(--vfpg-h) - 462px), 560px) !important; }
    .vfpg__ph { min-height: calc(var(--vfpg-h) - 150px); }
    .vfpg__out { min-height: calc(var(--vfpg-h) - 290px) !important; max-height: calc(var(--vfpg-h) - 290px); }
    .vfpg__load { min-height: calc(var(--vfpg-h) - 290px); }
}

/* загрузка: страница пишется пером на всю высоту поля */
.vfpg__load { justify-content: space-between; }
.vfpg__sheet { display: flex !important; flex-direction: column; gap: 0 !important; flex: 1 1 auto; min-height: 0; overflow: hidden; transition: opacity 0.5s ease; }
.vfpg__sheet.is-fading { opacity: 0; }
.vfpg__sheet .vfpg__ln { height: 7px; margin: 7px 0; }
.vfpg__sheet .vfpg__ln--h { height: 9px; margin: 13px 0 8px; }
.vfpg__sheet .vfpg__ln:first-child { margin-top: 2px; }
.vfpg__sheet .vfpg__ln > i { width: 0; animation: none !important; transition: none; }
.vfpg__sheet .vfpg__ln > i::after { animation: none !important; opacity: 0; transition: opacity 0.15s ease; }
.vfpg__sheet .vfpg__ln.is-pen > i::after { opacity: 1; }
.vfpg__load .vfpg__stage { flex: 0 0 auto; }

/* значок «Мастерской промпта»: буква «А» штрихом, звёздочки — залитые и мягко мерцают по очереди */
.vf-aster .vf-spk { fill: currentColor; stroke: none; transform-box: fill-box; transform-origin: center; animation: vf-spk 2.8s ease-in-out infinite; }
.vf-aster .vf-spk--2 { animation-delay: -0.7s; }
.vf-aster .vf-spk--3 { animation-delay: -1.4s; }
.vf-aster .vf-spk--4 { animation-delay: -2.1s; }
@keyframes vf-spk { 0%, 100% { opacity: 0.45; transform: scale(0.7); } 50% { opacity: 1; transform: scale(1.12); } }
/* при наведении звёздочки не ускоряем: смена длительности посреди цикла давала рывок */
.vfpg__ph .vf-aster .vf-spk { fill: rgba(236, 224, 198, 0.85); }
@media (prefers-reduced-motion: reduce) { .vf-aster .vf-spk { animation: none; opacity: 1; transform: none; } }
.vfpg-btn svg.vf-aster { width: 21px; height: 21px; }
