/* ═══════════════════════════════════════════════════════════════════════
   Module Tool Surface (Track R / R2)

   Shared Relay workspace launcher dock. Any activated module registers its
   tool set via core/ui/module-tool-surface.js; this stylesheet renders the
   floating glass bar and button chrome.

   App-agnostic rule: zero ITGC / Bank / Tax / Pets words, colors, or
   selectors. This file must serve every future module unchanged. Theming
   uses var(--accent) with a safe fallback.
   ═══════════════════════════════════════════════════════════════════════ */

.relay-tool-surface {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  padding: 6px;
  max-width: calc(100vw - 24px);
  background: rgba(17, 24, 34, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid color-mix(in srgb, var(--accent, #3b82f6) 22%, rgba(255,255,255,0.06));
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  z-index: 6800;
  font-family: 'Segoe UI', system-ui, sans-serif;
  overflow-x: auto;
  scrollbar-width: none;
}

.relay-tool-surface::-webkit-scrollbar { display: none; }
.relay-tool-surface[hidden] { display: none; }

.relay-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: rgba(200, 215, 230, 0.82);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.relay-tool-btn:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
  border-color: rgba(59, 130, 246, 0.3);
}

.relay-tool-btn:focus-visible {
  outline: 2px solid rgba(59, 130, 246, 0.55);
  outline-offset: 1px;
}

.relay-tool-btn:active {
  background: rgba(59, 130, 246, 0.18);
  transform: translateY(1px);
}

.relay-tool-btn .rts-icon {
  font-size: 13px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

.relay-tool-btn .rts-label {
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .relay-tool-surface {
    bottom: 10px;
    padding: 4px;
    gap: 2px;
    max-width: calc(100vw - 12px);
  }
  .relay-tool-btn {
    padding: 0 9px;
    height: 28px;
  }
  .relay-tool-btn .rts-label {
    display: none;  /* icon-only on narrow viewports */
  }
}
