/* ═══════════════════════════════════════════════════════════
   COMMAND MODE — Spotlight/Raycast-style command palette
   Fully scoped with .cmd- prefix. Zero collision with existing CSS.
   ═══════════════════════════════════════════════════════════ */

/* ── Backdrop ─────────────────────────────────── */
.cmd-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999990;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.cmd-backdrop.cmd-open {
  opacity: 1;
  visibility: visible;
}

/* ── Main Container ───────────────────────────── */
.cmd-palette {
  position: fixed;
  top: 18%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  z-index: 99999991;
  width: min(580px, 92vw);
  border-radius: 20px;
  background: var(--surface, #fff);
  border: 1px solid var(--border, rgba(0,0,0,0.08));
  box-shadow:
    0 25px 80px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.12),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s ease;
}
.cmd-palette.cmd-open {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
}

/* ── Input Row ────────────────────────────────── */
.cmd-input-row {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  gap: 12px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.06));
}

.cmd-icon {
  font-size: 22px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(1, 118, 211, 0.4));
  animation: cmd-glow 2.5s ease-in-out infinite alternate;
}

@keyframes cmd-glow {
  0% { filter: drop-shadow(0 0 4px rgba(1, 118, 211, 0.3)); }
  100% { filter: drop-shadow(0 0 10px rgba(93, 92, 255, 0.5)); }
}

/* ── Input Wrapper & Ghost Text ───────────────── */
.cmd-input-wrapper {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.cmd-input {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  font-size: 17px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text, #1e293b);
  letter-spacing: -0.2px;
  z-index: 2;
}
.cmd-input::placeholder {
  color: var(--text-muted, #94a3b8);
  font-weight: 400;
}

.cmd-input-ghost {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  color: var(--border, #cbd5e1);
  font-size: 17px;
  font-weight: 500;
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.2px;
  pointer-events: none;
  z-index: 1;
  white-space: pre;
}

.cmd-preview-bar {
  margin: 4px 20px 0;
  padding: 8px 14px;
  background: rgba(1, 118, 211, 0.05);
  border-left: 3px solid var(--sf-blue, #0176D3);
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: cmd-fade-in 0.2s ease-out;
}
.cmd-preview-bar.cmd-warning {
  background: rgba(245, 158, 11, 0.05);
  border-left-color: #f59e0b;
  color: #b45309;
}
.cmd-preview-bar.cmd-ai {
  background: rgba(139, 92, 246, 0.05);
  border-left-color: #8b5cf6;
  color: #6d28d9;
}
.cmd-preview-bar.cmd-hidden {
  display: none;
}

@keyframes cmd-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes cmd-shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}
.cmd-error-shake {
  animation: cmd-shake 0.3s cubic-bezier(.36,.07,.19,.97) both;
}

/* ── Voice Button ─────────────────────────────── */
.cmd-voice-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg, #f1f5f9);
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  flex-shrink: 0;
  z-index: 3;
}
.cmd-voice-btn:hover {
  background: var(--sf-blue, #0176D3);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 4px 14px rgba(1, 118, 211, 0.35);
}
.cmd-voice-btn.cmd-listening {
  background: #ef4444;
  color: white;
  animation: cmd-pulse-red 1s ease-in-out infinite;
  border-color: #ef4444;
}

@keyframes cmd-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
}

/* ── Keyboard Shortcut Hint ───────────────────── */
.cmd-kbd-hint {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  flex-shrink: 0;
  z-index: 3;
}
.cmd-kbd {
  background: var(--bg, #f1f5f9);
  border: 1px solid var(--border, rgba(0,0,0,0.1));
  border-radius: 5px;
  padding: 2px 6px;
  font-size: 10px;
  font-weight: 600;
  font-family: 'SF Mono', 'Fira Code', monospace;
  color: var(--text-muted, #64748b);
  line-height: 1.4;
}

/* ── Suggestion Chips ─────────────────────────── */
/* ── Suggestion Chips & Vertical Dropdown ─────── */
.cmd-suggestions {
  padding: 10px 20px 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.04));
  max-height: 250px;
  overflow-y: auto;
  scrollbar-width: none;
}
.cmd-suggestions::-webkit-scrollbar { display: none; }
.cmd-suggestions.cmd-hidden {
  display: none;
}

/* Raycast-style List Mode */
.cmd-suggestions.cmd-list-mode {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 2px;
  padding: 6px 10px 10px;
}

.cmd-chip {
  background: var(--bg, #f1f5f9);
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: 100px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text, #334155);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
  display: flex;
  align-items: center;
  gap: 6px;
}
.cmd-chip:hover, .cmd-chip.cmd-selected {
  background: var(--sf-blue, #0176D3);
  color: white;
  border-color: var(--sf-blue, #0176D3);
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(1, 118, 211, 0.25);
}

/* List Item Mode overrides */
.cmd-suggestions.cmd-list-mode .cmd-chip {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  transform: none;
}
.cmd-suggestions.cmd-list-mode .cmd-chip:hover,
.cmd-suggestions.cmd-list-mode .cmd-chip.cmd-selected {
  background: rgba(1, 118, 211, 0.08);
  color: var(--sf-blue, #0176D3);
}

/* ── Feedback Toasts ──────────────────────────── */
.cmd-toast-container {
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
  z-index: 100;
}
.cmd-toast {
  background: white;
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  padding: 10px 20px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1e293b);
  display: flex;
  align-items: center;
  gap: 8px;
  will-change: transform, opacity;
  animation: cmd-toast-enter 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
.cmd-toast.cmd-toast-exit {
  animation: cmd-toast-exit 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes cmd-toast-enter {
  0% { transform: translateY(-20px) scale(0.9); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes cmd-toast-exit {
  0% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-10px) scale(0.95); opacity: 0; }
}


/* ── Response Area ────────────────────────────── */
.cmd-response {
  max-height: 340px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.cmd-response:empty {
  display: none;
}
.cmd-response::-webkit-scrollbar { width: 4px; }
.cmd-response::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

/* ── Individual Response Card ─────────────────── */
.cmd-result {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  border-bottom: 1px solid var(--border, rgba(0,0,0,0.04));
  animation: cmd-slide-in 0.25s ease-out;
}
.cmd-result:last-child {
  border-bottom: none;
}

@keyframes cmd-slide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.cmd-result-icon {
  font-size: 20px;
  flex-shrink: 0;
  margin-top: 2px;
}

.cmd-result-body {
  flex: 1;
  min-width: 0;
}

.cmd-result-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #1e293b);
  margin-bottom: 4px;
  letter-spacing: -0.2px;
}

.cmd-result-desc {
  font-size: 13px;
  color: var(--text-muted, #64748b);
  line-height: 1.55;
}
.cmd-result-desc strong {
  color: var(--text, #1e293b);
  font-weight: 600;
}

/* ── Loading State ────────────────────────────── */
.cmd-loading {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 13px;
  color: var(--text-muted, #94a3b8);
}
.cmd-loading-dots {
  display: flex;
  gap: 4px;
}
.cmd-loading-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sf-blue, #0176D3);
  animation: cmd-bounce 1.2s ease-in-out infinite;
}
.cmd-loading-dots span:nth-child(2) { animation-delay: 0.15s; }
.cmd-loading-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes cmd-bounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}

/* ── Stats Cards (progress display) ───────────── */
.cmd-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.cmd-stat-card {
  background: var(--bg, #f1f5f9);
  border: 1px solid var(--border, rgba(0,0,0,0.06));
  border-radius: 12px;
  padding: 12px;
  text-align: center;
}
.cmd-stat-val {
  font-size: 22px;
  font-weight: 700;
  color: var(--sf-blue, #0176D3);
  letter-spacing: -0.5px;
}
.cmd-stat-label {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  margin-top: 2px;
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────── */
.cmd-footer {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  border-top: 1px solid var(--border, rgba(0,0,0,0.04));
  background: var(--bg, #f8fafc);
  border-radius: 0 0 20px 20px;
}
.cmd-footer-actions {
  display: flex;
  gap: 12px;
}
.cmd-footer-actions span {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ── ORBITAL FAB MENU (Moon & Earth style) ──── */

/* Hide the original AI Coach FAB — we replace it in our orbital */
#aiFab { display: none !important; }

.cmd-orbit-container {
  position: fixed;
  bottom: 100px;
  right: 28px;
  z-index: 996;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  transition: width 0.3s ease, height 0.3s ease;
}

/* When open: expand container so children are within clickable bounds */
.cmd-orbit-container.cmd-orbit-open {
  width: 200px;
  height: 280px;
  pointer-events: none;
}
.cmd-orbit-container.cmd-orbit-open > * {
  pointer-events: auto;
}

/* Main Hub Button (the "Earth") */
.cmd-orbit-hub {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 60px;
  height: 60px;
  min-width: 60px;
  min-height: 60px;
  max-width: 60px;
  max-height: 60px;
  flex: 0 0 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0176D3 0%, #5D5CFF 50%, #a855f7 100%);
  border: none;
  padding: 0;
  color: white;
  font-size: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 6px 28px rgba(1, 118, 211, 0.4),
    0 2px 8px rgba(0, 0, 0, 0.15),
    0 0 0 3px rgba(255, 255, 255, 0.1) inset;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  z-index: 10;
}
.cmd-orbit-hub:hover {
  transform: scale(1.08);
}
.cmd-orbit-hub.cmd-orbit-active {
  background: linear-gradient(135deg, #ef4444 0%, #f97316 100%);
  box-shadow:
    0 6px 28px rgba(239, 68, 68, 0.4),
    0 0 0 3px rgba(255, 255, 255, 0.1) inset;
}

/* ── Animated Hub Icons ── */
.cmd-hub-icon {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.cmd-hub-icon svg {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px;
  min-height: 34px;
  max-width: 34px;
  max-height: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  overflow: visible;
}
.cmd-hub-default {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}
.cmd-orbit-active .cmd-hub-default {
  opacity: 0;
  transform: scale(0) rotate(-90deg);
}

.cmd-hub-close {
  opacity: 0;
  transform: scale(0) rotate(90deg);
}
.cmd-orbit-active .cmd-hub-close {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

/* Atom / Orbit SVG Animations (Pure CSS) */
.cmd-ring {
  transform-origin: 50% 50%;
  animation: cmd-atom-spin linear infinite;
}
.cmd-ring-1 {
  animation-duration: 5s;
}
.cmd-ring-2 {
  animation-duration: 7s;
  animation-direction: reverse;
}
.cmd-core {
  transform-origin: 50% 50%;
  animation: cmd-atom-pulse 1.5s ease-in-out infinite alternate;
}

@keyframes cmd-atom-spin {
  100% { transform: rotate(360deg); }
}
@keyframes cmd-atom-pulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  100% { transform: scale(1.15); opacity: 1; }
}

/* Pulse ring */
.cmd-orbit-hub::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(93, 92, 255, 0.3);
  animation: cmd-orbit-pulse 3s ease-in-out infinite;
}
.cmd-orbit-hub.cmd-orbit-active::before {
  border-color: rgba(239, 68, 68, 0.3);
}
@keyframes cmd-orbit-pulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50% { transform: scale(1.25); opacity: 0; }
}

/* Satellite Buttons */
.cmd-orbit-sat {
  position: absolute;
  bottom: 8px;
  right: 8px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  opacity: 0;
  transform: scale(0);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  z-index: 5;
}
.cmd-orbit-sat svg,
.cmd-orbit-sat img { pointer-events: none; }
.cmd-orbit-sat:hover {
  filter: brightness(1.15);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  z-index: 20;
}
.cmd-orbit-sat:active { filter: brightness(0.9); }

/* Label tooltip */
.cmd-orbit-sat::after {
  content: attr(data-label);
  position: absolute;
  right: 56px;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  font-size: 11px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  padding: 5px 10px;
  border-radius: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: all 0.2s ease;
  pointer-events: none;
}
.cmd-orbit-sat:hover::after {
  opacity: 1;
  transform: translateX(0);
}

/* Open state — satellites use bottom/right (NOT transform) for reliable clicks */
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
  animation: cmd-sat-glow 3s ease-in-out infinite alternate;
}
/* Row 1 (nearest hub): AI Coach + Command Mode */
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(2) {
  bottom: 80px; right: 70px; transition-delay: 0.03s;
}
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(3) {
  bottom: 80px; right: 8px; transition-delay: 0.06s;
}
/* Row 2: Salesforce + ChatGPT */
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(4) {
  bottom: 140px; right: 70px; transition-delay: 0.09s;
}
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(5) {
  bottom: 140px; right: 8px; transition-delay: 0.12s;
}
/* Row 3 (farthest): Claude + Gemini */
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(6) {
  bottom: 200px; right: 70px; transition-delay: 0.15s;
}
.cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat:nth-child(7) {
  bottom: 200px; right: 8px; transition-delay: 0.18s;
}

@keyframes cmd-sat-glow {
  0%   { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2); }
  100% { box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15), 0 4px 16px rgba(0, 0, 0, 0.25); }
}

/* Satellite colors */
.cmd-orbit-sat.cmd-sat-ai      { background: linear-gradient(135deg, #0176D3, #0ea5e9); }
.cmd-orbit-sat.cmd-sat-cmd     { background: linear-gradient(135deg, #5D5CFF, #8b5cf6); }
.cmd-orbit-sat.cmd-sat-sf      { background: linear-gradient(135deg, #00A1E0, #1798c1); }
.cmd-orbit-sat.cmd-sat-gpt     { background: linear-gradient(135deg, #10a37f, #1a7f64); color: white; }
.cmd-orbit-sat.cmd-sat-claude  { background: linear-gradient(135deg, #d4764e, #c4613c); color: white; }
.cmd-orbit-sat.cmd-sat-gemini  { background: linear-gradient(135deg, #4285F4, #34A853); color: white; }

/* Backdrop */
.cmd-orbit-backdrop {
  position: fixed;
  inset: 0;
  z-index: 995;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.cmd-orbit-backdrop.cmd-orbit-bd-open {
  opacity: 1;
  visibility: visible;
}

/* ── Focus Mode Overlay ───────────────────────── */
.cmd-focus-overlay {
  position: fixed; inset: 0; z-index: 99999992;
  background: #0a0a1a; display: none; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; font-family: 'Inter', sans-serif;
}
.cmd-focus-overlay.cmd-active { display: flex; }
.cmd-focus-particles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cmd-focus-particles .cmd-particle {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(1, 118, 211, 0.4); animation: cmd-float linear infinite;
}
@keyframes cmd-float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; } 90% { opacity: 1; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}
.cmd-focus-content { text-align: center; position: relative; z-index: 2; }
.cmd-focus-topic { font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 3px; color: rgba(255,255,255,0.5); margin-bottom: 16px; }
.cmd-focus-timer { font-size: 96px; font-weight: 200; letter-spacing: -4px; line-height: 1; background: linear-gradient(135deg, #60a5fa, #a78bfa, #f472b6); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; margin-bottom: 8px; }
.cmd-focus-label { font-size: 13px; color: rgba(255,255,255,0.35); font-weight: 500; margin-bottom: 40px; }
.cmd-focus-progress { width: 300px; height: 4px; background: rgba(255,255,255,0.1); border-radius: 100px; margin: 0 auto 32px; overflow: hidden; }
.cmd-focus-progress-fill { height: 100%; background: linear-gradient(90deg, #60a5fa, #a78bfa); border-radius: 100px; transition: width 1s linear; }
.cmd-focus-actions { display: flex; gap: 12px; justify-content: center; }
.cmd-focus-btn { padding: 10px 28px; border-radius: 100px; font-size: 13px; font-weight: 600; cursor: pointer; border: none; transition: all 0.2s ease; font-family: 'Inter', sans-serif; }
.cmd-focus-btn-primary { background: linear-gradient(135deg, #0176D3, #5D5CFF); color: white; box-shadow: 0 4px 20px rgba(1,118,211,0.4); }
.cmd-focus-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 28px rgba(1,118,211,0.5); }
.cmd-focus-btn-ghost { background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.6); border: 1px solid rgba(255,255,255,0.1); }
.cmd-focus-btn-ghost:hover { background: rgba(255,255,255,0.12); color: white; }

/* ── MOBILE ────────────────────────────────────── */
@media (max-width: 768px) {
  .cmd-palette { top: 8%; width: 96vw; border-radius: 16px; }
  .cmd-input { font-size: 15px; }
  .cmd-kbd-hint { display: none; }

  /* FAB when closed */
  .cmd-orbit-container { bottom: 80px; right: 16px; min-width: 52px; min-height: 52px; max-width: 52px; max-height: 52px; }
  .cmd-orbit-container:not(.cmd-orbit-open) { width: 52px; height: 52px; }
  .cmd-orbit-hub { width: 52px; height: 52px; min-width: 52px; min-height: 52px; max-width: 52px; max-height: 52px; flex-basis: 52px; font-size: 20px; }
  .cmd-hub-icon svg { width: 30px !important; height: 30px !important; min-width: 30px; min-height: 30px; max-width: 30px; max-height: 30px; flex-basis: 30px; }

  /* ── Bottom Sheet when open ── */
  .cmd-orbit-container.cmd-orbit-open {
    position: fixed !important;
    bottom: 0 !important;
    right: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: auto !important;
    z-index: 99998;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 14px 16px 28px;
    padding-bottom: max(28px, env(safe-area-inset-bottom, 28px));
    background: var(--surface, #fff);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
    border-top: 1px solid var(--border, rgba(0,0,0,0.06));
    pointer-events: auto !important;
    animation: none !important;
  }
  .cmd-orbit-container.cmd-orbit-open::before { display: none; }

  /* Close bar */
  .cmd-orbit-container.cmd-orbit-open .cmd-orbit-hub {
    grid-column: 1 / -1;
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: 36px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 4px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    transform: none !important;
  }
  .cmd-orbit-container.cmd-orbit-open .cmd-orbit-hub::before { display: none; }

  /* Tiles */
  .cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat {
    position: relative !important;
    bottom: auto !important;
    right: auto !important;
    width: 100% !important;
    height: auto !important;
    min-height: 68px;
    border-radius: 14px;
    flex-direction: column;
    gap: 4px;
    padding: 12px 8px;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    animation: none !important;
    transition-delay: 0s !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  }

  /* Show label text */
  .cmd-orbit-container.cmd-orbit-open .cmd-orbit-sat::after {
    position: static;
    opacity: 1;
    transform: none;
    background: transparent;
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 0;
    margin-top: 3px;
    pointer-events: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
  }

  .cmd-focus-timer { font-size: 64px; }
  .cmd-stats-grid { grid-template-columns: repeat(2, 1fr); }

  .cmd-orbit-backdrop {
    background: rgba(0,0,0,0.45);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}
