/* ArchiFlow — лист мудборда в ответе помощника (Claude, 18.11.2026): превью листа в чате (aiboard-v13.js).
   Карточка: картинка листа 16:10 на «бумаге» доски, под ней тёмная полоса с названием и «Открыть в мудборде». */
.msgfiles.afbd-row { gap: 8px; align-items: flex-start; }
.afbd-host, .bubblewrap .ai.afbd-host { min-width: 0; max-width: 100% !important; box-sizing: border-box; }
.msgfiles.afbd-row { max-width: 100%; min-width: 0; }
.msgfiles a.msgfile.afbd { display: block; padding: 0; width: 460px; max-width: 100%; box-sizing: border-box; border-radius: 12px; overflow: hidden; background: #323236; border: 1px solid var(--line2, rgba(255,255,255,.12)); text-decoration: none; cursor: zoom-in; flex: none; }
.msgfiles a.msgfile.afbd .afbd-img { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; background: #ebe4d5; }
.msgfiles a.msgfile.afbd .afbd-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 10px; font-size: 12.5px; line-height: 1.3; color: #d9d5cc; }
.msgfiles a.msgfile.afbd .afbd-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msgfiles a.msgfile.afbd .afbd-go { flex: none; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(200,181,138,.55); color: #c8b58a; cursor: pointer; white-space: nowrap; }
.msgfiles a.msgfile.afbd .afbd-go:hover, .msgfiles a.msgfile.afbd .afbd-go:focus-visible { background: rgba(200,181,138,.16); outline: none; }
.msgfiles a.msgfile.afbd.afbd-gone { cursor: default; opacity: .6; }
.msgfiles a.msgfile.afbd.afbd-gone .afbd-img, .msgfiles a.msgfile.afbd.afbd-gone .afbd-go { display: none; }
/* картинки, сделанные для листа, рядом с превью — мельче самого превью */
.msgfiles.afbd-row a.msgfile.afgen { width: 140px; max-width: calc((100% - 16px) / 3); box-sizing: border-box; }
.msgfiles.afbd-row a.msgfile.afgen .afgen-img { min-height: 0; aspect-ratio: 4 / 3; }
@media (max-width: 640px) {
  .msgfiles a.msgfile.afbd { width: 100%; max-width: 100%; }
  .msgfiles.afbd-row a.msgfile.afgen { width: calc((100% - 16px) / 3); }
}

/* 18.11.2026 — картинка-мудборд в ответе (server/moodImage.js, genimg-v13.js: ссылка с mood=1): она главная и крупная,
   превью листа рядом — маленькое (нужно ради «Открыть в мудборде»). Блок «Площадка → Картинки» (imgset-v13.js). */
.msgfiles a.msgfile.afgen.afgen-mood, .msgfiles.afbd-row a.msgfile.afgen.afgen-mood, .msgfiles.afgen-row a.msgfile.afgen.afgen-mood:only-child { width: 620px; max-width: 100%; box-sizing: border-box; cursor: zoom-in; background: #f4eee4; }
.msgfiles a.msgfile.afgen.afgen-mood .afgen-img, .msgfiles.afbd-row a.msgfile.afgen.afgen-mood .afgen-img { aspect-ratio: 3 / 2; min-height: 0; object-fit: contain; }
.msgfiles.afmood-row { flex-wrap: wrap; }
.msgfiles.afmood-row a.msgfile.afbd { width: 230px; }
.msgfiles.afmood-row a.msgfile.afbd .afbd-bar { flex-wrap: wrap; gap: 6px; }
@media (max-width: 640px) {
  .msgfiles a.msgfile.afgen.afgen-mood, .msgfiles.afbd-row a.msgfile.afgen.afgen-mood { width: 100%; }
  .msgfiles.afmood-row a.msgfile.afbd { width: 62%; max-width: 62%; }
}
.afplat > .afimg-set { border-top: 1px solid var(--line, #3a3a3e); padding-top: 12px; margin-top: 2px; }
.afimg-set h4 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.afplat .afimg-set label.afimg-row, .afimg-row { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 10px; max-width: 420px; margin: 0; }
.afimg-k { flex: none; min-width: 76px; color: var(--dim, #7d7a73); font-size: 12.5px; }
.accbox .afimg-set .afimg-row select, .afimg-row select { flex: 1 1 auto; width: auto; min-width: 0; max-width: 300px; height: 34px; font-size: 13px; margin: 0; }
.afimg-set .afimg-quick { margin: 0; font-size: 12.5px; }
.afimg-set .afimg-quick .afimg-k { display: inline-block; }
.afimg-set .afimg-warn { margin: 0; max-width: 420px; font-size: 12.5px; color: #D9A441; }
