/* SmartQ Universal Topbar refined v1.1.177 — profile stack like requested. */
.sq174-root{--sq174-ink:#152b3e;--sq174-bg:#fff;--sq174-border:#dce5ee;--sq174-muted:#627589;display:flex;align-items:flex-start;gap:10px;flex:0 0 auto;position:relative;z-index:3000;font-family:inherit}
.sq174-dark{--sq174-ink:#eef7fc;--sq174-bg:#0d1c2b;--sq174-border:#28425a;--sq174-muted:#a7bdd0}
.sq174-anchor{position:relative;display:flex;align-items:flex-start;flex:0 0 auto}
.sq174-root .sq174-icon-btn{appearance:none;position:relative;display:flex;align-items:center;justify-content:center;width:39px;height:39px;min-width:39px;padding:0;border:1px solid var(--sq174-border);border-radius:12px;background:var(--sq174-bg);color:var(--sq174-ink);text-decoration:none;cursor:pointer;box-sizing:border-box;-webkit-tap-highlight-color:transparent}
.sq174-dark .sq174-icon-btn{background:rgba(255,255,255,.055)}
.sq174-icon-btn:hover,.sq174-icon-btn[aria-expanded="true"],.sq174-profile-stack:hover,.sq174-profile-stack[aria-expanded="true"]{border-color:#23c9e1!important;color:#15bdd4!important}
.sq174-root .sq174-icon-btn:focus-visible,.sq174-root a:focus-visible,.sq174-root .sq174-mark-all:focus-visible,.sq174-root .sq174-profile-stack:focus-visible{outline:2px solid #15c4dc;outline-offset:3px}
.sq174-root .sq174-icon-plain,.sq174-root .sq174-location-btn{width:auto;min-width:0;height:auto;padding:0;border:0!important;border-radius:0;background:transparent!important;box-shadow:none}
.sq174-root .sq174-icon-plain:hover,.sq174-root .sq174-location-btn:hover,.sq174-root .sq174-icon-plain[aria-expanded="true"]{color:#18c1d8!important}
.sq174-root .sq174-bell svg,.sq174-root .sq174-location-btn svg{width:23px;height:23px}
.sq174-root .sq174-count{position:absolute;top:-6px;right:-8px;min-width:19px;height:19px;padding:0 4px;border-radius:11px;background:#e03b4d;color:#fff;box-shadow:0 0 0 2px var(--sq174-bg);font-size:10px;font-weight:750;line-height:19px;text-align:center;box-sizing:border-box;letter-spacing:-.3px}
.sq174-root .sq174-count[hidden],.sq174-root .sq174-panel[hidden],.sq174-root [hidden]{display:none!important}
.sq174-root .sq174-bell.sq174-has-unread svg{transform-origin:50% 15%;animation:sq174-bell-wiggle 2.5s ease-in-out infinite}
@keyframes sq174-bell-wiggle{0%,74%,100%{transform:rotate(0)}80%{transform:rotate(12deg)}85%{transform:rotate(-10deg)}90%{transform:rotate(6deg)}95%{transform:rotate(-3deg)}}
.sq174-profile-stack{appearance:none;display:inline-flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:4px;padding:0;border:0;background:transparent;color:var(--sq174-ink);text-decoration:none;cursor:pointer;font:inherit;-webkit-tap-highlight-color:transparent}
.sq174-profile-trigger-icon{display:flex;align-items:center;justify-content:center;width:31px;height:31px}
.sq174-profile-trigger-icon svg{width:30px;height:30px}
.sq174-profile-trigger-avatar{display:grid;place-items:center;width:34px;height:34px;min-width:34px;border-radius:50%;overflow:hidden}
.sq174-button-avatar-media,.sq174-profile-avatar-media{width:100%;height:100%;object-fit:cover;display:block}
.sq174-button-avatar-fallback,.sq174-profile-avatar-fallback{display:grid;place-items:center;width:100%;height:100%;background:linear-gradient(135deg,#19aaf1,#27d3ce);color:#fff;font-size:15px;font-weight:750;line-height:1;border-radius:50%}
.sq174-profile-label{display:block;font-size:11px;line-height:1.05;font-weight:650;color:inherit;letter-spacing:.01em}
.sq174-profile-avatar{display:grid;place-items:center;width:39px;height:39px;min-width:39px;border-radius:50%;overflow:hidden}
.sq174-root .sq174-panel{display:block;position:absolute;right:0;top:calc(100% + 11px);width:min(370px,calc(100vw - 24px));max-height:min(520px,calc(100dvh - 92px));overflow:auto;overscroll-behavior:contain;border:1px solid var(--sq174-border);border-radius:17px;background:var(--sq174-bg);color:var(--sq174-ink);box-shadow:0 20px 60px rgba(0,0,0,.24);z-index:3200;text-align:left;white-space:normal}
.sq174-panel-head{position:sticky;top:0;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:17px 17px 13px;background:var(--sq174-bg);border-bottom:1px solid var(--sq174-border);z-index:1}
.sq174-panel-head strong{font-size:16px;line-height:1.3;color:var(--sq174-ink)}
.sq174-root .sq174-mark-all{border:0;background:transparent;color:#20a8ca;font:600 11px/1.3 system-ui,sans-serif;cursor:pointer;padding:5px}
.sq174-list{max-height:410px;overflow:auto}
.sq174-empty{margin:0;padding:30px 18px;color:var(--sq174-muted);font-size:13px;text-align:center}
.sq174-item{display:flex;align-items:flex-start;gap:11px;padding:12px 16px;border-bottom:1px solid var(--sq174-border);color:var(--sq174-ink);text-decoration:none;position:relative;min-height:66px;box-sizing:border-box}
.sq174-item:hover{background:rgba(25,156,196,.09)}
.sq174-avatar{display:grid;place-items:center;width:41px;height:41px;min-width:41px;border-radius:50%;background:rgba(28,185,208,.16);color:#16bad0;font-size:17px;font-weight:750}
.sq174-item-body{display:grid;gap:4px;min-width:0;flex:1;font-size:12px;line-height:1.4}
.sq174-item-body strong{font-size:13px;color:var(--sq174-ink);font-weight:700;overflow-wrap:anywhere}
.sq174-item-body span{color:var(--sq174-muted);white-space:normal;overflow-wrap:anywhere}
.sq174-item-body small{font-size:10px;color:#1cb0d2}
.sq174-unread:after{content:'';width:8px;height:8px;min-width:8px;border-radius:50%;background:#139df5;align-self:center}
.sq174-unread{background:rgba(31,144,237,.06)}
.sq174-notice{padding:0 16px;color:#e69d45;font-size:11px}
.sq174-notice:empty{display:none}
.sq174-profile-panel{width:min(280px,calc(100vw - 24px));padding:8px!important}
.sq174-profile-id{display:flex;align-items:center;gap:10px;padding:12px 10px 16px;margin-bottom:5px;border-bottom:1px solid var(--sq174-border)}
.sq174-profile-copy{display:grid;gap:3px;min-width:0}
.sq174-profile-copy strong{font-size:13px;color:var(--sq174-ink);overflow:hidden;text-overflow:ellipsis}
.sq174-profile-copy small{font-size:11px;color:var(--sq174-muted);overflow:hidden;text-overflow:ellipsis;max-width:190px}
.sq174-profile-panel a{display:block;padding:11px 12px;border-radius:9px;text-decoration:none;color:var(--sq174-ink);font-size:13px;font-weight:520;line-height:1.4}
.sq174-profile-panel a:hover{background:rgba(30,166,207,.1)}
.sq174-profile-panel .sq174-logout-form{display:block;margin:4px 0 0;padding:0;border-top:1px solid var(--sq174-border)}
.sq174-profile-panel .sq174-logout-form .sq174-logout{display:block;width:100%;margin:0;padding:14px 12px 11px;background:transparent;color:#ef6071;border:0;border-radius:0;text-align:left;cursor:pointer;font-family:inherit;font-weight:520;font-size:13px;line-height:1.4}
.sq174-profile-panel .sq174-logout-form .sq174-logout:hover{background:rgba(30,166,207,.1)}
.sq174-profile-panel .sq174-logout-form .sq174-logout:focus-visible{outline:2px solid #15c4dc;outline-offset:-2px}
.qbio-page .sq-shared-topbar-v170 .qbio-top-actions-v116{gap:10px;min-width:0}
.qbio-page .sq-shared-topbar-v170 .sq174-root{flex:0 0 auto}
.sqb-topbar .sq174-root .sq174-icon-btn{box-shadow:none}
@media(max-width:760px){.sq174-root{gap:8px}.sq174-profile-trigger-avatar{width:31px;height:31px;min-width:31px}.sq174-profile-trigger-icon{width:29px;height:29px}.sq174-profile-label{font-size:10px}.qbio-page .sq-shared-topbar-v170 .qbio-topbar-inner{gap:7px}.qbio-page .sq-shared-topbar-v170 .qbio-top-actions-v116{gap:7px}.sq174-root .sq174-panel{max-height:calc(100dvh - 78px)}}
@media(max-width:370px){.sq174-root{gap:6px}.sq174-profile-label{font-size:9px}}
@media(prefers-reduced-motion:reduce){.sq174-root .sq174-bell.sq174-has-unread svg{animation:none!important}}

/* v1.1.179: dashboard/management topbar: no Profile label or date, bell and avatar perfectly level.
   This section deliberately does not change Qbio public topbar or right action rail. */
.sqb-topbar .sqb-top-actions-v179 {display:flex;align-items:center;justify-content:flex-end;gap:10px;}
.sqb-topbar .sqb-top-actions-v179 .sq174-root {display:flex;align-items:center;justify-content:flex-end;gap:10px;}
.sqb-topbar .sqb-top-actions-v179 .sq174-anchor {align-items:center;justify-content:center;}
.sqb-topbar .sqb-top-actions-v179 .sq174-profile-stack {display:flex;flex-direction:row;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;gap:0;padding:0;margin:0;border:0;background:transparent;}
.sqb-topbar .sqb-top-actions-v179 .sq174-profile-trigger-avatar {width:38px;height:38px;min-width:38px;min-height:38px;}
.sqb-topbar .sqb-top-actions-v179 .sq174-profile-trigger-icon {display:grid;place-items:center;width:38px;height:38px;}
.sqb-topbar .sqb-top-actions-v179 .sq174-bell {display:flex;align-items:center;justify-content:center;width:38px;height:38px;min-width:38px;margin:0;padding:0;border:0;box-shadow:none;background:transparent;}
.sqb-topbar .sqb-top-actions-v179 .sq174-bell svg {width:24px;height:24px;}
.sqb-topbar .sqb-top-actions-v179 .sq174-profile-label,.sqb-topbar .sqb-top-actions-v179 .sqb-top-date {display:none!important;}
@media(max-width:760px){.sqb-topbar .sqb-top-actions-v179{gap:7px}.sqb-topbar .sqb-top-actions-v179 .sq174-root{gap:7px}.sqb-topbar .sqb-top-actions-v179 .sq174-profile-stack,.sqb-topbar .sqb-top-actions-v179 .sq174-profile-trigger-avatar,.sqb-topbar .sqb-top-actions-v179 .sq174-bell{width:35px;height:35px;min-width:35px}.sqb-topbar .sqb-top-actions-v179 .sq174-profile-trigger-icon{width:35px;height:35px;}}

/* v1.1.180: PUBLIC Qbio only. Order: live location NAME → 23px PIN → 23px BELL. */
.qbio-page .sq-shared-topbar-v170 .qbio-top-actions-v116{
  display:flex;align-items:center;justify-content:flex-end;gap:10px;min-width:0;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location{
  display:flex;flex:0 1 auto;align-items:center;justify-content:flex-end;min-width:0;max-width:100%;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-v157{
  display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-end;
  flex:0 1 auto;gap:7px;min-width:0;max-width:100%;font-size:12px;
  padding:4px 0;margin:0;line-height:1.3;white-space:nowrap;overflow:hidden;
  color:#d5e8f4;background:transparent;border:0;box-shadow:none;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-viewport-v160{
  display:block!important;flex:0 1 auto;min-width:0;max-width:min(260px,44vw);
  overflow:hidden;white-space:nowrap;text-align:left;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-name-v157{
  display:inline-block;white-space:nowrap;min-width:max-content;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-pin-v157,
.qbio-page .sq-shared-topbar-v170 .sq174-bell svg{
  box-sizing:border-box;width:23px!important;height:23px!important;flex:0 0 23px;
}
.qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-pin-v157{display:block;stroke:#27d5ec}
.qbio-page .sq-shared-topbar-v170 .sq174-root,
.qbio-page .sq-shared-topbar-v170 .sq174-root .sq174-anchor{
  display:flex;align-items:center;justify-content:center;flex:0 0 auto;
}
.qbio-page .sq-shared-topbar-v170 .sq174-root .sq174-bell{
  display:flex;align-items:center;justify-content:center;flex:0 0 23px;
  width:23px;min-width:23px;height:23px;margin:0;padding:0;
}
@media(max-width:760px){
  .qbio-page .sq-shared-topbar-v170 .qbio-top-actions-v116{gap:8px}
  .qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-v157{gap:6px;font-size:11px}
  .qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-viewport-v160{max-width:min(180px,39vw)}
}
@media(max-width:370px){
  .qbio-page .sq-shared-topbar-v170 .qbio-top-actions-v116{gap:6px}
  .qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-v157{gap:4px;font-size:10px}
  .qbio-page .sq-shared-topbar-v170 .sq180-location .sq-front-location-viewport-v160{max-width:35vw}
}
