/* Scoped to the security and diagnostics dialogs. */
.sc-section{margin:16px 0;padding:12px;border:1px solid var(--border,rgba(128,128,128,.25));border-radius:12px}
.sc-heading,.sc-device,.sc-history-row{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.sc-heading{margin-bottom:10px}
.sc-device,.sc-history-row{padding:10px 0;border-bottom:1px solid var(--border,rgba(128,128,128,.22))}
.sc-device:last-child,.sc-history-row:last-child{border-bottom:0}
.sc-device-info,.sc-history-row>div,.sc-metric{display:flex;flex-direction:column;gap:5px;min-width:0;overflow-wrap:anywhere}
.sc-device-info,.sc-history-row>div{flex:1 1 200px}
.sc-device-info small,.sc-history-row small,.sc-metric small{color:var(--muted,#999);font-size:12px}
.sc-current{font-size:11px;color:var(--success,#42ad85);font-weight:600;margin-inline-start:5px}
.sc-warning{color:var(--danger,#d97757)}
.sc-history{max-height:300px;overflow:auto}
.sc-history-row>span{font-size:12px;white-space:nowrap}
.sc-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}
.sc-note{font-size:12px;line-height:1.55;margin-top:8px}
.sc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}
.sc-metric{border:1px solid var(--border,rgba(128,128,128,.22));padding:10px;border-radius:10px}
@media(max-width:500px){.sc-section{padding:9px}.sc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.sc-actions>.btn{width:100%}.sc-device>.btn{margin-inline-start:auto}}
