/* Offline status is shown only inside the Dashboard dropdown.
   This hard-hide also removes any stale banner left in an older cached page. */
#bhtOfflineFieldStatus,.bht-offline-field-status{display:none!important}
html.bht-is-installed-pwa body,html.bht-is-installed-pwa.bht-is-offline body,html.bht-is-installed-pwa.bht-has-offline-items body{padding-top:0!important}
.bht-offline-toast{position:fixed;left:50%;bottom:100px;z-index:15000;max-width:min(92vw,520px);transform:translate(-50%,20px);opacity:0;padding:14px 18px;border-radius:16px;background:#332109;color:#fff;font-weight:800;box-shadow:0 14px 36px rgba(31,18,2,.28);transition:.2s ease}
.bht-offline-toast.is-visible{transform:translate(-50%,0);opacity:1}.bht-offline-toast.is-success{background:#17623a}.bht-offline-toast.is-error{background:#8d2525}
.bht-is-offline form[data-bht-offline-type] button[type=submit]::after{content:' · saves offline'}
.bht-is-offline .bht-weather-graph-trigger,.bht-is-offline [data-requires-online]{opacity:.62}
@media(max-width:760px){.bht-offline-toast{bottom:calc(94px + env(safe-area-inset-bottom))}}

.bht-offline-dashboard-card{padding:0;overflow:hidden;border-color:#e1af27;background:linear-gradient(135deg,#fffdf5,#fff7d7);box-shadow:0 10px 26px rgba(74,48,8,.08)}
.bht-offline-dashboard-details{margin:0}
.bht-offline-dashboard-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:15px 18px;cursor:pointer;list-style:none;user-select:none}
.bht-offline-dashboard-summary::-webkit-details-marker{display:none}
.bht-offline-dashboard-heading{display:flex;align-items:center;gap:12px;min-width:0}
.bht-offline-dashboard-heading>span:last-child{display:grid;gap:3px;min-width:0}
.bht-offline-dashboard-heading strong{font-size:20px;line-height:1.15;color:#251407}
.bht-offline-dashboard-heading small{display:block;color:#806744;font-size:13px;font-weight:750;white-space:normal}
.bht-offline-dashboard-icon{display:grid;place-items:center;flex:0 0 34px;width:34px;height:34px;border-radius:11px;background:#f7b500;color:#2d1708;font-size:22px;font-weight:1000}
.bht-offline-dashboard-toggle{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-width:82px;padding:8px 12px;border-radius:999px;background:#f7b500;color:#2d1708;font-size:13px;font-weight:950}
.bht-offline-dashboard-summary:hover .bht-offline-dashboard-toggle{transform:translateY(-1px)}
.bht-offline-dashboard-body{border-top:1px solid rgba(201,145,16,.28);padding:16px 18px 18px;background:rgba(255,255,255,.48)}
.bht-offline-dashboard-body>p{margin:0 0 14px;line-height:1.55}
.bht-offline-feature-list{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.bht-offline-feature-list>div{display:grid;grid-template-columns:auto 1fr;gap:2px 8px;align-items:center;padding:11px 12px;border-radius:14px;background:#fff;border:1px solid #ead18a;min-width:0}
.bht-offline-feature-list>div>span{grid-row:1 / span 2;display:grid;place-items:center;width:24px;height:24px;border-radius:999px;background:#e9f8ef;color:#17623a;font-weight:1000}
.bht-offline-feature-list strong{font-size:13px;line-height:1.2;color:#2d1708}
.bht-offline-feature-list em{font-style:normal;font-size:11px;color:#806744;font-weight:850}
.bht-offline-dashboard-actions{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:14px;padding-top:14px;border-top:1px solid rgba(201,145,16,.22)}
.bht-offline-dashboard-buttons{display:flex;align-items:center;justify-content:flex-end;gap:9px;flex-wrap:wrap}
.bht-offline-dashboard-buttons .bht-btn-secondary{background:#fff;color:#4f3100;border:1px solid #d9b85e}
.bht-offline-dashboard-state{display:grid;gap:3px;min-width:0}
.bht-offline-dashboard-state strong{font-size:13px;color:#2d1708}
.bht-offline-dashboard-state small{font-size:12px;color:#806744}
.bht-offline-dashboard-card .bht-btn[disabled]{opacity:.68;cursor:wait;transform:none}
.bht-offline-dashboard-card.is-ready .bht-offline-dashboard-icon{background:#dff7e8;color:#17623a}
.bht-offline-dashboard-card.is-offline .bht-offline-dashboard-icon,.bht-offline-dashboard-card.is-pending .bht-offline-dashboard-icon{background:#ffe0a3;color:#7a3f00}
.bht-offline-dashboard-card.is-error .bht-offline-dashboard-icon{background:#ffe1dc;color:#8d2525}
.bht-offline-dashboard-card.is-syncing .bht-offline-dashboard-icon{animation:bhtOfflinePulse 1.1s ease-in-out infinite}
@keyframes bhtOfflinePulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@media(max-width:900px){.bht-offline-feature-list{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.bht-offline-dashboard-summary{padding:13px 14px;gap:10px}.bht-offline-dashboard-heading strong{font-size:17px}.bht-offline-dashboard-heading small{font-size:12px}.bht-offline-dashboard-toggle{min-width:72px;padding:7px 10px;font-size:12px}.bht-offline-dashboard-body{padding:14px}.bht-offline-dashboard-actions{align-items:stretch;flex-direction:column}.bht-offline-dashboard-buttons{display:grid;grid-template-columns:1fr}.bht-offline-dashboard-card .bht-btn{width:100%}}
@media(max-width:470px){.bht-offline-feature-list{grid-template-columns:1fr}.bht-offline-dashboard-icon{flex-basis:30px;width:30px;height:30px;font-size:19px}.bht-offline-dashboard-heading small{max-width:210px}}

/* Hide any older legacy offline banner markup. */
.bht-offline-banner{display:none!important}
