/* TesseraX — diag.css: tela de diagnóstico (prefixo dg-) */
.dg { max-width: 640px; margin: 0 auto; }
.dg-card .xr-list { margin-top: 12px; }
.dg-row { align-items: flex-start; gap: 12px; padding: 12px 0; min-height: 56px; }
.dg-row:last-child { margin-bottom: 0; }
.dg-ic { flex: none; width: 22px; height: 22px; display: grid; place-items: center; margin-top: 1px; color: var(--mu); }
.dg-row[data-state="ok"] .dg-ic { color: var(--tx-ok); --ic-ac: var(--tx-ok); }
.dg-row[data-state="fail"] .dg-ic { color: var(--rate-hard); --ic-ac: var(--rate-hard); }
.dg-row[data-state="run"] .dg-ic { color: var(--ac); }
.dg-body { display: flex; flex-direction: column; gap: 3px; }
.dg-lbl { font: 500 15px/1.3 var(--f-ui); color: var(--tx); }
.dg-res { font: 400 13px/1.45 var(--f-ui); color: var(--mu); overflow-wrap: anywhere; }
.dg-row[data-state="fail"] .dg-res { color: var(--tx); }
.dg-btn { flex: none; align-self: center; white-space: nowrap; }
.dg-file { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.dg-stage:empty { display: none; }
.dg-stage { margin-top: 8px; border-radius: var(--rad-s); overflow: hidden; }
.dg-stage video { display: block; max-width: 100%; border-radius: var(--rad-s); background: #000; }
.dg-box { width: 100%; padding: 10px 14px; min-height: 180px; font: 12px/1.45 var(--f-mono, monospace); }
.dg > .xbtn { margin-top: 0; }
/* YouTube */
.dg-yt .dg-yt-in { width: 100%; margin-top: 12px; min-height: 46px; font: 400 16px/1.2 var(--f-ui); direction: ltr; text-align: left; }
.dg-yt .dg-yt-go { width: 100%; margin-top: 10px; }
.dg-yt-frame { margin-top: 12px; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--rad-s); overflow: hidden; background: #000; }
.dg-yt-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.dg-yt-frame[hidden], .dg-yt-list[hidden], .dg-yt-copy[hidden] { display: none; }
.dg-yt-copy { margin-top: 12px; display: inline-flex; align-items: center; gap: 8px; }
.dg-row { flex-wrap: wrap; }
.dg-row .dg-body { flex: 1 1 148px; }
.dg-row > .set-btn, .dg-row > .btn, .dg-row > button:not(.dg-body) { margin-inline-start: auto; }
