.thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; }
.thumb-lg { width: 110px; height: 110px; object-fit: cover; border-radius: 8px; }
.thumb-xl { width: 160px; height: 160px; object-fit: cover; border-radius: 8px; }
.caption { white-space: pre-wrap; }

/* Métricas */

/* Previsualización del feed */
.ig-phone { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 0 0; max-width: 420px; }
.ig-header { display: flex; align-items: center; gap: 20px; padding: 0 16px; }
.ig-stats { display: flex; gap: 20px; }
.ig-stats div { display: flex; flex-direction: column; align-items: center; font-size: .85rem; }
.ig-stats strong { font-size: 1.05rem; }
.ig-name { padding: 10px 16px 12px; font-weight: 600; font-size: .9rem; }
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; border-top: 1px solid var(--line); border-radius: 0 0 var(--r-md) var(--r-md); overflow: hidden; }
.ig-cell { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: block; background: var(--soft); }
.ig-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ig-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--mute); font-size: 1.6rem; }
.ig-icon { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 0 2px rgba(0,0,0,.6)); font-size: .9rem; }
.ig-hover { position: absolute; inset: 0; background: rgba(0,0,0,.45); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .85rem; opacity: 0; transition: opacity .15s; }
.ig-cell:hover .ig-hover { opacity: 1; }
.ig-scheduled { outline: 2px solid var(--ink); outline-offset: -2px; }
.ig-scheduled img, .ig-scheduled .ig-placeholder { opacity: .85; }
.ig-badge { position: absolute; left: 0; right: 0; bottom: 0; background: var(--sel); color: var(--selInk); font-family: var(--mono); font-size: .68rem; letter-spacing: .04em; text-align: center; padding: 3px 4px; }
.ig-badge-draft { background: var(--mute); color: #fff; }

/* Comentarios */
.comment-card .min-w-0 { min-width: 0; }

/* Visor de medios (feed) */
.modal-content { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.modal-header { border-bottom: 1px solid var(--line); }
.mm-media { background: #0A0A0A; display: flex; align-items: center; justify-content: center; min-height: 360px; max-height: 80vh; }
.mm-media video, .mm-media img { max-width: 100%; max-height: 80vh; width: auto; height: auto; display: block; }

/* Reels de prueba (Trial Reels) */
.ig-trial { position: absolute; top: 6px; left: 6px; z-index: 1; background: var(--panel); color: var(--ink); border: 1px dashed var(--ink); border-radius: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; padding: 2px 5px; line-height: 1.2; }

/* Carrusel en el visor */
.mm-media { position: relative; }
.mm-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border-radius: 999px; border: 0; background: rgba(255,255,255,.9); color: #0A0A0A; display: inline-flex; align-items: center; justify-content: center; }
.mm-nav:hover { background: #fff; }
.mm-prev { left: 10px; } .mm-next { right: 10px; }
.mm-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; }
.mm-dots span { width: 6px; height: 6px; border-radius: 999px; background: rgba(255,255,255,.45); }
.mm-dots span.on { background: #fff; }

/* Compositor de publicaciones */
.composer .step { display: flex; align-items: flex-start; gap: 12px; }
.composer .step-n { flex: 0 0 26px; width: 26px; height: 26px; border-radius: 999px; background: var(--sel); color: var(--selInk); font-family: var(--mono); font-size: 12px; display: inline-flex; align-items: center; justify-content: center; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.acct { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--panel); transition: border-color var(--dur-fast) var(--ease-out); margin: 0; }
.acct input { position: absolute; opacity: 0; pointer-events: none; }
.acct img, .acct .acct-avatar { width: 36px; height: 36px; border-radius: 999px; object-fit: cover; flex: 0 0 36px; }
.acct .acct-avatar { background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.acct .acct-txt { display: flex; flex-direction: column; min-width: 0; }
.acct .acct-txt b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acct .acct-txt small { color: var(--mute); }
.acct .acct-check { margin-left: auto; color: var(--ink); opacity: 0; }
.acct.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.acct.on .acct-check { opacity: 1; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.ptype { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); cursor: pointer; background: var(--panel); margin: 0; }
.ptype input { position: absolute; opacity: 0; pointer-events: none; }
.ptype .bi { font-size: 1.25rem; color: var(--mute); }
.ptype b { font-weight: 600; }
.ptype small { color: var(--mute); line-height: 1.25; }
.ptype.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
.ptype.on .bi { color: var(--ink); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px; border: 1px dashed var(--line); border-radius: var(--r-sm); background: var(--soft); text-align: center; cursor: pointer; color: var(--ink); margin: 0; width: 100%; }
.dropzone:hover, .dropzone.over { border-color: var(--ink); }
.dropzone.is-invalid { border-color: var(--bad); }
.fp { width: 92px; }
.fp img, .fp video { width: 92px; height: 92px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.fp small { display: block; font-size: 10px; color: var(--mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.composer-actions { position: sticky; bottom: 0; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 0; background: linear-gradient(to top, var(--bg) 70%, transparent); }
.preview-sticky { position: sticky; top: 16px; }
.pv { max-width: 420px; overflow: hidden; }
.pv-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pv-head img, .pv-head .pv-avatar { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; }
.pv-head .pv-avatar { background: var(--soft); display: inline-flex; align-items: center; justify-content: center; color: var(--mute); }
.pv-head b { font-size: 14px; }
.pv-media { position: relative; background: #0A0A0A; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pv-media.ratio-1x1 { aspect-ratio: 1 / 1; } .pv-media.ratio-4x5 { aspect-ratio: 4 / 5; } .pv-media.ratio-9x16 { aspect-ratio: 9 / 16; max-height: 560px; }
.pv-media img, .pv-media video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pv-media .pv-empty { color: #8E8E8E; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 13px; padding: 24px; text-align: center; }
.pv-count { position: absolute; top: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; padding: 2px 8px; border-radius: 999px; }
.pv-body { padding: 12px 14px 14px; font-size: 14px; }
.pv-caption { white-space: pre-wrap; max-height: 160px; overflow: auto; }
.pv-tag { color: var(--mute); }

/* Portada */
.cover-box { aspect-ratio: 9 / 16; max-height: 220px; width: auto; background: #0A0A0A; border-radius: 8px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.cover-box img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-box .pv-empty { color: #8E8E8E; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }

/* Páginas legales */
.legal h2 { font-size: 1.05rem; }
.legal p, .legal li { line-height: 1.6; }

/* Comentarios en el visor */
.mm-side { max-height: 80vh; overflow: auto; }
.mm-comments { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; }
.mm-c { padding: 8px 0; border-bottom: 1px solid var(--line); }
.mm-c:last-child { border-bottom: 0; }
.mm-c-text { white-space: pre-wrap; margin: 2px 0 4px; }
.mm-r { margin: 4px 0 4px 12px; padding-left: 10px; border-left: 2px solid var(--line); color: var(--ink); }
.mm-c-actions { display: flex; gap: 12px; }
.mm-reply { display: flex; gap: 6px; margin-top: 6px; }

/* Selección múltiple en la bandeja */
.bulk-bar { position: sticky; top: 8px; z-index: 5; background: var(--panel); border: 1px solid var(--ink); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 10px; }
.comment-card.selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
