/* AI 封面面板（cover-panel.js） */
.cv-panel h2 { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cv-panel .chip.warn { color: var(--warn); background: var(--warn-soft); }
.cv-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.cv-main { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-start; }
.cv-img { position: relative; display: block; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: var(--bg-3); }
.cv-img img { display: block; max-height: 300px; max-width: 100%; }
.cv-img.sm img { max-height: 120px; }
.cv-img span { position: absolute; left: 6px; bottom: 6px; font-size: 11px; padding: 2px 6px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; }
.cv-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.cv-lb { font-size: 12px; color: var(--dim); margin-top: 4px; }
.cv-feats { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-form { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-form input { flex: 1 1 160px; min-width: 0; }
.cv-extra { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.cv-busy { font-size: 12px; color: var(--muted); font-weight: 400; }
.cv-load { color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .cv-grid { grid-template-columns: 1fr; } }
.cv-compact { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.cv-c-h { font-size: 12px; color: var(--dim); display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.cv-c-row { display: flex; gap: 10px; align-items: flex-start; }
.cv-c-row .cv-img img { max-height: 110px; }
.cv-c-side { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1; }
.cv-c-side input { width: 100%; min-width: 0; }
.cv-compact .actions { gap: 4px; flex-wrap: wrap; }
.cv-ai { font-size: 12px; color: var(--muted); }

/* 图片大图查看（cover-panel.js openImageViewer）：盖在所有弹窗之上 */
.img-viewer { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 9, 12, .86); display: flex; flex-direction: column; }
.img-viewer[hidden] { display: none; }
.img-viewer .iv-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); }
.img-viewer .iv-title { flex: 1; min-width: 0; color: #fff; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.img-viewer .iv-bar .btn { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .22); }
.img-viewer .iv-bar .btn:hover { background: rgba(255, 255, 255, .22); }
.img-viewer .iv-stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 16px; cursor: zoom-out; }
.img-viewer .iv-stage img { max-width: 100%; max-height: calc(100vh - 110px); max-height: calc(100dvh - 110px); object-fit: contain; border-radius: 8px; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); cursor: default; background: #fff; }
.img-viewer .iv-tip { text-align: center; color: rgba(255, 255, 255, .55); font-size: 12px; padding: 8px 0 14px; }
.cv-img { cursor: zoom-in; }
