/* AFX-COVER v1: owner thumbnail panel inside #publicationDeclarationModal. Uses the page tokens. */
.afx-cover{border:1px solid var(--border);border-radius:var(--r,12px);padding:14px;margin:0 0 14px;background:var(--bg3,#272727)}
.afx-cover-h{margin:0 0 10px;font-size:.9rem;font-weight:650;color:var(--text)}
.afx-cover-current{display:grid;grid-template-columns:minmax(0,200px) minmax(0,1fr);gap:12px;align-items:start}
.afx-cover-frame{position:relative;aspect-ratio:16/9;width:100%;border-radius:8px;overflow:hidden;background:var(--bg,#0f0f0f);border:1px solid var(--border2);display:flex;align-items:center;justify-content:center}
.afx-cover-img{width:100%;height:100%;object-fit:cover;display:block}
.afx-cover-empty{color:var(--muted);font-size:.78rem}
.afx-cover-meta{display:flex;flex-direction:column;gap:8px;min-width:0}
.afx-cover-label{font-size:.82rem;color:var(--text);overflow-wrap:anywhere}
.afx-cover-hint{font-size:.74rem;color:var(--muted);line-height:1.45}
.afx-cover-pick{align-self:flex-start;cursor:pointer;min-height:40px;display:inline-flex;align-items:center}
.afx-cover-pick:focus-within{outline:2px solid var(--accent);outline-offset:2px}
.afx-cover-editor{margin-top:12px;display:grid;gap:10px}
.afx-cover-canvas{width:100%;aspect-ratio:16/9;height:auto;border-radius:8px;background:#000;cursor:grab;touch-action:none;display:block}
.afx-cover-canvas:active{cursor:grabbing}
.afx-cover-controls{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
.afx-cover-controls label{font-size:.78rem;color:var(--muted)}
.afx-cover-controls input[type=range]{flex:1 1 140px;min-width:120px;accent-color:var(--accent)}
.afx-cover-mobile{display:flex;align-items:center;gap:10px;font-size:.74rem;color:var(--muted)}
.afx-cover-mobile canvas{width:160px;aspect-ratio:16/9;height:auto;border-radius:6px;background:#000}
.afx-cover-history{margin-top:12px}
.afx-cover-history-h{font-size:.78rem;color:var(--muted);margin-bottom:6px}
.afx-cover-history-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px;margin-bottom:8px}
.afx-cover-prior{display:flex;flex-direction:column;gap:4px;padding:4px;min-height:44px;border:1px solid var(--border2);border-radius:8px;background:var(--bg2);color:var(--text);font-size:.74rem;cursor:pointer;text-align:left}
.afx-cover-prior img{width:100%;aspect-ratio:16/9;object-fit:cover;border-radius:5px;background:#000}
.afx-cover-prior:hover,.afx-cover-prior:focus-visible{border-color:var(--accent)}
.afx-cover-prior:disabled,.afx-cover button:disabled{opacity:.55;cursor:progress}
.afx-cover-status{min-height:20px;margin-top:8px;font-size:.8rem;color:var(--muted)}
.afx-cover-status[data-kind=error]{color:var(--red,#ef4444)}
.afx-cover-status[data-kind=ok]{color:var(--green,#22c55e)}
@media (max-width:480px){.afx-cover-current{grid-template-columns:1fr}.afx-cover-frame{max-width:100%}}
/* Editor/history stay hidden until a file is chosen (display:grid must not override [hidden]). */
.afx-cover-editor[hidden],.afx-cover-history[hidden],#afxCoverGenerated[hidden]{display:none!important}
