/* ============================================================
   ATLAS V6 — single-theme + chrome lock  (2026-06-23)
   Loaded LAST in the <head> so these intentional suppressions win.
   ATLAS is now ONE theme: a dark command rail over a light / cream
   work surface. The dark/light toggle and the launch/boot chrome
   are retired from the production executive surface.
   ============================================================ */

/* — Shell width fix: the V5 base (bundle-base.css) pins `.frame` to a 215px
     rail with !important, but the V6 rail is --sidebar-width (286px). That
     mismatch let the work surface start under the rail and clipped the first
     ~64px of every left-column heading. Re-assert the V6 width here (loads
     last) so the surface starts flush with the rail's right edge. —         */
.frame { grid-template-columns: var(--sidebar-width) 1fr !important; }

/* — Retired light/dark + colorblind toggles (single-theme product) — */
#theme-toggle,
#cb-toggle,
.theme-toggle { display: none !important; }

/* — Launch-countdown / boot / promo chrome off the executive surface —
     (Codex V6 acceptance: no visible boot, debug, or promo text.)        */
#launch-banner,
.launch-banner { display: none !important; }

/* — Today renders ONLY the V6 command surface; the legacy V5 home
     stays fully hidden so there is never a duplicated greeting. —        */
#view-home > #v6-legacy-home { display: none !important; }

/* — The V6 command surface leads with the "Run the day…" header + Morning
     Brief card (per the Codex V6 mockup). The separate OVERNIGHT RECAP hero
     strip duplicated that greeting and ate the fold, so it is retired. —  */
#v6-today > #overnight-recap,
#v6-today > .overnight-recap { display: none !important; }

/* — Boot/loading overlay failsafe: ATLAS is an executive surface, so the
     "Initializing…" skeleton must never linger. The app removes it on ready;
     this purely-CSS failsafe guarantees it fades out a few seconds after
     first paint even if a fetcher stalls. No boot/debug text on the surface.
     Must collapse the box too — otherwise the static-flow splash holds 43px
     of vertical space and pushes .frame down on every view (V6 shell bug
     fixed 2026-06-23: docH was 1080 but body.scrollHeight 1123 universally). */
#atlas-loading.hidden { display: none !important; }
#atlas-loading {
  animation: atlas-loading-failsafe 0s linear 8s forwards; /* S8: was 3.2s — it beat the JS rd-first-render hold and exposed the legacy home on slow loads */
}
@keyframes atlas-loading-failsafe {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    max-height: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
  }
}

/* ============================================================
   ATLAS V7 — P0 polish pass (2026-06-24, Bryan-flagged)
   Surgical fixes, loaded last so they win:
     (1) empty champagne band in the command bar
     (2) V5 cyan leftovers on the brand mark + clock (off the
         single-gold V6 accent rule)
     (3) the gray "🍑" org pill that read as unprofessional
   Multi-tenant binding + voice IDs untouched.
   ============================================================ */

/* (1) Command-bar status strip — a leftover legacy selector paints a
   wide #fbecd0 band behind the right-aligned chips, reading as an empty
   unstyled block. The chips carry their own backgrounds; make the strip
   transparent so only the chips show. */
.v6-status-strip { background: transparent !important; }

/* (2a) Brand mark — kill the V5 cyan/purple gradient + glow and the stray
   ::after 'N' (it appended to the org letter, rendering "G"+"N" = "GN").
   Recast as a calm gold V6 tile on the single accent. Scoped with
   :not(.has-brand-logo) so a real tenant logo image still wins. */
.sb-logo:not(.has-brand-logo),
.v6-brand-mark:not(.has-brand-logo),
#sb-icon:not(.has-brand-logo) {
  background: linear-gradient(135deg, #d7a13a 0%, #bd8420 100%) !important;
  border: 1px solid rgba(193,138,37,.55) !important;
  box-shadow: none !important;
  color: #1b1205 !important;
  border-radius: 8px !important;
}
.sb-logo::after,
.v6-brand-mark::after,
#sb-icon::after { content: '' !important; display: none !important; }

/* (2b) Clock — the light-theme override forced #00d6ff cyan with a cyan
   glow. Recast to gold ink, no glow (single-accent rule). Selector is
   prefixed with [data-theme="light"] to match the specificity of the V5
   rule it overrides (bundle-layout.css:150), since equal-!important ties
   are broken by specificity, not load order. */
[data-theme="light"] .sb-time,
.sb-time { color: var(--gold, #c18a25) !important; text-shadow: none !important; }
[data-theme="light"] .sb-sec,
.sb-sec  { color: rgba(193,138,37,.55) !important; }

/* (3) Org switcher — the P0 hide is now LIFTED. The V7 workspace switcher
   (monogram tile + org name + chevron + dropdown) replaces the old emoji pill
   and lives in the rail; its styling is in css/v7-tools.css (loaded after this
   file). Org-switching is restored + upgraded. */


/* ============================================================
   ATLAS V6 - POLISH PASS (2026-06-28 design audit) - appended into
   v6-lock.css because index.html is rewritten by concurrent deploys
   (push ships index.html only); v6-lock is a persistent, last-loading
   sheet the index always links. Tokens live in v6-tokens.css. Mirror
   of css/v6-polish.css. Multi-tenant + voice IDs untouched.
   ============================================================ */
.v6-panel:not(.dark),
.v6-kpi-tile,
.v6-today-col > .panel:not(.dark) {
  box-shadow: var(--shadow-card, 0 1px 2px rgba(29,24,14,.05), 0 1px 3px rgba(29,24,14,.08)) !important;
  transition: box-shadow .16s ease, transform .16s ease;
}
.v6-panel:not(.dark):hover,
.v6-kpi-tile:hover {
  box-shadow: var(--shadow-card-hover, 0 6px 16px rgba(29,24,14,.10), 0 2px 6px rgba(29,24,14,.06)) !important;
  transform: translateY(-1px);
}
.v6-panel.dark,
.v6-trust-rail { box-shadow: 0 12px 28px rgba(16,23,34,.16) !important; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, [role="button"]:focus-visible,
[role="tab"]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--gold, #c18a25); outline-offset: 2px; border-radius: 4px;
}
.v6-empty-state { display:flex; flex-direction:column; align-items:center; justify-content:center;
  gap:8px; padding:28px 16px; text-align:center; }
.v6-empty-state .v6-empty-icon { font-size:26px; line-height:1; font-weight:300; color:var(--line-strong,#c4b9a8); }
.v6-empty-state p { margin:0; font-size:14px; color:var(--muted,#8a8270); max-width:32ch; }
.v6-panel.dark .v6-empty-state p, .v6-trust-rail .v6-empty-state p { color:#9fb0bf; }
.v6-panel.dark .v6-empty-state .v6-empty-icon,
.v6-trust-rail .v6-empty-state .v6-empty-icon { color:rgba(255,255,255,.35); }
