/* ─────────────────────────────────────────────────────────────────
   css/ai-mode-toggle.css

   Wave 8 (2026-05-09) — segmented mode toggle for the AI Board
   Assistant left rail. Three pills: AAC / Routine / Lesson. Active
   pill = amber filled (matches brand + the props-panel image-mode
   tabs visual language for cross-surface consistency).

   Sits ABOVE the chat input row so the user picks a mode BEFORE
   typing the topic. ai-rail.js's clarifier question gets skipped
   when a mode is locked, dropping a 2-question chat into a
   1-question chat (just size).

   Standalone file — small, isolated concern.

   LABEL: PILOT-READY. Visual styling only.
───────────────────────────────────────────────────────────────── */

.ai-mode-toggle {
  display: flex;
  gap: 0.25rem;
  padding: 3px;
  margin: 0 0 0.5rem;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 12px;
}
.ai-mode-pill {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.5rem 0.55rem;
  background: transparent;
  border: none;
  border-radius: 10px;
  color: rgba(0, 0, 0, 0.7);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  /* WCAG tap-target floor — same as wave7-mobile.css enforces, but
     this rule applies on every breakpoint not just ≤1024px since
     the AI rail is desktop-primary. */
  min-height: 38px;
}
.ai-mode-pill:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #1A1A2E;
}
.ai-mode-pill.active {
  background: var(--amber, #E8A838);
  color: #FFF;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}
.ai-mode-pill-icon {
  font-size: 1rem;
  line-height: 1;
}
.ai-mode-pill-label {
  font-size: inherit;
}

/* Phone — labels still fit with shorter words on the smallest
   viewports. The icon carries enough meaning that label can hide
   if the row would otherwise wrap. */
@media (max-width: 360px) {
  .ai-mode-pill { padding: 0.5rem 0.4rem; font-size: 0.74rem; }
}
