/* Sofa Club app switcher — a Zendesk-style product tray shared across the
   admin apps (AI System, Refunds, Agent Status) so you can hop between them,
   and reach the agent-facing Chat Queue. All styling is class-based (no inline
   styles) so it survives a strict CSP (style-src 'self'). Canonical source;
   keep the copies in the other apps identical. */

.topbar-right { display: flex; align-items: center; gap: 16px; }

.aps { position: relative; display: inline-flex; align-items: center; font-family: inherit; -webkit-font-smoothing: antialiased; }
.aps * { box-sizing: border-box; }

.aps-btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border: 1px solid rgba(20,30,26,.14); border-radius: 10px;
  background: #fff; color: #3a4a43; cursor: pointer; padding: 0;
  transition: background .12s, border-color .12s;
}
.aps-btn:hover { background: #f4f6f5; border-color: rgba(20,30,26,.24); }
.aps-btn:focus-visible { outline: 2px solid #2f6f57; outline-offset: 2px; }
.aps-btn.aps-open { background: #eef2f0; border-color: rgba(20,30,26,.30); }
.aps-btn svg { width: 20px; height: 20px; display: block; }

.aps-panel {
  position: absolute; top: calc(100% + 8px); right: 0; width: 296px;
  background: #fff; border: 1px solid rgba(20,30,26,.12); border-radius: 14px;
  box-shadow: 0 14px 40px rgba(15,30,25,.18), 0 2px 6px rgba(15,30,25,.08);
  padding: 8px; z-index: 1000;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .12s ease, transform .12s ease, visibility .12s;
}
.aps-panel.aps-open { opacity: 1; visibility: visible; transform: translateY(0); }

.aps-title { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; font-weight: 800; color: #8a978f; padding: 8px 10px 6px; }

.aps-item {
  display: flex; align-items: center; gap: 11px; padding: 9px 10px;
  border-radius: 10px; text-decoration: none; color: #1a2621;
  border: 0; background: transparent; width: 100%; text-align: left;
  cursor: pointer; transition: background .1s;
}
.aps-item:hover { background: #f3f6f4; }
.aps-item:focus-visible { outline: 2px solid #2f6f57; outline-offset: -2px; }
.aps-item.aps-current, .aps-item.aps-current:hover { background: #eef4f0; cursor: default; }

.aps-meta { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.aps-name { font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.aps-sub { font-size: 11.5px; color: #7a877f; line-height: 1.25; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.aps-pill { margin-left: auto; flex: none; font-size: 9.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #2f6f57; background: #dcece3; padding: 3px 7px; border-radius: 999px; }
.aps-tag { margin-left: auto; flex: none; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #7a877f; background: #eef1ef; padding: 3px 7px; border-radius: 999px; }
