/* ============================================================================
   cn_2026_v2.css — 2026 design overlay for ClaimNorth v3 shell
   Self-contained: every class in cn_2026_v2.js / overlay HTML has a rule here.
   Loaded AFTER claimnorth-v3.css, BEFORE org brand.css.
   ============================================================================ */

/* ---------- DESIGN TOKENS ---------- */
:root {
  --cn26-aurora: radial-gradient(at 18% 22%, rgba(124,107,255,.45) 0, transparent 55%),
                 radial-gradient(at 78% 12%, rgba(255,107,196,.42) 0, transparent 55%),
                 radial-gradient(at 64% 88%, rgba(95,210,255,.38) 0, transparent 55%),
                 radial-gradient(at 8%  78%, rgba(255,196,107,.35) 0, transparent 55%);
  --cn26-grad-orb: conic-gradient(from 140deg, #7c6bff, #ff6bc4, #5fd2ff, #7c6bff);
  --cn26-glass-bg: rgba(255,255,255,.72);
  --cn26-glass-bd: rgba(15,23,42,.08);
  --cn26-elev-2: 0 4px 14px rgba(15,23,42,.06), 0 18px 40px rgba(15,23,42,.08);
  --cn26-elev-3: 0 8px 24px rgba(15,23,42,.10), 0 32px 80px rgba(15,23,42,.16);
  --cn26-ink: #0f172a;
  --cn26-ink-soft: #475569;
  --cn26-ease: cubic-bezier(.16,1,.3,1);
}

/* ---------- FROSTED TOPBAR — apply to existing #cn-topbar-v3 ---------- */
body.cn-v3-shell #cn-topbar-v3 {
  background: rgba(255,255,255,.78) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.06) !important;
}

/* ---------- KEYBOARD HINT PILL (bottom-left, auto-dismiss) ---------- */
#cn26-kbd-hint {
  position: fixed;
  bottom: 18px;
  left: 18px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 500 12px/1 ui-sans-serif, system-ui, -apple-system, sans-serif;
  color: var(--cn26-ink-soft);
  background: var(--cn26-glass-bg);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 8px 12px;
  border: 1px solid var(--cn26-glass-bd);
  border-radius: 999px;
  box-shadow: var(--cn26-elev-2);
  opacity: .92;
  transition: opacity .8s ease;
  pointer-events: none;
}
#cn26-kbd-hint kbd {
  font: 600 10.5px ui-monospace, Menlo, monospace;
  background: var(--cn26-ink);
  color: #fff;
  padding: 2px 6px;
  border-radius: 5px;
  margin: 0 1px;
}

/* ---------- COMMAND PALETTE (⌘K) ---------- */
#cn26-cmdk-root {
  position: fixed; inset: 0;
  z-index: 9000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 12vh;
}
#cn26-cmdk-root[hidden] { display: none !important; }
#cn26-cmdk-root .cn26-cmdk-backdrop {
  position: absolute; inset: 0;
  background: rgba(15,23,42,.40);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  animation: cn26-fade-in .18s var(--cn26-ease);
}
#cn26-cmdk-root .cn26-cmdk-panel {
  position: relative;
  width: min(640px, calc(100vw - 32px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--cn26-glass-bd);
  border-radius: 16px;
  box-shadow: var(--cn26-elev-3);
  overflow: hidden;
  animation: cn26-spring-in .35s var(--cn26-ease);
  font: 400 14px/1.4 ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink);
}
#cn26-cmdk-root .cn26-cmdk-head {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
#cn26-cmdk-root .cn26-cmdk-head svg { color: var(--cn26-ink-soft); flex: none; }
#cn26-cmdk-root #cn26-cmdk-input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: 500 15px/1.2 ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink);
  padding: 4px 0;
}
#cn26-cmdk-root #cn26-cmdk-input::placeholder { color: #94a3b8; }
#cn26-cmdk-root .cn26-cmdk-kbd {
  font: 600 11px ui-monospace, Menlo, monospace;
  background: rgba(15,23,42,.06);
  color: var(--cn26-ink-soft);
  padding: 3px 8px;
  border-radius: 6px;
}
#cn26-cmdk-root .cn26-cmdk-results {
  max-height: 50vh; overflow-y: auto;
  padding: 6px;
}
#cn26-cmdk-root .cn26-cmdk-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--cn26-ink);
  cursor: pointer;
  transition: background .12s ease;
}
#cn26-cmdk-root .cn26-cmdk-row:hover,
#cn26-cmdk-root .cn26-cmdk-row.cn26-on {
  background: rgba(124,107,255,.10);
}
#cn26-cmdk-root .cn26-cmdk-label {
  font-weight: 500;
}
#cn26-cmdk-root .cn26-cmdk-path {
  font: 400 12px ui-monospace, Menlo, monospace;
  color: var(--cn26-ink-soft);
}
#cn26-cmdk-root .cn26-cmdk-empty {
  padding: 24px;
  text-align: center;
  color: var(--cn26-ink-soft);
}
#cn26-cmdk-root .cn26-cmdk-foot {
  display: flex; gap: 16px; justify-content: flex-end;
  padding: 10px 14px;
  border-top: 1px solid rgba(15,23,42,.06);
  background: rgba(15,23,42,.02);
  font: 400 11.5px ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink-soft);
}
#cn26-cmdk-root .cn26-cmdk-foot b {
  font: 600 11px ui-monospace, Menlo, monospace;
  background: rgba(15,23,42,.08);
  padding: 1px 5px;
  border-radius: 4px;
  margin-right: 4px;
}

body.cn26-cmdk-open { overflow: hidden; }

/* ---------- FLOATING AI ORB (bottom-right) ---------- */
#cn26-orb-toggle {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  filter: drop-shadow(0 8px 24px rgba(124,107,255,.45));
  transition: transform .25s var(--cn26-ease);
}
#cn26-orb-toggle:hover { transform: scale(1.08); }
#cn26-orb-toggle:active { transform: scale(.96); }
#cn26-orb-toggle .cn26-orb-core {
  position: absolute; inset: 0;
  border-radius: 50%;
  background: var(--cn26-grad-orb);
  animation: cn26-orb-spin 6s linear infinite;
}
#cn26-orb-toggle .cn26-orb-core::after {
  content: "";
  position: absolute; inset: 4px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.85), rgba(255,255,255,.45) 45%, rgba(255,255,255,.05) 75%);
}
#cn26-orb-toggle .cn26-orb-glyph {
  position: relative;
  z-index: 2;
  color: #1e1b4b;
  display: inline-flex;
}

/* ---------- AI PANEL (flyout from orb) ---------- */
#cn26-ai-panel {
  position: fixed;
  right: 22px; bottom: 90px;
  z-index: 65;
  width: min(380px, calc(100vw - 44px));
  max-height: min(560px, calc(100vh - 130px));
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--cn26-glass-bd);
  border-radius: 18px;
  box-shadow: var(--cn26-elev-3);
  display: flex; flex-direction: column;
  overflow: hidden;
  animation: cn26-spring-in .32s var(--cn26-ease);
  font: 400 13.5px/1.45 ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink);
}
#cn26-ai-panel[hidden] { display: none !important; }
#cn26-ai-panel .cn26-ai-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(15,23,42,.06);
}
#cn26-ai-panel .cn26-ai-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600;
  color: var(--cn26-ink);
}
#cn26-ai-panel .cn26-orb-mini {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--cn26-grad-orb);
  box-shadow: 0 0 0 2px rgba(124,107,255,.20);
  animation: cn26-orb-spin 6s linear infinite;
}
#cn26-ai-panel .cn26-ai-close {
  background: transparent; border: 0; cursor: pointer;
  color: var(--cn26-ink-soft);
  font-size: 18px; line-height: 1;
  padding: 4px 8px;
  border-radius: 8px;
}
#cn26-ai-panel .cn26-ai-close:hover { background: rgba(15,23,42,.06); color: var(--cn26-ink); }
#cn26-ai-panel .cn26-ai-body {
  padding: 14px 16px 18px;
  overflow-y: auto;
}
#cn26-ai-panel .cn26-ai-hint {
  margin: 0 0 10px;
  color: var(--cn26-ink-soft);
  font-size: 13px;
}
#cn26-ai-panel .cn26-ai-suggest {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 14px;
}
#cn26-ai-panel .cn26-chip {
  background: rgba(124,107,255,.08);
  color: #4c1d95;
  border: 1px solid rgba(124,107,255,.18);
  border-radius: 999px;
  padding: 6px 12px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background .12s ease;
}
#cn26-ai-panel .cn26-chip:hover { background: rgba(124,107,255,.16); }
#cn26-ai-panel .cn26-ai-form {
  display: flex; flex-direction: column; gap: 8px;
}
#cn26-ai-panel .cn26-ai-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 70px;
  font: 400 13px/1.5 ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink);
  background: rgba(15,23,42,.03);
  border: 1px solid rgba(15,23,42,.10);
  border-radius: 10px;
  padding: 10px 12px;
  outline: 0;
  transition: border-color .15s ease, background .15s ease;
}
#cn26-ai-panel .cn26-ai-form textarea:focus {
  border-color: rgba(124,107,255,.50);
  background: #fff;
}
#cn26-ai-panel .cn26-ai-send {
  align-self: flex-end;
  background: var(--cn26-ink);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 9px 16px;
  font: 500 13px/1 ui-sans-serif, system-ui, sans-serif;
  cursor: pointer;
  transition: background .15s ease;
}
#cn26-ai-panel .cn26-ai-send:hover { background: #1e293b; }

/* ---------- ANIMATIONS ---------- */
@keyframes cn26-orb-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes cn26-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes cn26-spring-in {
  0%   { opacity: 0; transform: translateY(12px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes cn26-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  50%      { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

/* ---------- STATUS PULSE (utility, opt-in via .cn26-pulse) ---------- */
.cn26-pulse {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  animation: cn26-pulse 1.8s ease-in-out infinite;
}

/* ---------- SCROLL REVEAL (opt-in via .cn26-reveal) ---------- */
/* Default: visible. JS adds .cn26-pre-reveal to hide, then .cn26-visible to re-show. */
.cn26-reveal {
  transition: opacity .55s var(--cn26-ease), transform .55s var(--cn26-ease);
}
.cn26-reveal.cn26-pre-reveal {
  opacity: 0;
  transform: translateY(18px);
}
.cn26-reveal.cn26-pre-reveal.cn26-visible {
  opacity: 1;
  transform: none;
}

/* ---------- DARK MODE FRIENDLINESS (light-tinted glass) ---------- */
@media (prefers-color-scheme: dark) {
  #cn26-cmdk-root .cn26-cmdk-panel,
  #cn26-ai-panel,
  #cn26-kbd-hint {
    background: rgba(20,23,40,.92);
    color: #e2e8f0;
    border-color: rgba(255,255,255,.10);
  }
  #cn26-cmdk-root .cn26-cmdk-path,
  #cn26-ai-panel .cn26-ai-hint,
  #cn26-cmdk-root .cn26-cmdk-foot,
  #cn26-kbd-hint { color: #94a3b8; }
  #cn26-cmdk-root .cn26-cmdk-row { color: #e2e8f0; }
  #cn26-cmdk-root .cn26-cmdk-row:hover,
  #cn26-cmdk-root .cn26-cmdk-row.cn26-on { background: rgba(124,107,255,.20); }
  #cn26-ai-panel .cn26-chip {
    background: rgba(124,107,255,.18);
    color: #ddd6fe;
    border-color: rgba(124,107,255,.30);
  }
  body.cn-v3-shell #cn-topbar-v3 {
    background: rgba(15,23,42,.78) !important;
  }
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  #cn26-orb-toggle .cn26-orb-core,
  #cn26-ai-panel .cn26-orb-mini,
  .cn26-pulse,
  .cn26-reveal { animation: none !important; transition: none !important; }
  .cn26-reveal.cn26-pre-reveal { opacity: 1 !important; transform: none !important; }
}

/* ============================================================================
   LAYER 2 — wave 101 / BURST_1044
   CSS-only enhancements that target existing wave-99 markup classes.
   Adds aurora hero, hover-lift, pulse animation, transitions.
   ============================================================================ */

/* ---------- AURORA HERO TREATMENT ---------- */
body.cn-v3-shell .cn-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(124,107,255,.18) !important;
}
body.cn-v3-shell .cn-hero::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: -1;
  background: var(--cn26-aurora);
  opacity: .55;
  filter: blur(40px);
  animation: cn26-aurora-drift 22s ease-in-out infinite alternate;
  pointer-events: none;
}
body.cn-v3-shell .cn-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(15,23,42,.0) 0%, rgba(15,23,42,.55) 100%);
  pointer-events: none;
}

@keyframes cn26-aurora-drift {
  0%   { transform: translate(0, 0)     scale(1); }
  50%  { transform: translate(2%, -2%)  scale(1.05); }
  100% { transform: translate(-2%, 1%)  scale(1.02); }
}

/* ---------- KPI NUMBER POLISH ---------- */
body.cn-v3-shell .cn-hk-num {
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,.78) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}

/* ---------- PROJECT CARD HOVER LIFT ---------- */
body.cn-v3-shell .cn-proj-card {
  transition: transform .25s var(--cn26-ease, ease),
              box-shadow .25s var(--cn26-ease, ease),
              border-color .25s ease;
  will-change: transform;
}
body.cn-v3-shell .cn-proj-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(15,23,42,.10), 0 4px 12px rgba(15,23,42,.06);
  border-color: rgba(124,107,255,.32) !important;
}

/* ---------- PIPELINE DOT PULSE (only on nonzero columns) ---------- */
body.cn-v3-shell .cn-pipe-col.cn26-live .cn-pipe-dot {
  position: relative;
  animation: cn26-dot-pulse 2s ease-in-out infinite;
}
@keyframes cn26-dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 currentColor; opacity: 1; }
  50%      { box-shadow: 0 0 0 4px transparent; opacity: .8; }
}

/* ---------- SECTION HEADINGS POLISH ---------- */
body.cn-v3-shell .cn-section-title {
  letter-spacing: -.015em;
}

/* ---------- SCROLL-REVEAL APPLIED VIA JS auto-tagging ---------- */
/* Already defined in main file. Just confirm the targets are eligible. */
body.cn-v3-shell .cn-hero.cn26-reveal,
body.cn-v3-shell .cn-section.cn26-reveal {
  /* Reveal handled by the generic .cn26-reveal rule. */
}

/* ---------- COACH-CARD POLISH (glassmorphic frame inside aurora hero) ---------- */
body.cn-v3-shell .cn-coach-card {
  background: rgba(255,255,255,.94) !important;
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255,255,255,.55) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.10), 0 32px 80px rgba(15,23,42,.16);
}

@media (prefers-color-scheme: dark) {
  body.cn-v3-shell .cn-coach-card {
    background: rgba(30,34,54,.85) !important;
    border-color: rgba(255,255,255,.10) !important;
  }
}

/* ---------- HERO TEXT readability on aurora background ---------- */
body.cn-v3-shell .cn-hero-eyebrow,
body.cn-v3-shell .cn-hero-title,
body.cn-v3-shell .cn-hero-summary,
body.cn-v3-shell .cn-hk-lbl {
  text-shadow: 0 1px 2px rgba(15,23,42,.18);
}

/* Make hero text white-ish for contrast on aurora */
body.cn-v3-shell .cn-hero .cn-hero-title { color: #fff !important; }
body.cn-v3-shell .cn-hero .cn-hero-eyebrow { color: rgba(255,255,255,.85) !important; }
body.cn-v3-shell .cn-hero .cn-hero-summary { color: rgba(255,255,255,.92) !important; }
body.cn-v3-shell .cn-hero .cn-hk-lbl { color: rgba(255,255,255,.75) !important; }

/* Reduced motion: stop aurora drift + pulse */
@media (prefers-reduced-motion: reduce) {
  body.cn-v3-shell .cn-hero::before { animation: none !important; }
  body.cn-v3-shell .cn-pipe-col.cn26-live .cn-pipe-dot { animation: none !important; }
}

/* ============================================================================
   LAYER 3 — wave 102 / BURST_1045
   Pipeline count-up styling, gradient project-card top strip,
   sidebar live pulse, badge polish.
   ============================================================================ */

/* ---------- PIPELINE NUMBERS — tabular-nums + slight tint ---------- */
body.cn-v3-shell .cn-pipe-num {
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
}

/* ---------- PROJECT CARD GRADIENT TOP STRIP ---------- */
/* Each card gets a 3px gradient bar across the top, cycling through 3 brand gradients */
body.cn-v3-shell .cn-proj-card {
  position: relative;
  overflow: hidden;
}
body.cn-v3-shell .cn-proj-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #7c6bff, #ff6bc4, #5fd2ff);
  opacity: .85;
  transition: opacity .25s ease;
}
body.cn-v3-shell .cn-proj-card:hover::before { opacity: 1; height: 4px; }
body.cn-v3-shell .cn-proj-grid > .cn-proj-card:nth-child(3n+2)::before {
  background: linear-gradient(90deg, #5fd2ff, #7c6bff, #ff6bc4);
}
body.cn-v3-shell .cn-proj-grid > .cn-proj-card:nth-child(3n+3)::before {
  background: linear-gradient(90deg, #ff6bc4, #ffc46b, #7c6bff);
}

/* ---------- SIDEBAR USER LIVE PULSE ---------- */
/* Inject a green pulse dot next to the user avatar to signal "live session" */
body.cn-v3-shell .sb-user-av {
  position: relative;
}
body.cn-v3-shell .sb-user-av::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid var(--cn-sb-bg, #0f172a);
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .55);
  animation: cn26-live-pulse 2.2s ease-in-out infinite;
}
@keyframes cn26-live-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  50%      { box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ---------- STATUS BADGE POLISH ---------- */
body.cn-v3-shell .cn-badge {
  letter-spacing: .02em;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(15,23,42,.06);
  transition: transform .15s ease;
}
body.cn-v3-shell .cn-proj-card:hover .cn-badge {
  transform: scale(1.05);
}

/* ---------- ACTIVITY-LIST live indicator on first item ---------- */
body.cn-v3-shell .cn-act-list > .cn-act-row:first-child .cn-act-dot {
  position: relative;
  animation: cn26-live-pulse 2.4s ease-in-out infinite;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.cn-v3-shell .sb-user-av::after,
  body.cn-v3-shell .cn-act-list > .cn-act-row:first-child .cn-act-dot {
    animation: none !important;
  }
  body.cn-v3-shell .cn-proj-card,
  body.cn-v3-shell .cn-proj-card::before,
  body.cn-v3-shell .cn-badge {
    transition: none !important;
  }
}

/* ============================================================================
   LAYER 4 — wave 103 / BURST_1046
   Cross-page primitives polish — page headers, tables, cards, buttons, inputs.
   ============================================================================ */

/* ---------- PAGE HEADER ACCENT ---------- */
body.cn-v3-shell .cn-page-header {
  position: relative;
  padding-bottom: 14px;
}
body.cn-v3-shell .cn-page-header::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0;
  width: 48px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #7c6bff, #ff6bc4);
}
body.cn-v3-shell .cn-page-title {
  letter-spacing: -.02em;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
body.cn-v3-shell .cn-page-subtitle {
  color: #64748b !important;
}

/* ---------- TABLE ROW HOVER ---------- */
body.cn-v3-shell .cn-table tbody tr,
body.cn-v3-shell table.cn-table tbody tr {
  transition: background .15s ease, transform .15s ease;
}
body.cn-v3-shell .cn-table tbody tr:hover,
body.cn-v3-shell table.cn-table tbody tr:hover {
  background: rgba(124,107,255,.06) !important;
}
body.cn-v3-shell .cn-table tbody tr:hover td:first-child,
body.cn-v3-shell table.cn-table tbody tr:hover td:first-child {
  box-shadow: inset 3px 0 0 0 #7c6bff;
}
body.cn-v3-shell .cn-table tbody tr td:first-child,
body.cn-v3-shell table.cn-table tbody tr td:first-child {
  transition: box-shadow .15s ease;
}

/* ---------- CARD ELEVATION ---------- */
body.cn-v3-shell .cn-card {
  transition: transform .2s ease, box-shadow .2s ease;
}
body.cn-v3-shell .cn-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.06), 0 16px 40px rgba(15,23,42,.08);
}
body.cn-v3-shell .cn-card-title {
  letter-spacing: -.015em;
}

/* ---------- BUTTON POLISH ---------- */
body.cn-v3-shell .cn-btn {
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease;
  will-change: transform;
}
body.cn-v3-shell .cn-btn:hover:not(:disabled) {
  transform: translateY(-1px);
}
body.cn-v3-shell .cn-btn:active:not(:disabled) {
  transform: translateY(0);
}
body.cn-v3-shell .cn-btn-primary {
  background: linear-gradient(135deg, #7c6bff 0%, #6b5cf0 100%) !important;
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 4px 12px rgba(124,107,255,.30);
  color: #fff !important;
}
body.cn-v3-shell .cn-btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.20) inset, 0 6px 18px rgba(124,107,255,.42);
}

/* ---------- INPUT FOCUS GLOW ---------- */
body.cn-v3-shell .cn-input,
body.cn-v3-shell input.cn-input,
body.cn-v3-shell input[type="text"]:not(#cn26-cmdk-input):not(.sb-search input),
body.cn-v3-shell input[type="search"]:not(#cn26-cmdk-input):not(.sb-search input),
body.cn-v3-shell input[type="email"],
body.cn-v3-shell input[type="number"],
body.cn-v3-shell input[type="url"],
body.cn-v3-shell input[type="tel"],
body.cn-v3-shell input[type="date"],
body.cn-v3-shell select,
body.cn-v3-shell textarea {
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
body.cn-v3-shell .cn-input:focus,
body.cn-v3-shell input.cn-input:focus,
body.cn-v3-shell input[type="text"]:focus:not(#cn26-cmdk-input):not(.sb-search input),
body.cn-v3-shell input[type="search"]:focus:not(#cn26-cmdk-input):not(.sb-search input),
body.cn-v3-shell input[type="email"]:focus,
body.cn-v3-shell input[type="number"]:focus,
body.cn-v3-shell input[type="url"]:focus,
body.cn-v3-shell input[type="tel"]:focus,
body.cn-v3-shell input[type="date"]:focus,
body.cn-v3-shell select:focus,
body.cn-v3-shell textarea:focus {
  outline: 0;
  border-color: #7c6bff !important;
  box-shadow: 0 0 0 4px rgba(124,107,255,.12), 0 1px 3px rgba(15,23,42,.04);
}

/* ---------- EMPTY-STATE SOFTENING ---------- */
body.cn-v3-shell .cn-table-empty {
  padding: 48px 24px !important;
  color: #94a3b8 !important;
  background:
    radial-gradient(at 50% 0%, rgba(124,107,255,.05) 0, transparent 60%);
}

/* ---------- BREADCRUMB POLISH (.crumb) ---------- */
body.cn-v3-shell .crumb {
  letter-spacing: .01em;
}

/* ---------- SECTION HEAD CONSISTENT TREATMENT ---------- */
body.cn-v3-shell .cn-section-title,
body.cn-v3-shell .cn-card-title {
  font-feature-settings: "ss01" on, "cv11" on;
}

/* ---------- FOCUS RING for sidebar nav items ---------- */
body.cn-v3-shell .sb-nav .nav-item:focus-visible {
  outline: 2px solid #7c6bff;
  outline-offset: -2px;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.cn-v3-shell .cn-card,
  body.cn-v3-shell .cn-btn,
  body.cn-v3-shell .cn-table tbody tr,
  body.cn-v3-shell .cn-input,
  body.cn-v3-shell input,
  body.cn-v3-shell select,
  body.cn-v3-shell textarea {
    transition: none !important;
  }
}

/* ============================================================================
   LAYER 5 — wave 104 / BURST_1047
   Dashboard depth: kanban-style pipeline, today insight strip, card cover treatments
   ============================================================================ */

/* ---------- TODAY INSIGHT STRIP (injected by JS above .cn-hero) ---------- */
body.cn-v3-shell .cn26-today {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 20px;
  margin: 0 0 16px 0;
  background: linear-gradient(135deg, rgba(124,107,255,.06), rgba(95,210,255,.04));
  border: 1px solid rgba(124,107,255,.18);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font: 500 13px/1.4 ui-sans-serif, system-ui, sans-serif;
}
body.cn-v3-shell .cn26-today-icon {
  font-size: 22px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(124,107,255,.30));
}
body.cn-v3-shell .cn26-today-text {
  flex: 1;
  color: #1e293b;
}
body.cn-v3-shell .cn26-today-text b {
  color: #0f172a;
  font-weight: 600;
}
body.cn-v3-shell .cn26-today-stats {
  display: flex; gap: 18px;
  font-size: 12px;
  color: #475569;
}
body.cn-v3-shell .cn26-today-stat {
  display: inline-flex; gap: 4px; align-items: baseline;
}
body.cn-v3-shell .cn26-today-stat b {
  font: 600 15px/1 ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
}

/* ---------- KANBAN-STYLE PIPELINE COLUMNS ---------- */
body.cn-v3-shell .cn-pipeline {
  gap: 12px !important;
}
body.cn-v3-shell .cn-pipe-col {
  background: rgba(15,23,42,.02) !important;
  border: 1px solid rgba(15,23,42,.06) !important;
  border-radius: 12px !important;
  padding: 14px !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: default;
}
body.cn-v3-shell .cn-pipe-col:hover {
  transform: translateY(-2px);
  border-color: rgba(124,107,255,.32) !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.06), 0 2px 6px rgba(15,23,42,.04);
}
body.cn-v3-shell .cn-pipe-col.cn26-live {
  background: linear-gradient(180deg, rgba(124,107,255,.06) 0%, rgba(255,255,255,0) 60%) !important;
  border-color: rgba(124,107,255,.24) !important;
}
body.cn-v3-shell .cn-pipe-head {
  margin-bottom: 8px !important;
}
body.cn-v3-shell .cn-pipe-num {
  font-size: 24px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}
body.cn-v3-shell .cn-pipe-col.cn26-live .cn-pipe-num {
  background: linear-gradient(135deg, #7c6bff, #ff6bc4);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- PROJECT CARD COVER GLOW ON HOVER ---------- */
body.cn-v3-shell .cn-proj-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 100%),
    #ffffff !important;
  transition: transform .25s var(--cn26-ease, ease),
              box-shadow .25s var(--cn26-ease, ease),
              border-color .25s ease,
              background .3s ease;
}
body.cn-v3-shell .cn-proj-card:hover {
  background:
    radial-gradient(at 50% 0%, rgba(124,107,255,.06) 0, transparent 60%),
    #ffffff !important;
}

/* ---------- ACTIVITY-FEED SOFTENING ---------- */
body.cn-v3-shell .cn-act-row {
  padding: 10px 0 !important;
  border-bottom: 1px solid rgba(15,23,42,.04);
  transition: background .15s ease;
}
body.cn-v3-shell .cn-act-row:hover {
  background: rgba(124,107,255,.03);
  border-radius: 8px;
  padding-left: 6px !important;
  padding-right: 6px !important;
  margin: 0 -6px;
}
body.cn-v3-shell .cn-act-row:last-child {
  border-bottom: 0;
}

/* ---------- WORKFLOW NUMBERED STEPS ---------- */
body.cn-v3-shell [class*="cn-wf-step"],
body.cn-v3-shell .cn-section .cn-card[data-step] {
  transition: transform .15s ease;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  body.cn-v3-shell .cn-pipe-col,
  body.cn-v3-shell .cn-proj-card,
  body.cn-v3-shell .cn-act-row {
    transition: none !important;
  }
}

/* ============================================================================
   LAYER 6 — wave 106 / BURST_1049
   Login page aurora, notification bell badge polish, sidebar Design System link.
   ============================================================================ */

/* ---------- LOGIN PAGE AURORA BACKGROUND ---------- */
body:not(.cn-v3-shell) {
  /* Targets login + other pre-shell pages */
}
body:not(.cn-v3-shell) .login-wrap {
  position: relative;
  z-index: 1;
}
/* Background aurora behind the login card */
.login-wrap::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -1;
  background:
    radial-gradient(at 20% 25%, rgba(124,107,255,.30) 0, transparent 50%),
    radial-gradient(at 80% 15%, rgba(255,107,196,.25) 0, transparent 50%),
    radial-gradient(at 60% 85%, rgba(95,210,255,.28) 0, transparent 55%),
    radial-gradient(at 10% 75%, rgba(255,196,107,.18) 0, transparent 60%);
  filter: blur(60px);
  animation: cn26-login-aurora-drift 26s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes cn26-login-aurora-drift {
  0%   { transform: translate(0,0)    scale(1); }
  50%  { transform: translate(3%,-2%) scale(1.05); }
  100% { transform: translate(-3%,2%) scale(1.02); }
}

/* Card glassmorphic upgrade */
.login-card {
  background: rgba(255,255,255,.86) !important;
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.08), 0 32px 80px rgba(15,23,42,.12) !important;
}

/* Brand title gradient */
.login-brand-mark {
  background: linear-gradient(135deg, #7c6bff 0%, #ff6bc4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 700 !important;
}

/* Primary button gradient */
.login-card .cn-btn-primary {
  background: linear-gradient(135deg, #7c6bff 0%, #6b5cf0 100%) !important;
  border: 0 !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.18) inset, 0 6px 18px rgba(124,107,255,.36) !important;
}
.login-card .cn-btn-primary:hover {
  box-shadow: 0 1px 0 rgba(255,255,255,.20) inset, 0 8px 24px rgba(124,107,255,.50) !important;
}

/* Focus glow on login inputs */
.login-card .cn-input:focus {
  border-color: #7c6bff !important;
  box-shadow: 0 0 0 4px rgba(124,107,255,.14) !important;
  outline: 0;
}

/* ---------- NOTIFICATION BELL BADGE ---------- */
body.cn-v3-shell .icon-btn[href="/notifications"] {
  position: relative;
}
body.cn-v3-shell .icon-btn[href="/notifications"].cn26-has-unread::after {
  content: attr(data-unread);
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font: 700 10px/18px ui-sans-serif, system-ui, sans-serif;
  text-align: center;
  box-shadow: 0 0 0 2px var(--cn-topbar-bg, #fff), 0 2px 6px rgba(239,68,68,.40);
  animation: cn26-badge-pop .4s var(--cn26-ease, ease) backwards;
}
@keyframes cn26-badge-pop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ---------- DARK MODE login adjustments ---------- */
@media (prefers-color-scheme: dark) {
  body:not(.cn-v3-shell) {
    background: #0b0d1a !important;
  }
  .login-card {
    background: rgba(20,23,40,.78) !important;
    border-color: rgba(255,255,255,.08) !important;
    color: #e2e8f0;
  }
  .login-card h1 { color: #f1f5f9; }
  .login-card .sub { color: #94a3b8 !important; }
  .login-card label { color: #e2e8f0 !important; }
  .login-card .cn-input {
    background: rgba(15,23,42,.4) !important;
    border-color: rgba(255,255,255,.12) !important;
    color: #e2e8f0 !important;
  }
  .login-footer { color: #94a3b8 !important; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .login-wrap::before { animation: none !important; }
  body.cn-v3-shell .icon-btn[href="/notifications"].cn26-has-unread::after { animation: none !important; }
}

/* ============================================================================
   LAYER 7 — wave 107 / BURST_1050
   Sparklines + trend indicators on KPI numbers.
   ============================================================================ */

/* ---------- SPARKLINE CONTAINER (sits beneath each KPI number) ---------- */
body.cn-v3-shell .cn-hk {
  position: relative;
}
body.cn-v3-shell .cn26-spark {
  display: block;
  width: 100%;
  height: 22px;
  margin-top: 6px;
  opacity: .9;
  overflow: visible;
}
body.cn-v3-shell .cn26-spark path.cn26-spark-line {
  fill: none;
  stroke: rgba(255,255,255,.75);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 1px 2px rgba(15,23,42,.18));
}
body.cn-v3-shell .cn26-spark path.cn26-spark-fill {
  fill: url(#cn26-spark-gradient);
  opacity: .35;
}
body.cn-v3-shell .cn26-spark circle.cn26-spark-end {
  fill: #fff;
  stroke: #7c6bff;
  stroke-width: 1.5;
}

/* ---------- TREND DELTA BADGE (next to KPI number) ---------- */
body.cn-v3-shell .cn26-trend {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 2px 6px;
  border-radius: 5px;
  margin-left: 8px;
  vertical-align: super;
  font-variant-numeric: tabular-nums;
}
body.cn-v3-shell .cn26-trend.cn26-trend-up {
  background: rgba(34,197,94,.18);
  color: #86efac;
}
body.cn-v3-shell .cn26-trend.cn26-trend-down {
  background: rgba(239,68,68,.18);
  color: #fca5a5;
}
body.cn-v3-shell .cn26-trend.cn26-trend-flat {
  background: rgba(148,163,184,.18);
  color: #cbd5e1;
}

/* ---------- 7-DAY MINI CHART CARD (injected before .cn-section[Recent activity]) ---------- */
body.cn-v3-shell .cn26-minichart-card {
  margin: 24px 0;
  padding: 20px 24px;
  background:
    radial-gradient(at 0% 0%, rgba(124,107,255,.05) 0, transparent 50%),
    #ffffff;
  border: 1px solid rgba(15,23,42,.06);
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15,23,42,.04);
}
body.cn-v3-shell .cn26-minichart-head {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
}
body.cn-v3-shell .cn26-minichart-title {
  font: 600 16px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.015em;
  color: #0f172a;
  margin: 0;
}
body.cn-v3-shell .cn26-minichart-sub {
  font-size: 12px;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}
body.cn-v3-shell .cn26-minichart {
  width: 100%;
  height: 80px;
  display: block;
}
body.cn-v3-shell .cn26-minichart .cn26-bar {
  fill: #7c6bff;
  opacity: .85;
  transition: opacity .2s ease;
}
body.cn-v3-shell .cn26-minichart .cn26-bar:hover {
  opacity: 1;
  fill: url(#cn26-bar-gradient);
}
body.cn-v3-shell .cn26-minichart-labels {
  display: flex; justify-content: space-between;
  margin-top: 6px;
  font: 500 10px/1 ui-monospace, Menlo, monospace;
  color: #94a3b8;
}

/* Dark mode: minichart card dark theme */
@media (prefers-color-scheme: dark) {
  body.cn-v3-shell .cn26-minichart-card {
    background:
      radial-gradient(at 0% 0%, rgba(124,107,255,.10) 0, transparent 50%),
      rgba(20,23,40,.5);
    border-color: rgba(255,255,255,.08);
  }
  body.cn-v3-shell .cn26-minichart-title { color: #e2e8f0; }
  body.cn-v3-shell .cn26-minichart-sub { color: #94a3b8; }
}

/* ============================================================================
   LAYER 8 — wave 109 / BURST_1052
   Notification snackbar/toast system. Toasts stack bottom-right above the AI orb.
   ============================================================================ */

#cn26-toast-host {
  position: fixed;
  right: 22px;
  bottom: 90px;             /* above the AI orb (orb is at 22px from bottom + 56px tall + margin) */
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
  pointer-events: none;     /* host doesn't intercept; toasts do */
  max-width: min(380px, calc(100vw - 44px));
}

.cn26-toast {
  pointer-events: auto;
  background: rgba(255,255,255,.96);
  color: #0f172a;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 4px 14px rgba(15,23,42,.08), 0 18px 40px rgba(15,23,42,.12);
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font: 400 13px/1.45 ui-sans-serif, system-ui, sans-serif;
  position: relative;
  overflow: hidden;
  animation: cn26-toast-in .35s cubic-bezier(.16,1,.3,1) backwards;
  min-width: 260px;
}
.cn26-toast.cn26-toast-leaving {
  animation: cn26-toast-out .25s cubic-bezier(.6,0,1,.4) forwards;
}
@keyframes cn26-toast-in {
  from { opacity: 0; transform: translateX(28px) scale(.96); }
  to   { opacity: 1; transform: translateX(0)   scale(1); }
}
@keyframes cn26-toast-out {
  from { opacity: 1; transform: translateX(0)   scale(1); }
  to   { opacity: 0; transform: translateX(28px) scale(.96); }
}

.cn26-toast-ico {
  flex: none;
  width: 28px; height: 28px;
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 16px;
}
.cn26-toast.cn26-toast-success .cn26-toast-ico { background: rgba(34,197,94,.16);  color: #15803d; }
.cn26-toast.cn26-toast-info    .cn26-toast-ico { background: rgba(124,107,255,.16); color: #5b21b6; }
.cn26-toast.cn26-toast-warn    .cn26-toast-ico { background: rgba(245,158,11,.18); color: #b45309; }
.cn26-toast.cn26-toast-error   .cn26-toast-ico { background: rgba(239,68,68,.18);  color: #b91c1c; }

.cn26-toast-body { flex: 1; min-width: 0; }
.cn26-toast-title { font-weight: 600; color: #0f172a; margin-bottom: 1px; }
.cn26-toast-msg { color: #475569; }
.cn26-toast-action {
  margin-top: 8px;
  background: transparent;
  border: 0;
  font: 600 12px/1 ui-sans-serif, system-ui, sans-serif;
  color: #7c6bff;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  display: inline-block;
}
.cn26-toast-action:hover { text-decoration: underline; }
.cn26-toast-close {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  padding: 2px 4px;
  margin-left: 4px;
  font-size: 14px;
  line-height: 1;
  border-radius: 4px;
}
.cn26-toast-close:hover { background: rgba(15,23,42,.06); color: #0f172a; }

/* Progress bar (timeout countdown) */
.cn26-toast-progress {
  position: absolute;
  bottom: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, #7c6bff, #ff6bc4);
  transform-origin: left;
  animation: cn26-toast-progress linear forwards;
}
@keyframes cn26-toast-progress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
  .cn26-toast {
    background: rgba(20,23,40,.92);
    color: #e2e8f0;
    border-color: rgba(255,255,255,.10);
  }
  .cn26-toast-title { color: #f1f5f9; }
  .cn26-toast-msg { color: #94a3b8; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cn26-toast { animation: none !important; }
  .cn26-toast-progress { animation: none !important; transform: scaleX(1); }
}

/* ============================================================================
   LAYER 9 — wave 110 / BURST_1053
   First-time onboarding tour overlay.
   ============================================================================ */

#cn26-tour-overlay {
  position: fixed;
  inset: 0;
  z-index: 9500;
  pointer-events: none;
}
#cn26-tour-overlay[hidden] { display: none !important; }

/* Dim layer with cutout (clip-path generates the spotlight hole) */
#cn26-tour-overlay .cn26-tour-dim {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,.72);
  backdrop-filter: blur(3px) saturate(120%);
  -webkit-backdrop-filter: blur(3px) saturate(120%);
  pointer-events: auto;
  transition: clip-path .35s cubic-bezier(.16,1,.3,1);
}

/* Spotlight border glow around the cutout */
#cn26-tour-overlay .cn26-tour-spot {
  position: absolute;
  border-radius: 14px;
  box-shadow:
    0 0 0 4px rgba(124,107,255,.65),
    0 0 0 9px rgba(124,107,255,.32),
    0 0 32px rgba(124,107,255,.55);
  pointer-events: none;
  transition: top .35s cubic-bezier(.16,1,.3,1),
              left .35s cubic-bezier(.16,1,.3,1),
              width .35s cubic-bezier(.16,1,.3,1),
              height .35s cubic-bezier(.16,1,.3,1);
}

/* Tooltip card */
#cn26-tour-overlay .cn26-tour-card {
  position: absolute;
  background: rgba(255,255,255,.98);
  color: #0f172a;
  border-radius: 14px;
  padding: 18px 20px;
  width: min(360px, calc(100vw - 44px));
  box-shadow: 0 8px 24px rgba(15,23,42,.18), 0 32px 80px rgba(15,23,42,.30);
  pointer-events: auto;
  font: 400 14px/1.5 ui-sans-serif, system-ui, sans-serif;
  border: 1px solid rgba(255,255,255,.6);
  transition: top .35s cubic-bezier(.16,1,.3,1),
              left .35s cubic-bezier(.16,1,.3,1),
              opacity .25s ease;
}
#cn26-tour-overlay .cn26-tour-card.cn26-tour-card-fade {
  opacity: 0;
}

#cn26-tour-overlay .cn26-tour-eyebrow {
  display: inline-block;
  font: 600 10px/1 ui-sans-serif, system-ui, sans-serif;
  text-transform: uppercase;
  letter-spacing: .08em;
  background: linear-gradient(135deg, #7c6bff, #ff6bc4);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 6px;
}
#cn26-tour-overlay .cn26-tour-title {
  font: 600 17px/1.3 ui-sans-serif, system-ui, sans-serif;
  letter-spacing: -.01em;
  color: #0f172a;
  margin: 0 0 6px;
}
#cn26-tour-overlay .cn26-tour-msg {
  color: #475569;
  margin: 0 0 16px;
  font-size: 13.5px;
}
#cn26-tour-overlay .cn26-tour-kbd {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: linear-gradient(135deg, #0f172a, #1e293b);
  color: #fff;
  border-radius: 6px;
  font: 600 12px ui-monospace, Menlo, monospace;
  margin: 0 2px;
}

#cn26-tour-overlay .cn26-tour-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
}
#cn26-tour-overlay .cn26-tour-progress {
  font: 500 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
}
#cn26-tour-overlay .cn26-tour-actions { display: flex; gap: 6px; }
#cn26-tour-overlay .cn26-tour-btn {
  padding: 8px 14px;
  border: 1px solid rgba(15,23,42,.10);
  background: #fff;
  border-radius: 8px;
  font: 500 13px/1 ui-sans-serif, system-ui, sans-serif;
  color: #0f172a;
  cursor: pointer;
  transition: background .12s ease, transform .12s ease;
}
#cn26-tour-overlay .cn26-tour-btn:hover { background: #f1f5f9; transform: translateY(-1px); }
#cn26-tour-overlay .cn26-tour-btn-primary {
  background: linear-gradient(135deg, #7c6bff, #6b5cf0);
  color: #fff;
  border: 0;
  box-shadow: 0 4px 12px rgba(124,107,255,.30);
}
#cn26-tour-overlay .cn26-tour-btn-primary:hover {
  box-shadow: 0 6px 18px rgba(124,107,255,.42);
}
#cn26-tour-overlay .cn26-tour-skip {
  background: transparent;
  border: 0;
  color: #94a3b8;
  cursor: pointer;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  padding: 4px 6px;
}
#cn26-tour-overlay .cn26-tour-skip:hover { color: #475569; }

/* Dark mode */
@media (prefers-color-scheme: dark) {
  #cn26-tour-overlay .cn26-tour-card {
    background: rgba(20,23,40,.96);
    color: #e2e8f0;
    border-color: rgba(255,255,255,.10);
  }
  #cn26-tour-overlay .cn26-tour-title { color: #f1f5f9; }
  #cn26-tour-overlay .cn26-tour-msg { color: #94a3b8; }
  #cn26-tour-overlay .cn26-tour-btn { background: rgba(20,23,40,.6); color: #e2e8f0; border-color: rgba(255,255,255,.12); }
  #cn26-tour-overlay .cn26-tour-btn:hover { background: rgba(255,255,255,.08); }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #cn26-tour-overlay .cn26-tour-card,
  #cn26-tour-overlay .cn26-tour-spot,
  #cn26-tour-overlay .cn26-tour-dim { transition: none !important; }
}

/* ============================================================================
   LAYER 10 — wave 112 / BURST_1055 — The Choral Unification
   Every system listens to every other. Live polling, contextual UI, harmonized tokens.
   ============================================================================ */

/* ---------- TOPBAR LIVE STATUS PILL ---------- */
body.cn-v3-shell #cn26-livepill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 10px;
  margin-right: 12px;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(8px) saturate(160%);
  -webkit-backdrop-filter: blur(8px) saturate(160%);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: 999px;
  font: 500 12px/1 ui-sans-serif, system-ui, sans-serif;
  color: var(--cn26-ink, #0f172a);
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s var(--cn26-ease, ease),
              box-shadow .15s ease,
              background .15s ease,
              border-color .2s ease;
  position: relative;
}
body.cn-v3-shell #cn26-livepill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,23,42,.06);
}
body.cn-v3-shell #cn26-livepill .cn26-livedot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex: none;
  position: relative;
  animation: cn26-livedot-pulse 2.4s ease-in-out infinite;
}
@keyframes cn26-livedot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34,197,94,.55); }
  50%      { box-shadow: 0 0 0 4px rgba(34,197,94,0); }
}
body.cn-v3-shell #cn26-livepill .cn26-livecount { font-variant-numeric: tabular-nums; font-weight: 600; }
body.cn-v3-shell #cn26-livepill .cn26-livelbl { color: var(--cn26-ink-soft, #475569); font-weight: 500; }
body.cn-v3-shell #cn26-livepill .cn26-livesep { color: #cbd5e1; }

/* Breach state */
body.cn-v3-shell #cn26-livepill.cn26-livepill-breach {
  background: linear-gradient(135deg, rgba(239,68,68,.10), rgba(239,68,68,.04));
  border-color: rgba(239,68,68,.32);
  color: #b91c1c;
}
body.cn-v3-shell #cn26-livepill.cn26-livepill-breach .cn26-livedot {
  background: #ef4444;
  animation: cn26-livedot-pulse-red 1.6s ease-in-out infinite;
}
body.cn-v3-shell #cn26-livepill.cn26-livepill-breach .cn26-livelbl { color: rgba(185,28,28,.78); }
body.cn-v3-shell #cn26-livepill.cn26-livepill-breach .cn26-livesep { color: rgba(239,68,68,.32); }
@keyframes cn26-livedot-pulse-red {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,.65); }
  50%      { box-shadow: 0 0 0 6px rgba(239,68,68,0); }
}

/* Empty state — nobody clocked in */
body.cn-v3-shell #cn26-livepill.cn26-livepill-idle .cn26-livedot {
  background: #cbd5e1;
  animation: none;
}
body.cn-v3-shell #cn26-livepill.cn26-livepill-idle { color: #94a3b8; }

@media (max-width: 640px) {
  body.cn-v3-shell #cn26-livepill .cn26-livesep,
  body.cn-v3-shell #cn26-livepill .cn26-livelbl { display: none; }
}

/* ---------- AI ORB BREACH-AWARE PULSE ---------- */
body.cn-v3-shell #cn26-orb-toggle.cn26-orb-alert {
  filter: drop-shadow(0 8px 24px rgba(239,68,68,.55));
}
body.cn-v3-shell #cn26-orb-toggle.cn26-orb-alert::after {
  content: "";
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid #ef4444;
  animation: cn26-orb-alert-ring 1.8s ease-out infinite;
  pointer-events: none;
}
@keyframes cn26-orb-alert-ring {
  0%   { transform: scale(.9); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ---------- DASHBOARD LIVE SEGMENT (extends .cn26-today) ---------- */
body.cn-v3-shell .cn26-today .cn26-now {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  margin-left: 10px;
  background: rgba(34,197,94,.10);
  border: 1px solid rgba(34,197,94,.28);
  border-radius: 999px;
  font: 600 11px/1 ui-sans-serif, system-ui, sans-serif;
  color: #15803d;
  text-decoration: none;
}
body.cn-v3-shell .cn26-today .cn26-now .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: cn26-livedot-pulse 2s ease-in-out infinite;
}
body.cn-v3-shell .cn26-today .cn26-now.cn26-now-breach {
  background: rgba(239,68,68,.10);
  border-color: rgba(239,68,68,.32);
  color: #b91c1c;
}
body.cn-v3-shell .cn26-today .cn26-now.cn26-now-breach .dot { background: #ef4444; }
body.cn-v3-shell .cn26-today .cn26-now:hover { transform: translateY(-1px); }

/* ---------- HARMONIZED DESIGN TOKENS (canonical) ---------- */
/* These are the single source of truth that all components reference */
:root {
  --cn26-brand-primary: #7c6bff;
  --cn26-brand-secondary: #ff6bc4;
  --cn26-brand-accent: #5fd2ff;
  --cn26-brand-warm: #ffc46b;
  --cn26-success: #22c55e;
  --cn26-danger: #ef4444;
  --cn26-warn: #f59e0b;
  --cn26-grad-primary: linear-gradient(135deg, var(--cn26-brand-primary), #6b5cf0);
  --cn26-grad-rainbow: linear-gradient(90deg, var(--cn26-brand-primary), var(--cn26-brand-secondary), var(--cn26-brand-accent));
  --cn26-shadow-1: 0 1px 3px rgba(15,23,42,.04), 0 4px 12px rgba(15,23,42,.06);
  --cn26-shadow-2: 0 4px 14px rgba(15,23,42,.06), 0 18px 40px rgba(15,23,42,.08);
  --cn26-shadow-3: 0 8px 24px rgba(15,23,42,.10), 0 32px 80px rgba(15,23,42,.16);
  --cn26-ring-focus: 0 0 0 4px rgba(124,107,255,.14);
  --cn26-trans-snap: 120ms cubic-bezier(.16,1,.3,1);
  --cn26-trans-flow: 250ms cubic-bezier(.16,1,.3,1);
  --cn26-trans-slow: 550ms cubic-bezier(.16,1,.3,1);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  body.cn-v3-shell #cn26-livepill .cn26-livedot,
  body.cn-v3-shell #cn26-orb-toggle.cn26-orb-alert::after,
  body.cn-v3-shell .cn26-today .cn26-now .dot { animation: none !important; }
  body.cn-v3-shell #cn26-livepill { transition: none !important; }
}


/* EE-005 — Big Blue ink. */
/* For Tom Ryan, IBM Big Blue, Rochester MN — the man whose IBM credentials let his godson into the clean rooms */
/* The hex stays #0A1628. Only the alias and this comment carry the meaning. */
:root { --big-blue: #0A1628; }
