/* ── Command Centre Mobile Layer ────────────────────────────────────────── */
/* All rules inside @media (max-width: 768px) unless noted.                  */
/* Desktop layout is untouched — this file only adds a mobile experience.    */

/* Hide tab bar on desktop */
@media (min-width: 769px) {
  .cc-mobile-tabbar { display: none; }
}

@media (max-width: 768px) {

  /* ── Tab bar ─────────────────────────────────────────────────────────── */
  .cc-mobile-tabbar {
    display: flex;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0;
    padding-bottom: 0;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg, #020c18);
    border-bottom: 1px solid var(--border, #1e3a5f);
    margin-bottom: 16px;
  }
  .cc-mobile-tabbar::-webkit-scrollbar { display: none; }

  .cc-mtab {
    flex-shrink: 0;
    padding: 0 18px;
    height: 44px;
    min-width: 44px;
    border: none;
    background: transparent;
    color: var(--muted, #475569);
    font-family: inherit;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .15s, border-color .15s;
    white-space: nowrap;
  }
  .cc-mtab--active {
    color: var(--cyan, #06b6d4);
    border-bottom-color: var(--cyan, #06b6d4);
  }

  /* ── Domain show/hide ───────────────────────────────────────────────── */
  /* Hide all tabbed domains by default */
  .cc-domain[data-cc-tab] {
    display: none;
  }
  /* Show only the active domain(s) */
  .cc-domain[data-cc-tab].cc-tab-active {
    display: block;
  }

  /* ── Touch targets ───────────────────────────────────────────────────── */
  /* Delete row buttons (✕) */
  .cc-tool-shell .cc-data-row-del {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
  }

  /* Primary action buttons inside tool shells */
  .cc-tool-shell .ai-tool-btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: .82rem;
  }

  /* Signal tracker outcome buttons — make them fill available width equally */
  .signal-actions {
    display: flex;
    gap: 6px;
  }
  .signal-actions .ai-tool-btn {
    flex: 1;
    min-height: 44px;
    font-size: .78rem;
    padding: 0 8px;
  }

  /* ── Inline close-trade panel ───────────────────────────────────────── */
  .cc-close-panel {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    padding: 10px 0 4px;
  }
  .cc-close-panel .cc-close-input {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    min-height: 44px;
    background: var(--surface-2, #0f1923);
    border: 1px solid var(--border, #1e3a5f);
    border-radius: 6px;
    color: inherit;
    font-family: inherit;
    font-size: .85rem;
  }
  .cc-close-panel .cc-close-confirm {
    min-height: 44px;
    padding: 0 16px;
  }
  .cc-close-panel .cc-close-cancel {
    min-height: 44px;
    padding: 0 14px;
    background: transparent;
    border: 1px solid var(--border, #1e3a5f);
    color: var(--muted, #475569);
    border-radius: 6px;
    font-family: inherit;
    font-size: .82rem;
    cursor: pointer;
  }

} /* end @media (max-width: 768px) */
