.notification-bell{position:relative;flex:none;overflow:visible}
.notification-count{position:absolute;right:-.35rem;top:-.35rem;min-width:1.25rem;min-height:1.25rem;padding:.125rem .3rem;border-radius:2rem;background:#a14136;color:white;border:2px solid white;font-size:.7rem;font-weight:750;line-height:1;display:grid;place-items:center}
.notification-count[hidden],.notification-message[hidden]{display:none}
.notification-settings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;align-items:start}
.notification-setting-card{padding:1.5rem;min-width:0;display:flex;flex-direction:column;gap:1rem}
.notification-setting-card h2{font-size:1.25rem;line-height:1.35;margin:0;font-weight:700}
.notification-setting-card p{font-size:1rem;line-height:1.6;margin:0;color:#405a49;overflow-wrap:anywhere}
.notification-setting-card p.small-text{font-size:.875rem}
.notification-setting-card form{display:flex;flex-direction:column;gap:1rem}
.notification-choice{display:flex;gap:.75rem;align-items:flex-start;cursor:pointer;min-height:44px;padding:.5rem 0;font-size:1rem;line-height:1.5}
.notification-choice input{width:1.3rem;height:1.3rem;min-width:24px;min-height:24px;flex:none;accent-color:#195b43;margin:.15rem 0 0}
.notification-choice span{min-width:0}
.notification-choice strong{font-weight:650;display:block}
.notification-choice small{display:block;font-size:.875rem;color:#526658;line-height:1.5;margin-top:.375rem}
.notification-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:.75rem;flex-wrap:wrap}
.notification-state{display:inline-flex;align-items:center;min-height:1.75rem;padding:.25rem .5rem;border-radius:.45rem;border:1px solid #d8dfd4;color:#526658;background:#f5f7f2;font-size:.8125rem;font-weight:650;line-height:1.3}
.notification-state.enabled{background:#eaf3e5;border-color:#b8cdae;color:#285f39}
.notification-device-actions,.notification-inbox-actions{display:flex;gap:.625rem;flex-wrap:wrap}
.notification-device-actions>.button{flex:1 1 11rem}
.notification-setting-card .button{align-self:flex-start;max-width:100%}
.notification-device-state{display:flex;align-items:center;gap:.625rem;font-weight:600}
.notification-check{flex:none;font-size:1.125rem;color:#31613c}
.notification-install-steps{margin:0;padding-left:1.4rem;display:grid;gap:.75rem;color:#405a49;font-size:1rem;line-height:1.6}
.notification-device-list{list-style:none;margin:0;padding:0;display:grid;gap:.75rem}
.notification-device-list li{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;border-top:1px solid #e0e7db;padding-top:.875rem;font-size:1rem;line-height:1.5}
.notification-device-list li:first-child{padding-top:0;border-top:0}
.notification-device-list li>div{min-width:0;overflow-wrap:anywhere}
.notification-device-list small{display:block;color:#526658;font-size:.8125rem;line-height:1.5;margin-top:.25rem}
.notification-device-list .button{flex:none}
.notification-service-card{border-color:#b9cdb1;background:#f9fbf5}
.notification-message{grid-column:1/-1;padding:.875rem 1rem;border:1px solid #bfd3b3;background:#eff6e8;color:#285336;border-radius:.75rem;font-size:1rem;line-height:1.55;overflow-wrap:anywhere}
.notification-message.error{background:#fff1ee;color:#8b372f;border-color:#e5b9b0}
.notification-loading{padding:1.5rem 0;font-size:1rem;color:#526658;line-height:1.6}
.notification-inbox-toolbar{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.notification-inbox-toolbar>p{flex:1 1 15rem;line-height:1.5}
.notification-inbox-list{display:grid;gap:.75rem}
.notification-inbox-item{display:flex;gap:1rem;padding:1.25rem;background:white;border:1px solid #e0e7db;border-radius:.875rem;min-width:0}
.notification-inbox-item.unread{border-color:#a7c095;border-left:5px solid #46743e;background:#f5f9ef}
.notification-inbox-symbol{width:2.75rem;height:2.75rem;border-radius:.75rem;background:#e9f0e2;color:#376238;flex:none;display:grid;place-items:center}
.notification-inbox-symbol svg{width:1.35rem;height:1.35rem}
.notification-inbox-copy{min-width:0;flex:1}
.notification-inbox-meta{display:flex;align-items:center;gap:.75rem;flex-wrap:wrap;margin-bottom:.5rem;font-size:.8125rem;line-height:1.4;color:#526658}
.notification-new{display:inline-flex;padding:.2rem .4rem;border-radius:.375rem;background:#dceccf;color:#31582f;font-weight:700}
.notification-inbox-copy h2{font-size:1.125rem;line-height:1.4;margin:0;overflow-wrap:anywhere}
.notification-inbox-copy p{font-size:1rem;line-height:1.55;margin:.4rem 0 .875rem;overflow-wrap:anywhere}
.notification-empty h2{font-size:1.25rem;margin-bottom:.5rem}
.notification-empty p{font-size:1rem;line-height:1.6;margin-bottom:1rem}
.notification-inbox-list+.notification-message{margin-top:1rem}
@media(max-width:1280px){.notification-settings{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.notification-setting-card{padding:1.1rem}.notification-setting-card .button{width:100%}.notification-inbox-toolbar .button{flex:1 1 9rem}.notification-inbox-item{padding:1rem;gap:.75rem}.notification-inbox-symbol{width:2rem;height:2rem;border-radius:.5rem}.notification-inbox-actions .button{flex:1 1 100%}.notification-device-list li{flex-direction:column;gap:.625rem}.notification-device-list .button{width:100%}.notification-setting-card h2{font-size:1.2rem}.notification-card-heading{flex-direction:column}}
/* Keep the phone header to the title row and two predictable control rows. */
@media(max-width:600px){
  .topbar{gap:.5rem}
  .topbar-right{display:grid;grid-template-columns:minmax(0,1fr) 44px 44px;gap:.5rem;align-items:center}
  .topbar-right>.text-size-control{grid-column:1/-1;grid-row:1;max-width:none;min-width:0;width:100%}
  .topbar-right>.text-size-control>.custom-select{flex:1 1 auto;width:auto;min-width:0}
  .topbar-right>.sync-indicator{grid-column:1;grid-row:2;width:100%;max-width:100%;min-width:0;align-self:stretch}
  .topbar-right>.sync-indicator.healthy .sync-indicator-text small{display:none}
  .topbar-right>.notification-bell{grid-column:2;grid-row:2}
  .topbar-right>[data-action="refresh"]{grid-column:3;grid-row:2}
  .topbar-right>.icon-button{width:44px;height:44px;min-height:44px;align-self:center}
}
