/* Experto → PREVIOS: sólo la última creación, con medio grande y acciones debajo. */
#expertCreatedPreviews{order:0;flex:1 1 0;display:flex;flex-direction:column;min-width:0;min-height:0;container-type:inline-size}
#expertCreatedPreviews[hidden]{display:none!important}
#expertCreatedPreviews .expert-preview-list{display:flex;flex-direction:column;flex:1;min-width:0;min-height:0}
#expertCreatedPreviews .expert-preview-card{display:flex;flex-direction:column;flex:1;gap:6px;min-width:0;min-height:0;padding:5px;border:1px solid #345360;border-left:2px solid #78f3ff;border-radius:2px;background:#0b1720;font:10px/1.35 monospace;transition:border-color .3s,box-shadow .3s}
#expertCreatedPreviews .expert-preview-card.is-fresh{border-color:#78f3ff;box-shadow:0 0 0 1px #78f3ff66,0 0 14px #78f3ff33}
#expertCreatedPreviews .epc-media{order:0;position:relative;flex:1 1 0;min-width:0;min-height:48px;background:#05121c;border:1px solid #233d48;border-radius:1px;overflow:hidden;display:flex;align-items:center;justify-content:center}
#expertCreatedPreviews .epc-media>img,#expertCreatedPreviews .epc-media>video{display:block;width:100%;height:100%;object-fit:contain;background:#000}
#expertCreatedPreviews .epc-media.epc-art img{width:100%;height:100%;object-fit:contain}
#expertCreatedPreviews .epc-glyph{font:clamp(48px,20cqw,120px)/1 monospace;color:#78f3ff}
#expertCreatedPreviews .epc-meta{order:2;flex:none;display:flex;flex-direction:column;gap:4px;min-width:0}
#expertCreatedPreviews .epc-tag{display:flex;justify-content:space-between;gap:6px;margin:0;font:9px/1.2 monospace;letter-spacing:.08em}
#expertCreatedPreviews .epc-kind{color:#78f3ff;font-weight:bold}
#expertCreatedPreviews .epc-when{white-space:nowrap;opacity:.8}
#expertCreatedPreviews .epc-title{margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-weight:bold}
#expertCreatedPreviews .epc-actions{display:flex;flex-wrap:wrap;gap:5px;align-items:stretch}
#expertCreatedPreviews .epc-actions button,#expertCreatedPreviews .epc-actions a{display:inline-flex;flex:1 1 auto;justify-content:center;align-items:center;min-height:26px;padding:3px 7px;border:1px solid #78929e;border-radius:2px;font:10px/1.2 monospace;text-decoration:none;cursor:pointer;max-width:100%;white-space:normal;text-align:center}
#expertCreatedPreviews .epc-actions button:disabled{cursor:progress}
#expertCreatedPreviews .epc-status{margin:0;font:9px/1.3 monospace;opacity:.9;overflow-wrap:anywhere}
#expertCreatedPreviews .epc-status[hidden]{display:none}
#expertCreatedPreviews .epc-audio{order:1;flex:none;min-width:0}
#expertCreatedPreviews .epc-audio audio{display:block;width:100%;height:30px;color-scheme:dark}
#expertCreatedPreviews video{color-scheme:dark}
@container (max-width:240px){
  #expertCreatedPreviews .epc-actions{flex-direction:column}
  #expertCreatedPreviews .epc-tag{flex-wrap:wrap}
}
/* PREVIOS is a dedicated media pane while a creation is available. CLI history is retained. */
#telegramDock .expert-view-pane:has(.expert-preview-card) #telegramLastResponse{display:none!important}
/* Colores propios (no dependen de capas de legibilidad ni de la marca): la tarjeta es una pantalla oscura
   también cuando el dock del Experto va en claro. */
#expertCreatedPreviews .expert-preview-card{color:#e6f1f5!important}
#expertCreatedPreviews .epc-title{color:#f4f8fa!important}
#expertCreatedPreviews .epc-when,#expertCreatedPreviews .epc-status{color:#b9cbd3!important;opacity:1}
#expertCreatedPreviews .epc-kind{color:#78f3ff!important}
#expertCreatedPreviews .epc-actions button{background:#1d2d39!important;color:#f4f8fa!important;border-color:#78929e!important}
#expertCreatedPreviews .epc-actions a{background:transparent!important;color:#78f3ff!important;border-color:#3f6f7c!important}
#expertCreatedPreviews .epc-actions :is(button,a):is(:hover,:focus-visible){border-color:#78f3ff!important;outline:none}
/* Crear locución (columna central) */
.expert-media-form[data-media-form="voice"] label{display:block;margin:4px 0 2px}
.expert-media-form[data-media-form="voice"] select{max-width:100%;font:11px/1.3 monospace;padding:3px 4px}
#voiceoverLogin[hidden]{display:none!important}

#expertCreatedPreviews .expert-preview-empty{padding:10px;margin:0;color:#ccd9df;background:#101b24;font:11px/1.5 monospace}
#telegramDock .tier-hud[hidden]{display:none!important}

#expertCreatedPreviews .epc-media>.media-preview-frame{width:100%;height:100%;margin:0}
#expertCreatedPreviews .epc-media .media-preview-frame>img,#expertCreatedPreviews .epc-media .media-preview-frame>video{width:100%;height:100%;object-fit:contain}

/* Matrix keeps the legacy layout boxes for projection, but owns the visible scene. */
body.xpace-matrix-active :is(#c,#videoMonitor,#videoMonitor2,#totemAvatar,#wallAvatar,#screenInfoLayer,#dlProgressLayer,#dlProgressSVG){visibility:hidden!important;pointer-events:none!important}
/* Outrank the native compose/signage rules; only PREVIEWS uses this full-height area. */
#telegramDock.compose-start .expert-workspace .expert-view-pane:has(.expert-preview-card) #telegramLastResponse{display:none!important}
#telegramDock.compose-start .send:has(.expert-preview-card) .expert-workspace{flex:1 1 auto;min-height:0}
#telegramDock.compose-start .expert-workspace .expert-view-pane:has(.expert-preview-card){overflow:hidden}

#telegramDock #signageResetStatus{display:block;flex:none;font:10px/1.35 monospace;background:#10232f;color:#eff8fb!important;border:1px solid #78929e;padding:4px;max-height:60px;overflow:auto}

/* Keep Reset immediately to the right of Open in Stock without shrinking the media. */
#expertCreatedPreviews .epc-actions:has([data-preview-reset]){flex-wrap:nowrap}
#expertCreatedPreviews .epc-actions:has([data-preview-reset]) :is(button,a){min-width:0}
#expertCreatedPreviews .epc-actions [data-preview-reset]{flex:0 0 auto}
@container (max-width:240px){#expertCreatedPreviews .epc-actions:has([data-preview-reset]){flex-direction:column}}
