#qm-quick-menu-root {
  position: fixed; left: 20px; bottom: 20px;
  z-index: 2147483600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
}

/* Horizontal bar */
#qm-bar {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; max-width: 320px;
  padding: 10px 18px;
  background: var(--qm-color, #0a66c2); color: #fff;
  border: 0; border-radius: 999px;
  cursor: pointer;
  font-size: 13.5px; font-weight: 600; letter-spacing: .2px;
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, background .25s ease;
}
#qm-bar:hover {
  background-color: var(--brand-colors-summer-sky-darkest, #084d8e);
  transition: all 0.3s ease;
  color: var(--white, #fff);
}
#qm-bar:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 3px;
}

#qm-bar .qm-bar-label {
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 240px;
}
#qm-bar .qm-chevron {
  width: 16px; height: 16px; flex: 0 0 auto;
  stroke: #fff; fill: none; stroke-width: 2.4;
  transition: transform .22s ease;
}
#qm-quick-menu-root.open #qm-bar .qm-chevron { transform: rotate(180deg); }

/* Popup panel */
#qm-panel {
  position: absolute; left: 0; bottom: 60px;
  width: 320px; max-height: 70vh;
  background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.22);
  overflow: hidden; display: flex; flex-direction: column;
  transform-origin: bottom left;
  transform: scale(.9) translateY(10px); opacity: 0;
  pointer-events: none;
  transition: transform .22s cubic-bezier(.2,.9,.3,1.2), opacity .2s ease;
}
#qm-quick-menu-root.open #qm-panel { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }

#qm-header {
  padding: 14px 16px;
  background-color: #087eec;
  color: #fff; display: flex; align-items: center; justify-content: space-between;
}
#qm-header:hover {
  background-color: #0062be;
  transition: all 0.3s ease;
  color: #fff;
}
#qm-title { font-size: 15px; font-weight: 600; letter-spacing: .2px; }
#qm-close { background: transparent; border: 0; color: #fff; cursor: pointer; padding: 4px; border-radius: 6px; display: flex; }
#qm-close:hover { background: rgba(255,255,255,.15); }
#qm-close:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  background: rgba(255,255,255,.15);
}
#qm-close svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; }

#qm-list { list-style: none; margin: 0; padding: 8px 0; overflow-y: auto; flex: 1; }
#qm-list li { margin: 0; }
#qm-list a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  color: #2c3e50; text-decoration: none;
  font-size: 13.5px; line-height: 1.35;
  border-left: 3px solid transparent;
  transition: background .15s, border-color .15s, color .15s;
}
#qm-list a:hover { background: #f3f7fb; color: var(--qm-color, #0a66c2); }
#qm-list a:focus-visible {
  outline: 2px solid var(--qm-color, #0a66c2);
  outline-offset: -2px;
  background: #f3f7fb;
}
#qm-list a.active {
  background: #eaf3fb; color: var(--qm-color, #0a66c2);
  border-left-color: var(--qm-color, #0a66c2); font-weight: 600;
}
#qm-list a .dot { width: 8px; height: 8px; border-radius: 50%; background: #c8d3dd; flex-shrink: 0; transition: background .15s; }
#qm-list a.active .dot { background: var(--qm-color, #0a66c2); }

#qm-footer { padding: 8px 16px; font-size: 11px; color: #8899a6; border-top: 1px solid #eef2f5; background: #fafbfc; text-align: center; }

@media (max-width: 480px) {
  #qm-panel { width: calc(100vw - 40px); }
  #qm-bar { max-width: calc(100vw - 40px); }
}