:root{--bg:#f3f6f9;--card:#fff;--ink:#14213d;--muted:#667085;--primary:#0d66d0;--danger:#b42318;--success:#067647;--warning:#b54708;--line:#d9e2ec}*{box-sizing:border-box}body{margin:0;font-family:Inter,Arial,sans-serif;background:var(--bg);color:var(--ink)}a{color:var(--primary);text-decoration:none}.auth-bg{min-height:100vh;display:grid;place-items:center;background:linear-gradient(135deg,#e8f1fb,#f8fafc)}.auth-card{width:min(440px,92vw);background:#fff;padding:32px;border-radius:18px;box-shadow:0 20px 60px #172b4d1c}.auth-card.wide{width:min(560px,92vw)}.brand{font-weight:900;letter-spacing:.14em;color:#0d66d0}.product{margin-left:16px;font-weight:700}.muted{color:var(--muted)}label{display:block;font-weight:650;margin:14px 0}input{width:100%;padding:12px 13px;margin-top:7px;border:1px solid var(--line);border-radius:10px;font-size:15px}.check{font-weight:400}.check input{width:auto;margin-right:8px}.btn{display:inline-block;border:0;border-radius:10px;padding:12px 16px;font-family:inherit;font-size:13px;line-height:1.25;font-weight:750;cursor:pointer;text-align:center}.btn.primary{background:var(--primary);color:#fff;width:100%}.btn.danger{background:var(--danger);color:#fff}.center{text-align:center}.legal{font-size:12px;color:var(--muted);line-height:1.5}.price{font-size:28px;font-weight:850;margin:18px 0}.device-code{font-family:ui-monospace,monospace;background:#eef4ff;padding:16px;border-radius:10px;font-size:22px;font-weight:800;word-break:break-all;margin:12px 0}.device-code.small{font-size:15px}.alert{padding:12px 14px;border-radius:10px;margin:12px 0}.alert.critical{background:#fef3f2;color:#b42318}.alert.success{background:#ecfdf3;color:#067647}.topbar{background:#fff;border-bottom:1px solid var(--line);padding:16px 5vw;display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;z-index:5}.topbar nav a{margin-left:18px;font-weight:650}.container{width:min(1180px,92vw);margin:28px auto}.container.narrow{width:min(640px,92vw)}.hero{display:flex;justify-content:space-between;align-items:center}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.card{background:var(--card);border:1px solid #e5eaf0;border-radius:16px;padding:22px;box-shadow:0 4px 18px #102a4310}.card.full{grid-column:1/-1}.metric{display:flex;justify-content:space-between;padding:12px 0;border-bottom:1px solid #edf1f5}.forecast strong{font-size:56px;display:block}.pill{padding:9px 12px;border-radius:999px;background:#eef2f6;font-weight:800}.pill.success{background:#ecfdf3;color:var(--success)}.pill.warning{background:#fffaeb;color:var(--warning)}.pill.danger{background:#fef3f2;color:var(--danger)}.cylinder-card{text-align:center}.cylinder{height:330px;width:170px;border:8px solid #344054;border-radius:24px 24px 30px 30px;margin:25px auto 0;position:relative;overflow:hidden;background:#f8fafc}.cylinder:before{content:'';position:absolute;top:-23px;left:45px;width:64px;height:23px;background:#344054;border-radius:7px 7px 0 0}.gas-fill{position:absolute;left:0;right:0;bottom:0;height:0;background:linear-gradient(#69b6ff,#0d66d0);transition:height .9s ease}.cylinder-label{position:absolute;inset:0;display:grid;place-content:center;z-index:2;text-shadow:0 1px 2px #fff}.cylinder-label strong{font-size:38px}.cylinder-label span{display:block;font-weight:700}.alert-row{display:flex;justify-content:space-between;gap:20px;padding:14px 0;border-bottom:1px solid #edf1f5}.alert-row p{margin:5px 0;color:var(--muted)}.alert-row.critical strong{color:var(--danger)}.alert-row.warning strong{color:var(--warning)}canvas{max-width:100%;height:auto}@media(max-width:780px){.grid{grid-template-columns:1fr}.card.full{grid-column:auto}.topbar{align-items:flex-start;gap:10px}.topbar nav a{margin-left:8px}.hero{align-items:flex-start;gap:15px}.forecast strong{font-size:44px}}

select{width:100%;padding:12px 13px;margin-top:7px;border:1px solid var(--line);border-radius:10px;background:#fff}.admin-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}.admin-stats .card{display:flex;flex-direction:column}.admin-stats strong{font-size:32px}.admin-head{display:flex;justify-content:space-between;gap:20px;align-items:end}.search-form{display:flex;gap:8px;min-width:min(420px,100%)}.search-form input{margin:0}.table-wrap{overflow:auto}.admin-table{width:100%;border-collapse:collapse;margin-top:18px}.admin-table th,.admin-table td{text-align:left;padding:12px;border-bottom:1px solid #edf1f5;vertical-align:top}.admin-table th{font-size:13px;color:var(--muted)}.inline-actions,.command-grid{margin-top:16px}.command-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.command-grid .btn{width:100%}@media(max-width:780px){.admin-stats{grid-template-columns:1fr 1fr}.admin-head{align-items:stretch;flex-direction:column}.search-form{min-width:0}.command-grid{grid-template-columns:1fr}}

.btn.secondary{background:#eef2f6;color:var(--ink);width:100%;margin-top:8px}.wifi-form-wrap{margin-top:18px}.wifi-steps{padding:14px;background:#f8fafc;border:1px solid var(--line);border-radius:10px;margin:14px 0}.wifi-steps p{margin-bottom:0}.sep{border:0;border-top:1px solid var(--line);margin:24px 0}.security-note{font-size:13px;color:var(--muted);padding:12px;background:#f8fafc;border-radius:10px}
.setup-progress{margin-top:16px;padding:14px;border:1px solid var(--line);border-radius:10px;background:#f8fafc}.setup-progress strong{display:block;margin-bottom:6px}

/* Emergency valve confirmation card */
body.modal-open{overflow:hidden}
.confirm-overlay[hidden]{display:none!important}
.confirm-overlay{
  position:fixed;
  inset:0;
  width:100vw;
  height:100vh;
  height:100dvh;
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  box-sizing:border-box;
  overflow-y:auto;
  background:rgba(15,23,42,.58);
  backdrop-filter:blur(3px);
  -webkit-backdrop-filter:blur(3px)
}
.confirm-card{
  position:relative;
  display:block;
  width:100%;
  max-width:460px;
  max-height:calc(100dvh - 48px);
  margin:auto;
  padding:28px;
  box-sizing:border-box;
  overflow-y:auto;
  background:#fff;
  border:1px solid #f0d5d2;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(16,24,40,.28);
  text-align:left
}
.confirm-card h2{margin:12px 0 8px;color:var(--danger);line-height:1.25}
.confirm-card p{margin:0;color:var(--muted);line-height:1.6}
.confirm-icon{
  width:48px;
  height:48px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 48px;
  border-radius:50%;
  background:#fef3f2;
  color:var(--danger);
  font-size:28px;
  font-weight:900;
  line-height:1
}
.confirm-warning{display:flex;flex-direction:column;gap:4px;margin:18px 0 0;padding:12px 14px;border-radius:10px;background:#fef3f2;color:#912018}
.confirm-warning span{font-size:13px;line-height:1.45}
.confirm-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;margin-top:22px}
.confirm-actions .btn{width:auto;min-width:145px;margin:0;white-space:nowrap}
.confirm-actions .btn.secondary{margin:0}
.confirm-actions button:disabled{opacity:.65;cursor:not-allowed}
.command-notice{margin-top:12px;padding:11px 13px;border-radius:10px;font-size:14px;line-height:1.45}
.command-notice.success{background:#ecfdf3;color:var(--success);border:1px solid #abefc6}
.command-notice.error{background:#fef3f2;color:var(--danger);border:1px solid #fecdca}
@media(max-width:520px){
  .confirm-overlay{padding:16px}
  .confirm-card{max-width:100%;max-height:calc(100dvh - 32px);padding:22px;border-radius:16px}
  .confirm-actions{flex-direction:column-reverse;align-items:stretch}
  .confirm-actions .btn{width:100%;min-width:0}
}


/* v1.5.2 - Responsive customer navigation */
.topbar nav{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap:10px 16px;
}
.topbar nav a{
  margin-left:0;
  white-space:nowrap;
}

@media(max-width:780px){
  .topbar{
    flex-direction:column;
    align-items:stretch;
    gap:14px;
    padding:14px 4vw;
  }
  .topbar>div{
    display:flex;
    align-items:center;
    flex-wrap:wrap;
    gap:6px 0;
  }
  .topbar .product{
    margin-left:12px;
  }
  .topbar nav{
    width:100%;
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px;
  }
  .topbar nav a{
    display:flex;
    align-items:center;
    justify-content:center;
    min-height:42px;
    margin:0;
    padding:9px 10px;
    border:1px solid var(--line);
    border-radius:10px;
    background:#f8fafc;
    color:var(--ink);
    text-align:center;
    line-height:1.2;
    white-space:normal;
  }
  .topbar nav a:hover,
  .topbar nav a:focus-visible{
    background:#eef4ff;
    border-color:#b9d4f5;
    color:var(--primary);
    outline:none;
  }
  .topbar nav a:last-child{
    grid-column:1/-1;
  }
}

@media(max-width:380px){
  .topbar nav{
    grid-template-columns:1fr;
  }
  .topbar nav a:last-child{
    grid-column:auto;
  }
  .topbar .product{
    margin-left:0;
    width:100%;
  }
}

/* v1.6.0 Smart Device Intelligence */
.score-ring{display:flex;align-items:baseline;gap:4px;margin:10px 0}.score-ring strong{font-size:42px;line-height:1;color:var(--primary)}.score-ring span{color:var(--muted);font-weight:700}.smart-list{display:grid;gap:8px;margin-top:14px}.smart-list>div{display:flex;justify-content:space-between;gap:12px;padding:9px 0;border-top:1px solid var(--line)}.smart-list .smart-warning{display:block;color:var(--danger);font-size:13px;line-height:1.5}.card a{overflow-wrap:anywhere}


/* v1.6.2 - Alert History */
.card-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:8px}.card-head-row h2{margin-bottom:4px}.card-head-row p{margin:0}.compact-btn{width:auto!important;margin:0!important;white-space:nowrap}.alert-filter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px 14px;align-items:end;margin:20px 0}.alert-filter-grid label{margin:0}.alert-filter-actions{display:flex;gap:8px;align-items:end}.alert-filter-actions .btn{width:auto;margin:0}.history-summary{padding:12px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:4px;color:var(--muted)}.history-summary strong{color:var(--ink)}.alert-history-list{display:grid}.history-alert{display:flex;justify-content:space-between;gap:22px;padding:18px 0;border-bottom:1px solid #edf1f5}.history-alert-main{min-width:0;flex:1}.history-alert h3{margin:8px 0 6px;font-size:17px}.history-alert p{margin:0 0 10px;color:var(--muted);line-height:1.55}.history-alert>time{flex:0 0 auto;color:var(--muted);font-size:13px;white-space:nowrap}.history-alert-meta,.delivery-status{display:flex;flex-wrap:wrap;align-items:center;gap:8px 14px;font-size:13px;color:var(--muted)}.history-alert-meta .pill{padding:5px 9px;font-size:12px}.history-alert.critical h3{color:var(--danger)}.history-alert.warning h3{color:var(--warning)}.pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:22px}.pagination .btn{padding:9px 13px;background:#eef2f6;color:var(--ink)}
@media(max-width:980px){.alert-filter-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.alert-filter-actions{grid-column:1/-1}}
@media(max-width:600px){.card-head-row{flex-direction:column}.compact-btn{width:100%!important}.alert-filter-grid{grid-template-columns:1fr}.alert-filter-actions{grid-column:auto;flex-direction:column}.alert-filter-actions .btn{width:100%}.history-alert{flex-direction:column;gap:8px}.history-alert>time{white-space:normal}.pagination{justify-content:space-between;flex-wrap:wrap}}


/* v1.7.0 - Temperature / burnt-smell safety and admin data views */
.status-ok{color:var(--success)}
.status-warning{color:var(--warning)}
.status-danger{color:var(--danger)}
.admin-filter-row{display:grid;grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) auto;gap:12px;align-items:end;margin:18px 0}
.admin-filter-row .btn{margin:0;width:auto}
.confirm-actions form{margin:0}.confirm-actions form .btn{margin:0}
@media(max-width:780px){.admin-filter-row{grid-template-columns:1fr}.admin-filter-row .btn{width:100%}}


/* v1.7.2 - User valve action controls */
.valve-actions{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:10px;margin-top:18px}
.valve-actions .btn{width:100%;margin:0}
.btn.valve-open{background:var(--success);color:#fff}
.btn.valve-open:hover{filter:brightness(.95)}
.confirm-icon.safe{background:#ecfdf3;color:var(--success)}
.safe-warning{background:#f0fdf4!important;border-color:#abefc6!important;color:#05603a!important}
@media(max-width:480px){.valve-actions{grid-template-columns:1fr}}

/* v1.8.0 Vendor Marketplace */
.leaflet-map{height:360px;border:1px solid var(--line);border-radius:12px;margin:16px 0;overflow:hidden}.leaflet-map.large{height:440px}
.location-grid,.price-entry{display:grid;grid-template-columns:1fr 1fr;gap:12px}.price-entry{grid-template-columns:1fr 1fr auto;align-items:end}.price-entry .btn{margin:0 0 1px}
textarea{width:100%;padding:12px 13px;margin-top:7px;border:1px solid var(--line);border-radius:10px;background:#fff;font:inherit;box-sizing:border-box}
.order-card{display:flex;justify-content:space-between;gap:20px;padding:18px 0;border-bottom:1px solid var(--line)}.order-card p{margin:6px 0;color:var(--muted)}.order-actions form{margin:0}.otp-box{padding:10px 12px;background:#fff7ed;border:1px solid #fed7aa;border-radius:10px;color:var(--ink)!important}
@media(max-width:780px){.location-grid,.price-entry{grid-template-columns:1fr}.order-card{flex-direction:column}.leaflet-map.large{height:340px}}


/* v1.8.34 — Readable Gas Run-out Forecast details */
.forecast-details{
  margin-top:14px;
  border:1px solid #dfe6ee;
  border-radius:12px;
  background:#f8fafc;
  overflow:hidden;
}
.forecast-detail-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:11px 14px;
  border-bottom:1px solid #e5ebf1;
}
.forecast-detail-row:last-child{border-bottom:0}
.forecast-detail-row span{
  color:#52606d;
  font-size:.92rem;
  line-height:1.35;
}
.forecast-detail-row strong{
  color:#17212b;
  font-size:.95rem;
  text-align:right;
  white-space:nowrap;
}
.forecast-detail-empty{
  padding:13px 14px;
  color:#6b7785;
  font-size:.92rem;
}
@media(max-width:560px){
  .forecast-detail-row{
    align-items:flex-start;
    flex-direction:column;
    gap:4px;
  }
  .forecast-detail-row strong{
    text-align:left;
    white-space:normal;
  }
}


/* v1.8.35 — 30-Day Usage Trend fills its dashboard card */
.usage-trend-card{
  display:flex;
  flex-direction:column;
  min-width:0;
}
.usage-trend-chart{
  position:relative;
  width:100%;
  height:360px;
  min-height:360px;
  margin-top:4px;
}
.usage-trend-chart canvas{
  display:block;
  width:100%;
  height:100%;
}
@media(max-width:1000px){
  .usage-trend-chart{
    height:320px;
    min-height:320px;
  }
}
@media(max-width:600px){
  .usage-trend-chart{
    height:280px;
    min-height:280px;
  }
}


/* v1.8.38 — interactive 30-Day Usage Trend points */
.usage-trend-chart{
  overflow:visible;
}
.trend-tooltip{
  position:absolute;
  z-index:8;
  min-width:112px;
  max-width:180px;
  padding:9px 11px;
  border-radius:9px;
  background:#102a43;
  color:#fff;
  box-shadow:0 8px 22px rgba(16,42,67,.22);
  pointer-events:none;
  line-height:1.3;
  font-size:.82rem;
}
.trend-tooltip strong,
.trend-tooltip span{
  display:block;
}
.trend-tooltip strong{
  margin-bottom:3px;
  font-size:.84rem;
  font-weight:700;
}
.trend-tooltip span{
  color:#e7f0f7;
}
.trend-tooltip[hidden]{
  display:none!important;
}

/* v1.8.39 — inline trend tooltip */
.trend-tooltip strong,
.trend-tooltip span{display:inline;}
.trend-tooltip strong{margin-bottom:0;}


/* v1.8.41 — forecast transient-failure notice */
.forecast-stale-notice{
  padding:10px 14px;
  border-top:1px solid #e5ebf1;
  background:#fff8e6;
  color:#765b13;
  font-size:.86rem;
  line-height:1.4;
}


/* v1.8.43 — professional registration choices on login */
.login-registration-links{
  margin:22px 0 8px;
  padding-top:18px;
  border-top:1px solid var(--line);
  text-align:center;
}
.login-registration-title{
  margin-bottom:10px;
  color:var(--ink);
  font-weight:700;
}
.login-registration-row{
  display:flex;
  justify-content:center;
  align-items:center;
  flex-wrap:wrap;
  gap:6px;
  margin:8px 0;
  line-height:1.45;
}
.login-registration-row a{
  font-weight:600;
}
.login-registration-row span{
  color:var(--muted);
}
.login-registration-secondary{
  margin-top:13px;
  padding-top:11px;
  border-top:1px solid #edf1f5;
}
@media(max-width:520px){
  .login-registration-row{
    align-items:stretch;
    flex-direction:column;
    gap:3px;
  }
  .login-registration-row span{display:none}
}


/* v1.8.46 - Mobile browser three-dot navigation
   Android WebView compatibility:
   the native Android app already hides .topbar nav and .mobile-nav-toggle. */
.mobile-nav-toggle{
  display:none;
  width:42px;
  height:42px;
  padding:0;
  border:1px solid var(--line);
  border-radius:10px;
  background:#fff;
  color:var(--ink);
  font-size:27px;
  font-weight:800;
  line-height:1;
  cursor:pointer;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
}
.mobile-nav-toggle:hover,
.mobile-nav-toggle:focus-visible{
  background:#eef4ff;
  border-color:#b9d4f5;
  color:var(--primary);
  outline:none;
}
@media(max-width:780px){
  .topbar{
    position:sticky;
    flex-direction:row;
    align-items:center;
    justify-content:space-between;
    gap:12px;
    padding:12px 4vw;
  }
  .topbar>div{
    min-width:0;
    flex:1;
  }
  .topbar .product{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }
  .mobile-nav-toggle{
    display:inline-flex;
  }
  .topbar nav{
    display:none;
    position:absolute;
    top:calc(100% + 6px);
    right:4vw;
    width:min(280px,92vw);
    padding:8px;
    border:1px solid var(--line);
    border-radius:14px;
    background:#fff;
    box-shadow:0 14px 36px rgba(16,42,67,.18);
    z-index:1000;
    grid-template-columns:1fr;
    gap:4px;
  }
  .topbar nav.mobile-nav-open{
    display:grid;
  }
  .topbar nav a{
    justify-content:flex-start;
    min-height:42px;
    padding:10px 12px;
    border:0;
    border-radius:9px;
    background:#fff;
    text-align:left;
  }
  .topbar nav a:hover,
  .topbar nav a:focus-visible{
    background:#eef4ff;
    border-color:transparent;
  }
  .topbar nav a:last-child{
    grid-column:auto;
  }
}
@media(max-width:380px){
  .topbar .product{
    width:auto;
    margin-left:8px;
    font-size:14px;
  }
}


/* v1.8.47 - Mobile three-dot navigation cache/override fix */
@media (max-width:780px){
  .topbar > .mobile-nav-toggle{
    display:inline-flex !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    margin:0 !important;
    flex:0 0 42px !important;
    align-items:center !important;
    justify-content:center !important;
    border:1px solid var(--line) !important;
    border-radius:10px !important;
    background:#fff !important;
    color:var(--ink) !important;
    font-size:26px !important;
    font-weight:800 !important;
    line-height:1 !important;
    text-align:center !important;
  }

  .topbar > nav{
    display:none !important;
    position:absolute !important;
    top:calc(100% + 6px) !important;
    right:4vw !important;
    left:auto !important;
    width:min(280px,92vw) !important;
    max-width:92vw !important;
    padding:8px !important;
    margin:0 !important;
    border:1px solid var(--line) !important;
    border-radius:14px !important;
    background:#fff !important;
    box-shadow:0 14px 36px rgba(16,42,67,.18) !important;
    z-index:1000 !important;
    grid-template-columns:1fr !important;
    gap:4px !important;
  }

  .topbar > nav.mobile-nav-open{
    display:grid !important;
  }

  .topbar > nav > a{
    display:flex !important;
    width:100% !important;
    min-height:42px !important;
    justify-content:flex-start !important;
    align-items:center !important;
    padding:10px 12px !important;
    margin:0 !important;
    border:0 !important;
    border-radius:9px !important;
    background:#fff !important;
    text-align:left !important;
  }
}

/* v1.8.48 specific-page nav fix: Device Setup / Gas Vendors */


/* v1.8.49 - Professional mobile System Status card */
.hero{
  position:relative;
}
.hero-copy{
  min-width:0;
  flex:1;
}
.hero-copy > h1{
  margin-bottom:10px;
}
.hero-copy > .muted{
  margin-top:8px;
}

/* Keep desktop/tablet appearance equivalent to the existing right-side badge. */
.hero .system-status-card{
  position:absolute;
  right:0;
  top:50%;
  transform:translateY(-50%);
}

/* Mobile browser: status card sits directly below Welcome heading. */
@media(max-width:780px){
  .hero{
    display:block !important;
  }
  .hero-copy{
    width:100%;
  }
  .hero-copy > h1{
    margin:0 0 10px;
    line-height:1.18;
  }
  .hero .system-status-card{
    position:static;
    transform:none;
    display:inline-flex;
    align-items:center;
    gap:9px;
    width:auto;
    max-width:100%;
    margin:0 0 10px;
    padding:9px 13px 9px 11px;
    border:1px solid #d9e4ea;
    border-radius:12px;
    box-shadow:0 4px 14px rgba(16,42,67,.07);
    font-size:13px;
    font-weight:800;
    line-height:1.2;
    letter-spacing:.01em;
  }
  .hero .system-status-card::before{
    content:'';
    width:9px;
    height:9px;
    flex:0 0 9px;
    border-radius:50%;
    background:#667085;
    box-shadow:0 0 0 4px rgba(102,112,133,.10);
  }
  .hero .system-status-card.success{
    background:#f0fdf4;
    border-color:#bbebc9;
    color:#176b3a;
  }
  .hero .system-status-card.success::before{
    background:#22a559;
    box-shadow:0 0 0 4px rgba(34,165,89,.12);
  }
  .hero .system-status-card.warning{
    background:#fffbeb;
    border-color:#f4df9e;
    color:#8a5a00;
  }
  .hero .system-status-card.warning::before{
    background:#e5a000;
    box-shadow:0 0 0 4px rgba(229,160,0,.12);
  }
  .hero .system-status-card.danger{
    background:#fff4f2;
    border-color:#f4c7c1;
    color:#a72d25;
  }
  .hero .system-status-card.danger::before{
    background:#d64545;
    box-shadow:0 0 0 4px rgba(214,69,69,.12);
  }
  .hero-copy > .muted{
    margin:0;
  }
}


/* v1.8.50 - Restore desktop System Status to the right */
@media(min-width:781px){
  .hero{
    display:block !important;
  }

  .hero-copy{
    display:grid !important;
    grid-template-columns:minmax(0,1fr) auto !important;
    grid-template-rows:auto auto !important;
    column-gap:24px !important;
    row-gap:6px !important;
    align-items:center !important;
    width:100% !important;
    min-width:0 !important;
  }

  .hero-copy > h1{
    grid-column:1 !important;
    grid-row:1 !important;
    margin:0 !important;
    min-width:0 !important;
  }

  .hero .system-status-card{
    grid-column:2 !important;
    grid-row:1 / span 2 !important;
    position:static !important;
    top:auto !important;
    right:auto !important;
    transform:none !important;
    align-self:center !important;
    justify-self:end !important;
    margin:0 !important;
    white-space:nowrap !important;
  }

  .hero-copy > .muted{
    grid-column:1 !important;
    grid-row:2 !important;
    margin:0 !important;
    min-width:0 !important;
  }
}

/* v1.8.51 - LPG Smart Assistant */
.ai-assistant-button{position:fixed;right:22px;bottom:22px;z-index:980;display:inline-flex;align-items:center;gap:9px;border:0;border-radius:999px;padding:11px 16px;background:#1769aa;color:#fff;font-weight:800;box-shadow:0 10px 28px rgba(23,105,170,.28);cursor:pointer}
.ai-assistant-button:hover{filter:brightness(.96)}
.ai-assistant-button-icon{display:inline-grid;place-items:center;width:30px;height:30px;border-radius:50%;background:rgba(255,255,255,.16);font-size:11px;letter-spacing:.04em}
.ai-assistant-panel{position:fixed;right:22px;bottom:82px;z-index:990;width:min(410px,calc(100vw - 28px));height:min(650px,calc(100vh - 120px));background:#fff;border:1px solid #dfe6ee;border-radius:18px;box-shadow:0 22px 55px rgba(16,42,67,.22);overflow:hidden;display:flex;flex-direction:column}
.ai-assistant-panel[hidden]{display:none!important}
.ai-assistant-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:16px 16px 14px;background:#f7fafc;border-bottom:1px solid #e6edf3}
.ai-assistant-head strong{display:block;color:#102a43;font-size:15px}
.ai-assistant-head span{display:block;margin-top:3px;color:#627d98;font-size:12px;line-height:1.35}
.ai-assistant-close{border:0;background:transparent;color:#52606d;font-size:28px;line-height:1;cursor:pointer;padding:0 2px}
.ai-assistant-messages{flex:1;overflow:auto;padding:16px;background:#fbfdff;scroll-behavior:smooth}
.ai-message{display:flex;gap:9px;margin:0 0 13px;align-items:flex-start}
.ai-message.user{justify-content:flex-end}
.ai-message-badge{flex:0 0 30px;width:30px;height:30px;border-radius:50%;display:grid;place-items:center;background:#e8f2fb;color:#1769aa;font-size:10px;font-weight:900}
.ai-message-content{max-width:82%;padding:10px 12px;border-radius:14px;background:#fff;border:1px solid #e1e8ef;color:#243b53;font-size:13px;line-height:1.48;white-space:pre-wrap;overflow-wrap:anywhere}
.ai-message.user .ai-message-content{background:#1769aa;color:#fff;border-color:#1769aa;border-bottom-right-radius:5px}
.ai-message.assistant .ai-message-content{border-bottom-left-radius:5px}
.ai-message.loading .ai-message-content{color:#627d98}
.ai-assistant-suggestions{display:flex;gap:7px;overflow-x:auto;padding:10px 12px 8px;background:#fff;border-top:1px solid #edf2f7;scrollbar-width:thin}
.ai-assistant-suggestions button{flex:0 0 auto;border:1px solid #cbd9e6;background:#f8fbfe;color:#1769aa;border-radius:999px;padding:7px 10px;font-size:11px;font-weight:700;cursor:pointer}
.ai-assistant-form{display:flex;align-items:flex-end;gap:8px;padding:10px 12px;background:#fff}
.ai-assistant-form textarea{flex:1;resize:none;min-height:42px;max-height:92px;border:1px solid #cbd9e6;border-radius:12px;padding:10px 11px;font:inherit;font-size:13px;line-height:1.35;color:#243b53;outline:none}
.ai-assistant-form textarea:focus{border-color:#1769aa;box-shadow:0 0 0 3px rgba(23,105,170,.10)}
.ai-assistant-form .btn{flex:0 0 auto;min-height:42px;padding:9px 14px}
.ai-assistant-note{margin:0;padding:0 14px 12px;background:#fff;color:#829ab1;font-size:10.5px;line-height:1.35}
.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
@media(max-width:600px){.ai-assistant-button{right:14px;bottom:14px}.ai-assistant-button span:last-child{display:none}.ai-assistant-button{padding:9px}.ai-assistant-panel{right:10px;bottom:68px;width:calc(100vw - 20px);height:min(620px,calc(100vh - 88px));border-radius:16px}}

/* v1.8.53 - LPG safety-instruction modal */
.safety-instructions-btn{margin-top:8px}.safety-guide-modal[hidden]{display:none!important}.safety-guide-modal{position:fixed;inset:0;z-index:1200;background:rgba(5,18,32,.62);display:flex;align-items:center;justify-content:center;padding:18px}.safety-guide-dialog{width:min(720px,100%);max-height:min(82vh,760px);background:#fff;border-radius:16px;box-shadow:0 24px 70px rgba(0,0,0,.3);display:flex;flex-direction:column;overflow:hidden}.safety-guide-header{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;padding:18px 20px;border-bottom:1px solid #e4e8ee}.safety-guide-header h2{margin:2px 0 0}.safety-guide-kicker{font-size:.76rem;font-weight:800;text-transform:uppercase;letter-spacing:.06em;color:#1769aa}.safety-guide-x{border:0;background:transparent;font-size:1.8rem;line-height:1;cursor:pointer;padding:2px 6px;color:#46515c}.safety-guide-body{padding:18px 22px;overflow-y:auto;overscroll-behavior:contain}.safety-guide-summary{font-weight:650;margin-top:0}.safety-guide-body ol{padding-left:1.35rem}.safety-guide-body li{margin:0 0 10px;line-height:1.5}.safety-guide-note{margin-top:16px;padding:12px 14px;border-radius:10px;background:#fff6df;border:1px solid #eed28b;line-height:1.45}.safety-guide-footer{padding:14px 20px;border-top:1px solid #e4e8ee;display:flex;justify-content:flex-end;background:#fafbfc}.modal-open{overflow:hidden}@media(max-width:600px){.safety-guide-modal{padding:8px}.safety-guide-dialog{max-height:92vh;border-radius:12px}.safety-guide-header,.safety-guide-body,.safety-guide-footer{padding-left:14px;padding-right:14px}}


/* v1.8.55 - Refill History server-side pagination */
.refill-filter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr)) auto;gap:12px 14px;align-items:end;margin:20px 0}
.refill-filter-grid label{margin:0}
.refill-filter-grid .alert-filter-actions{grid-column:auto}
.refill-history-table td:first-child{white-space:nowrap}
.refill-history-table td:last-child strong{color:var(--success)}
@media(max-width:780px){.refill-filter-grid{grid-template-columns:1fr 1fr}.refill-filter-grid .alert-filter-actions{grid-column:1/-1}}
@media(max-width:600px){.refill-filter-grid{grid-template-columns:1fr}.refill-filter-grid .alert-filter-actions{grid-column:auto}}


/* v1.9.0 Predictive Intelligence */
.predictive-card h2{margin-bottom:14px}.status-danger{color:#b42318}.status-ok{color:#137333}.status-warning{color:#9a6700}

/* v1.9.1 - Predictive intelligence refinement */
.refill-trigger-box{margin-top:12px;padding:12px 14px;border:1px solid var(--border);border-radius:12px;background:rgba(127,127,127,.06)}
.refill-trigger-box strong{display:block;margin-bottom:4px}

/* v1.9.2 - Dashboard consolidation */
.forecast-refill-guidance{margin-top:16px;padding-top:14px;border-top:1px solid var(--border)}
.forecast-refill-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.forecast-refill-head .pill{display:inline-flex}
.forecast-refill-title{margin:10px 0 5px;font-weight:800;color:var(--text)}
#weightSensorQuality .metric:last-child{margin-bottom:0}


/* v1.9.2a - Dashboard layout correction */
.health-safety-grid{display:grid;grid-template-columns:1fr;gap:18px}
.health-safety-section{min-width:0}
.health-safety-section+ .health-safety-section{border-left:0;border-top:1px solid var(--border);padding-left:0;padding-top:18px}
.health-safety-section h2{margin-bottom:12px}
.forecast-recommended-date{margin-top:12px}
@media(max-width:720px){.health-safety-grid{grid-template-columns:1fr;gap:18px}.health-safety-section+ .health-safety-section{border-left:0;border-top:1px solid var(--border);padding-left:0;padding-top:18px}}

/* v1.9.3 - Professional production dashboard redesign */
.dashboard-page{
  --dash-bg:#f4f7fb;
  --dash-surface:#ffffff;
  --dash-surface-soft:#f8fafc;
  --dash-text:#172033;
  --dash-muted:#687386;
  --dash-border:#e3e9f1;
  --dash-blue:#0b63ce;
  --dash-blue-dark:#084a9a;
  --dash-blue-soft:#edf5ff;
  --dash-success:#087a52;
  --dash-warning:#b7791f;
  --dash-danger:#c9362b;
  --dash-shadow:0 12px 34px rgba(24,39,75,.065);
  --dash-shadow-hover:0 18px 44px rgba(24,39,75,.09);
  --border:var(--dash-border);
  --text:var(--dash-text);
  background:var(--dash-bg);
  color:var(--dash-text);
}
.dashboard-page .dashboard-topbar{
  min-height:68px;
  padding:0 4vw;
  background:rgba(255,255,255,.96);
  border-bottom:1px solid var(--dash-border);
  box-shadow:0 1px 0 rgba(16,24,40,.02);
  backdrop-filter:saturate(150%) blur(12px);
}
.dashboard-page .dashboard-topbar>div:first-child{display:flex;align-items:center;gap:12px;min-width:0}
.dashboard-page .dashboard-topbar .brand{
  display:inline-flex;align-items:center;justify-content:center;
  min-height:34px;padding:0 12px;border-radius:10px;
  background:linear-gradient(135deg,var(--dash-blue),var(--dash-blue-dark));
  color:#fff;letter-spacing:.12em;font-size:12px;box-shadow:0 5px 14px rgba(11,99,206,.20)
}
.dashboard-page .dashboard-topbar .product{margin-left:0;color:#26364d;font-size:14px;white-space:nowrap}
.dashboard-page .dashboard-topbar nav{display:flex;align-items:center;gap:4px}
.dashboard-page .dashboard-topbar nav a{margin-left:0;padding:9px 10px;border-radius:9px;color:#45546a;font-size:13px;font-weight:700;transition:.18s ease}
.dashboard-page .dashboard-topbar nav a:hover{background:#f0f5fb;color:var(--dash-blue)}
.dashboard-page .dashboard-topbar nav a[href="dashboard.php"]{background:var(--dash-blue-soft);color:var(--dash-blue)}
.dashboard-page .dashboard-shell{width:min(1240px,94vw);margin:0 auto;padding:30px 0 46px}
.dashboard-page .dashboard-hero{margin:0 0 22px;padding:0 2px}
.dashboard-page .dashboard-hero .hero-copy{align-items:end!important}
.dashboard-page .dashboard-eyebrow,.dashboard-page .card-eyebrow{
  display:block;text-transform:uppercase;letter-spacing:.09em;font-size:10px;font-weight:850;color:#7b8798
}
.dashboard-page .dashboard-eyebrow{grid-column:1;margin:0 0 4px;color:var(--dash-blue)}
.dashboard-page .dashboard-hero h1{font-size:clamp(27px,3vw,36px);letter-spacing:-.035em;color:#172033}
.dashboard-page .dashboard-hero .muted{font-size:13px;color:#758196}
.dashboard-page .dashboard-hero .system-status-card{padding:9px 13px;border:1px solid #dce4ec;box-shadow:none;background:#fff}
.dashboard-page .dashboard-grid{gap:20px;align-items:stretch}
.dashboard-page .dashboard-card{
  position:relative;overflow:hidden;padding:22px 24px;
  border:1px solid var(--dash-border);border-radius:18px;background:var(--dash-surface);
  box-shadow:var(--dash-shadow);transition:box-shadow .2s ease,transform .2s ease,border-color .2s ease
}
.dashboard-page .dashboard-card:hover{box-shadow:var(--dash-shadow-hover);border-color:#d8e1ec;transform:translateY(-1px)}
.dashboard-page .dashboard-card h2{margin:3px 0 0;color:#1c2a3d;font-size:17px;line-height:1.25;letter-spacing:-.015em}
.dashboard-page .card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.dashboard-page .card-icon{
  width:36px;height:36px;flex:0 0 36px;border-radius:11px;display:grid;place-items:center;
  background:var(--dash-blue-soft);color:var(--dash-blue);font-weight:900;font-size:17px;border:1px solid #dbeaff
}
.dashboard-page .live-dot{width:10px;height:10px;border-radius:50%;background:#28a376;box-shadow:0 0 0 5px rgba(40,163,118,.10);margin:12px 5px 0 0}
.dashboard-page .metric{padding:11px 0;border-bottom:1px solid #edf1f5;gap:18px;align-items:center}
.dashboard-page .metric span{font-size:13px;color:var(--dash-muted)}
.dashboard-page .metric strong{font-size:13px;color:#26364d;text-align:right}
.dashboard-page .metric:last-of-type{border-bottom:0}
.dashboard-page .dashboard-card--level{background:linear-gradient(180deg,#fff 0%,#fbfdff 100%)}
.dashboard-page .dashboard-card--level .cylinder{height:300px;width:154px;margin-top:18px;border-width:7px;border-color:#2f4057;background:#f7f9fc;box-shadow:inset 0 0 0 1px rgba(47,64,87,.04)}
.dashboard-page .dashboard-card--level .gas-fill{background:linear-gradient(180deg,#60b9ff 0%,#1680e8 35%,#0b63ce 100%)}
.dashboard-page .dashboard-card--level .cylinder-label strong{font-size:36px;letter-spacing:-.04em}
.dashboard-page .dashboard-card--live .valve-actions{margin-top:18px;padding-top:4px}
.dashboard-page .dashboard-card--live .btn{border-radius:11px;min-height:44px;font-size:13px}
.dashboard-page .dashboard-card--live .btn.danger{background:#c9362b;box-shadow:0 6px 15px rgba(201,54,43,.14)}
.dashboard-page .dashboard-card--live .btn.valve-open{background:#eef8f4;color:#087a52;border:1px solid #cce9dd}
.dashboard-page .dashboard-card--forecast{background:linear-gradient(145deg,#ffffff 0%,#f8fbff 100%)}
.dashboard-page .dashboard-card--forecast .forecast{display:flex;align-items:baseline;gap:10px;margin:2px 0 7px}
.dashboard-page .dashboard-card--forecast .forecast strong{font-size:56px;letter-spacing:-.055em;color:#123c69;line-height:.95}
.dashboard-page .dashboard-card--forecast .forecast span{font-size:12px;font-weight:750;color:#7a8798;max-width:135px;line-height:1.25}
.dashboard-page .dashboard-card--forecast #runoutDate{padding-bottom:12px;border-bottom:1px solid #edf1f5;line-height:1.5}
.dashboard-page .dashboard-card--forecast .forecast-details{margin-top:8px}
.dashboard-page .forecast-recommended-date{margin-top:8px;border-top:1px solid #edf1f5}
.dashboard-page .refill-trigger-box{background:#f8fbff;border-color:#dbe8f5;padding:13px 14px}
.dashboard-page .refill-trigger-box strong{font-size:12px;color:#2a415f}
.dashboard-page .refill-trigger-box span{font-size:12px;line-height:1.5}
.dashboard-page .dashboard-card--health .health-safety-grid{gap:20px}
.dashboard-page .health-safety-section{position:relative}
.dashboard-page .health-safety-section h2{font-size:16px;margin:0 0 12px}
.dashboard-page .score-ring{margin:8px 0 4px;align-items:flex-end}
.dashboard-page .score-ring strong{font-size:38px;color:#163e68;letter-spacing:-.04em}
.dashboard-page .score-ring span{font-size:12px;padding-bottom:4px}
.dashboard-page .health-safety-section>p{margin:5px 0 9px;font-size:12px;font-weight:700}
.dashboard-page .health-safety-section+.health-safety-section{padding-top:20px;border-top:1px solid #e9eef4}
.dashboard-page .smart-list>div{border-top:1px solid #edf1f5;padding:10px 0;font-size:13px}
.dashboard-page .smart-list>div:first-child{border-top:0}
.dashboard-page .dashboard-card--trend{padding-bottom:18px}
.dashboard-page .dashboard-card--trend .usage-trend-chart{margin-top:2px;border-radius:14px;background:linear-gradient(180deg,#fbfdff,#fff);border:1px solid #edf2f7;padding:8px 8px 0}
.dashboard-page .dashboard-card--lifecycle .muted{margin:14px 0 0;font-size:12px}
.dashboard-page .dashboard-card--lifecycle .muted a{font-weight:750}
.dashboard-page .dashboard-card--lifecycle .lifecycle-manage-link{margin-bottom:12px}
.dashboard-page .cylinder-date-guide{margin-top:12px;padding:13px 14px;border:1px solid #e3ebf3;border-radius:12px;background:#f8fbff}
.dashboard-page .cylinder-date-guide h3{margin:0 0 8px;color:#26364d;font-size:12px;font-weight:800;line-height:1.35}
.dashboard-page .cylinder-date-guide-scroll{max-height:142px;overflow-y:auto;padding-right:8px;scrollbar-gutter:stable;font-size:11.5px;line-height:1.5;color:#68778d}
.dashboard-page .cylinder-date-guide-scroll p{margin:0 0 9px}
.dashboard-page .cylinder-date-guide-scroll p:last-child{margin-bottom:0}
.dashboard-page .cylinder-date-guide-scroll strong{color:#34465f}
.dashboard-page .cylinder-date-guide-scroll:focus{outline:2px solid rgba(11,99,206,.22);outline-offset:2px;border-radius:6px}
.dashboard-page .cylinder-date-guide-scroll::-webkit-scrollbar{width:7px}
.dashboard-page .cylinder-date-guide-scroll::-webkit-scrollbar-thumb{background:#cbd8e6;border-radius:999px}
.dashboard-page .cylinder-date-guide-scroll::-webkit-scrollbar-track{background:transparent}
.dashboard-page .dashboard-card--quality{background:linear-gradient(145deg,#fff 0%,#fbfffd 100%)}
.dashboard-page .dashboard-card--quality .score-ring strong{color:#087a52}
.dashboard-page .dashboard-card--refills .card-head-row,.dashboard-page .dashboard-card--alerts .card-head-row{margin-bottom:12px}
.dashboard-page .dashboard-card--refills .card-head-row p,.dashboard-page .dashboard-card--alerts .card-head-row p{margin-top:6px;font-size:12px}
.dashboard-page .compact-btn{border:1px solid #dce5ee;background:#f8fafc;color:#2f506f;border-radius:10px;padding:8px 11px;font-size:12px}
.dashboard-page .compact-btn:hover{background:#eef5fb;color:var(--dash-blue)}
.dashboard-page .alert-row{padding:12px 0;align-items:flex-start}
.dashboard-page .alert-row strong{font-size:13px}
.dashboard-page .alert-row p,.dashboard-page .alert-row small{font-size:12px}
.dashboard-page .dashboard-card--predictive{background:linear-gradient(145deg,#fff 0%,#fbfcff 100%)}
.dashboard-page .dashboard-card--predictive #consumptionPattern{max-width:55%}
.dashboard-page .dashboard-card--predictive #consumptionPatternNote{margin:14px 0 0;padding:12px 13px;border-radius:11px;background:#f7f9fc;border:1px solid #edf1f5;font-size:12px;line-height:1.5}
.dashboard-page .dashboard-card--alerts{padding-bottom:14px}
.dashboard-page .dashboard-card--alerts #alerts>.alert-row:last-child{border-bottom:0}
.dashboard-page .pill{font-size:12px}
.dashboard-page .status-ok{color:var(--dash-success)}
.dashboard-page .status-warning{color:var(--dash-warning)}
.dashboard-page .status-danger{color:var(--dash-danger)}
.dashboard-page .ai-assistant-button{background:linear-gradient(135deg,#0b63ce,#084a9a);box-shadow:0 12px 30px rgba(11,99,206,.25)}
.dashboard-page .ai-assistant-panel{border-color:#dce5ee;box-shadow:0 26px 65px rgba(16,42,67,.20)}
@media(min-width:980px){
  .dashboard-page .dashboard-card--level,.dashboard-page .dashboard-card--live{min-height:430px}
  .dashboard-page .dashboard-card--forecast,.dashboard-page .dashboard-card--health{min-height:390px}
}
@media(max-width:980px){
  .dashboard-page .dashboard-shell{width:min(94vw,820px);padding-top:24px}
  .dashboard-page .dashboard-topbar nav a{font-size:12px;padding:8px 7px}
}
@media(max-width:780px){
  .dashboard-page .dashboard-topbar{min-height:62px;padding:0 16px}
  .dashboard-page .dashboard-topbar .product{font-size:13px}
  .dashboard-page .dashboard-shell{width:min(94vw,680px);padding-top:20px}
  .dashboard-page .dashboard-hero{margin-bottom:18px}
  .dashboard-page .dashboard-hero .hero-copy{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;grid-template-rows:auto auto auto!important;column-gap:10px!important}
  .dashboard-page .dashboard-eyebrow{grid-column:1/-1!important;grid-row:1!important}
  .dashboard-page .dashboard-hero h1{grid-column:1!important;grid-row:2!important;font-size:27px!important}
  .dashboard-page .dashboard-hero .system-status-card{grid-column:2!important;grid-row:2 / span 2!important}
  .dashboard-page .dashboard-hero .muted{grid-column:1!important;grid-row:3!important}
  .dashboard-page .dashboard-card{padding:20px;border-radius:16px;transform:none!important}
  .dashboard-page .dashboard-grid{gap:15px}
}
@media(max-width:520px){
  .dashboard-page .dashboard-topbar .brand{min-height:31px;padding:0 9px;font-size:10px}
  .dashboard-page .dashboard-topbar .product{max-width:160px;overflow:hidden;text-overflow:ellipsis}
  .dashboard-page .dashboard-shell{width:calc(100% - 24px);padding:16px 0 34px}
  .dashboard-page .dashboard-hero h1{font-size:24px!important}
  .dashboard-page .dashboard-hero .system-status-card{font-size:11px;padding:7px 9px}
  .dashboard-page .dashboard-card{padding:18px}
  .dashboard-page .dashboard-card--level .cylinder{height:270px;width:142px}
  .dashboard-page .dashboard-card--forecast .forecast strong{font-size:48px}
  .dashboard-page .card-head-row{gap:12px}
  .dashboard-page .card-head-row .compact-btn{width:auto!important;align-self:flex-start}
}
@media(prefers-reduced-motion:reduce){
  .dashboard-page .dashboard-card,.dashboard-page .dashboard-topbar nav a{transition:none}
}
@media(min-width:781px){
  .dashboard-page .dashboard-hero .hero-copy{
    grid-template-columns:minmax(0,1fr) auto!important;
    grid-template-rows:auto auto auto!important;
    row-gap:4px!important;
  }
  .dashboard-page .dashboard-eyebrow{grid-column:1!important;grid-row:1!important}
  .dashboard-page .dashboard-hero .hero-copy>h1{grid-column:1!important;grid-row:2!important}
  .dashboard-page .dashboard-hero .hero-copy>.muted{grid-column:1!important;grid-row:3!important}
  .dashboard-page .dashboard-hero .system-status-card{grid-column:2!important;grid-row:2 / span 2!important}
}

/* ========================================================================
   v1.9.4 - Professional Full-Application Design System
   Applies the v1.9.3 dashboard visual language across customer, vendor,
   admin, authentication, marketplace and account-management pages.
   ======================================================================== */
:root{
  --pro-bg:#f4f7fb;
  --pro-surface:#ffffff;
  --pro-surface-soft:#f8fbff;
  --pro-text:#172033;
  --pro-muted:#687386;
  --pro-border:#e3e9f1;
  --pro-blue:#0b63ce;
  --pro-blue-dark:#084a9a;
  --pro-blue-soft:#edf5ff;
  --pro-success:#087a52;
  --pro-warning:#b7791f;
  --pro-danger:#c9362b;
  --pro-shadow:0 12px 34px rgba(24,39,75,.065);
  --pro-shadow-hover:0 18px 44px rgba(24,39,75,.09);
  --pro-radius:18px;
}

/* Shared application canvas */
body.customer-page,body.admin-page,body.vendor-page{
  background:
    radial-gradient(circle at 12% -8%,rgba(11,99,206,.055),transparent 28rem),
    linear-gradient(180deg,#f8fafc 0%,var(--pro-bg) 52%,#f5f7fa 100%);
  color:var(--pro-text);
  min-height:100vh;
}
body.customer-page .container,body.admin-page .container,body.vendor-page .container{
  width:min(1240px,94vw);
  margin:0 auto;
  padding:30px 0 48px;
}
body.customer-page .container.narrow{width:min(760px,92vw)}

/* Professional top navigation */
body.customer-page .topbar,body.admin-page .topbar,body.vendor-page .topbar{
  min-height:68px;
  padding:0 max(3vw,22px);
  background:rgba(255,255,255,.94);
  border-bottom:1px solid var(--pro-border);
  box-shadow:0 1px 0 rgba(16,42,67,.02),0 8px 24px rgba(16,42,67,.025);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
body.customer-page .topbar>div:first-child,body.admin-page .topbar>div:first-child,body.vendor-page .topbar>div:first-child{
  display:flex;align-items:center;gap:12px;min-width:0
}
body.customer-page .topbar .brand,body.admin-page .topbar .brand,body.vendor-page .topbar .brand{
  min-height:34px;padding:0 11px;display:inline-grid;place-items:center;
  border-radius:9px;background:linear-gradient(135deg,var(--pro-blue),var(--pro-blue-dark));
  color:#fff;font-size:11px;letter-spacing:.12em;box-shadow:0 7px 18px rgba(11,99,206,.18)
}
body.customer-page .topbar .product,body.admin-page .topbar .product,body.vendor-page .topbar .product{
  margin-left:0;color:#26364d;font-size:14px;font-weight:760;white-space:nowrap
}
body.customer-page .topbar nav,body.admin-page .topbar nav,body.vendor-page .topbar nav{gap:3px}
body.customer-page .topbar nav a,body.admin-page .topbar nav a,body.vendor-page .topbar nav a{
  margin:0;padding:9px 10px;border-radius:9px;color:#4d5c70;font-size:12.5px;font-weight:720;
  transition:background .18s ease,color .18s ease,transform .18s ease
}
body.customer-page .topbar nav a:hover,body.admin-page .topbar nav a:hover,body.vendor-page .topbar nav a:hover{
  background:var(--pro-blue-soft);color:var(--pro-blue);transform:translateY(-1px)
}
body.admin-page .topbar .brand{background:linear-gradient(135deg,#23354d,#111c2e)}
body.vendor-page .topbar .brand{background:linear-gradient(135deg,#0c7660,#075847)}
body.admin-page .topbar nav a:hover{background:#f0f3f7;color:#1f3148}
body.vendor-page .topbar nav a:hover{background:#edf8f4;color:#087a52}

/* Page typography and spacing */
body.customer-page h1,body.admin-page h1,body.vendor-page h1{
  color:#172033;letter-spacing:-.035em;line-height:1.15;font-size:clamp(25px,3vw,34px);margin:0 0 8px
}
body.customer-page h2,body.admin-page h2,body.vendor-page h2{
  color:#1c2a3d;letter-spacing:-.018em;line-height:1.25;font-size:18px;margin-top:0
}
body.customer-page h3,body.admin-page h3,body.vendor-page h3{color:#26364d;letter-spacing:-.01em}
body.customer-page p,body.admin-page p,body.vendor-page p{line-height:1.6}
body.customer-page .muted,body.admin-page .muted,body.vendor-page .muted{color:var(--pro-muted)}
body.customer-page .hero,body.admin-page .hero,body.vendor-page .hero{
  margin-bottom:22px;padding:2px;gap:20px
}
body.customer-page .hero h1,body.admin-page .hero h1,body.vendor-page .hero h1{margin-bottom:4px}

/* Cards */
body.customer-page .card,body.admin-page .card,body.vendor-page .card{
  border:1px solid var(--pro-border);border-radius:var(--pro-radius);background:var(--pro-surface);
  box-shadow:var(--pro-shadow);padding:24px 26px;margin-bottom:20px;
  transition:box-shadow .2s ease,border-color .2s ease,transform .2s ease
}
body.customer-page .card:hover,body.admin-page .card:hover,body.vendor-page .card:hover{
  border-color:#d9e2ec;box-shadow:var(--pro-shadow-hover)
}
body.customer-page .grid,body.admin-page .grid,body.vendor-page .grid{gap:20px}
body.customer-page .card-head-row,body.admin-page .card-head-row,body.vendor-page .card-head-row{
  margin-bottom:16px;padding-bottom:14px;border-bottom:1px solid #edf1f5
}
body.customer-page .card-head-row h2,body.admin-page .card-head-row h2,body.vendor-page .card-head-row h2{margin-bottom:2px}

/* Forms */
body.customer-page label,body.admin-page label,body.vendor-page label{color:#344054;font-size:13px;font-weight:720}
body.customer-page input,body.customer-page select,body.customer-page textarea,
body.admin-page input,body.admin-page select,body.admin-page textarea,
body.vendor-page input,body.vendor-page select,body.vendor-page textarea{
  border:1px solid #d9e2ec;border-radius:11px;background:#fff;color:#172033;
  min-height:44px;padding:11px 13px;outline:none;transition:border-color .18s ease,box-shadow .18s ease,background .18s ease
}
body.customer-page input:focus,body.customer-page select:focus,body.customer-page textarea:focus,
body.admin-page input:focus,body.admin-page select:focus,body.admin-page textarea:focus,
body.vendor-page input:focus,body.vendor-page select:focus,body.vendor-page textarea:focus{
  border-color:#8cb9ed;box-shadow:0 0 0 4px rgba(11,99,206,.09);background:#fff
}
body.customer-page input[type="checkbox"],body.admin-page input[type="checkbox"],body.vendor-page input[type="checkbox"]{min-height:0;accent-color:var(--pro-blue)}
body.customer-page hr,body.admin-page hr,body.vendor-page hr{border:0;border-top:1px solid #edf1f5;margin:26px 0}

/* Buttons */
body.customer-page .btn,body.admin-page .btn,body.vendor-page .btn{
  border-radius:10px;min-height:40px;padding:10px 15px;font-size:13px;font-weight:760;
  transition:transform .16s ease,box-shadow .16s ease,background .16s ease,border-color .16s ease
}
body.customer-page .btn:hover,body.admin-page .btn:hover,body.vendor-page .btn:hover{transform:translateY(-1px)}
body.customer-page .btn.primary,body.admin-page .btn.primary,body.vendor-page .btn.primary{
  background:linear-gradient(135deg,var(--pro-blue),var(--pro-blue-dark));color:#fff;box-shadow:0 8px 18px rgba(11,99,206,.16)
}
body.vendor-page .btn.primary{background:linear-gradient(135deg,#0c8067,#07634f);box-shadow:0 8px 18px rgba(8,122,82,.14)}
body.customer-page .btn.secondary,body.admin-page .btn.secondary,body.vendor-page .btn.secondary{
  background:#f7f9fc;color:#344054;border:1px solid #dfe6ee;box-shadow:none
}
body.customer-page .btn.secondary:hover,body.admin-page .btn.secondary:hover,body.vendor-page .btn.secondary:hover{background:#eef4fa;border-color:#cddbe9}
body.customer-page .btn.danger,body.admin-page .btn.danger,body.vendor-page .btn.danger{background:#c9362b;box-shadow:0 7px 15px rgba(201,54,43,.13)}

/* Alerts */
body.customer-page .alert,body.admin-page .alert,body.vendor-page .alert{
  border-radius:12px;padding:13px 15px;border:1px solid transparent;font-size:13px;line-height:1.5;box-shadow:0 4px 14px rgba(16,42,67,.03)
}
body.customer-page .alert.success,body.admin-page .alert.success,body.vendor-page .alert.success{background:#effaf5;border-color:#cbeadd;color:#087a52}
body.customer-page .alert.critical,body.admin-page .alert.critical,body.vendor-page .alert.critical{background:#fff4f2;border-color:#f1d0cb;color:#a92d24}

/* Data tables */
body.customer-page .table-wrap,body.admin-page .table-wrap,body.vendor-page .table-wrap{
  border:1px solid #e5ebf2;border-radius:14px;background:#fff;overflow:auto
}
body.customer-page .admin-table,body.admin-page .admin-table,body.vendor-page .admin-table{margin-top:0;min-width:720px}
body.customer-page .admin-table thead,body.admin-page .admin-table thead,body.vendor-page .admin-table thead{background:#f7f9fc}
body.customer-page .admin-table th,body.admin-page .admin-table th,body.vendor-page .admin-table th{
  padding:12px 14px;color:#6b778c;font-size:11px;text-transform:uppercase;letter-spacing:.045em;font-weight:800;border-bottom:1px solid #e5ebf2
}
body.customer-page .admin-table td,body.admin-page .admin-table td,body.vendor-page .admin-table td{
  padding:13px 14px;color:#334155;font-size:13px;border-bottom:1px solid #edf1f5
}
body.customer-page .admin-table tbody tr:hover,body.admin-page .admin-table tbody tr:hover,body.vendor-page .admin-table tbody tr:hover{background:#fbfdff}
body.customer-page .admin-table tbody tr:last-child td,body.admin-page .admin-table tbody tr:last-child td,body.vendor-page .admin-table tbody tr:last-child td{border-bottom:0}

/* Toolbars and filters */
body.customer-page .admin-head,body.admin-page .admin-head,body.vendor-page .admin-head{margin-bottom:18px}
body.customer-page .table-toolbar,body.admin-page .table-toolbar,body.vendor-page .table-toolbar,
body.customer-page .orders-toolbar,body.vendor-page .vendor-table-toolbar,body.customer-page .vendor-compare-toolbar{
  padding:14px;border:1px solid #e6ecf2;border-radius:13px;background:#f9fbfd;gap:12px
}
body.customer-page .toolbar-field,body.admin-page .toolbar-field,body.vendor-page .toolbar-field{margin:0}
body.customer-page .toolbar-field>span,body.admin-page .toolbar-field>span,body.vendor-page .toolbar-field>span{display:block;margin-bottom:6px;color:#6a7688;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.035em}
body.customer-page .pagination,body.admin-page .pagination,body.vendor-page .pagination{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:20px;flex-wrap:wrap}
body.customer-page .pagination .btn,body.admin-page .pagination .btn,body.vendor-page .pagination .btn{background:#fff;border:1px solid #dfe6ee;color:#344054}

/* Admin dashboard/stats */
body.admin-page .admin-stats,body.vendor-page .admin-stats{gap:16px;margin-bottom:22px}
body.admin-page .admin-stats .card,body.vendor-page .admin-stats .card{
  margin:0;min-height:116px;justify-content:center;background:linear-gradient(145deg,#fff,#fbfdff)
}
body.admin-page .admin-stats strong,body.vendor-page .admin-stats strong{font-size:30px;letter-spacing:-.045em;color:#18385e}
body.vendor-page .admin-stats strong{color:#116650}
body.admin-page .admin-stats .card span,body.vendor-page .admin-stats .card span{color:#6c788a;font-size:12px;font-weight:700}

/* Vendor marketplace/order cards */
body.customer-page .order-card,body.vendor-page .order-card{
  border:1px solid #e3e9f1;border-radius:16px;background:#fff;padding:20px;box-shadow:0 8px 24px rgba(24,39,75,.05);margin-bottom:14px
}
body.customer-page .order-payment-card,body.customer-page .order-confirmed-card{
  border-radius:13px;padding:14px 16px;border:1px solid #e6ecf2;background:#f8fbff
}
body.customer-page .otp-box{border-radius:12px;background:#f7f9fc;border:1px solid #e4eaf1;padding:14px}
body.customer-page .gps-status-card,body.vendor-page .gps-status-card{border-radius:13px;border:1px solid #dfe8f1;background:#f8fbff}
body.customer-page .leaflet-map,body.vendor-page .leaflet-map{border:1px solid #dfe7ef;border-radius:15px;box-shadow:inset 0 0 0 1px rgba(255,255,255,.4);overflow:hidden}
body.vendor-page .price-entry{border:1px solid #e6ecf2;border-radius:14px;background:#fbfdff;padding:16px;margin-bottom:12px}

/* History/alerts */
body.customer-page .history-alert,body.admin-page .alert-row,body.customer-page .alert-row{
  border-radius:12px;padding:14px;margin-bottom:9px;border:1px solid #e8edf3;background:#fff
}
body.customer-page .history-alert.critical,body.admin-page .alert-row.critical,body.customer-page .alert-row.critical{border-left:4px solid var(--pro-danger)}
body.customer-page .history-alert.warning,body.admin-page .alert-row.warning,body.customer-page .alert-row.warning{border-left:4px solid var(--pro-warning)}
body.customer-page .delivery-status{font-size:11px;color:#7b8798}

/* Pills/status chips */
body.customer-page .pill,body.admin-page .pill,body.vendor-page .pill{font-size:11px;padding:6px 9px;border-radius:999px;letter-spacing:.01em}

/* Professional auth/registration/payment pages */
body.auth-bg{
  background:
    radial-gradient(circle at 18% 12%,rgba(11,99,206,.16),transparent 28rem),
    radial-gradient(circle at 90% 90%,rgba(8,122,82,.07),transparent 24rem),
    linear-gradient(145deg,#eef4fb 0%,#f8fafc 50%,#eef3f8 100%);
  padding:30px 0
}
body.auth-bg .auth-card{
  border:1px solid rgba(214,225,236,.95);border-radius:22px;padding:34px 36px;
  box-shadow:0 26px 70px rgba(16,42,67,.13);background:rgba(255,255,255,.96);backdrop-filter:blur(12px)
}
body.auth-bg .auth-card .brand{
  display:inline-grid;place-items:center;min-height:36px;padding:0 12px;border-radius:10px;
  background:linear-gradient(135deg,var(--pro-blue),var(--pro-blue-dark));color:#fff;font-size:11px;letter-spacing:.12em;box-shadow:0 8px 20px rgba(11,99,206,.18)
}
body.auth-bg .auth-card h1{margin:18px 0 8px;font-size:30px;letter-spacing:-.04em;color:#172033}
body.auth-bg .auth-card h2{color:#1d2c41}
body.auth-bg .auth-card input,body.auth-bg .auth-card select{
  border:1px solid #d9e2ec;border-radius:11px;min-height:44px;transition:border-color .18s ease,box-shadow .18s ease
}
body.auth-bg .auth-card input:focus,body.auth-bg .auth-card select:focus{outline:none;border-color:#8cb9ed;box-shadow:0 0 0 4px rgba(11,99,206,.09)}
body.auth-bg .auth-card .btn{font-family:Inter,Arial,sans-serif;font-size:13px;line-height:1.25;font-weight:760}
body.auth-bg .auth-card .btn.primary{border-radius:11px;background:linear-gradient(135deg,var(--pro-blue),var(--pro-blue-dark));box-shadow:0 9px 20px rgba(11,99,206,.16)}
body.auth-bg .auth-card .center a,body.auth-bg .auth-card .login-registration-row a{font-family:Inter,Arial,sans-serif;font-size:13px;line-height:1.5;font-weight:650}
body.auth-bg .login-registration-links{margin-top:22px;padding-top:18px;border-top:1px solid #edf1f5}
body.auth-bg .login-registration-title{font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:#7c8798;font-weight:800;margin-bottom:9px}
body.auth-bg .login-registration-row{font-size:13px;line-height:1.65}
body.auth-bg .legal{margin-top:22px;padding-top:16px;border-top:1px solid #edf1f5}

/* Legal pages */
body.customer-page main.container>article,body.customer-page main.container>.legal-page{
  max-width:900px;margin:0 auto;background:#fff;border:1px solid var(--pro-border);border-radius:18px;padding:30px;box-shadow:var(--pro-shadow)
}

/* Print page remains deliberately clean */
@media print{
  body.customer-page,body.admin-page,body.vendor-page{background:#fff!important}
  body.customer-page .topbar,body.admin-page .topbar,body.vendor-page .topbar{display:none!important}
  body.customer-page .card,body.admin-page .card,body.vendor-page .card{box-shadow:none!important;border-color:#d9d9d9!important}
}

@media(max-width:980px){
  body.customer-page .topbar,body.admin-page .topbar,body.vendor-page .topbar{padding:12px 18px;align-items:flex-start}
  body.customer-page .container,body.admin-page .container,body.vendor-page .container{width:min(94vw,860px);padding-top:24px}
  body.admin-page .admin-stats,body.vendor-page .admin-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:780px){
  body.customer-page .topbar,body.admin-page .topbar,body.vendor-page .topbar{gap:12px}
  body.customer-page .topbar nav,body.admin-page .topbar nav,body.vendor-page .topbar nav{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  body.customer-page .topbar nav a,body.admin-page .topbar nav a,body.vendor-page .topbar nav a{
    min-height:40px;background:#f8fafc;border:1px solid #e3e9f1;font-size:12px
  }
  body.customer-page .card,body.admin-page .card,body.vendor-page .card{padding:20px;border-radius:16px}
  body.customer-page .admin-head,body.admin-page .admin-head,body.vendor-page .admin-head{align-items:stretch}
  body.customer-page .table-toolbar,body.admin-page .table-toolbar,body.vendor-page .table-toolbar{align-items:stretch}
}
@media(max-width:520px){
  body.customer-page .container,body.admin-page .container,body.vendor-page .container{width:calc(100% - 24px);padding:18px 0 34px}
  body.customer-page .topbar,body.admin-page .topbar,body.vendor-page .topbar{padding:11px 12px}
  body.customer-page .topbar .brand,body.admin-page .topbar .brand,body.vendor-page .topbar .brand{min-height:31px;font-size:10px;padding:0 9px}
  body.customer-page .topbar .product,body.admin-page .topbar .product,body.vendor-page .topbar .product{font-size:13px}
  body.customer-page .topbar nav,body.admin-page .topbar nav,body.vendor-page .topbar nav{grid-template-columns:1fr 1fr}
  body.customer-page .card,body.admin-page .card,body.vendor-page .card{padding:18px}
  body.admin-page .admin-stats,body.vendor-page .admin-stats{grid-template-columns:1fr 1fr;gap:10px}
  body.admin-page .admin-stats .card,body.vendor-page .admin-stats .card{min-height:96px;padding:16px}
  body.admin-page .admin-stats strong,body.vendor-page .admin-stats strong{font-size:25px}
  body.auth-bg{padding:18px 0}
  body.auth-bg .auth-card{padding:26px 22px;border-radius:18px}
  body.auth-bg .auth-card h1{font-size:26px}
}
@media(max-width:380px){
  body.customer-page .topbar nav,body.admin-page .topbar nav,body.vendor-page .topbar nav{grid-template-columns:1fr}
  body.admin-page .admin-stats,body.vendor-page .admin-stats{grid-template-columns:1fr}
}
@media(prefers-reduced-motion:reduce){
  body.customer-page .card,body.admin-page .card,body.vendor-page .card,
  body.customer-page .btn,body.admin-page .btn,body.vendor-page .btn,
  body.customer-page .topbar nav a,body.admin-page .topbar nav a,body.vendor-page .topbar nav a{transition:none!important}
}


/* v1.9.4a — Professional Device Setup / Wi-Fi provisioning */
body.customer-page .device-setup-page{width:min(1180px,92vw);padding-top:30px}
body.customer-page .device-setup-hero{
  position:relative;overflow:hidden;margin-bottom:18px;padding:26px 28px;border:1px solid #dbe6f1;border-radius:20px;
  background:linear-gradient(135deg,#0b63ce 0%,#174f8d 56%,#133c6b 100%);color:#fff;
  box-shadow:0 18px 45px rgba(18,67,119,.16)
}
body.customer-page .device-setup-hero:after{
  content:"";position:absolute;right:-72px;top:-90px;width:260px;height:260px;border-radius:50%;
  background:rgba(255,255,255,.08);box-shadow:-88px 122px 0 rgba(255,255,255,.04)
}
body.customer-page .device-setup-kicker{position:relative;z-index:1;margin:0 0 7px;font-size:11px;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#cfe5ff}
body.customer-page .device-setup-hero h1{position:relative;z-index:1;margin:0 0 8px;font-size:30px;letter-spacing:-.035em;color:#fff}
body.customer-page .device-setup-hero p{position:relative;z-index:1;max-width:780px;margin:0;color:#e7f2ff;line-height:1.65}
body.customer-page .device-setup-grid{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(300px,.8fr);gap:18px;align-items:start}
body.customer-page .device-setup-card{margin:0;padding:26px}
body.customer-page .device-setup-card h2{margin:0 0 5px;font-size:20px;color:#1a2c44;letter-spacing:-.02em}
body.customer-page .device-setup-card .section-intro{margin:0 0 22px;color:#6a7789;font-size:13px;line-height:1.6}
body.customer-page .device-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px 16px}
body.customer-page .device-form-grid .field-full{grid-column:1/-1}
body.customer-page .device-setup-card label:not(.check){display:block;margin:0;color:#526173;font-size:12px;font-weight:800;letter-spacing:.01em}
body.customer-page .device-setup-card label:not(.check) input,
body.customer-page .device-setup-card label:not(.check) select{
  margin-top:7px;min-height:46px;border:1px solid #d8e2ec;border-radius:11px;background:#fff;box-shadow:0 1px 2px rgba(16,42,67,.02);
  transition:border-color .18s ease,box-shadow .18s ease
}
body.customer-page .device-setup-card label:not(.check) input:focus,
body.customer-page .device-setup-card label:not(.check) select:focus{outline:none;border-color:#82b4ed;box-shadow:0 0 0 4px rgba(11,99,206,.09)}
body.customer-page .device-setup-card .check{display:flex;align-items:center;gap:9px;margin:2px 0 0;color:#657286;font-size:12px;font-weight:700}
body.customer-page .device-setup-card .check input{width:16px;height:16px;margin:0}
body.customer-page .device-setup-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:20px}
body.customer-page .device-setup-actions .btn{width:auto;margin:0;min-height:44px;padding:0 18px}
body.customer-page .device-setup-actions .btn.primary{box-shadow:0 9px 20px rgba(11,99,206,.16)}
body.customer-page .setup-progress{margin-top:18px;padding:14px 16px;border:1px solid #d7e6f6;border-radius:12px;background:#f6faff}
body.customer-page .setup-progress strong{display:block;margin-bottom:4px;color:#1c4e82;font-size:12px;text-transform:uppercase;letter-spacing:.045em}
body.customer-page .device-setup-side{display:grid;gap:18px}
body.customer-page .setup-info-card{margin:0;padding:22px}
body.customer-page .setup-info-card h2{margin:0 0 12px;font-size:17px;color:#1d2f45}
body.customer-page .setup-step-list{display:grid;gap:12px;margin:0;padding:0;list-style:none;counter-reset:setupstep}
body.customer-page .setup-step-list li{position:relative;padding:0 0 0 42px;min-height:32px;color:#566476;font-size:13px;line-height:1.55;counter-increment:setupstep}
body.customer-page .setup-step-list li:before{
  content:counter(setupstep);position:absolute;left:0;top:0;width:29px;height:29px;display:grid;place-items:center;border-radius:9px;
  background:#eaf3ff;color:#0b63ce;font-size:12px;font-weight:900;border:1px solid #d7e8fb
}
body.customer-page .softap-card{border-color:#e4e8ee;background:linear-gradient(145deg,#fff,#fafcff)}
body.customer-page .softap-path{margin:12px 0 0;padding:11px 12px;border-radius:10px;background:#f4f7fa;color:#334155;font-size:12px;line-height:1.55;border:1px solid #e4e9ef}
body.customer-page .security-card{position:relative;margin:0;padding:18px 20px 18px 50px;border:1px solid #d9ebe4;border-radius:16px;background:#f7fcfa;color:#4e625b;font-size:12px;line-height:1.65;box-shadow:none}
body.customer-page .security-card:before{content:"✓";position:absolute;left:18px;top:18px;width:23px;height:23px;display:grid;place-items:center;border-radius:50%;background:#e5f6ef;color:#087a52;font-weight:900}
body.customer-page .security-card strong{display:block;color:#1d5846;margin-bottom:3px;font-size:12px}
body.customer-page #bleSupport,body.customer-page #wifiStatus{margin:0 0 16px;border-radius:12px}
body.customer-page .device-setup-meta{display:flex;gap:8px;flex-wrap:wrap;margin-top:14px}
body.customer-page .device-setup-meta span{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid rgba(255,255,255,.22);border-radius:999px;background:rgba(255,255,255,.09);color:#eaf4ff;font-size:11px;font-weight:700}
@media(max-width:900px){
  body.customer-page .device-setup-grid{grid-template-columns:1fr}
  body.customer-page .device-setup-side{grid-template-columns:1fr 1fr}
  body.customer-page .security-card{grid-column:1/-1}
}
@media(max-width:640px){
  body.customer-page .device-setup-page{width:calc(100% - 24px);padding-top:18px}
  body.customer-page .device-setup-hero{padding:22px 20px;border-radius:17px}
  body.customer-page .device-setup-hero h1{font-size:26px}
  body.customer-page .device-form-grid{grid-template-columns:1fr}
  body.customer-page .device-form-grid .field-full{grid-column:auto}
  body.customer-page .device-setup-side{grid-template-columns:1fr}
  body.customer-page .security-card{grid-column:auto}
  body.customer-page .device-setup-actions{align-items:stretch}
  body.customer-page .device-setup-actions .btn{width:100%}
}

/* v1.9.4b — Dashboard cylinder heading alignment correction */
.dashboard-page .cylinder-card .card-heading,
.dashboard-page .cylinder-card .card-heading > div,
.dashboard-page .cylinder-card .card-eyebrow,
.dashboard-page .cylinder-card .card-heading h2 {
  text-align:left;
}
.dashboard-page .cylinder-card .card-heading > div { width:100%; }


/* v1.9.5 — shared blue page hero */
.page-hero{
  position:relative;
  overflow:hidden;
  isolation:isolate;
  margin:0 0 24px;
  padding:32px 36px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:22px;
  background:linear-gradient(118deg,#0b6bd9 0%,#155da7 52%,#123f70 100%);
  color:#fff;
  box-shadow:0 18px 42px rgba(17,72,126,.18);
}
.page-hero::before,.page-hero::after{
  content:"";
  position:absolute;
  z-index:-1;
  border-radius:999px;
  pointer-events:none;
}
.page-hero::before{
  width:320px;height:320px;right:-95px;top:-205px;
  background:rgba(255,255,255,.07);
}
.page-hero::after{
  width:300px;height:300px;right:18px;bottom:-225px;
  background:rgba(108,177,245,.10);
}
.page-hero-content{position:relative;z-index:1;max-width:900px}
.page-hero-kicker,.page-hero .dashboard-eyebrow{
  margin:0 0 7px;
  color:#f4f9ff;
  font-size:12px;
  line-height:1.2;
  font-weight:850;
  letter-spacing:.09em;
  text-transform:uppercase;
}
.page-hero h1{
  margin:0 0 8px;
  color:#fff;
  font-size:clamp(27px,3vw,36px);
  line-height:1.12;
  letter-spacing:-.035em;
}
.page-hero p{
  position:relative;
  z-index:1;
  max-width:860px;
  margin:0;
  color:#eaf4ff;
  font-size:15px;
  line-height:1.65;
}
.page-hero-meta{display:flex;flex-wrap:wrap;gap:9px;margin-top:17px}
.page-hero-meta span{
  display:inline-flex;
  align-items:center;
  min-height:30px;
  padding:6px 12px;
  border:1px solid rgba(255,255,255,.28);
  border-radius:999px;
  background:rgba(255,255,255,.08);
  color:#fff;
  font-size:12px;
  font-weight:750;
  backdrop-filter:blur(3px);
}
.page-hero--compact{padding:27px 32px}
.page-hero--compact h1{font-size:clamp(25px,2.6vw,33px)}

/* Dashboard keeps its approved card/grid layout; only the title area adopts the shared hero. */
.dashboard-page .page-hero.dashboard-hero{display:block;margin-bottom:22px;padding:27px 32px}
.dashboard-page .page-hero.dashboard-hero .hero-copy{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-rows:auto auto auto!important;
  align-items:center!important;
  column-gap:18px!important;
  width:100%;
  max-width:none;
}
.dashboard-page .page-hero.dashboard-hero .dashboard-eyebrow{grid-column:1;grid-row:1}
.dashboard-page .page-hero.dashboard-hero h1{grid-column:1;grid-row:2;color:#fff!important;margin:0 0 5px!important}
.dashboard-page .page-hero.dashboard-hero .muted{grid-column:1;grid-row:3;color:#dceeff!important;font-size:13px}
.dashboard-page .page-hero.dashboard-hero .system-status-card{
  grid-column:2!important;
  grid-row:1 / span 3!important;
  align-self:center;
  color:#fff;
  border-color:rgba(255,255,255,.28)!important;
  background:rgba(255,255,255,.12)!important;
  box-shadow:none!important;
}
.dashboard-page .page-hero.dashboard-hero .system-status-card.success{color:#fff!important;background:rgba(6,118,71,.28)!important}
.dashboard-page .page-hero.dashboard-hero .system-status-card.warning{color:#fff!important;background:rgba(181,71,8,.30)!important}
.dashboard-page .page-hero.dashboard-hero .system-status-card.danger{color:#fff!important;background:rgba(180,35,24,.34)!important}

/* Device Setup uses the same component while retaining its larger provisioning treatment. */
body.customer-page .page-hero.device-setup-hero{padding:32px 36px}
body.customer-page .page-hero.device-setup-hero:after{width:300px;height:300px;right:18px;bottom:-225px}
body.customer-page .page-hero.device-setup-hero h1{margin:0 0 8px;color:#fff}
body.customer-page .page-hero.device-setup-hero p{color:#eaf4ff}

/* Keep content cards visually separated from the page title. */
.customer-page .page-hero + .card,
.admin-page .page-hero + .card,
.vendor-page .page-hero + .card{margin-top:0}
.page-section-title{margin:0 0 4px;font-size:20px;letter-spacing:-.02em}

@media(max-width:780px){
  .page-hero,.page-hero--compact,body.customer-page .page-hero.device-setup-hero{padding:22px 20px;border-radius:17px;margin-bottom:18px}
  .page-hero h1,.page-hero--compact h1{font-size:26px}
  .page-hero p{font-size:14px;line-height:1.55}
  .dashboard-page .page-hero.dashboard-hero{padding:22px 20px}
  .dashboard-page .page-hero.dashboard-hero .hero-copy{column-gap:10px!important}
}
@media(max-width:520px){
  .dashboard-page .page-hero.dashboard-hero .hero-copy{grid-template-columns:minmax(0,1fr)!important}
  .dashboard-page .page-hero.dashboard-hero .dashboard-eyebrow,
  .dashboard-page .page-hero.dashboard-hero h1,
  .dashboard-page .page-hero.dashboard-hero .muted,
  .dashboard-page .page-hero.dashboard-hero .system-status-card{grid-column:1!important}
  .dashboard-page .page-hero.dashboard-hero .system-status-card{grid-row:auto!important;justify-self:start;margin-top:12px}
}

/* v1.9.5a: Customer shared page-hero title contrast correction.
   Keep customer page titles white inside the blue reusable hero, matching Dashboard Welcome. */
body.customer-page .page-hero h1{
  color:#fff !important;
}

/* v1.9.5b: Explicit shared page-header title contrast for privileged portals.
   Admin and Gas Vendor page titles remain white inside the reusable blue hero,
   regardless of older page-specific heading rules. */
body.admin-page .page-hero h1,
body.vendor-page .page-hero h1{
  color:#fff !important;
}


/* v1.9.5c: definitive shared page-header title contrast fix.
   The reusable hero title is explicitly white in every portal and cannot be
   overridden by the earlier generic body h1 typography rules. */
.page-hero .page-hero-title,
body.customer-page .page-hero .page-hero-title,
body.admin-page .page-hero .page-hero-title,
body.vendor-page .page-hero .page-hero-title{
  color:#fff !important;
  -webkit-text-fill-color:#fff !important;
}

/* v1.9.5d — Device Setup blue header parity with /lpg_v1/. */
body.customer-page .device-setup-hero{
  position:relative;overflow:hidden;isolation:isolate;margin:0 0 22px;padding:27px 32px;
  border:1px solid rgba(255,255,255,.12);border-radius:22px;
  background:linear-gradient(118deg,#0b6bd9 0%,#155da7 52%,#123f70 100%);color:#fff;
  box-shadow:0 18px 42px rgba(17,72,126,.18);
}
body.customer-page .device-setup-hero::before,body.customer-page .device-setup-hero::after{content:"";position:absolute;z-index:-1;border-radius:999px;pointer-events:none}
body.customer-page .device-setup-hero::before{width:320px;height:320px;right:-95px;top:-205px;background:rgba(255,255,255,.07)}
body.customer-page .device-setup-hero::after{width:300px;height:300px;right:18px;bottom:-225px;top:auto;background:rgba(108,177,245,.10);box-shadow:none}
body.customer-page .device-setup-kicker{position:relative;z-index:1;margin:0 0 7px;color:#f4f9ff;font-size:12px;line-height:1.2;font-weight:850;letter-spacing:.09em;text-transform:uppercase}
body.customer-page .device-setup-hero h1{position:relative;z-index:1;margin:0 0 5px;color:#fff;font-size:clamp(27px,3vw,36px);line-height:1.12;letter-spacing:-.035em}
body.customer-page .device-setup-hero p{position:relative;z-index:1;max-width:860px;margin:0;color:#eaf4ff;font-size:13px;line-height:1.55}
body.customer-page .device-setup-meta{margin-top:17px;gap:9px}
body.customer-page .device-setup-meta span{min-height:30px;padding:6px 12px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.08);color:#fff;font-size:12px;font-weight:750;backdrop-filter:blur(3px)}
@media(max-width:780px){body.customer-page .device-setup-hero{padding:22px 20px;border-radius:17px;margin-bottom:18px}body.customer-page .device-setup-hero h1{font-size:27px}body.customer-page .device-setup-hero p{font-size:13px;line-height:1.55}}


/* v1.9.6 — battery/temperature indicators and predictive sensor maintenance. */
.cylinder-quick-stats{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:18px}
.quick-stat{display:flex;align-items:center;gap:11px;min-width:0;padding:12px 13px;border:1px solid #e5edf5;border-radius:14px;background:#f8fbff}
.quick-stat>div{min-width:0}.quick-stat span:not(.quick-stat-icon):not(.battery-icon){display:block;color:#65758b;font-size:11px;font-weight:750;line-height:1.25}.quick-stat strong{display:block;margin-top:3px;color:#15324d;font-size:14px}.quick-stat small{display:block;margin-top:2px;color:#738399;font-size:10px;font-weight:700}
.temperature-icon{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:11px;background:#eef6ff;color:#1769aa;font-size:19px;font-weight:900}
.battery-icon{position:relative;width:37px;height:20px;flex:0 0 37px;border:2px solid #55708a;border-radius:5px;padding:2px;background:#fff}.battery-icon:after{content:"";position:absolute;right:-5px;top:5px;width:3px;height:7px;border-radius:0 2px 2px 0;background:#55708a}.battery-icon i{display:block;height:100%;width:0;border-radius:2px;background:currentColor;color:#16845b;transition:width .25s ease}.battery-icon b{display:none;position:absolute;inset:-5px -8px -5px -8px;place-items:center;color:#0b6bd9;font-size:18px;text-shadow:0 1px 2px #fff}.battery-icon.is-charging b{display:grid}.battery-icon.is-charging i{opacity:.35}
.predictive-maintenance-summary{margin-top:18px;padding-top:17px;border-top:1px solid #e5edf5}.maintenance-title{display:flex;align-items:center;gap:8px;margin-bottom:8px;color:#15324d}.maintenance-icon{display:grid;place-items:center;width:27px;height:27px;border-radius:9px;background:#edf6ff;color:#0b6bd9}
.admin-customer-grid{align-items:start}.admin-customer-column{display:grid;gap:20px}.sensor-maintenance-admin .maintenance-score-line{display:flex;align-items:baseline;gap:7px;flex-wrap:wrap;margin:12px 0 4px}.sensor-maintenance-admin .maintenance-score-line strong{font-size:28px;color:#15324d}.maintenance-status-pill{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#edf8f3;color:#137553;font-size:12px;font-weight:800}.maintenance-status-pill.monitor{background:#fff6df;color:#9a6500}.maintenance-status-pill.maintenance_required,.maintenance-status-pill.sensor_fault{background:#fff0f0;color:#b3261e}
@media(max-width:560px){.cylinder-quick-stats{grid-template-columns:1fr}.quick-stat{padding:11px 12px}}


/* v1.9.6b — centre quick-stat content while preserving the original v1.9.6 icons. */
.dashboard-page .cylinder-quick-stats .quick-stat{
  flex-direction:column;
  justify-content:center;
  align-items:center;
  gap:7px;
  text-align:center;
}
.dashboard-page .cylinder-quick-stats .quick-stat>div{
  width:100%;
  text-align:center;
}
.dashboard-page .cylinder-quick-stats .quick-stat>div>span,
.dashboard-page .cylinder-quick-stats .quick-stat>div>strong,
.dashboard-page .cylinder-quick-stats .quick-stat>div>small{
  text-align:center;
}

/* Explicitly retain the original v1.9.6 battery geometry. */
.dashboard-page .cylinder-quick-stats .battery-icon{
  position:relative;
  width:37px;
  min-width:37px;
  max-width:37px;
  height:20px;
  min-height:20px;
  max-height:20px;
  flex:0 0 20px;
  border:2px solid #55708a;
  border-radius:5px;
  padding:2px;
  background:#fff;
}
.dashboard-page .cylinder-quick-stats .battery-icon:after{
  content:"";
  position:absolute;
  right:-5px;
  top:5px;
  width:3px;
  height:7px;
  border-radius:0 2px 2px 0;
  background:#55708a;
}


/* Gas valve automatic turn-off scheduler */
.valve-scheduler{margin-top:14px;padding:14px;border:1px solid var(--border);border-radius:14px;background:rgba(248,250,252,.75)}
.valve-scheduler-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;margin-bottom:12px}.valve-scheduler-head>div{display:grid;gap:3px}.valve-scheduler-head span{font-size:.82rem;color:var(--muted)}.schedule-timezone{white-space:nowrap}
.valve-schedule-fields{display:grid;grid-template-columns:1fr 1fr 1fr;gap:9px}.valve-schedule-fields label{display:grid;gap:5px;font-size:.78rem;color:var(--muted)}.valve-schedule-fields input,.valve-schedule-fields select{width:100%;min-height:40px;padding:8px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text)}
.valve-schedule-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}.valve-schedule-actions .btn{margin:0}.valve-schedule-status{margin:10px 0 0;font-size:.82rem;line-height:1.4}
@media(max-width:680px){.valve-schedule-fields{grid-template-columns:1fr}.valve-scheduler-head{display:grid}.schedule-timezone{justify-self:start}}


/* v1.9.9 - compact Automatic Valve Shut-Off dashboard UI */
.valve-scheduler--compact{padding:12px 14px}.valve-schedule-summary{display:flex;align-items:center;justify-content:space-between;gap:12px}.valve-schedule-summary-copy{min-width:0;display:grid;gap:5px}.valve-schedule-title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.valve-schedule-summary-text{margin:0;font-size:.84rem;color:var(--muted);line-height:1.4}.schedule-badge{display:inline-flex;align-items:center;border-radius:999px;padding:3px 8px;font-size:.7rem;font-weight:700}.schedule-badge--active{background:rgba(22,163,74,.12);color:#15803d}.schedule-badge--inactive{background:rgba(100,116,139,.12);color:var(--muted)}.valve-schedule-editor{margin-top:12px;padding-top:12px;border-top:1px solid var(--border)}.valve-schedule-editor[hidden]{display:none!important}@media(max-width:680px){.valve-schedule-summary{align-items:stretch;flex-direction:column}.valve-schedule-summary .compact-btn{width:100%}}

/* v1.9.12 — align Predictive Sensor Maintenance header/icon with Predictive Intelligence. */
.dashboard-page .predictive-maintenance-summary .maintenance-heading{margin-bottom:8px;}
.dashboard-page .predictive-maintenance-summary .maintenance-heading h2{margin:0;}


/* Dashboard section hierarchy v1.9.13 */
.dashboard-page .dashboard-section-heading{grid-column:1/-1;margin:14px 0 -2px;padding:0 2px 10px;border-bottom:1px solid #dbe5f1}
.dashboard-page .dashboard-section-heading:first-child{margin-top:0}
.dashboard-page .dashboard-section-heading>div{max-width:760px}
.dashboard-page .dashboard-section-kicker{display:block;margin-bottom:4px;font-size:.72rem;font-weight:800;letter-spacing:.11em;text-transform:uppercase;color:#2563eb}
.dashboard-page .dashboard-section-heading h2{margin:0;color:#17233d;font-size:1.15rem;line-height:1.3}
.dashboard-page .dashboard-section-heading p{margin:4px 0 0;color:#64748b;font-size:.88rem;line-height:1.45}
@media (max-width:700px){.dashboard-page .dashboard-section-heading{margin-top:10px;padding-bottom:8px}.dashboard-page .dashboard-section-heading h2{font-size:1.05rem}.dashboard-page .dashboard-section-heading p{font-size:.82rem}}

/* v1.9.18 - authenticated in-app browser alert toasts */
.browser-alert-toasts{position:fixed;right:22px;bottom:22px;z-index:10050;width:min(390px,calc(100vw - 32px));display:flex;flex-direction:column;gap:10px;pointer-events:none}
.browser-alert-toast{pointer-events:auto;background:#fff;border:1px solid #d9e4ef;border-left:4px solid #d18a00;border-radius:14px;box-shadow:0 14px 36px rgba(17,48,78,.18);padding:14px 15px;opacity:0;transform:translateY(12px);transition:opacity .2s ease,transform .2s ease;color:#17324d}
.browser-alert-toast.is-visible{opacity:1;transform:translateY(0)}
.browser-alert-toast.is-critical{border-left-color:#c62828;background:#fffafa}
.browser-alert-toast-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:5px}
.browser-alert-toast-label{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:#9a6200}
.browser-alert-toast.is-critical .browser-alert-toast-label{color:#b42318}
.browser-alert-toast>strong{display:block;font-size:14px;line-height:1.35;margin-bottom:4px;color:#17324d}
.browser-alert-toast p{margin:0;font-size:12.5px;line-height:1.5;color:#526b82}
.browser-alert-toast-close{appearance:none;border:0;background:transparent;color:#60778d;font-size:22px;line-height:1;cursor:pointer;padding:0 2px}
.browser-alert-toast-close:focus-visible,.browser-alert-toast-foot a:focus-visible{outline:2px solid #0b6bd9;outline-offset:2px}
.browser-alert-toast-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:9px;padding-top:8px;border-top:1px solid #edf2f7}
.browser-alert-toast-foot small{font-size:11px;color:#7890a5}
.browser-alert-toast-foot a{font-size:12px;font-weight:700;color:#0b6bd9;text-decoration:none}
@media(max-width:780px){.browser-alert-toasts{left:12px;right:12px;bottom:12px;width:auto}.browser-alert-toast{border-radius:12px;padding:13px 14px}}

/* v1.9.19 - Weight Sensor Quality diagnostic detail */
.dashboard-page .dashboard-card--quality .weight-quality-insight{margin-top:14px;padding:12px 13px;border-radius:11px;background:#f7f9fc;border:1px solid #edf1f5}
.dashboard-page .dashboard-card--quality .weight-quality-insight>strong{display:block;margin-bottom:5px;color:var(--text);font-size:12px}
.dashboard-page .dashboard-card--quality .weight-quality-insight p{margin:0;color:var(--muted);font-size:12px;line-height:1.5}
.dashboard-page .dashboard-card--quality .metric strong{max-width:52%;text-align:right}
@media(max-width:520px){.dashboard-page .dashboard-card--quality .weight-quality-insight{padding:11px 12px}}

/* v1.9.20 — preserve every 30-Day Usage Trend date label */
.usage-trend-chart{overflow-x:auto;overflow-y:visible;scrollbar-width:thin}
.usage-trend-chart canvas{max-width:none}


/* v1.9.21 — mobile readability for all 30 usage-trend date labels */
.usage-trend-chart{-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;touch-action:pan-x pan-y}
@media(max-width:780px){
  .usage-trend-chart{overflow-x:auto;overflow-y:hidden;scrollbar-width:thin}
  .usage-trend-chart canvas{max-width:none;display:block}
}


/* v1.9.22 — persistent usage-trend horizontal navigation hint */
.usage-trend-scroll-hint{margin:8px 0 0;text-align:center;color:var(--muted);font-size:12px;line-height:1.4;font-weight:600}
.usage-trend-scroll-hint span{display:inline-block;margin-right:5px;color:#0b6bd9;font-size:15px;vertical-align:-1px}
.usage-trend-scroll-hint[hidden]{display:none!important}
@media(max-width:520px){.usage-trend-scroll-hint{font-size:11.5px;margin-top:7px}}




/* v1.9.24 — hide native Usage Trend scrollbars while preserving horizontal swipe/scroll */
.usage-trend-chart{overflow-x:auto!important;overflow-y:hidden!important;-webkit-overflow-scrolling:touch;scrollbar-width:none!important;-ms-overflow-style:none!important}
.usage-trend-chart::-webkit-scrollbar{display:none!important;width:0!important;height:0!important;background:transparent!important}
.usage-trend-chart::-webkit-scrollbar-thumb,.usage-trend-chart::-webkit-scrollbar-track{display:none!important;background:transparent!important}
.usage-trend-scroll-hint{opacity:1;transition:opacity .35s ease}
.usage-trend-scroll-hint.is-fading{opacity:0}


/* v1.9.27 — keep the 30-Day Usage Trend Y-axis visible while the plot scrolls */
.usage-trend-shell{position:relative;min-width:0}
.usage-trend-shell .usage-trend-chart{position:relative}
.usage-trend-y-axis{position:absolute;left:8px;top:8px;z-index:4;display:block;pointer-events:none;max-width:none;background:#fff}
@media(max-width:780px){.usage-trend-y-axis{left:8px;top:8px}}


/* v1.9.28 — compact fixed Y-axis; leaves the first Usage Trend point/date unobstructed */
.usage-trend-y-axis{left:0!important}
@media(max-width:780px){.usage-trend-y-axis{left:0!important}}

/* v1.9.29 — generated-reference Usage Trend: fixed clean Y-axis, aligned grid, unobstructed first date */
.usage-trend-shell{position:relative;min-width:0;overflow:hidden;border-radius:14px}
.usage-trend-y-axis{left:0!important;top:8px!important;width:86px!important;z-index:5;background:#fff;pointer-events:none}
.usage-trend-chart{background:#fff}
@media(max-width:780px){.usage-trend-y-axis{left:0!important;width:86px!important}}

/* v1.9.30 — fixed X-axis title and reference-layout date alignment */
.usage-trend-fixed-x-title{margin:-24px 0 0 86px;text-align:center;color:#52606d;font-size:12px;line-height:1.4;font-weight:400;pointer-events:none;position:relative;z-index:6}
.usage-trend-scroll-hint{margin-top:22px}
@media(max-width:780px){.usage-trend-fixed-x-title{margin-left:86px;font-size:12px}.usage-trend-scroll-hint{margin-top:20px}}

/* v1.9.32 — keep Usage Trend tooltip on one line in every scroll position */
.trend-tooltip{
  white-space:nowrap;
  max-width:none;
  width:max-content;
}

/* v1.9.33 — mobile navigation must stay above the fixed Usage Trend Y-axis */
@media (max-width:780px){
  body.dashboard-page .topbar.dashboard-topbar{
    position:sticky !important;
    top:0 !important;
    z-index:10000 !important;
    isolation:isolate !important;
    overflow:visible !important;
  }
  body.dashboard-page .topbar.dashboard-topbar > .mobile-nav-toggle{
    position:relative !important;
    z-index:10002 !important;
  }
  body.dashboard-page .topbar.dashboard-topbar > nav,
  body.dashboard-page .topbar.dashboard-topbar > nav.mobile-nav-open{
    z-index:10001 !important;
  }
  body.dashboard-page .usage-trend-shell,
  body.dashboard-page .usage-trend-y-axis,
  body.dashboard-page .usage-trend-fixed-x-title{
    z-index:auto;
  }
  body.dashboard-page .usage-trend-y-axis{
    z-index:5 !important;
  }
}

/* v1.9.35 — definitive header/chart stacking fix.
   The fixed Usage Trend Y-axis and the sticky header previously shared z-index:5
   on desktop. Equal stacking levels let the later chart canvas paint over the
   header. Hovering the chart created a temporary transform stacking context,
   which is why the overlap disappeared while the pointer was over the chart. */
body.dashboard-page .topbar.dashboard-topbar{
  position:sticky !important;
  top:0 !important;
  z-index:10000 !important;
  isolation:isolate !important;
}
body.dashboard-page .dashboard-shell{
  position:relative;
  z-index:0;
}
body.dashboard-page .dashboard-card--trend{
  position:relative;
  z-index:0;
}
body.dashboard-page .usage-trend-shell{
  position:relative;
  z-index:0;
}
body.dashboard-page .usage-trend-y-axis{
  z-index:5 !important;
}
body.dashboard-page .usage-trend-fixed-x-title{
  z-index:6 !important;
}
body.dashboard-page .topbar.dashboard-topbar > nav{
  position:relative;
  z-index:10001;
}
body.dashboard-page .topbar.dashboard-topbar > .mobile-nav-toggle{
  position:relative;
  z-index:10002;
}

/* v1.9.36 — AI Assistant must render above the sticky dashboard navigation.
   v1.9.35 intentionally raised the navigation to 10000 to keep the Usage Trend
   below it. The assistant previously remained at 980/990, so its upper section
   could pass underneath the navigation. Keep the chart fix and give only the
   floating assistant controls a higher top-level layer. */
body.dashboard-page .ai-assistant-button{
  z-index:20010 !important;
}
body.dashboard-page .ai-assistant-panel{
  z-index:20020 !important;
  isolation:isolate;
}


/* Notification stacking fix — safety/web alerts must remain above AI Assistant.
   AI Assistant uses z-index 20010/20020 on the dashboard. */
body.dashboard-page .browser-alert-toasts,
.browser-alert-toasts {
  z-index: 30050 !important;
}
