/* Accueil GHE — outils fauteuils / préférences près de la cloche. */
#homeView .ghe-home-topbar{display:flex!important;align-items:center!important;gap:clamp(8px,2.3vw,15px)!important;min-height:58px!important}
#homeView .ghe-home-topbar .ghe-shortcuts-hamburger{margin-right:auto!important;flex:0 0 auto!important}
#homeView .ghe-home-topbar .ghe-home-tools-right{display:none!important}
#homeView .ghe-home-topbar .ghe-home-bell{flex:0 0 auto!important}
#homeView .ghe-home-topbar .ghe-top-wheelchair,
#homeView .ghe-home-topbar .ghe-top-settings{display:grid!important;place-items:center!important;position:relative!important;flex:0 0 auto!important;border:1px solid #d4e2e7!important;cursor:pointer!important;box-shadow:0 4px 13px rgba(15,57,70,.08)!important;transition:transform .15s,box-shadow .15s!important}
#homeView .ghe-home-topbar .ghe-top-wheelchair{width:50px!important;height:50px!important;border-radius:17px!important;background:linear-gradient(145deg,#fff,#edf8fa)!important;margin-right:4px!important}
#homeView .ghe-home-topbar .ghe-top-wheelchair img{width:41px!important;height:41px!important;object-fit:contain!important}
#homeView .ghe-home-topbar .ghe-top-settings{width:43px!important;height:43px!important;border-radius:15px!important;background:#f8fbfc!important;color:#2d6678!important;font-size:25px!important}
#homeView .ghe-home-topbar :is(.ghe-top-wheelchair,.ghe-top-settings):active{transform:scale(.95)!important}
#homeView .ghe-home-topbar :is(.ghe-top-wheelchair,.ghe-top-settings):focus-visible{outline:3px solid #3195a8!important;outline-offset:3px!important}
.ghe-top-dialog{box-sizing:border-box!important;width:min(94vw,600px)!important;height:min(92dvh,850px)!important;max-width:600px!important;max-height:92dvh!important;padding:0!important;border:1px solid #d3e5e9!important;border-radius:25px!important;background:#f5f9fa!important;color:#193e4c!important;box-shadow:0 35px 95px rgba(11,44,61,.26)!important;overflow:hidden!important}
.ghe-top-dialog::backdrop{background:rgba(14,39,52,.66);backdrop-filter:blur(4px)}
.ghe-top-dialog-frame{display:flex!important;flex-direction:column!important;height:100%!important;min-height:0!important;overflow:hidden!important}
.ghe-top-dialog-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex:0 0 auto!important;padding:15px 18px!important;background:#fff!important;border-bottom:1px solid #e0ecef!important}
.ghe-top-dialog-head small{display:block;font-size:.62rem;font-weight:850;letter-spacing:.14em;color:#77939d}
.ghe-top-dialog-head h2{font:900 1.24rem/1.16 system-ui,sans-serif;margin:3px 0 0;color:#153f51}
.ghe-top-dialog-close{width:43px!important;height:43px!important;flex:0 0 auto!important;display:grid!important;place-items:center!important;background:#edf5f7!important;border:0!important;border-radius:14px!important;font-size:29px!important;color:#315e6a!important;cursor:pointer}
.ghe-top-dialog-body{flex:1 1 auto;min-height:0;overflow:auto;overscroll-behavior:contain;padding:13px 15px 20px}
.ghe-top-dialog:has(.ghe-wheelchair-chat-host) .ghe-top-dialog-body{display:flex;padding:0!important}
.ghe-wheelchair-chat-host{flex:1 1 auto;width:100%;min-width:0;min-height:0;overflow:auto}
.ghe-wheelchair-chat-host .tb-page{max-width:100%!important;margin:0!important}
.ghe-top-dialog-loading{padding:32px 10px;text-align:center;color:#537684;font-size:.9rem;font-weight:750}
.ghe-top-dialog-problem{padding:20px;background:#fff;border:1px solid #d9e7eb;border-radius:18px}
.ghe-top-dialog-problem strong{display:block;margin-bottom:5px}
.ghe-top-dialog-problem p{font-size:.85rem;color:#607986;line-height:1.5}
.ghe-top-dialog-problem button{padding:10px 16px;border:0;border-radius:12px;color:#fff;background:#137e96;font-weight:800}
.ghe-notif-hero{display:flex;align-items:center;gap:12px;padding:17px;border:1px solid #d9e9ed;border-radius:19px;background:linear-gradient(115deg,#e8f8fa,#fff)}
.ghe-notif-hero-icon{display:grid;place-items:center;width:48px;height:48px;flex-shrink:0;background:#fff;border-radius:16px;font-size:27px;color:#24677e;box-shadow:0 6px 14px rgba(27,83,98,.08)}
.ghe-notif-hero strong{display:block;font-size:1.03rem;font-weight:850;color:#153f51}
.ghe-notif-hero p{font-size:.79rem;color:#647e8b;margin:4px 0 0;line-height:1.45}
.ghe-notif-section{padding:15px;margin-top:12px;border:1px solid #e0e9ec;border-radius:19px;background:#fff}
.ghe-notif-section-title{display:flex;align-items:center;gap:10px;margin-bottom:11px}
.ghe-notif-mini-icon{width:36px;height:36px;border-radius:13px;background:#e9f4f7;display:grid;place-items:center;font-size:20px;color:#296a7e}
.ghe-notif-section-title strong{display:block;font-size:.93rem;font-weight:900}
.ghe-notif-section-title small{display:block;font-size:.72rem;color:#76909a;margin-top:3px}
.ghe-notif-choice{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:66px;padding:10px 3px;border-top:1px solid #edf1f3;cursor:pointer}
.ghe-notif-choice span{flex:1 1 auto;min-width:0}
.ghe-notif-choice strong{display:block;font-size:.89rem;font-weight:800}
.ghe-notif-choice small{display:block;font-size:.73rem;margin-top:4px;line-height:1.4;color:#6b8690}
.ghe-notif-choice input{appearance:none;width:46px;height:28px;border-radius:999px;background:#d7e1e5;border:1px solid #bfcfd5;position:relative;flex-shrink:0;cursor:pointer;transition:background .15s}
.ghe-notif-choice input::before{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;background:#fff;border-radius:50%;box-shadow:0 2px 5px rgba(9,36,44,.15);transition:transform .15s}
.ghe-notif-choice input:checked{background:#1689a1;border-color:#1689a1}
.ghe-notif-choice input:checked::before{transform:translateX(18px)}
.ghe-notif-buildings{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.ghe-notif-building{display:flex;align-items:center;gap:9px;padding:12px 9px;min-height:58px;border-radius:13px;border:1px solid #e0eaed;background:#f9fbfc;cursor:pointer}
.ghe-notif-building:has(input:checked){border-color:#97cbd5;background:#ecf9fb}
.ghe-notif-building input{width:19px;height:19px;accent-color:#178ba0;flex-shrink:0;cursor:pointer}
.ghe-notif-building span{display:block;min-width:0}
.ghe-notif-building strong{display:block;font-size:.79rem;font-weight:900}
.ghe-notif-building small{display:block;font-size:.67rem;color:#71909b;margin-top:3px;line-height:1.2}
.ghe-notif-explain{font-size:.73rem;line-height:1.45;color:#6a858f;margin:8px 0 0}
.ghe-notif-device{display:flex;align-items:center;gap:10px;margin-top:12px;padding:13px 14px;background:#fff;border:1px solid #dfe9ec;border-radius:16px}
.ghe-notif-device-dot{width:11px;height:11px;border-radius:50%;background:#e2a749;flex-shrink:0}
.ghe-notif-device-dot.is-on{background:#15a378}
.ghe-notif-device>div{flex:1 1 auto;min-width:0}
.ghe-notif-device strong{display:block;font-size:.79rem}
.ghe-notif-device small{display:block;font-size:.70rem;line-height:1.4;color:#738c94;margin-top:4px}
.ghe-notif-device button{padding:9px 12px;border-radius:11px;border:0;background:#187e95;color:white;font-weight:850}
.ghe-notif-status{font-size:.76rem;min-height:20px;margin:12px 4px;color:#5d7f87}
.ghe-notif-status[data-status="ok"]{color:#197c5b}
.ghe-notif-status[data-status="error"]{color:#b34545}
.ghe-top-dialog :is(button,input):focus-visible{outline:3px solid #1592ae!important;outline-offset:2px}
@media(max-width:390px){
  #homeView .ghe-home-topbar{gap:7px!important}
  #homeView .ghe-home-topbar .ghe-top-wheelchair{width:44px!important;height:44px!important;margin-right:0!important}
  #homeView .ghe-home-topbar .ghe-top-wheelchair img{width:35px!important;height:35px!important}
  #homeView .ghe-home-topbar .ghe-top-settings{width:41px!important;height:41px!important}
  .ghe-notif-buildings{grid-template-columns:1fr 1fr}
  .ghe-notif-building{padding:9px 7px}
  .ghe-top-dialog-body{padding:11px 12px 17px}
}
@media(prefers-reduced-motion:reduce){.ghe-top-dialog *{transition:none!important}}

/* Bell stays separate, flush right; auxiliary actions remain grouped without pulling it left. */
#homeView .ghe-home-topbar{justify-content:flex-end!important}
#homeView .ghe-home-topbar .ghe-top-aux-actions{display:flex;align-items:center;gap:9px;min-width:0}
#homeView .ghe-home-topbar .ghe-home-bell{
  margin-left:clamp(18px,5.2vw,34px)!important;margin-right:0!important;flex:0 0 48px!important;
}
#homeView .ghe-home-topbar .ghe-shortcuts-hamburger{margin-right:auto!important}
@media(max-width:390px){
  #homeView .ghe-home-topbar .ghe-top-aux-actions{gap:5px}
  #homeView .ghe-home-topbar .ghe-home-bell{margin-left:17px!important}
}

.ghe-top-dialog:has(.ghe-wheelchair-chat-host) .ghe-top-dialog-body{flex-direction:column;gap:0}
.ghe-wheelchair-open-full{align-self:stretch;flex:0 0 auto;min-height:45px;cursor:pointer;border:0;border-top:1px solid #cbdde5;background:#eaf5f8;color:#155a76;font:850 .86rem/1.3 system-ui}
