/* #913: за флагом «result» (me.preview_screens → ?preview=result; me.live_screens → всем): экран результата после генерации — на весь экран, как в ленте. «Тёплая сцена»: бордо/золото/крем; текст ≥14px, кнопки ≥44px.
   Переопределяет css/app.css + css/detail-warm.css для #historyMediaSheet (тот же просмотрщик открывается и из «Мои работы»). */
#historyMediaSheet.is-result .sheet-panel.history-viewer-panel { position: fixed; inset: 0; width: 100%; max-width: none; max-height: none; height: 100%; margin: 0; padding: 0 0 calc(12px + env(safe-area-inset-bottom, 0px)); border-radius: 0; border: 0; background: #0d0507; overflow-y: auto; -webkit-overflow-scrolling: touch; }
#historyMediaSheet.is-result .history-viewer-close { top: calc(10px + env(safe-area-inset-top, 0px)); left: 10px; right: auto; width: 44px; height: 44px; font-size: 20px; background: rgba(27,12,16,.72); border: 1px solid rgba(242,196,109,.45); color: #fbf1de; }
#historyMediaSheet.is-result .history-viewer { gap: 10px; }
#historyMediaSheet.is-result .history-viewer-stage { border-radius: 0; border: 0; min-height: 0; height: calc(100vh - 164px); height: calc(100dvh - 164px); background: #0d0507; }
#historyMediaSheet.is-result .history-viewer-img, #historyMediaSheet.is-result .history-viewer-video { width: 100%; height: 100%; max-height: none; object-fit: contain; }
#historyMediaSheet.is-result .history-viewer-audio { padding: 90px 16px 16px; }
#historyMediaSheet.is-result .history-viewer-animate { display: none; }           /* заменила кнопка «✨ Оживить» в столбике */
#historyMediaSheet.is-result .history-viewer-params { left: 12px; right: 92px; }
/* столбик действий справа — как в ленте */
#historyMediaSheet:not(.is-result) .hv-col { display: none; }
.hv-col { position: absolute; right: 6px; bottom: 10px; z-index: 4; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hv-act { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-width: 64px; min-height: 56px; padding: 4px 2px; border: 0; border-radius: 14px; background: rgba(27,12,16,.55); color: #fbf1de; font-family: inherit; }
.hv-act[hidden] { display: none; }
.hv-act i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(27,12,16,.8); border: 1px solid rgba(242,196,109,.45); font-style: normal; font-size: 20px; line-height: 1; }
.hv-act span { font-size: 14px; line-height: 1.1; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.8); white-space: nowrap; }
.hv-act.is-on i { background: rgba(76,192,138,.25); border-color: #4cc08a; }
.hv-act-hot i { background: linear-gradient(#f6d58b, #e0a43a); border-color: #f6d58b; color: #2a1a12; }
.hv-act:active i { transform: scale(.94); }
/* нижняя часть: модель · в чат · промт · «Использовать» */
#historyMediaSheet.is-result .history-viewer-toolbar, #historyMediaSheet.is-result .history-viewer-prompt-card, #historyMediaSheet.is-result .history-viewer-actions { margin: 0 12px; }
#historyMediaSheet.is-result #historyViewerDownload { display: none; }            /* дубль: «Скачать» уже в столбике */
#historyMediaSheet.is-result .history-viewer-publish-btn { display: none; }        /* дубль: «Опубликовать» уже в столбике */
#historyMediaSheet.is-result .history-viewer-icon-btn, #historyMediaSheet.is-result .history-viewer-model-btn { min-height: 44px; }
#historyMediaSheet.is-result .history-viewer-prompt-text { font-size: 15px; line-height: 1.45; }
/* уровни «Оживить» */
.al-sheet { position: fixed; inset: 0; z-index: 1700; background: rgba(0,0,0,.6); }
.al-sheet[hidden] { display: none; }
.al-in { position: absolute; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px)); border-radius: 18px 18px 0 0; background: #241114; border-top: 2px solid rgba(242,196,109,.5); color: #fbf1de; }
.al-in h3 { margin: 0 0 4px; font-size: 20px; }
.al-sub { margin: 0 0 12px; font-size: 15px; line-height: 1.4; color: #cbb89c; }
.al-card { display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; width: 100%; min-height: 64px; margin: 0 0 8px; padding: 10px 12px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.3); background: rgba(40,19,21,.9); color: #fbf1de; text-align: left; font-family: inherit; }
.al-card i { grid-row: 1 / span 2; font-style: normal; font-size: 26px; text-align: center; }
.al-card b { font-size: 16px; }
.al-card small { grid-column: 2; font-size: 14px; color: #cbb89c; line-height: 1.3; }
.al-card em { grid-column: 3; grid-row: 1 / span 2; font-style: normal; font-size: 16px; font-weight: 800; color: #f2c46d; white-space: nowrap; }
.al-card.lv-elite { border-color: rgba(242,196,109,.7); }
.al-card:disabled { opacity: .55; }
.al-x { width: 100%; min-height: 48px; margin-top: 4px; border-radius: 14px; border: 1.5px solid rgba(242,196,109,.5); background: transparent; color: #f2c46d; font-size: 16px; font-weight: 700; font-family: inherit; }
