/* A&S LogBook — pré-visualização isolada de telemetria, sem alterar CSS global */
#telemetryPreview {width:min(960px,96vw);max-width:960px;max-height:92dvh;padding:0;border:1px solid #394251;border-radius:17px;background:#111820;color:#e9eef7;box-shadow:0 22px 90px #000c;overflow:auto}
#telemetryPreview::backdrop{background:#000b}
#telemetryPreview *{box-sizing:border-box}
#telemetryPreview .tp-wrap{padding:20px}
#telemetryPreview .tp-head{display:flex;justify-content:space-between;align-items:start;gap:10px;margin-bottom:12px}
#telemetryPreview h2{font-size:1.45rem;margin:0;color:#fff}
#telemetryPreview h3{font-size:1.02rem;margin:0 0 12px;color:#f6d18b}
#telemetryPreview p{margin:5px 0 10px}
#telemetryPreview .tp-muted{color:#a6b5c6;font-size:.9rem}
#telemetryPreview .tp-close{background:#293542;color:white;padding:7px 12px;border:1px solid #65748a;border-radius:9px;cursor:pointer}
#telemetryPreview .tp-status{display:inline-block;color:#f9d995;border:1px solid #94753e;border-radius:50px;padding:3px 9px;font-size:.8rem}
#telemetryPreview .tp-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
#telemetryPreview .tp-card{border:1px solid #334254;background:#19232f;border-radius:13px;padding:15px;min-width:0}
#telemetryPreview .tp-provider{display:flex;justify-content:space-between;align-items:center;gap:5px}
#telemetryPreview .tp-off{font-size:.73rem;color:#f2c789}
#telemetryPreview .tp-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-top:12px}
#telemetryPreview .tp-kpi{padding:10px;background:#111a25;border-radius:8px}
#telemetryPreview .tp-kpi strong{display:block;color:#fff;font-size:1.3rem;overflow-wrap:anywhere}
#telemetryPreview .tp-kpi small{color:#a6b5c6}
#telemetryPreview .tp-section{margin-top:13px}
#telemetryPreview .tp-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:10px 0}
#telemetryPreview .tp-button{background:#c9a65d!important;color:#111820!important;border:1px solid #d6b574!important;padding:9px 13px;border-radius:9px;cursor:pointer;font-weight:700}
#telemetryPreview .tp-button.secondary{background:#283544!important;color:#fff!important;border-color:#526478!important}
#telemetryPreview .tp-button:disabled{opacity:.55;cursor:not-allowed}
#telemetryPreview input[type=range]{width:100%;accent-color:#e7ad4f}
#telemetryPreview .tp-bar{height:12px;border-radius:30px;background:#334254;overflow:hidden;margin:12px 0}
#telemetryPreview .tp-bar > div{height:100%;width:0;background:#64c68f;transition:width .2s}
#telemetryPreview .tp-warning{padding:10px;border:1px solid #d69c48;border-radius:9px;background:#4c301a;color:#ffdeab}
#telemetryPreview .tp-ok{padding:10px;border:1px solid #387958;border-radius:9px;background:#163329;color:#afedc8}
#telemetryPreview .tp-log{border-left:2px solid #b9914b;padding:2px 0 2px 14px;margin:10px 0}
#telemetryPreview .tp-log > div{margin:5px 0;color:#cfdae5}
#telemetryPreview .tp-pending{color:#f6d18b}
#telemetryPreview .tp-small{font-size:.8rem}
@media(max-width:680px){#telemetryPreview .tp-grid{grid-template-columns:1fr}#telemetryPreview .tp-kpis{grid-template-columns:repeat(2,minmax(0,1fr))}#telemetryPreview .tp-wrap{padding:14px}#telemetryPreview h2{font-size:1.2rem}}

/* Mostrar os paineis internos da janela de telemetria */
#telemetryPreview section.tp-card {
  display: block !important;
}
