/* DiagnostiX isolated offline redesign: retains existing structure, branding, and behavior.
   Plain surfaces; no frosted gradients, glow, or outlined dashboard cards. */
:root { --dx-surface-clean:#17212f; --dx-elevated-clean:#1e2b3a; --dx-text-clean:#f3f6fb; --dx-muted-clean:#aab8ca; --dx-accent-clean:#3688d9; }
body[data-page="home"],body[data-page="account"]{
  --dx-beta-banner-h-v237:0px;
  background:#101821!important;
  color:var(--dx-text-clean);
}
body[data-page="home"] .beta-banner,body[data-page="account"] .beta-banner,
body[data-page="home"] .beta-inline-card,body[data-page="home"] .dx-corporate-beta-badge-v370,
body[data-page="home"] .dx-corporate-legacy-beta-v370,
body[data-page="account"] .dx-account-premium-badge{
  display:none!important;
}
body[data-page="home"] .app-bg,body[data-page="account"] .app-bg,
body[data-page="home"] .grid-overlay,body[data-page="account"] .grid-overlay{
  background:none!important;box-shadow:none!important;filter:none!important;
}
body[data-page="home"] :is(.glass,.glass-dark,.platform-card-v96,.widget-card,.diagram-card-v4,.dx-v6-card,.dx-account-info-card),
body[data-page="account"] :is(.glass,.glass-dark,.dx-account-info-card,.dx-v6-card,.dx-account-premium-card,.dx-account-panel){
  background:var(--dx-surface-clean)!important;
  background-image:none!important;
  box-shadow:none!important;
  backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
body[data-page="home"] :is(.widget-card,.diagram-card-v4,.platform-card-v96,.dx-v6-card),
body[data-page="account"] :is(.dx-account-info-card,.dx-v6-card,.dx-account-premium-card){
  border-color:transparent!important;
  outline:none!important;
}
body[data-page="home"] :is(.widget-card,.diagram-card-v4,.platform-card-v96,.dx-v6-card):hover,
body[data-page="account"] :is(.dx-account-info-card,.dx-v6-card):hover{
  box-shadow:none!important;filter:none!important;transform:none!important;
}
body[data-page="home"] :is(.btn.primary,.pid-toggle-btn-v4),body[data-page="account"] .btn.primary,
body[data-page="home"] .dx-online-upgrade-actions button:last-child {
  background:#2578c6!important;background-image:none!important;
  color:white!important;box-shadow:none!important;border-color:transparent!important;
}
body[data-page="home"] .pid-item,body[data-page="home"] .dx-online-premium-locked {
  background:var(--dx-surface-clean)!important;border:0!important;box-shadow:none!important;
}
body[data-page="home"] .pid-item .pid-title-with-icon-v247 {font-weight:700;}
body[data-page="home"] .pid-item .pid-item-top {gap:14px;}
body[data-page="home"] .pid-item button,
body[data-page="account"] [data-online-billing] .btn {min-height:48px;min-width:170px;font-weight:720;}
body[data-page="home"] .pid-item .is-premium-locked{
  background:#263342!important;color:#f3f6fb!important;box-shadow:none!important;
  border:0!important;white-space:normal!important;text-align:center!important;
}
body[data-page="home"] .dx-online-sensor-locked{background:#263342!important;color:#b7c6d8!important;}
body[data-page="home"] .dx-online-upgrade-scrim{
  position:fixed;inset:0;z-index:15000;display:flex;align-items:center;justify-content:center;
  background:rgba(0,0,0,.75);padding:16px;overflow-y:auto;
}
body[data-page="home"] .dx-online-upgrade-scrim[hidden]{display:none!important;}
body[data-page="home"] .dx-online-upgrade-modal{
  width:min(460px,100%);max-height:calc(100dvh - 32px);overflow-y:auto;
  background:#1c2938;color:#f3f6fb;border:0;border-radius:18px;
  padding:24px 20px;box-shadow:0 16px 42px rgba(0,0,0,.23);
}
body[data-page="home"] .dx-online-upgrade-modal h2 {margin:0 0 12px;font-size:clamp(21px,5vw,27px);}
body[data-page="home"] .dx-online-upgrade-modal p {color:#c5d1df;line-height:1.5;}
body[data-page="home"] .dx-online-upgrade-price{font-size:24px!important;font-weight:800;color:#fff!important;}
body[data-page="home"] .dx-online-upgrade-actions{display:grid;grid-template-columns:1fr;gap:10px;}
body[data-page="home"] .dx-online-upgrade-actions button{
  min-height:52px;border:0;border-radius:12px;padding:12px 16px;font:inherit;font-weight:700;
  background:#303c4d;color:#f3f6fb;cursor:pointer;
}
body[data-page="home"] .dx-online-upgrade-actions button:disabled {opacity:.5;cursor:wait;}
body[data-page="account"] [data-online-billing]{background:#1c2938!important;background-image:none!important;border:0!important;}
@media(max-width:860px){
 body[data-page="home"] :is(.pid-item button,.btn.primary){min-height:50px;font-size:15px;}
 body[data-page="home"] .dx-online-upgrade-modal{padding:24px 18px;border-radius:16px;}
 body[data-page="home"] .pid-item{padding:16px!important;border-radius:14px!important;}
}
