/* ════════════════════════════════════════════════════════════════════════
   ATLAS V6 · T2 — TOP COMMAND BAR enterprise polish   (css/v6-t2-topbar.css)
   Dated 2026-06-29 · fleet enterprise-uplift pass (account B).
   ────────────────────────────────────────────────────────────────────────
   SURFACE: the global top command bar (header#statusbar) — command search,
   live-context chips (tenant · hot leads · tasks due), and the right control
   cluster (notification bell · EXECUTIVE role chip · "+ New" · Ask Atlas).
   Stripe / Linear / Ramp-grade chrome: quiet, balanced, precise.

   DEFECTS THIS FIXES (vs baseline):
     1. Status chips were three near-but-not-equal translucent pills (28px,
        washed rgba-white over cream, 12px/500, mixed dot sizes). Unified into
        ONE crisp 30px warm-neutral chip system: solid token surface, one
        radius, 13px readable label, equal 7px dots, the count as the hero,
        and the "—" no-data state intentionally muted (data-integrity).
     2. Search read as a flat box. Refined into a premium command well — a
        subtle inset recess on the cream surface, a keycap-style Ctrl K
        affordance, and a calm gold focus ring.
     3. The right cluster mixed heights (34px role chip among 40px controls)
        and radii (999px pill vs 8px buttons), and the notif badge was a loud
        18px blob. Brought to ONE 40px control row, ONE 8px radius, a refined
        small count badge, and a hairline divider separating context from
        actions for quiet enterprise structure.

   LOAD ORDER: loads LAST (after v7-tools.css). Single-class specificity wins
   over the base v6 sheets by source order; where v7-tools.css uses !important
   (chips, dots, role chip) this sheet must also use !important to win — each
   such rule is tagged "(beats v7-tools !important)". The flat-gold Ask Atlas
   CTA owned by v7-tools is intentionally NOT overridden — the cluster is tuned
   AROUND it.

   Tokens only (v6-tokens.css). Single gold accent #c18a25, zero cyan. No
   markup / JS / other-sheet edits. Voice + data-bind IDs untouched. No new
   animation (nothing to gate for prefers-reduced-motion).
   ════════════════════════════════════════════════════════════════════════ */

/* ── 1 · COMMAND SEARCH WELL ─────────────────────────────────────────────
   The primary entry point. A recessed well on the cream bar invites the click
   that opens the ⌘K palette; the gold ring is the only focus accent. */
.v6-global-search {
  height: 40px;                                  /* aligns to the 40px control row */
  background: var(--surface-3, #f0eee8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: var(--radius, 8px);
  box-shadow: inset 0 1px 2px rgba(29, 24, 14, .045);   /* subtle "type here" recess */
}
.v6-global-search svg { color: #6b7686; }        /* search glyph — calm, not black */
.v6-global-search input { color: var(--ink, #101722); font-size: 15px; }
.v6-global-search input::placeholder { color: #586474; }   /* 4.8:1 on the well */
.v6-global-search:hover {
  border-color: var(--line-strong, #c4b9a8);
  background: #f3f0ea;
}
.v6-global-search:focus-within {
  border-color: var(--gold, #c18a25);
  background: var(--surface, #fffdf8);
  box-shadow: 0 0 0 3px rgba(193, 138, 37, .15);  /* recess flattens, gold ring shows */
}

/* keycap-style Ctrl K affordance — reads as a physical key, not loose text */
.v6-search-hint {
  font: 600 11px/1 var(--font-mono, "Cascadia Mono", "JetBrains Mono", monospace);
  letter-spacing: .02em;
  color: #5f6b7a;
  background: var(--surface, #fffdf8);
  border: 1px solid var(--line, #d7d0c3);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(29, 24, 14, .05);      /* shallow keycap depth */
  padding: 3px 7px;
}

/* ── 2 · LIVE-CONTEXT CHIP SYSTEM ────────────────────────────────────────
   One coherent chip: equal 30px height, one radius, calm warm-neutral surface,
   readable 13px label, equal dots. Numbers lead; the em-dash recedes calmly. */
.v6-status-strip { gap: 8px !important; }         /* (beats v7-tools !important) */

.v6-status-chip {
  height: 30px !important;
  padding: 0 12px !important;
  gap: 8px !important;
  border-radius: var(--radius, 8px) !important;    /* one radius across the whole bar */
  background: var(--surface-3, #f0eee8) !important;/* warm neutral — not washed rgba-white */
  border: 1px solid var(--line, #d7d0c3) !important;
  color: #54606f !important;                       /* label — 4.9:1 on the chip */
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 1px rgba(29, 24, 14, .04) !important;
}                                                  /* (whole block beats v7-tools !important) */

/* tenant chip reads slightly distinct (it's the org): brighter surface, firmer
   edge, bolder name, brand-gold dot. Calm — no garish fill. */
.v6-status-chip.v6-chip-org {
  background: var(--surface, #fffdf8) !important;
  border-color: var(--line-strong, #c4b9a8) !important;
  font-weight: 700 !important;
}
.v6-chip-org #v6-chip-org-name { color: var(--ink, #101722); letter-spacing: .02em; }

/* the count is the hero (ink, tabular); the no-data "—" stays readable + quiet */
.v6-status-chip .v6-chip-num {
  font-weight: 750;
  font-size: 13px;
  color: var(--ink, #101722);
  font-variant-numeric: tabular-nums;
}
.v6-status-chip .v6-chip-num.is-pending {
  color: #54606f;                                  /* intentional "no data", not broken */
  font-weight: 600;
}

/* dots: equal size, flush (no glow), consistent vertical rhythm */
.v6-status-dot { width: 7px !important; height: 7px !important; }   /* (beats v7-tools 6px) */
.v6-chip-org   .v6-status-dot { background: var(--gold, #c18a25); } /* brand */
.v6-chip-leads .v6-status-dot { background: var(--gold, #c18a25); } /* warm = hot leads */
.v6-chip-tasks .v6-status-dot { background: var(--blue, #2f66c3); } /* cool = workload */
/* no tasks data yet → quiet neutral dot to match the muted em-dash */
.v6-chip-tasks:has(.v6-chip-num.is-pending) .v6-status-dot { background: var(--faint, #8a95a3); }

/* ── 3 · RIGHT CONTROL CLUSTER ───────────────────────────────────────────
   One 40px control row at one 8px radius. A hairline divider sets the action
   cluster apart from the live-context chips — quiet enterprise structure. */
.v6-top-actions {
  gap: 9px;
  border-left: 1px solid var(--line, #d7d0c3);
  padding-left: 16px;
  margin-left: 2px;
}

/* role chip → align geometry to the 40px / 8px control row. v7-tools' readable
   transparent-outline styling (bg, border, color, font) is kept; this is a
   geometry-only override so the chip stops reading short + pill in a square set. */
.v6-role-chip {
  height: 40px !important;                          /* (beats v7-tools 34px) */
  border-radius: var(--radius, 8px) !important;     /* (beats v7-tools 999px pill) */
}

/* refined notification count — a small, crisp badge, not a loud blob */
.v6-notif-bell .v6-notif-badge {
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  font: 700 11px/16px var(--font-ui, Inter, system-ui, sans-serif);
  background: var(--bad, #ca3f6b);
  box-shadow: 0 0 0 2px var(--surface, #fffdf8);    /* clean ring carves it off the bar */
}
