/* ─────────────────────────────────────────────────────────────────
   css/multi-select.css

   Phase E WYSIWYG polish — modifier-key multi-select visuals.
   Pairs with js/builder/multi-select.js. Idempotent: only styles
   classes that module owns, never re-skins .tile globally.
   ───────────────────────────────────────────────────────────────── */

/* Blue outline ring on tiles that are part of the multi-selection. */
.tile.tile-multi-selected {
  outline: 3px solid #2563EB; /* tailwind blue-600 */
  outline-offset: 2px;
  box-shadow:
    0 0 0 3px rgba(37, 99, 235, 0.25),
    0 4px 14px rgba(0, 0, 0, 0.12);
  position: relative;
  z-index: 1;
}

/* Floating action bar near topbar. Anchored fixed-top so it follows
   the viewport regardless of scroll. WYSIWYG: ICON ONLY, tooltip
   exposes the verb. */
.ms-bar {
  position: fixed;
  top: 60px;                /* sits just below the topbar */
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: #1f2937;       /* slate-800 */
  color: #fff;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28);
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

.ms-bar-count-wrap {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 8px;
  margin-right: 4px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  user-select: none;
}
.ms-bar-count {
  font-weight: 700;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.ms-bar-count-label {
  font-size: 12px;
  opacity: 0.7;
}

.ms-bar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color 120ms, transform 80ms;
}
.ms-bar-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}
.ms-bar-btn:active {
  transform: scale(0.94);
}
.ms-bar-btn:focus-visible {
  outline: 2px solid #60A5FA; /* blue-400 */
  outline-offset: 2px;
}
.ms-bar-btn.danger {
  background: rgba(220, 38, 38, 0.18);
  border-color: rgba(220, 38, 38, 0.45);
}
.ms-bar-btn.danger:hover {
  background: rgba(220, 38, 38, 0.35);
}

/* Popovers (color + category) */
.ms-popover {
  position: fixed;
  z-index: 60;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  padding: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 220px;
}
.ms-color-pop .ms-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: transform 80ms;
}
.ms-color-pop .ms-swatch:hover {
  transform: scale(1.1);
}
.ms-color-pop .ms-swatch:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}

.ms-cat-pop {
  flex-direction: column;
  align-items: stretch;
  max-width: 260px;
}
.ms-cat-opt {
  text-align: left;
  padding: 6px 10px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: 6px;
  font-size: 14px;
  cursor: pointer;
  color: #111827;
}
.ms-cat-opt:hover {
  background: #F3F4F6;
  border-color: #E5E7EB;
}
.ms-cat-opt:focus-visible {
  outline: 2px solid #2563EB;
  outline-offset: 2px;
}
