.hidden { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

.app-shell {
  display: grid;
  grid-template-columns: var(--fx-sidebar-w) 1fr;
  grid-template-rows: 100%;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.shell-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }

/* AppBar grow + MuiAppBar from app/components/AppBar/styles/appBar.styles.ts:
   - grow: height '64px', zIndex 1300 (line 11-18 of source).
   - appBar: width 'calc(100% - 72px)' (line 19-24).
   - toolbar_gutters paddingLeft: '15px' (line 62-66).
   Header is inside the shell-main grid column (1fr after 72px sidebar), so
   width is already calc(100% - 72px) by layout. */
.app-header {
  height: var(--fx-header-h);
  min-height: var(--fx-header-h);
  background: var(--fx-white);
  /* Production MuiAppBar has boxShadow: 'none' (appBar.styles.ts:23) and no
     border-bottom — visual separation comes from sidebar/content bg contrast. */
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  z-index: 1300;
}

.header-left { display: flex; align-items: center; gap: 16px; }
.header-right { display: flex; align-items: center; gap: 12px; }

.header-logo {
  width: 34px; height: 38px;
  background: var(--fx-primary-main);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 11px;
}

/* MuiBreadcrumbs from app/components/AppBar/content/Breadcrumbs.tsx. Items are
   Typography body1 (14/24/normal/0.15), separator is ArrowForwardIosRounded
   (width 10px), last crumb fontWeight 600 + text.primary, non-last is a Link
   color=inherit. */
.header-breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; line-height: 24px; letter-spacing: 0.15px;
  color: var(--fx-body);
}
.header-breadcrumb a { color: inherit; text-decoration: none; }
.header-breadcrumb a:hover { text-decoration: underline; }
.header-breadcrumb .current { font-weight: 600; color: var(--fx-title); }
/* Breadcrumb separator — production uses ArrowForwardIosRounded width 10
   (Breadcrumbs.tsx:43). chevron_right at 12px matches the visual weight. */
.header-breadcrumb .crumb-sep {
  font-size: 12px !important;
  color: var(--fx-greyscale-400);
  font-weight: 600;
}

.header-workspace-label {
  font-size: 12px; font-weight: 600; color: var(--fx-primary-500);
  background: rgba(86,135,147,.08); border-radius: 6px; padding: 4px 10px;
}

.header-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--fx-primary-100); color: var(--fx-primary-500);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
}

/* Production-style icon buttons in the header (match @mui/material IconButton spacing) */
.header-icon-btn {
  position: relative;
  width: 40px; height: 40px;
  border: 0; border-radius: 50%;
  background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  color: var(--fx-primary-main);
  transition: background-color .15s, transform .12s ease;
}
.header-icon-btn:hover { background: rgba(86,135,147,.08); }
.header-icon-btn:active { transform: scale(.94); }
.header-icon-btn:focus-visible { outline: 2px solid rgba(86,135,147,.45); outline-offset: 2px; }
.header-icon-btn .icon { color: var(--fx-primary-main); }
.header-icon-btn img { display: block; }

/* account/profile_circle.svg from CDN — match production AppBar account icon
   (app/components/AppBar/AppBar.tsx line 285). */
.header-avatar-btn { background: transparent; }
.header-avatar-btn:hover { background: rgba(86,135,147,.08); }

/* Notification badge (production uses MUI Badge with #6FCF97 green) */
/* MuiBadge from app/components/AppBar/AppBar.tsx:257-269:
   top:5, right:6, width 16 height 16, font-size 10px, bg #6FCF97. */
.header-badge {
  position: absolute;
  top: 5px; right: 6px;
  min-width: 16px; height: 16px;
  border-radius: 50%;
  background: #6FCF97;
  color: white;
  font-size: 10px; font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 4px;
  pointer-events: none;
}

.icon { font-family: 'Material Icons Outlined' !important; font-size: 20px; color: var(--fx-body); text-transform: none !important; letter-spacing: normal !important; font-weight: normal !important; font-style: normal !important; word-wrap: normal; white-space: nowrap; direction: ltr; font-feature-settings: 'liga'; display: inline-block; line-height: 1; }

/* Layout from app/components/Layout/Layout.tsx LayoutStyled lines 56-72:
   default padding '19px 15px 15px' (top right/left bottom). subbar variant
   uses '85px 15px 15px 15px'. paddingLeft is also 15. Background = greyscale
   contrastText (#f7f7f7) — already set on body. */
#content-root {
  flex: 1;
  overflow: auto;
  padding: 19px 15px 15px;
  background: var(--fx-page-bg);
}
/* Home = viewport-locked mission control.
   content-root itself becomes the flex column — no extra wrapper div. */
#content-root.content-home {
  padding: 0 !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
}

/* ════════════════════════════════════════════════════════════════════════
   PASS 1 — Visual gravity
   PASS 2 — Aliveness
   PASS 3 — Architecture (Right-now block + floating ask)
   ═══════════════════════════════════════════════════════════════════════ */

/* ── HERO — 200px commanding presence ─────────────────────────────────── */
/* ─── Hero — premium 2026 agentic design ─────────────────────────────── */
.hmc-hero {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 44px;
  padding: 38px 56px;
  min-height: 240px;
  height: 240px;
  flex-shrink: 0;
  background: #050D10;
  position: relative;
  overflow: hidden;
}
/* Deep atmospheric layered background */
.hmc-hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 130% 150% at -5% 50%, rgba(86,135,147,.24) 0%, transparent 52%),
    radial-gradient(ellipse 70% 90% at 108% 15%, rgba(39,174,96,.09) 0%, transparent 50%),
    radial-gradient(ellipse 50% 70% at 55% 115%, rgba(86,135,147,.12) 0%, transparent 50%),
    linear-gradient(160deg, #0A1B22 0%, #081519 40%, #0C1F28 100%);
  pointer-events: none;
}
/* Dot-grid overlay with fade edges */
.hmc-hero-grid {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(86,135,147,.1) 1px, transparent 1px);
  background-size: 26px 26px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 15%, black 85%, transparent 100%);
}
/* Scanning sweep line — crisp single pixel */
.hmc-hero::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; width: 1px;
  background: linear-gradient(180deg, transparent 0%, rgba(86,135,147,.8) 30%, rgba(39,174,96,.6) 65%, transparent 100%);
  animation: heroScan 10s cubic-bezier(.4,0,.6,1) infinite;
  pointer-events: none;
}
@keyframes heroScan {
  0%   { left: -2px; opacity: 0; }
  6%   { opacity: 1; }
  94%  { opacity: 1; }
  100% { left: calc(100% + 2px); opacity: 0; }
}
/* Bottom accent line */
.hmc-hero-line {
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(86,135,147,.65) 25%, rgba(39,174,96,.45) 55%, rgba(86,135,147,.25) 80%, transparent 100%);
  pointer-events: none;
}
/* Aurora blobs — slow-moving atmospheric depth */
.hmc-hero-glow { position: absolute; pointer-events: none; width: 100%; height: 100%; }
.hmc-hero-glow::before {
  content: '';
  position: absolute;
  left: 30px; top: -70px;
  width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(86,135,147,.22) 0%, transparent 60%);
  animation: auroraA 14s ease-in-out infinite;
}
.hmc-hero-glow::after {
  content: '';
  position: absolute;
  right: 80px; bottom: -90px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(39,174,96,.11) 0%, transparent 60%);
  animation: auroraB 18s ease-in-out infinite;
}
@keyframes auroraA {
  0%,100% { transform: translate(0,0) scale(1); opacity:.85; }
  35% { transform: translate(22px,-18px) scale(1.07); opacity:1; }
  70% { transform: translate(-12px,10px) scale(.96); opacity:.75; }
}
@keyframes auroraB {
  0%,100% { transform: translate(0,0) scale(1); opacity:.6; }
  50% { transform: translate(-28px,-22px) scale(1.1); opacity:.85; }
}

/* ── Left: identity ──────────────────────────────────────────── */
.hmc-hero-left {
  display: flex; align-items: center; gap: 26px;
  position: relative; z-index: 1;
}
.hmc-hero-av { position: relative; flex-shrink: 0; }
/* Two concentric rings */
.hmc-hero-av-ring {
  position: absolute; inset: -10px; border-radius: 22px;
  border: 1px solid rgba(86,135,147,.28);
  animation: heroRingPulse 3.5s ease-in-out infinite;
}
.hmc-hero-av-ring::after {
  content: '';
  position: absolute; inset: -8px; border-radius: 28px;
  border: 1px solid rgba(86,135,147,.1);
  animation: heroRingPulse 3.5s ease-in-out infinite .9s;
}
@keyframes heroRingPulse {
  0%,100% { opacity:.3; transform:scale(1); }
  50% { opacity:.7; transform:scale(1.03); }
}
.hmc-hero-av .fxn-avatar {
  width: 72px !important; height: 72px !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(86,135,147,.45),
    0 6px 20px rgba(0,0,0,.55),
    0 0 40px rgba(86,135,147,.18);
}
.hmc-hero-pulse {
  position: absolute; bottom: -5px; right: -5px;
  width: 17px; height: 17px; border-radius: 50%;
  background: #27AE60;
  border: 2.5px solid #050D10;
  box-shadow: 0 0 0 3px rgba(39,174,96,.22), 0 0 16px rgba(39,174,96,.55);
  animation: agentPulse 2.2s ease-out infinite;
}
.hmc-hero-identity { display: flex; flex-direction: column; gap: 1px; }
.hmc-hero-greeting {
  font: 700 34px/42px "Open Sans", sans-serif;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 5px;
}
.hmc-hero-sub {
  font: 400 13px/18px "Open Sans", sans-serif;
  color: rgba(255,255,255,.38);
  margin-bottom: 14px;
  letter-spacing: 0.15px;
}
/* Status pill */
.hmc-hero-status-pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 14px 5px 10px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  font: 500 11px/15px "Open Sans", sans-serif;
  color: rgba(255,255,255,.5);
  letter-spacing: 0.2px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.hmc-hero-led {
  width: 6px; height: 6px; border-radius: 50%;
  background: #27AE60;
  box-shadow: 0 0 8px rgba(39,174,96,.9);
  animation: agentPulse 2s ease-out infinite;
  flex-shrink: 0;
}
.hmc-hero-status-val { color: #6FCF97; font-weight: 600; }
.hmc-hero-status-sep { color: rgba(255,255,255,.2); }
.hmc-hero-status-time { color: rgba(255,255,255,.3); }
.hmc-hero-since { display: none; }

/* ── Hero KPI glass card ─────────────────────────────────────────── */
.hmc-hero-kpis {
  display: flex; align-items: center;
  position: relative; z-index: 1;
}
.hmc-hero-kpi-glass {
  display: flex; align-items: center;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.1);
  border-top: 1px solid rgba(255,255,255,.14);
  border-radius: 18px;
  padding: 26px 36px;
  gap: 0;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 4px 32px rgba(0,0,0,.25),
    inset 0 1px 0 rgba(255,255,255,.1),
    inset 0 -1px 0 rgba(0,0,0,.1);
}
.hmc-hero-kpi { text-align: center; padding: 0 32px; }
.hmc-hero-kpi:first-child { padding-left: 0; }
.hmc-hero-kpi:last-child  { padding-right: 0; }
.hmc-hkpi-val {
  font: 800 52px/58px "Open Sans", sans-serif;
  letter-spacing: -1.5px;
  color: #ffffff;
  white-space: nowrap; text-align: center;
}
.hmc-hkpi-green { color: #6FCF97 !important; }
.hmc-hkpi-amber { color: #F7C08F !important; }
.hmc-hkpi-lbl {
  font: 500 10px/13px "Open Sans", sans-serif;
  letter-spacing: 0.9px; text-transform: uppercase;
  color: rgba(255,255,255,.32);
  margin-top: 7px; white-space: nowrap; text-align: center;
}
.hmc-hero-vdiv {
  width: 1px; height: 52px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,.15), transparent);
  margin: 0 4px;
}
.hmc-hero-right {
  display: flex; flex-direction: column; align-items: flex-end; gap: 12px;
  position: relative; z-index: 1;
}
.hmc-hero-cta {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(86,135,147,.85);
  color: #ffffff; border-radius: 999px; padding: 13px 26px;
  font: 600 13px/18px "Open Sans", sans-serif;
  letter-spacing: 0.3px; text-decoration: none; cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  transition: background .15s, transform .12s, box-shadow .15s;
  box-shadow: 0 2px 12px rgba(86,135,147,.3);
}
.hmc-hero-cta:hover {
  background: #568793; transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(86,135,147,.5), 0 0 0 4px rgba(86,135,147,.12);
}
.hmc-hero-cta .icon { font-size: 16px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.hmc-all-clear {
  display: inline-flex; align-items: center; gap: 7px;
  color: #6FCF97; font: 600 13px/18px "Open Sans", sans-serif;
  padding: 11px 20px; background: rgba(39,174,96,.08);
  border: 1px solid rgba(39,174,96,.2); border-radius: 999px;
}
.hmc-hero-risk {
  font: 600 12px/16px "Open Sans", sans-serif; color: #F7C08F;
  padding: 5px 14px; background: rgba(242,153,74,.1);
  border: 1px solid rgba(242,153,74,.2); border-radius: 999px;
}

/* ── GRID: flex row, fills below hero ─────────────────────────────────── */
.hmc-grid {
  display: flex;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

/* ── COL 1: Invoices / Reconciliations ───────────────────────────────── */
.hmc-left {
  width: 360px;
  flex-shrink: 0;
  border-right: 1px solid #EEF0F2;
  padding: 20px 16px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-sizing: border-box;
}

/* ── COL 2: AI Interaction Feed ──────────────────────────────────────── */
.hmc-center {
  flex: 1; min-width: 0;
  border-right: 1px solid #EEF0F2;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  box-sizing: border-box;
}
.hmc-section-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.hmc-title {
  display: inline-flex; align-items: center; gap: 6px;
  font: 600 14px/20px "Open Sans", sans-serif; letter-spacing: 0.1px; color: #172326; margin: 0;
}
.hmc-badge {
  display: flex; align-items: center; gap: 5px;
  background: rgba(86,135,147,.1); color: var(--fx-primary-500); border-radius: 999px;
  padding: 2px 10px; font: 600 11px/16px "Open Sans", sans-serif; letter-spacing: 0.4px; text-transform: uppercase;
}
.hmc-badge-live .hmc-status-dot { animation: agentPulse 2s ease-out infinite; }

/* Card rank number */
.hmc-card-rank {
  font: 700 11px/14px "Open Sans", sans-serif;
  color: rgba(0,0,0,.2);
  min-width: 16px;
}
/* AI recommendation label */
.hmc-card-rec {
  display: flex; align-items: center; gap: 5px;
  padding: 6px 10px;
  margin: 4px 0 12px;
  background: rgba(86,135,147,.10);
  border-radius: 6px;
  font: 400 11px/15px "Open Sans", sans-serif;
  color: #568793;
}
.hmc-card-rec b { font-weight: 700; color: #2F4F57; }
/* Auto-approve variant (green) */
.hmc-approve-auto {
  background: linear-gradient(135deg, #27AE60 0%, #219150 100%) !important;
  box-shadow: 0 2px 12px rgba(39,174,96,.35) !important;
}
.hmc-approve-auto:hover { background: linear-gradient(135deg, #219150 0%, #1a7a41 100%) !important; }
/* Matching amount */
.hmc-card-amount-ok { display:inline-flex;align-items:center;gap:5px;padding:4px 10px;border-radius:6px;background:rgba(39,174,96,.08);border:1px solid rgba(39,174,96,.2);font:600 14px/20px "Open Sans";color:#27AE60 !important;letter-spacing:0; }

/* Live badge on Fixenator Actions box */
.hmc-act-live-badge {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  font: 700 9px/12px "Open Sans", sans-serif;
  letter-spacing: 0.4px; text-transform: uppercase;
  color: #27AE60;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(39,174,96,.08);
  border: 1px solid rgba(39,174,96,.2);
}

/* PASS 1+2: Decision cards — dominant APPROVE, confidence ring, staggered entrance */
.hmc-card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.06);
  border-left: 4px solid;
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 8px rgba(15,30,38,.05);
  padding: 16px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: box-shadow .2s ease, transform .15s ease;
}
.hmc-card:hover { box-shadow: 0 8px 24px rgba(15,30,38,.1); transform: translateX(2px); }

/* PASS 2: Staggered entrance animation */
.hmc-card-in {
  animation: cardSlideIn .35s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes cardSlideIn {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

.hmc-card-header {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; margin-bottom: 8px;
}
.hmc-card-ids { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hmc-card-id { font: 700 13px/18px "Open Sans", sans-serif; color: var(--fx-primary-500); }

/* PASS 1: Dollar amount — big, confident, the hero of each card */
.hmc-card-amount-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.hmc-card-amount {
  font: 800 28px/34px "Open Sans", sans-serif;
  letter-spacing: -0.8px;
  color: #172326;
}
.hmc-card-at-stake {
  font: 400 12px/16px "Open Sans", sans-serif;
  color: #8B9092;
  letter-spacing: 0.1px;
}
.hmc-card-carrier {
  display: flex; align-items: center; gap: 5px;
  font: 400 11px/16px "Open Sans", sans-serif;
  color: #8B9092;
  margin-bottom: 14px;
}
.hmc-card-carrier .icon { font-size: 13px !important; color: #C5C8C9 !important; }

/* PASS 1: APPROVE — full-width, 44px, impossible to miss */
.hmc-approve-btn {
  width: 100%; height: 44px;
  background: #27AE60;
  color: #ffffff;
  border: 0; border-radius: 8px;
  font: 700 13px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px; text-transform: uppercase;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
  box-shadow: 0 2px 10px rgba(39,174,96,.28);
  margin-bottom: 8px;
}
.hmc-approve-btn .icon { font-size: 16px !important; }
.hmc-approve-btn:hover { background: #219150; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(39,174,96,.38); }
.hmc-approve-btn:active { transform: scale(.98); box-shadow: none; }

.hmc-card-sec-actions {
  display: flex; gap: 4px;
}
.hmc-act-sm {
  display: inline-flex; align-items: center; gap: 3px;
  border-radius: 6px; padding: 5px 8px;
  font: 600 10px/13px "Open Sans", sans-serif; letter-spacing: 0.3px; text-transform: uppercase;
  cursor: pointer; border: 1px solid; transition: all .15s ease;
  flex: 1; justify-content: center; white-space: nowrap;
}
.hmc-act-sm .icon { font-size: 12px !important; }
.hmc-act-sm:active { transform: scale(.96); opacity: .8; }
.hmc-act-send    { background: transparent; color: #568793; border-color: rgba(86,135,147,.3); }
.hmc-act-send:hover { background: rgba(86,135,147,.08); }
.hmc-act-dispute { background: transparent; color: #F2994A; border-color: rgba(242,153,74,.3); }
.hmc-act-dispute:hover { background: rgba(242,153,74,.08); }
.hmc-act-decline { background: transparent; color: #8B9092; border-color: #E0E5EB; }
.hmc-act-decline:hover { color: #ED323B; border-color: rgba(237,50,59,.3); background: rgba(237,50,59,.04); }

.hmc-auto-pill {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(39,174,96,.1); color: #27AE60; border-radius: 999px;
  padding: 1px 8px 1px 6px; font: 600 10px/14px "Open Sans", sans-serif;
  letter-spacing: 0.3px; text-transform: uppercase;
}
.hmc-auto-pill .icon { font-size: 11px !important; }

/* PASS 1: Confidence dual-ring */
.hmc-conf-ring-wrap {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hmc-conf-ring-wrap svg { position: absolute; top: 0; left: 0; transform: rotate(0deg); }
.hmc-conf-ring-val {
  position: relative; z-index: 1;
  font: 700 9px/10px "Open Sans", sans-serif;
}

.hmc-empty {
  display: flex; align-items: flex-start; gap: 14px; padding: 20px 16px;
  background: rgba(39,174,96,.05); border: 1px solid rgba(39,174,96,.15);
  border-left: 4px solid #27AE60; border-radius: 0 8px 8px 0; margin-bottom: 16px;
  font: 400 13px/20px "Open Sans", sans-serif; color: #4F6063;
}
.hmc-empty .icon { font-size: 26px !important; color: #27AE60 !important; flex-shrink: 0; }
.hmc-empty b { font-weight: 700; color: #172326; display: block; margin-bottom: 2px; }

/* Progress card */
.hmc-prog-card {
  background: linear-gradient(90deg, #172326 0%, #2F4F57 100%);
  border-radius: 8px; padding: 16px 18px; margin-top: 16px;
}
.hmc-prog-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.hmc-prog-head .ai-mark .icon   { color: #87ACB6 !important; }
.hmc-prog-head .ai-mark-label   { color: #87ACB6; }
.hmc-prog-pct { font: 700 19px/28px "Open Sans", sans-serif; color: #ffffff; }
.hmc-prog-track { height: 6px; background: rgba(255,255,255,.15); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.hmc-prog-fill  { height: 100%; background: linear-gradient(90deg, var(--fx-primary-500) 0%, #27AE60 100%); border-radius: 999px; transition: width 1.2s cubic-bezier(.2,.7,.2,1); position: relative; overflow: hidden; }
.hmc-prog-fill::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0; left: -60%;
  width: 60%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  animation: progShimmer 2.5s ease-in-out infinite;
}
@keyframes progShimmer {
  0%   { left: -60%; }
  100% { left: 140%; }
}
.hmc-prog-meta  { font: 400 11px/16px "Open Sans", sans-serif; letter-spacing: 0.1px; color: rgba(255,255,255,.6); }

/* ── RIGHT: activity column ────────────────────────────────────────────── */
/* ── RIGHT: Unified activity feed ─────────────────────────────────────── */
.hmc-right {
  flex: 1; min-width: 0;
  padding: 20px 24px;
  display: flex; flex-direction: column;
  background: #ffffff;
  overflow-y: auto;
  box-sizing: border-box;
}

/* PASS 3: "Right now" live task block */
.hmc-now-card {
  background: linear-gradient(135deg, #172326 0%, #1E3038 100%);
  border-radius: 8px; padding: 16px 18px;
  border: 1px solid rgba(86,135,147,.2);
  animation: fxCardIn .4s cubic-bezier(.2,.7,.2,1);
  flex-shrink: 0;
}
.hmc-now-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px;
}
.hmc-now-head .fxn-avatar { border-radius: 6px !important; }
.hmc-now-label {
  flex: 1;
  font: 700 12px/16px "Open Sans", sans-serif; letter-spacing: 0.5px;
  text-transform: uppercase; color: rgba(255,255,255,.55);
}
.hmc-now-live {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(39,174,96,.12); color: #27AE60; border-radius: 999px;
  padding: 2px 10px 2px 8px; font: 600 11px/16px "Open Sans", sans-serif;
  letter-spacing: 0.5px; text-transform: uppercase;
}
.hmc-now-task {
  font: 500 14px/20px "Open Sans", sans-serif; color: #ffffff; margin-bottom: 12px;
}
.hmc-now-task b { font-weight: 700; }
.hmc-now-track {
  height: 4px; background: rgba(255,255,255,.12); border-radius: 999px; overflow: hidden; margin-bottom: 8px;
}
.hmc-now-fill {
  height: 100%; background: linear-gradient(90deg, #568793 0%, #27AE60 100%);
  border-radius: 999px;
  animation: nowFill 1.4s cubic-bezier(.2,.7,.2,1);
}
@keyframes nowFill { from { width: 0; } }
.hmc-now-meta { font: 400 11px/16px "Open Sans", sans-serif; color: rgba(255,255,255,.6); letter-spacing: 0.1px; }

/* Activity stream */
.hmc-stream { display: flex; flex-direction: column; margin-bottom: 18px; }
.hmc-srow {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px; border-left: 3px solid;
  background: #ffffff; border-radius: 0 8px 8px 0;
  box-shadow: 0 1px 4px rgba(15,30,38,.04); margin-bottom: 6px;
  transition: box-shadow .15s ease, opacity .15s ease;
}
.hmc-srow:not(.hmc-srow-active) { opacity: 0.72; }
.hmc-srow-active { background: rgba(86,135,147,.05); border-left-width: 4px !important; }
.hmc-srow:hover { box-shadow: 0 3px 10px rgba(15,30,38,.08); opacity: 1; }
.hmc-sicon { flex-shrink: 0; margin-top: 2px; width: 22px; display: flex; align-items: flex-start; justify-content: center; }
.hmc-sicon .icon { font-size: 18px !important; line-height: 20px !important; }
.hmc-sbody { flex: 1; min-width: 0; }
.hmc-stext { font: 400 13px/18px "Open Sans", sans-serif; color: #2F4F57; }
.hmc-stext b { font-weight: 700; color: #172326; }
.hmc-srow-active .hmc-stext { font-weight: 500; }
.hmc-stime { font: 400 11px/16px "Open Sans", sans-serif; color: #8B9092; margin-top: 2px; }

/* Insights card */
.hmc-insight-card {
  background: #172326; border-radius: 8px; padding: 18px 22px;
}
.hmc-insight-row { display: flex; align-items: center; }
.hmc-ic { flex: 1; text-align: center; }
.hmc-ic-val { font: 700 22px/28px "Open Sans", sans-serif; color: #ffffff; letter-spacing: 0.15px; white-space: nowrap; }
.hmc-ic-lbl { font: 400 10px/14px "Open Sans", sans-serif; letter-spacing: 0.4px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 3px; }
.hmc-ivdiv { width: 1px; height: 32px; background: rgba(255,255,255,.1); }
.hmc-live { display: inline-flex; align-items: center; gap: 6px; background: rgba(39,174,96,.1); color: #27AE60; border-radius: 999px; padding: 2px 10px 2px 8px; font: 600 11px/16px "Open Sans", sans-serif; letter-spacing: 0.5px; text-transform: uppercase; }

/* PASS 3: Floating ask bar — always accessible, Claude-style */
.hmc-float-ask {
  position: fixed;
  bottom: 24px;
  left: calc(72px + (100vw - 72px) / 2);
  transform: translateX(-50%);
  width: min(680px, calc(100vw - 72px - 48px));
  z-index: 1800;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 2px solid #E0E5EB;
  border-radius: 999px;
  padding: 6px 6px 6px 14px;
  box-shadow: 0 16px 48px rgba(15,30,38,.2), 0 2px 8px rgba(15,30,38,.08);
  animation: floatAskIn .38s cubic-bezier(.2,.7,.2,1);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.hmc-float-ask:focus-within {
  border-color: var(--fx-primary-500);
  box-shadow: 0 16px 48px rgba(15,30,38,.22), 0 0 0 4px rgba(86,135,147,.12);
}
@keyframes floatAskIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.hmc-float-ask .fxn-avatar { border-radius: 999px !important; flex-shrink: 0; }
.hmc-float-input {
  flex: 1; border: 0; outline: none; background: transparent;
  font: 400 14px/24px "Open Sans", sans-serif; color: #172326;
  min-width: 0;
}
.hmc-float-input::placeholder { color: #8B9092; }
.hmc-float-send {
  width: 44px; height: 44px; background: var(--fx-primary-500); color: #ffffff;
  border: 0; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: background .15s ease, transform .12s ease;
}
.hmc-float-send:hover { background: var(--fx-primary-700); transform: scale(1.06); }
.hmc-float-send .icon { font-size: 20px !important; }

/* ── Header popovers (hdr-popover was lost during common.css rewrite) ─── */
.hdr-popover {
  display: none;           /* hidden by default — JS adds .open to show */
  position: absolute;
  top: 56px;
  right: 0;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #E0E5EB;
  box-shadow: 0 12px 32px rgba(15,30,38,.16);
  z-index: 1500;
  animation: fxPop .22s cubic-bezier(.2,.7,.2,1);
}
.hdr-popover.open { display: block; }
.hdr-popover-arrow {
  position: absolute; top: -7px; right: 20px;
  width: 12px; height: 12px;
  background: #ffffff;
  border-top: 1px solid #E0E5EB;
  border-left: 1px solid #E0E5EB;
  transform: rotate(45deg);
}
.hdr-popover-header {
  font: 600 13px/18px "Open Sans", sans-serif; color: #172326;
  padding: 12px 16px 8px; border-bottom: 1px solid #F0F2F5;
}
/* Currency popover */
.hdr-popover-currency { width: 200px; padding-bottom: 8px; }
.hdr-currency-list { padding: 8px; }
.hdr-currency-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 10px; border: 0; background: transparent;
  border-radius: 6px; cursor: pointer; font: 500 14px/20px "Open Sans"; color: #172326;
  transition: background .15s ease;
}
.hdr-currency-item:hover { background: rgba(86,135,147,.08); }
.hdr-currency-item.active { background: rgba(86,135,147,.1); color: var(--fx-primary-500); font-weight: 600; }
.hdr-cur-sym { font: 700 18px/24px "Open Sans"; width: 24px; text-align: center; }
/* Notifications popover */
.hdr-popover-notif { width: 400px; }
.hdr-notif-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid #F0F2F5; }
.hdr-notif-mark { font: 600 11px/16px "Open Sans"; letter-spacing: 0.4px; text-transform: uppercase; color: var(--fx-primary-500); cursor: pointer; transition: color .12s; }
.hdr-notif-list { max-height: 360px; overflow-y: auto; }
.hdr-notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #F5F7F8; cursor: pointer; transition: background .12s; }
.hdr-notif-item:hover { background: rgba(86,135,147,.04); }
.hdr-notif-unread { background: rgba(86,135,147,.03); }
.hdr-notif-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hdr-notif-icon .icon { font-size: 18px !important; }
.hdr-notif-icon-blue   { background: rgba(45,156,219,.12); color: #2D9CDB; }
.hdr-notif-icon-green  { background: rgba(39,174,96,.12);  color: #27AE60; }
.hdr-notif-icon-orange { background: rgba(242,153,74,.12); color: #F2994A; }
.hdr-notif-icon-teal   { background: rgba(86,135,147,.12); color: #568793; }
.hdr-notif-icon-purple { background: rgba(187,107,217,.12);color: #BB6BD9; }
.hdr-notif-body { flex: 1; min-width: 0; }
.hdr-notif-text { font: 400 12px/17px "Open Sans"; color: #2F4F57; }
.hdr-notif-text b { font-weight: 600; color: #172326; }
.hdr-notif-time { font: 400 10px/14px "Open Sans"; color: #A8B4B8; margin-top: 3px; }
.hdr-notif-viewall { display: block; text-align: center; padding: 10px; font: 600 11px/16px "Open Sans"; letter-spacing: 0.4px; text-transform: uppercase; color: var(--fx-primary-500); cursor: pointer; }
/* Account popover */
.hdr-popover-account { width: 440px; padding: 14px 16px; }
.hdr-account-user { font: 500 13px/18px "Open Sans"; color: #4F6063; padding-bottom: 12px; border-bottom: 1px solid #F0F2F5; margin-bottom: 12px; }
.hdr-account-user b { font-weight: 700; color: #172326; }
.hdr-account-user .muted { color: #8B9092; font-weight: 400; }
.hdr-account-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.hdr-account-col { display: flex; flex-direction: column; gap: 2px; }
.hdr-account-section { font: 600 11px/16px "Open Sans"; letter-spacing: 0.5px; text-transform: uppercase; color: #8B9092; margin-bottom: 4px; }
.hdr-account-link { display: flex; align-items: center; gap: 8px; padding: 8px 6px; border-radius: 6px; font: 500 13px/18px "Open Sans"; color: #2F4F57; cursor: pointer; text-decoration: none; transition: background .12s ease; }
.hdr-account-link:hover { background: rgba(86,135,147,.08); color: #172326; }
.hdr-account-link .icon { font-size: 16px !important; color: #8B9092 !important; }
.hdr-account-link-strong { font-weight: 600; color: #EB5757 !important; }
.hdr-account-link-strong .icon { color: #EB5757 !important; }

/* ── AI callout bar (Fixenator commentary on list pages) ────────────── */
.ai-callout {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  background: #E2EEF1;
  border-left: 3px solid var(--fx-primary-500);
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
  animation: fxCardIn .28s cubic-bezier(.2,.7,.2,1);
}
.ai-callout-sep {
  color: rgba(47,79,87,.3);
  font-size: 14px;
  flex-shrink: 0;
}
.ai-callout-text {
  font: 500 12px/16px "Open Sans", sans-serif;
  letter-spacing: 0.1px;
  color: #2F4F57;
  white-space: normal;
}
.ai-callout-text b { font-weight: 700; color: #172326; }

/* ── Fixenator Briefing card (Insights top card) ────────────────────── */
.fx-briefing {
  background: linear-gradient(135deg, #172326 0%, #2F4F57 100%);
  border-radius: 8px;
  padding: 24px;
  margin-bottom: 24px;
  overflow: hidden;
  animation: fxCardIn .38s cubic-bezier(.2,.7,.2,1);
}
.fx-briefing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.fx-briefing-header-left {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0;
}
.fx-briefing-header-right {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0;
}
.fx-briefing-header .ai-mark .icon  { color: #C6DDE2 !important; font-size: 18px !important; }
.fx-briefing-header .ai-mark-label  { color: #C6DDE2; }
.fx-briefing-title {
  flex: 1;
  font: 600 16px/24px "Open Sans", sans-serif;
  color: #ffffff;
  letter-spacing: 0.15px;
}
.fx-briefing-close {
  width: 28px; height: 28px;
  background: rgba(255,255,255,.08);
  border: 0; border-radius: 50%;
  cursor: pointer; color: rgba(255,255,255,.6);
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s ease;
}
.fx-briefing-close:hover { background: rgba(255,255,255,.18); color: #ffffff; }
.fx-briefing-close .icon { font-size: 16px !important; }
.fx-briefing-cron-time {
  display: inline-flex; align-items: center; gap: 4px;
  font: 500 11px/16px "Open Sans"; letter-spacing: 0.3px; color: rgba(255,255,255,.5);
}
.fx-briefing-cron-time .icon { font-size: 14px !important; }
.fx-briefing-body {
  display: grid;
  grid-template-columns: 1fr 240px;
  gap: 24px;
  align-items: center;
}
@media (max-width: 900px) { .fx-briefing-body { grid-template-columns: 1fr; } }
.fx-briefing-stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.fx-bstat {
  display: flex; align-items: center; gap: 8px;
  font: 400 14px/20px "Open Sans", sans-serif; color: rgba(255,255,255,.78);
}
.fx-bstat .icon { font-size: 18px !important; color: #87ACB6 !important; flex-shrink: 0; }
.fx-bstat b { font-weight: 700; color: #ffffff; font-size: 14px; }
.fx-briefing-cta-col {
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  background: rgba(255,255,255,.08); border-radius: 8px; padding: 16px;
}
.fx-briefing-risk-label { font: 600 11px/16px "Open Sans"; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,.6); margin-bottom: 2px; }
.fx-briefing-risk-value { font: 700 19px/28px "Open Sans"; color: #F2994A; letter-spacing: 0.15px; }
.fx-briefing-risk-sub   { font: 400 12px/16px "Open Sans"; color: rgba(255,255,255,.6); }
.fx-briefing-btn {
  display: inline-flex; align-items: center; gap: 6px; width: 100%;
  justify-content: center; background: var(--fx-primary-500) !important;
  border-radius: 999px !important; padding: 10px 20px !important;
  font: 600 12px/16px "Open Sans" !important; letter-spacing: 0.5px;
  text-transform: uppercase; text-decoration: none; color: #ffffff !important;
  transition: background .15s ease;
}
.fx-briefing-btn:hover { background: var(--fx-primary-700) !important; }
.fx-briefing-btn .icon { font-size: 16px !important; }

/* ── Briefing "Key Findings" strip ───────────────────────────────────── */
.fx-briefing-findings-row {
  border-top: 1px solid rgba(255,255,255,.1);
  margin-top: 14px;
  padding-top: 10px;
}
.fx-briefing-findings-label {
  font: 700 10px/14px "Open Sans", sans-serif;
  letter-spacing: 0.6px; text-transform: uppercase;
  color: rgba(255,255,255,.45);
  margin-bottom: 6px;
}
.fx-briefing-findings {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: 6px 24px;
}
.fx-briefing-findings li {
  font: 400 12px/18px "Open Sans", sans-serif;
  color: rgba(255,255,255,.7);
}
.fx-briefing-findings li .fx-bf-star {
  color: #568793;
  font-weight: 700;
  margin-right: 4px;
}
.fx-briefing-findings li b {
  color: #ffffff;
  font-weight: 700;
}

/* ── Fixenator Impact Counter (Insights dark strip) ──────────────────── */
.kpi-fixenator {
  background: linear-gradient(90deg, #172326 0%, #2F4F57 60%, #568793 100%);
  border-radius: 8px;
  padding: 16px 24px;
  margin-bottom: 24px;
  animation: fxCardIn .32s cubic-bezier(.2,.7,.2,1);
}
.kpi-fx-head {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px;
}
.kpi-fx-head .ai-mark .icon  { color: #C6DDE2 !important; font-size: 16px !important; }
.kpi-fx-head .ai-mark-label  { color: #C6DDE2; }
.kpi-fx-period { font: 600 11px/16px "Open Sans"; letter-spacing: 0.5px; text-transform: uppercase; color: rgba(255,255,255,.55); }
.kpi-fx-metrics {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr auto auto;
  align-items: center; gap: 0;
}
.kpi-fx-metric { padding: 0 20px; }
.kpi-fx-metric:first-child { padding-left: 0; }
.kpi-fx-val { font: 700 19px/28px "Open Sans"; color: #ffffff; letter-spacing: 0.15px; white-space: nowrap; }
.kpi-fx-label { font: 400 11px/16px "Open Sans"; letter-spacing: 0.3px; text-transform: uppercase; color: rgba(255,255,255,.55); margin-top: 2px; }
.kpi-fx-divider { width: 1px; height: 36px; background: rgba(255,255,255,.15); }
.kpi-fx-cta { padding-left: 24px; }
.kpi-fx-log {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.12); color: rgba(255,255,255,.85);
  border-radius: 999px; padding: 6px 14px 6px 12px;
  font: 600 11px/16px "Open Sans"; letter-spacing: 0.4px; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; transition: background .15s ease;
}
.kpi-fx-log:hover { background: rgba(255,255,255,.22); color: #ffffff; }
.kpi-fx-log .icon { font-size: 14px !important; }

/* ── Fixenator Activity Feed (Insights activity feed section) ─────────── */
.fx-activity { background: #ffffff; border: 1px solid rgba(0,0,0,.06); border-radius: 8px; padding: 16px 20px; margin-bottom: 24px; box-shadow: 0 4px 18px rgba(86,135,147,.08); }
.fx-activity-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.fx-activity-title { display: inline-flex; align-items: center; gap: 8px; font: 600 14px/20px "Open Sans"; letter-spacing: 0.1px; color: #172326; margin: 0; }
.fx-activity-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(39,174,96,.1); color: #27AE60; border-radius: 999px; padding: 2px 10px 2px 8px; font: 600 11px/16px "Open Sans"; letter-spacing: 0.5px; text-transform: uppercase; }
.fx-dot-pulse { width: 8px; height: 8px; border-radius: 50%; background: #27AE60; animation: agentPulse 2s ease-out infinite; flex-shrink: 0; }
.fx-activity-feed { display: flex; flex-direction: column; gap: 0; }
.fx-act-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #F5F7F8; transition: background .12s ease; }
.fx-act-item:last-child { border-bottom: 0; padding-bottom: 0; }
.fx-act-item:first-child { padding-top: 0; }
.fx-act-icon { width: 28px; height: 28px; border-radius: 6px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fx-act-icon .icon { font-size: 15px !important; }
.fx-act-icon-success { background: rgba(39,174,96,.12);   color: #27AE60; }
.fx-act-icon-info    { background: rgba(86,135,147,.12);  color: #568793; }
.fx-act-icon-warn    { background: rgba(242,153,74,.12);  color: #F2994A; }
.fx-act-body { flex: 1; min-width: 0; }
.fx-act-text { font: 500 13px/18px "Open Sans"; color: #2F4F57; }
.fx-act-text b { font-weight: 700; color: #172326; }
.fx-act-time { font: 400 11px/16px "Open Sans"; color: #8B9092; margin-top: 2px; }


/* ====== RESTORED: shared components, layout, utilities ====== */
.fx-card {
  background: var(--fx-white);
  border-radius: var(--fx-radius);
  border: 1px solid #E8ECEF;
  transition: box-shadow .2s ease, transform .18s ease, border-color .15s;
}
.fx-card:hover { box-shadow: 0 6px 20px rgba(15,30,38,.09); transform: translateY(-1px); border-color: rgba(86,135,147,.2); }

/* MUI Button — Fixefy theme overrides from
   app/node_modules/@fixefy/fixefy-ui-utils/dist/page_context/index.js lines 729-820
   + typography.button (line 932): 14/24/500/0.5, paddingLeft/Right 24,
   text-transform uppercase (MUI default), borderRadius 4 (default for contained,
   100 for outlined per theme variant). */
.fx-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 4px; cursor: pointer;
  font-family: 'Open Sans';
  font-weight: 500; font-size: 14px; line-height: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 8px 24px;
  transition: background .15s, color .15s, box-shadow .15s;
}
.fx-btn-primary {
  background: var(--fx-primary-500); color: white;
  box-shadow: none;
}
.fx-btn-primary:hover { background: var(--fx-primary-700); }
.fx-btn-danger {
  background: var(--fx-danger); color: white;
  box-shadow: none;
}
.fx-btn-danger:hover { opacity: .88; }
/* outlined variant: borderRadius 100, color primary-500, border primary-500. */
.fx-btn-ghost {
  background: transparent;
  color: var(--fx-primary-500);
  border: 1px solid var(--fx-primary-500);
  border-radius: 100px;
}
.fx-btn-ghost:hover { color: var(--fx-primary-700); border-color: var(--fx-primary-700); }
.fx-btn-ghost:disabled { color: var(--fx-greyscale-400); border-color: var(--fx-greyscale-400); cursor: not-allowed; opacity: .6; }
.fx-btn-sm { padding: 6px 16px; font-size: 12px; line-height: 18px; }
/* Material Icons inside buttons must not be uppercased — ligature names are
   lowercase ('check', 'close'); UPPERCASE breaks the glyph lookup. */
.fx-btn .icon { text-transform: none; font-size: 18px; }

/* FxTag (StyledTag + StyledLabel) — colored pill with white label inside.
   Source: app/node_modules/@fixefy/fixefy-ui-components/dist/FxTag/styles/tag.styles.js.
   StyledTag: borderRadius 8, padding '2px 8px', border 1px solid bg, fit-content.
   StyledLabel: typography.body1 (14/24/normal/0.15) + lineHeight 20px, color common.white. */
.fx-tag-wrap { display: inline-flex; align-items: center; gap: 8px; }
.fx-tag {
  display: inline-flex; align-items: center;
  font-family: 'Open Sans';
  font-size: 14px; font-weight: 400; line-height: 20px;
  letter-spacing: 0.15px;
  border-radius: 8px; padding: 2px 8px;
  color: white;
  white-space: nowrap;
  width: fit-content;
}
/* StyledCount (typography.subtitle2 + lineHeight 16px, fontWeight 700, color =
   palette[type][name].background, marginLeft 8px). */
.fx-tag-count {
  font-family: 'Open Sans';
  font-size: 14px; font-weight: 700; line-height: 16px;
  letter-spacing: 0.1px;
}

/* StatusChipStyled = FxChip with type='status'.
   Source: app/node_modules/@fixefy/fixefy-ui-components/dist/FxChip/styles/
   chip.styles.js StatusChipStyled (lines ~55-100):
   height 24, padding 6px 9.6px, borderRadius 60px, box-sizing border-box.
   Label: 10.8px, weight 600, lineHeight normal, letterSpacing 0.24px,
   text-transform capitalize, Open Sans. */
.fx-chip {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  box-sizing: border-box;
  height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  font-family: 'Open Sans';
  font-size: 11px; font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.2px;
  text-transform: capitalize;
  background: #E8F2F4;
  color: var(--fx-primary-500);
  border: 1px solid var(--fx-primary-500);
}

/* FxDiscrepancyBadge / FxMatchingBadge — production exact dimensions.
   Source: app/components/FxDiscrepancyBadge/FxDiscrepancyBadge.tsx
   lines 32-50 (overcharge/undercharge) and 62-80 (matching). */
.fx-badge {
  display: inline-flex; align-items: center; justify-content: center;
  height: 20px;
  padding: 1px 8px 2px 8px;
  border-radius: 51px;
  font-family: 'Open Sans';
  font-size: 10px; font-weight: 600;
  line-height: 16px;
  letter-spacing: 0.1px;
  white-space: nowrap;
}
/* Overcharge: bg #FEF6F6, text #EB5757 (FxDiscrepancyBadge.tsx:39+48). */
.fx-badge-danger  { background: #FEF6F6; color: #EB5757; }
/* Undercharge: bg #F0FFF4, text #27AE60 (FxDiscrepancyBadge.tsx:39+48). */
.fx-badge-info    { background: #F0FFF4; color: #27AE60; }
/* Matching: bg #E8F2F4 light teal, text #2F6B7A (FxDiscrepancyBadge.tsx:69+78). */
.fx-badge-success { background: #E8F2F4; color: #2F6B7A; }

/* Label = theme.typography.overLineCaption + palette.statistics.label.
   Source: app/node_modules/@fixefy/fixefy-ui-components/dist/FxStyledComponents/index.js
   (Label styled component) + ui-utils page_context typography.overLineCaption. */
.label {
  font-size: 11px; line-height: 16px;
  letter-spacing: 0.1px; font-weight: 500;
  text-transform: none;
  color: var(--fx-greyscale-400);
}

/* InfoValueBold = body1 + fontWeight 700 + lineHeight 20px + typography.title color.
   Source: app/modules/AuditFlow/styles/AuditItems.styles.tsx InfoValueBold. */
.value-bold {
  font-size: 14px; font-weight: 700; line-height: 20px;
  letter-spacing: 0.15px;
  color: var(--fx-title);
  overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}

/* Typography variant helpers — matches theme.typography.* from
   app/node_modules/@fixefy/fixefy-ui-utils/dist/page_context/index.js */
.fx-h2 { font-size: 44px; line-height: 64px; font-weight: 400; letter-spacing: 0; }
.fx-h4 { font-size: 25px; line-height: 40px; font-weight: 400; letter-spacing: 0; color: #000; }
.fx-h5 { font-size: 19px; line-height: 28px; font-weight: 500; letter-spacing: 0.15px; }
.fx-body1 { font-size: 14px; line-height: 24px; font-weight: 400; letter-spacing: 0.15px; }
.fx-overline { font-size: 11px; line-height: 16px; font-weight: 400; letter-spacing: 0.1px; }

.filters-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 0; flex-wrap: wrap;
}

/* MuiInputBase root from page_context/index.js:877-918:
   height 40, borderRadius 4, padding spacing(1,2)=8/16, border 1px transparent,
   bg common.white, focus-within border primary[100] (#C6DDE2). */
.fx-input {
  height: 40px; box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px; font-size: 14px;
  background: var(--fx-white);
  outline: none; transition: border-color .2s;
  font-family: var(--fx-font);
  color: var(--fx-title);
}
.fx-input:focus { border-color: var(--fx-primary-100); }
.fx-input::placeholder { color: var(--fx-greyscale-400); }

/* MuiSelect inherits MuiInputBase root: height 40, radius 4, transparent
   border, padding 8/16, bg white. Source: page_context.js:877-918. */
.fx-select {
  height: 40px; box-sizing: border-box;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 8px 16px; font-size: 14px;
  background: var(--fx-white);
  font-family: var(--fx-font); color: var(--fx-title); cursor: pointer;
}
.fx-select:focus { outline: none; border-color: var(--fx-primary-100); }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td {
  font-size: 12px; text-align: left; padding: 11px 14px;
  border-bottom: 1px solid #F0F3F5;
}
.data-table th {
  font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  font-size: 11px; color: #8B9092;
  cursor: pointer; user-select: none;
  background: #FAFBFC; position: sticky; top: 0; z-index: 1;
  border-bottom: 1px solid #E8ECEF;
}
.data-table th:hover { color: var(--fx-primary-500); }
.data-table tbody tr { cursor: pointer; transition: background .12s; }
.data-table tbody tr:hover { background: rgba(86,135,147,.04); }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(23,35,38,.5);
  display: flex; align-items: center; justify-content: center; z-index: 1300;
  animation: fadeIn .15s;
}
.modal-card {
  width: min(560px, 94vw); background: var(--fx-white);
  border-radius: var(--fx-radius-lg); padding: 24px;
  box-shadow: 0 24px 48px rgba(23,35,38,.18);
}
.modal-card h3 { margin: 0 0 12px; font-size: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* page-title now mirrors Typography variant='h4' from theme.typography
   (app/node_modules/@fixefy/fixefy-ui-utils/dist/page_context/index.js line 991):
   fontSize 25, lineHeight 40px, fontWeight 'normal' (400), letterSpacing 0,
   color common.black. No icon next to it — production source files render
   plain text titles. */
.page-title {
  font-size: 25px; line-height: 40px; font-weight: 400;
  letter-spacing: 0;
  color: #000;
  margin: 0 0 16px;
}

/* Unified list-page header: title left + actions right, 16px bottom margin. */
.list-page-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.list-page-title {
  margin: 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 25px; line-height: 40px;
  font-weight: 400; letter-spacing: 0;
  color: #000;
}
.list-page-title .count {
  color: #8B9092; font-weight: 400; margin-left: 6px;
}
.list-page-actions {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap;
}

/* ─── Header popovers (Currency + Account) — Figma 2473:37531 ──────────── */
.hdr-cur-glyph {
  font-size: 18px; font-weight: 700;
  color: #5C6467;
}
.hdr-popover {
  position: absolute;
  top: calc(100% - 2px);
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(53, 91, 101, 0.18);
  padding: 16px;
  z-index: 1400;
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  font-family: 'Open Sans', sans-serif;
}
.hdr-popover.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.hdr-popover-arrow {
  position: absolute;
  top: -7px;
  width: 14px; height: 14px;
  background: white;
  transform: rotate(45deg);
  box-shadow: -2px -2px 4px rgba(53, 91, 101, 0.06);
}

/* Currency popover (narrow) */
.hdr-popover-currency {
  width: 180px;
  right: 95px;
}
.hdr-popover-currency .hdr-popover-arrow {
  right: 22px;
}
.hdr-popover-header {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8B9092;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid #F0F0F0;
}
.hdr-currency-list { display: flex; flex-direction: column; gap: 2px; }
.hdr-currency-item {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  font-family: 'Open Sans';
  font-size: 13px; font-weight: 500;
  color: #172326;
  text-align: left;
  transition: background .12s;
}
.hdr-currency-item:hover { background: #F4F5F7; }
.hdr-currency-item.active { background: rgba(86, 135, 147, 0.08); color: #568793; }
.hdr-cur-sym {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  font-size: 14px; font-weight: 700;
  color: #8B9092;
}
.hdr-currency-item.active .hdr-cur-sym { color: #568793; }

/* Account popover (wide, 2 columns) */
.hdr-popover-account {
  width: 380px;
  right: 0;
}
.hdr-popover-account .hdr-popover-arrow {
  right: 22px;
}
.hdr-account-user {
  font-size: 14px; font-weight: 500;
  color: #172326;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;
  letter-spacing: 0.1px;
}
.hdr-account-user b { font-weight: 700; }
.hdr-account-user .muted { color: #8B9092; font-weight: 400; }
.hdr-account-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.hdr-account-col { display: flex; flex-direction: column; gap: 2px; }
.hdr-account-section {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #8B9092;
  margin-bottom: 6px;
}
.hdr-account-link {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 8px;
  border-radius: 6px;
  font-family: 'Open Sans';
  font-size: 13px;
  color: #172326;
  cursor: pointer;
  letter-spacing: 0.1px;
  transition: background .12s, color .12s;
  text-decoration: none;
}
.hdr-account-link:hover { background: #F4F5F7; color: #568793; }
.hdr-account-link .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important;
  color: #87ACB6;
  width: 18px;
}
.hdr-account-link:hover .icon { color: #568793; }
.hdr-account-link-strong { color: #C42A20; margin-top: 6px; padding-top: 10px; border-top: 1px solid #F0F0F0; }
.hdr-account-link-strong .icon { color: #C42A20; }
.hdr-account-link-strong:hover { color: #C42A20; background: #FEF6F6; }
.hdr-account-link-strong:hover .icon { color: #C42A20; }

/* Notifications popover */
.hdr-popover-notif {
  width: 400px;
  right: 50px;
  max-height: 480px;
  display: flex; flex-direction: column;
  padding: 12px 0;
}
.hdr-popover-notif .hdr-popover-arrow { right: 22px; }
.hdr-notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 16px 8px;
  border-bottom: 1px solid #F0F0F0;
}
.hdr-notif-mark {
  font-family: 'Open Sans';
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #568793;
  cursor: pointer;
}
.hdr-notif-mark:hover { color: #3C636C; }
.hdr-notif-list {
  flex: 1; overflow-y: auto;
  padding: 6px 0;
}
.hdr-notif-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 16px;
  cursor: pointer;
  transition: background .12s;
  border-left: 2px solid transparent;
}
.hdr-notif-item:hover { background: rgba(86,135,147,.05); }
.hdr-notif-item.hdr-notif-unread { background: rgba(86,135,147,.04); border-left-color: rgba(86,135,147,.4); }
/* unread indicator via background — no floating dot */
.hdr-notif-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hdr-notif-icon .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 17px !important;
}
/* Tinted icon treatment — matches app chip/badge pattern */
.hdr-notif-icon-blue   { background: rgba(45,156,219,.12);   color: #2D9CDB; }
.hdr-notif-icon-green  { background: rgba(39,174,96,.12);    color: #27AE60; }
.hdr-notif-icon-orange { background: rgba(242,153,74,.12);   color: #E07840; }
.hdr-notif-icon-teal   { background: rgba(86,135,147,.14);   color: #568793; }
.hdr-notif-icon-purple { background: rgba(187,107,217,.12);  color: #9B5CB8; }

/* Fixenator AI notification section */
.hdr-notif-section-label {
  display: flex; align-items: center; gap: 5px;
  padding: 8px 16px 4px;
  font-family: 'Open Sans';
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #568793;
}
.hdr-notif-ai {
  background: rgba(86,135,147,.04) !important;
}
.hdr-notif-ai:hover { background: rgba(86,135,147,.1) !important; }
.hdr-notif-ai-action {
  display: inline-flex; align-items: center; gap: 3px;
  color: #568793 !important;
  font: 600 11px/14px 'Open Sans';
  margin-top: 5px;
  letter-spacing: 0.1px;
}
.hdr-notif-body { flex: 1; min-width: 0; }
.hdr-notif-text {
  font-family: 'Open Sans';
  font-size: 13px; line-height: 18px;
  color: #172326;
  letter-spacing: 0.1px;
}
.hdr-notif-text b { font-weight: 700; }
.hdr-notif-time {
  font-family: 'Open Sans';
  font-size: 11px;
  color: #8B9092;
  margin-top: 2px;
}
.hdr-notif-viewall {
  display: block;
  padding: 10px 16px 4px;
  text-align: center;
  font-family: 'Open Sans';
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: #568793;
  border-top: 1px solid #F0F0F0;
  cursor: pointer;
}
.hdr-notif-viewall:hover { color: #3C636C; }

/* AppBar needs position relative for absolute popovers */
.app-header { position: relative; }

/* ─── ⌘K unified palette (nav + Fixenator AI) ──────────────────────── */
.cmdk-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10vh;
}
.cmdk-backdrop {
  position: fixed; inset: 0;
  background: rgba(23, 35, 38, .38);
  backdrop-filter: blur(3px);
  animation: cmdkFade .18s ease;
}
@keyframes cmdkFade { from { opacity: 0; } to { opacity: 1; } }
.cmdk-modal-inner {
  position: relative;
  background: #ffffff;
  width: 680px;
  max-width: calc(100vw - 32px);
  border-radius: 16px;
  box-shadow: 0 8px 16px rgba(0,0,0,.06), 0 32px 80px rgba(53,91,101,.22);
  overflow: hidden;
  animation: cmdkSlide .2s cubic-bezier(.22,.68,0,1.2);
}
@keyframes cmdkSlide { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }

/* Search bar */
.cmdk-search {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 20px;
  border-bottom: 1px solid #EEF0F2;
}
.cmdk-search-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 22px !important;
  color: #8B9092;
  flex-shrink: 0;
  transition: color .2s;
}
.cmdk-search input {
  flex: 1; min-width: 0;
  border: 0; outline: none; background: transparent;
  font: 400 16px/22px 'Open Sans';
  color: #172326;
  letter-spacing: 0.1px;
}
.cmdk-search input::placeholder { color: #A8B4B8; }
.cmdk-ai-badge {
  display: none;
  align-items: center; gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(86,135,147,.1);
  border: 1px solid rgba(86,135,147,.25);
  font: 700 10px/14px 'Open Sans';
  letter-spacing: 0.5px;
  color: #568793;
  white-space: nowrap;
  flex-shrink: 0;
}
.cmdk-ai-badge.visible { display: flex; }
.cmdk-kbd {
  font: 600 10px/14px 'Open Sans';
  color: #8B9092;
  letter-spacing: 0.4px;
  padding: 3px 7px;
  border: 1px solid #E2E7EB;
  border-radius: 4px;
  background: #F7F8F9;
  flex-shrink: 0;
}

/* Nav sections — collapse when AI mode active */
.cmdk-nav-sections {
  max-height: 440px;
  overflow-y: auto;
  transition: max-height .25s ease, opacity .2s ease;
  opacity: 1;
}
.cmdk-sections-hidden {
  max-height: 0 !important;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.cmdk-section {
  padding: 10px 20px 6px;
  font: 600 10px/14px 'Open Sans';
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: #A8B4B8;
}
.cmdk-section-ai { color: #568793; display: flex; align-items: center; gap: 5px; }
.cmdk-list { padding: 0 10px 8px; }
.cmdk-list-ai { padding-bottom: 4px; }
.cmdk-item {
  display: grid;
  grid-template-columns: 28px 1fr auto auto;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transition: background .1s;
}
.cmdk-item:hover, .cmdk-item.active { background: rgba(86,135,147,.09); }
.cmdk-item-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important;
  color: #568793;
  text-align: center;
}
.cmdk-item-label { font: 600 13px/18px 'Open Sans'; color: #172326; }
.cmdk-item-hint  { font: 400 12px/16px 'Open Sans'; color: #A8B4B8; }
.cmdk-item-go {
  font: 600 9px/12px 'Open Sans';
  letter-spacing: 0.4px;
  color: #A8B4B8;
  padding: 2px 6px;
  border: 1px solid #E8ECEF;
  border-radius: 4px;
  background: #F7F8F9;
}

/* AI suggestion items */
.cmdk-ai-star {
  color: #568793;
  font-size: 13px;
  animation: aiStarTwinkle 4s ease-in-out infinite;
  flex-shrink: 0;
}
.cmdk-item-ai {
  grid-template-columns: 18px 1fr auto auto;
  border-left: 2px solid rgba(86,135,147,.25);
  border-radius: 0 8px 8px 0;
}
.cmdk-item-ai:hover, .cmdk-item-ai.active {
  background: rgba(86,135,147,.1);
  border-left-color: #568793;
}
.cmdk-item-go-ai {
  color: #568793 !important;
  border-color: rgba(86,135,147,.3) !important;
  background: rgba(86,135,147,.07) !important;
}

/* Modal glows teal when AI mode active */
.cmdk-ai-active {
  box-shadow: 0 0 0 2px rgba(86,135,147,.35), 0 32px 80px rgba(53,91,101,.22) !important;
  transition: box-shadow .3s ease;
}

/* Search icon morphs to AI star */
.cmdk-icon-ai {
  color: #568793 !important;
  animation: cmdk-icon-pop .35s cubic-bezier(.22,.68,0,1.4);
}
@keyframes cmdk-icon-pop { from { transform: scale(0) rotate(-90deg); opacity:0; } to { transform: none; opacity:1; } }

/* AI badge pulse */
.cmdk-ai-badge.visible {
  animation: cmdk-badge-pulse 2.5s ease-in-out infinite;
}
@keyframes cmdk-badge-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(86,135,147,0); }
  50%      { box-shadow: 0 0 0 5px rgba(86,135,147,.12); }
}

/* AI response panel */
.cmdk-ai-panel {
  display: none;
}
.cmdk-ai-panel-visible { display: block; }

/* Shimmer line — animated teal gradient at top of AI panel */
.cmdk-ai-shimmer-line {
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(86,135,147,.0) 20%,
    #568793 50%,
    rgba(134,196,206,.8) 70%,
    transparent 100%
  );
  background-size: 200% 100%;
  animation: cmdk-shimmer 2.2s ease-in-out infinite;
}
@keyframes cmdk-shimmer {
  0%   { background-position: -100% 0; opacity: 0; }
  10%  { opacity: 1; }
  80%  { opacity: 1; }
  100% { background-position: 200% 0; opacity: 0; }
}

/* AI header */
.cmdk-ai-header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px 12px;
  border-bottom: 1px solid #F0F3F5;
  background: linear-gradient(135deg, rgba(86,135,147,.04) 0%, transparent 100%);
}
.cmdk-ai-avatar {
  position: relative;
  flex-shrink: 0;
}
.cmdk-ai-avatar .fxn-avatar {
  width: 32px !important;
  height: 32px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(86,135,147,.3);
  animation: agentPulse 3s ease-in-out infinite;
}
.cmdk-ai-avatar.thinking .fxn-avatar {
  animation: agentPulse .8s ease-in-out infinite;
}
.cmdk-ai-avatar-dot {
  position: absolute;
  bottom: -2px; right: -2px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #27AE60;
  border: 2px solid white;
  animation: cmdk-dot-pulse 2s ease-in-out infinite;
}
@keyframes cmdk-dot-pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
  50%      { box-shadow: 0 0 0 3px rgba(39,174,96,.25); }
}
.cmdk-ai-header-text { display: flex; flex-direction: column; gap: 1px; }
.cmdk-ai-title {
  font: 700 13px/17px 'Open Sans';
  letter-spacing: 0.2px;
  color: #172326;
}
.cmdk-ai-subtitle {
  font: 400 10px/14px 'Open Sans';
  color: #568793;
  letter-spacing: 0.2px;
}
.cmdk-ai-back {
  display: flex; align-items: center; gap: 4px;
  margin-left: auto;
  padding: 4px 10px;
  border: 1px solid #E2E7EB;
  border-radius: 6px;
  background: transparent;
  font: 500 11px/14px 'Open Sans';
  color: #8B9092;
  cursor: pointer;
  transition: all .12s;
}
.cmdk-ai-back:hover { border-color: #568793; color: #568793; }

.cmdk-ai-body {
  padding: 16px 20px 14px;
  min-height: 72px;
  max-height: 300px;
  overflow-y: auto;
}
.cmdk-ai-empty {
  display: flex; align-items: center;
  font: 400 13px/20px 'Open Sans';
  color: #A8B4B8;
  padding: 8px 0;
}
.cmdk-ai-thinking {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 0;
}
.cmdk-ai-thinking .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #568793;
  animation: thinkDot 1.2s ease-in-out infinite;
  opacity: 0.35;
}
.cmdk-ai-thinking .dot:nth-child(2) { animation-delay: .18s; }
.cmdk-ai-thinking .dot:nth-child(3) { animation-delay: .36s; }
@keyframes thinkDot { 0%,80%,100%{opacity:.2;transform:scale(.75)} 40%{opacity:1;transform:scale(1)} }
.cmdk-ai-thinking-text {
  font: 400 12px/16px 'Open Sans';
  color: #568793;
  margin-left: 6px;
  animation: cmdk-fade-in .3s ease;
}

/* Streaming text + blinking cursor */
.cmdk-ai-text {
  font: 400 14px/22px 'Open Sans';
  color: #2F4F57;
  margin: 0;
}
.cmdk-cursor {
  display: inline-block;
  width: 2px; height: 15px;
  background: #568793;
  border-radius: 1px;
  vertical-align: middle;
  margin-left: 2px;
  animation: cmdk-blink .7s step-end infinite;
}
@keyframes cmdk-blink { 0%,100%{opacity:1} 50%{opacity:0} }

/* Result cards + actions animate in */
.cmdk-results-in { animation: cmdk-results-pop .25s cubic-bezier(.22,.68,0,1.2); }
@keyframes cmdk-results-pop { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.cmdk-ai-cards {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 14px;
}
.cmdk-ai-card {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border: 1px solid #E8ECEF;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  background: #FAFBFC;
  transition: all .12s;
}
.cmdk-ai-card:hover {
  border-color: #568793;
  background: rgba(86,135,147,.06);
  box-shadow: 0 2px 8px rgba(86,135,147,.12);
  transform: translateX(2px);
}
.cmdk-ai-card-label { font: 600 13px/18px 'Open Sans'; color: #172326; }
.cmdk-ai-card-sub   { font: 400 11px/16px 'Open Sans'; color: #8B9092; margin-left: 6px; }

.cmdk-ai-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 14px;
}
.cmdk-ai-action {
  display: inline-flex; align-items: center;
  padding: 7px 16px;
  border-radius: 999px;
  border: 1px solid rgba(86,135,147,.4);
  background: rgba(86,135,147,.08);
  font: 600 12px/16px 'Open Sans';
  color: #2F4F57;
  cursor: pointer;
  transition: all .15s;
  position: relative;
  overflow: hidden;
}
.cmdk-ai-action::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(86,135,147,.15) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform .4s ease;
}
.cmdk-ai-action:hover { background: rgba(86,135,147,.18); border-color: #568793; color: #568793; }
.cmdk-ai-action:hover::after { transform: translateX(100%); }

/* Footer */
.cmdk-foot {
  display: flex; align-items: center; gap: 14px;
  padding: 9px 20px;
  border-top: 1px solid #EEF0F2;
  background: #FAFBFC;
  font: 400 11px/16px 'Open Sans';
  color: #A8B4B8;
}
.cmdk-foot kbd {
  font: 500 10px/14px 'Open Sans';
  padding: 1px 5px;
  border: 1px solid #E2E7EB;
  border-radius: 3px;
  background: white;
  margin-right: 2px;
  color: #6B7B80;
}
.cmdk-foot-ai-brand {
  margin-left: auto;
  font: 700 11px/16px 'Open Sans';
  letter-spacing: 0.3px;
  color: #568793;
}

/* Star burst particles */
.cmdk-star-burst {
  animation: none;
  font-family: 'Open Sans', sans-serif;
  user-select: none;
}

@keyframes cmdk-fade-in { from { opacity:0; } to { opacity:1; } }

/* Expand button in compact AI header */
.cmdk-ai-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cmdk-expand-btn {
  display: flex; align-items: center; justify-content: center;
  width: 28px; height: 28px;
  border: 1px solid #E2E7EB;
  border-radius: 6px;
  background: transparent;
  color: #8B9092;
  cursor: pointer;
  transition: all .12s;
}
.cmdk-expand-btn:hover { border-color: #568793; color: #568793; background: rgba(86,135,147,.06); }
.cmdk-expand-btn .icon { font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important; font-family: 'Material Icons Outlined' !important; }

/* Demo page-header wrappers — match Dashboards.tsx <Box sx={{ mb: 2 }}> (16px),
   ContractsListView.tsx padding '0 20px 10px 20px'-style spacing, and Reports.tsx
   <Box sx={{ display: 'flex' }}>. */
.dashboards-header, .contracts-header { margin-bottom: 16px; }
/* EntityHeaderAndAmount from app/components/EntityHeaderAndAmount/
   EntityHeaderAndAmount.tsx — inline span inside h4 Typography, color #8B9092,
   marginLeft 6px. Inherits h4 (25/40/400) for size. */
.page-count {
  margin-left: 6px;
  color: #8B9092;
  font-weight: inherit;
  font-size: inherit;
}

.back-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 13px; color: var(--fx-primary-500); cursor: pointer; margin-bottom: 8px;
}
.back-link:hover { text-decoration: underline; }

.divider { border: none; border-top: 1px solid var(--fx-divider); margin: 12px 0; }

.tooltip {
  position: relative; cursor: help;
}
.tooltip::after {
  content: attr(data-tip);
  position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%);
  background: var(--fx-title); color: white; padding: 4px 8px;
  border-radius: 4px; font-size: 11px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.tooltip:hover::after { opacity: 1; }

.progress-bar {
  height: 4px; border-radius: 20px; background: var(--fx-progress-track); overflow: hidden;
}
.progress-bar-fill {
  height: 100%; border-radius: 20px; background: var(--fx-progress-fill);
  transition: width .4s ease;
}

/* ============================================================
   Toast system — Fx.toast(text, { type, icon, duration })
   ============================================================ */
.fx-toast {
  position: fixed;
  top: 80px;
  right: 24px;
  z-index: 2400;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 260px;
  max-width: 420px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #E0E5EB;
  box-shadow: 0 12px 32px rgba(15, 30, 38, 0.16);
  color: #172326;
  font: 500 13px/18px "Open Sans", sans-serif;
  transform: translateX(420px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
.fx-toast.show { transform: translateX(0); opacity: 1; }
.fx-toast .icon { font-size: 18px; line-height: 18px; }
.fx-toast-text { flex: 1; }
.fx-toast-success { border-color: rgba(39,174,96,.28); }
.fx-toast-success .icon { color: #27AE60; }
.fx-toast-info { border-color: rgba(86,135,147,.28); }
.fx-toast-info .icon { color: #568793; }
.fx-toast-warn { border-color: rgba(242,153,74,.32); }
.fx-toast-warn .icon { color: #F2994A; }
.fx-toast-error { border-color: rgba(235,87,87,.32); }
.fx-toast-error .icon { color: #EB5757; }

/* ============================================================
   Polished confirmation modal — Fx.confirm({ title, body, ... })
   ============================================================ */
.fx-modal-overlay {
  position: fixed; inset: 0; z-index: 2300;
  background: rgba(15, 30, 38, 0.42);
  display: flex; align-items: center; justify-content: center;
  animation: fxFadeIn .18s ease;
}
.fx-modal-card {
  width: 420px; max-width: calc(100vw - 32px);
  background: #ffffff; border-radius: 12px;
  padding: 28px 28px 24px;
  box-shadow: 0 24px 64px rgba(15,30,38,.24);
  text-align: center;
  animation: fxPop .22s cubic-bezier(.2,.7,.2,1);
}
.fx-modal-icon {
  width: 56px; height: 56px; border-radius: 16px;
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
}
.fx-modal-icon .icon { font-size: 30px; line-height: 30px; }
.fx-modal-title { font: 600 18px/24px "Open Sans"; color: #172326; margin: 0 0 8px; }
.fx-modal-body { font: 400 14px/22px "Open Sans"; color: #4F6063; margin: 0 0 22px; }
.fx-modal-actions { display: flex; justify-content: center; gap: 10px; }
.fx-modal-actions .fx-btn { min-width: 100px; }
.fx-btn-danger {
  background: #EB5757; color: #fff; border: 1px solid #EB5757;
}
.fx-btn-danger:hover { background: #d44a4a; border-color: #d44a4a; }

@keyframes fxFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxPop {
  from { opacity: 0; transform: scale(.96) translateY(6px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ============================================================
   Stub-page renderer ("Coming soon")
   ============================================================ */
.stub-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  padding: 40px;
}
.stub-card {
  text-align: center;
  max-width: 460px;
  padding: 40px 36px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #E0E5EB;
  box-shadow: 0 8px 24px rgba(15, 30, 38, 0.06);
}
.stub-icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  border-radius: 18px;
  background: linear-gradient(135deg, #E2EEF1 0%, #C6DDE2 100%);
  display: flex; align-items: center; justify-content: center;
  color: #2F4F57;
}
.stub-icon .icon { font-size: 38px; line-height: 38px; }
.stub-title { font: 600 22px/30px "Open Sans"; color: #172326; margin: 0 0 8px; }
.stub-body  { font: 400 14px/22px "Open Sans"; color: #4F6063; margin: 0 0 22px; }
.stub-back  { display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Universal hover/focus polish
   ============================================================ */
.fx-btn, button.fx-btn {
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
}
.fx-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15, 30, 38, 0.08); }
.fx-btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.fx-btn:focus-visible {
  outline: 2px solid rgba(86, 135, 147, 0.45);
  outline-offset: 2px;
}

.kpi-card, .fx-card, .dash-panel {
  transition: box-shadow .22s ease, transform .22s ease;
}
.kpi-card:hover { box-shadow: 0 6px 16px rgba(15, 30, 38, 0.08); transform: translateY(-1px); }

/* Soft entrance animation for page-level cards */
@keyframes fxCardIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.kpi-card, .dash-panel, .fx-card { animation: fxCardIn .32s cubic-bezier(.2,.7,.2,1) both; }
/* Fix: prevent invoice ID from wrapping in narrow kanban columns */
.inv-id { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }

/* ════════════════════════════════════════════════════════════════════════
   Ask Fixenator — 2026 Agentic Dark Workspace
   Full-screen dark takeover · visible reasoning · streamed responses
   Inspired by: Cursor agent mode · Perplexity · Harvey AI
   ═══════════════════════════════════════════════════════════════════════ */

/* ── Screen (full viewport dark takeover) ─────────────────────────────── */
.fxask-screen {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background:
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(86,135,147,.12) 0%, transparent 70%),
    radial-gradient(ellipse 80% 60% at 80% 80%, rgba(39,174,96,.06) 0%, transparent 60%),
    linear-gradient(160deg, #050E13 0%, #0A1720 35%, #0D1E2A 70%, #111E28 100%);
  display: flex;
  flex-direction: column;
  animation: fxAskOpen .32s cubic-bezier(.2,.7,.2,1);
  overflow: hidden;
}
.fxask-screen.fxask-closing {
  animation: fxAskClose .28s cubic-bezier(.4,0,1,1) forwards;
}
@keyframes fxAskOpen {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fxAskClose {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(16px); }
}
.fxask-inner {
  display: flex; flex-direction: column; height: 100%; max-width: 960px;
  margin: 0 auto; width: 100%;
}

/* ── Header ──────────────────────────────────────────────────────────── */
.fxask-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 32px 14px;
  border-bottom: 1px solid rgba(255,255,255,.05);
  flex-shrink: 0;
}
.fxask-header-left { display: flex; align-items: center; gap: 14px; }
.fxask-header-left .fxn-avatar { border-radius: 10px !important; }
.fxask-header-meta { display: flex; flex-direction: column; gap: 3px; }
.fxask-header-name {
  font: 700 15px/20px "Open Sans";
  color: #ffffff;
  letter-spacing: 0.1px;
}
.fxask-header-status {
  display: flex; align-items: center; gap: 6px;
  font: 400 12px/16px "Open Sans";
  color: rgba(255,255,255,.45);
}
.fxask-live-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #27AE60;
  animation: agentPulse 2.2s ease-out infinite;
  flex-shrink: 0;
}
.fxask-close {
  width: 36px; height: 36px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.07); cursor: pointer;
  color: rgba(255,255,255,.5);
  display: flex; align-items: center; justify-content: center;
  transition: background .15s ease, color .15s ease;
}
.fxask-close:hover { background: rgba(255,255,255,.14); color: #ffffff; }
.fxask-close .icon { font-size: 20px !important; }

/* ── Thread (scrollable conversation area) ──────────────────────────── */
.fxask-thread {
  flex: 1; overflow-y: auto; padding: 24px 32px;
  display: flex; flex-direction: column; gap: 24px;
  scrollbar-width: thin; scrollbar-color: rgba(86,135,147,.3) transparent;
}
.fxask-thread::-webkit-scrollbar { width: 4px; }
.fxask-thread::-webkit-scrollbar-thumb { background: rgba(86,135,147,.3); border-radius: 2px; }

/* ── Hero (empty state) ─────────────────────────────────────────────── */
.fxask-hero {
  text-align: center;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-height: 0;
}
.fxask-hero-title {
  font: 800 40px/50px "Open Sans";
  letter-spacing: -1.2px;
  color: #ffffff;
  margin: 0 0 14px;
}
.fxask-hero-sub {
  font: 400 16px/26px "Open Sans";
  color: rgba(255,255,255,.5);
  margin: 0 auto 28px;
  max-width: 560px;
}
.fxask-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  text-align: left;
  width: 100%;
}
.fxask-sug {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  padding: 16px 16px;
  min-height: 64px;
  cursor: pointer;
  transition: all .18s ease;
  text-align: left;
}
.fxask-sug:hover {
  background: rgba(86,135,147,.15);
  border-color: rgba(86,135,147,.35);
  transform: translateY(-1px);
}
.fxask-sug-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: rgba(86,135,147,.18);
  color: #87ACB6;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fxask-sug-icon .icon { font-size: 17px !important; }
.fxask-sug-text {
  flex: 1;
  font: 500 13px/18px "Open Sans";
  color: rgba(255,255,255,.8);
}
.fxask-sug-arr {
  font-size: 16px !important;
  color: rgba(255,255,255,.2);
  transition: color .15s ease, transform .15s ease;
}
.fxask-sug:hover .fxask-sug-arr { color: #87ACB6; transform: translateX(3px); }

/* ── User message ───────────────────────────────────────────────────── */
.fxask-user-msg {
  display: flex; justify-content: flex-end;
  animation: fxMsgIn .22s ease;
}
.fxask-user-bubble {
  background: rgba(86,135,147,.28);
  border: 1px solid rgba(86,135,147,.35);
  border-radius: 8px 4px 8px 8px;
  padding: 12px 16px;
  font: 400 15px/22px "Open Sans";
  color: rgba(255,255,255,.92);
  max-width: 75%;
}
@keyframes fxMsgIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ── Thinking block ─────────────────────────────────────────────────── */
.fxask-thinking {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 16px 18px;
  animation: fxMsgIn .22s ease;
  transition: opacity .3s ease, max-height .4s ease;
  max-height: 300px;
  overflow: hidden;
}
.fxask-thinking.fxask-thinking-done {
  opacity: 0.4;
  max-height: 36px;
}
.fxask-think-head {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.fxask-think-spinner {
  width: 14px; height: 14px;
  border: 2px solid rgba(86,135,147,.3);
  border-top-color: #568793;
  border-radius: 50%;
  animation: spin .8s linear infinite;
  flex-shrink: 0;
}
.fxask-thinking-done .fxask-think-spinner {
  border-top-color: #27AE60; border-color: #27AE6030;
  animation: none;
}
@keyframes spin { to { transform: rotate(360deg); } }
.fxask-think-label {
  font: 600 12px/16px "Open Sans";
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: #568793;
  flex: 1;
}
.fxask-think-time {
  font: 500 11px/16px "Open Sans";
  color: rgba(255,255,255,.3);
}
.fxask-think-steps { display: flex; flex-direction: column; gap: 6px; }
.fxask-think-step {
  font: 400 13px/18px "Open Sans";
  color: rgba(255,255,255,.55);
  animation: fxMsgIn .18s ease;
  display: flex; align-items: center; gap: 8px;
}
.fxask-step-done { color: #27AE60; font-size: 13px; flex-shrink: 0; }
.fxask-step-active { color: #568793; font-size: 13px; flex-shrink: 0; }

/* ── Response card ──────────────────────────────────────────────────── */
.fxask-response {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  overflow: hidden;
  animation: fxMsgIn .32s cubic-bezier(.2,.7,.2,1);
}
.fxask-resp-hd {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.fxask-resp-hd .fxn-avatar { border-radius: 8px !important; }
.fxask-resp-name { font: 700 13px/18px "Open Sans"; color: rgba(255,255,255,.9); }
.fxask-resp-ts   { font: 400 11px/16px "Open Sans"; color: rgba(255,255,255,.3); margin-left: auto; }

.fxask-resp-body { padding: 18px; }
.fxask-headline {
  font: 600 17px/26px "Open Sans";
  color: #ffffff;
  letter-spacing: -0.2px;
  margin-bottom: 16px;
}
.fxask-headline b { font-weight: 700; color: #87ACB6; }

/* Response table */
.fxask-table {
  width: 100%; border-collapse: collapse;
  margin-bottom: 16px;
}
.fxask-tr { border-bottom: 1px solid rgba(255,255,255,.05); }
.fxask-tr:last-child { border-bottom: 0; }
.fxask-td {
  padding: 10px 8px;
  font: 400 13px/18px "Open Sans";
  color: rgba(255,255,255,.75);
  vertical-align: middle;
}
.fxask-td-id     { font-weight: 600; color: #87ACB6; white-space: nowrap; width: 30%; }
.fxask-td-finding{ color: rgba(255,255,255,.65); }
.fxask-td-risk   { width: 100px; text-align: center; }
.fxask-td-amt    { text-align: right; font-weight: 700; color: rgba(255,255,255,.9); white-space: nowrap; }
.fxask-risk-badge {
  display: inline-block;
  border: 1px solid;
  border-radius: 999px;
  padding: 2px 8px;
  font: 700 10px/14px "Open Sans";
  letter-spacing: 0.4px;
}

/* Citations + actions */
.fxask-footer {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.fxask-cites { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; flex: 1; }
.fxask-cite-label {
  font: 600 10px/14px "Open Sans";
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
}
.fxask-cite {
  background: rgba(86,135,147,.15);
  border: 1px solid rgba(86,135,147,.25);
  border-radius: 999px;
  padding: 2px 10px;
  font: 500 11px/16px "Open Sans";
  color: #87ACB6;
  cursor: default;
  transition: background .12s ease;
}
.fxask-cite:hover { background: rgba(86,135,147,.28); }
.fxask-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.fxask-action {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px;
  padding: 8px 16px;
  font: 600 12px/16px "Open Sans";
  letter-spacing: 0.3px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.7);
  transition: all .15s ease;
}
.fxask-action .icon { font-size: 14px !important; }
.fxask-action:hover { background: rgba(255,255,255,.12); color: #ffffff; border-color: rgba(255,255,255,.25); }
.fxask-action-primary {
  background: #27AE60;
  border-color: #27AE60;
  color: #ffffff;
  box-shadow: 0 2px 12px rgba(39,174,96,.35);
}
.fxask-action-primary:hover { background: #219150; border-color: #219150; }

/* ── Footer bar (input) ──────────────────────────────────────────────── */
.fxask-footer-bar {
  padding: 14px 32px 22px;
  flex-shrink: 0;
  border-top: 1px solid rgba(86,135,147,.18);
  background: rgba(255,255,255,.015);
}
.fxask-input-wrap {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,.08);
  border: 1.5px solid rgba(255,255,255,.12);
  border-radius: 999px;
  padding: 8px 8px 8px 22px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fxask-input-wrap:focus-within {
  border-color: rgba(86,135,147,.6);
  box-shadow: 0 0 0 4px rgba(86,135,147,.12);
}
.fxask-input {
  flex: 1; border: 0; outline: none;
  background: transparent;
  font: 400 17px/24px "Open Sans";
  color: #ffffff;
  min-width: 0;
  letter-spacing: 0.1px;
}
.fxask-input::placeholder { color: rgba(255,255,255,.3); }
.fxask-send {
  width: 44px; height: 44px; border-radius: 50%;
  background: #568793; border: 0; color: #ffffff;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .15s ease, transform .12s ease;
}
.fxask-send:hover { background: #3C636C; transform: scale(1.05); }
.fxask-send .icon { font-size: 20px !important; }
.fxask-hints {
  text-align: center; margin-top: 10px;
  font: 400 11px/16px "Open Sans";
  color: rgba(255,255,255,.2);
}
.fxask-hints kbd {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 4px;
  padding: 1px 5px;
  font-family: "Open Sans", monospace;
  font-size: 10px;
}

/* ════════════════════════════════════════════════════════════════════════
   AI star / sparkle wow effects
   ═══════════════════════════════════════════════════════════════════════ */

/* ── ✦ AI mark star twinkle ─────────────────────────────────────────── */
/* The auto_awesome glyph pulses with a subtle brightness boost every 4s */
.ai-mark .icon {
  animation: aiStarTwinkle 4s ease-in-out infinite;
  display: inline-block;
}
@keyframes aiStarTwinkle {
  0%, 75%, 100% {
    transform: scale(1) rotate(0deg);
    filter: brightness(1);
  }
  78% {
    transform: scale(1.25) rotate(-10deg);
    filter: brightness(1.8) drop-shadow(0 0 5px rgba(86,135,147,.8));
  }
  81% {
    transform: scale(1.45) rotate(8deg);
    filter: brightness(2.2) drop-shadow(0 0 8px rgba(198,221,226,.9));
  }
  85% {
    transform: scale(1.15) rotate(-3deg);
    filter: brightness(1.4) drop-shadow(0 0 3px rgba(86,135,147,.5));
  }
  88% {
    transform: scale(1.05) rotate(1deg);
    filter: brightness(1.1);
  }
}

/* Slight color upgrade — golden-teal for the star */
.ai-mark .icon { color: #72BEC9 !important; }
.fx-briefing-header .ai-mark .icon { color: #C6DDE2 !important; }
.kpi-fx-head .ai-mark .icon { color: #87ACB6 !important; }
.reco-plan-head .ai-mark .icon  { color: #568793 !important; }
.reco-plan-head .ai-mark-label  { color: #172326; font: 600 13px/18px "Open Sans", sans-serif; }
.hmc-title .ai-mark .icon { color: var(--fx-primary-500) !important; }

/* ── Floating ask bar — pulsing border glow ─────────────────────────── */
.hmc-float-ask {
  animation: floatBarPulse 3.5s ease-in-out infinite;
}
@keyframes floatBarPulse {
  0%, 100% {
    box-shadow: 0 16px 48px rgba(15,30,38,.2), 0 2px 8px rgba(15,30,38,.08);
    border-color: #E0E5EB;
  }
  50% {
    box-shadow: 0 16px 48px rgba(86,135,147,.28),
                0 0 0 3px rgba(86,135,147,.12),
                0 2px 8px rgba(15,30,38,.08);
    border-color: rgba(86,135,147,.5);
  }
}
.hmc-float-ask:focus-within {
  animation: none;
  box-shadow: 0 16px 48px rgba(15,30,38,.22), 0 0 0 4px rgba(86,135,147,.12);
  border-color: var(--fx-primary-500);
}

/* ── Ask overlay — entrance glow + title shimmer ───────────────────────── */
.fxask-hero-title {
  background: linear-gradient(135deg, #ffffff 0%, #C6DDE2 40%, #ffffff 60%, #87ACB6 80%, #ffffff 100%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: titleShimmer 5s ease-in-out infinite;
}
@keyframes titleShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

/* Fixenator avatar in overlay — teal glow halo */
.fxask-header-left .fxn-avatar {
  box-shadow: 0 0 0 3px rgba(39,174,96,.2), 0 0 16px rgba(86,135,147,.35);
  animation: avatarGlow 3s ease-in-out infinite;
}
@keyframes avatarGlow {
  0%, 100% { box-shadow: 0 0 0 3px rgba(39,174,96,.15), 0 0 12px rgba(86,135,147,.25); }
  50%       { box-shadow: 0 0 0 5px rgba(39,174,96,.28), 0 0 24px rgba(86,135,147,.45); }
}

/* Suggestion card staggered entrance */
.fxask-sug:nth-child(1) { animation-delay: .06s; }
.fxask-sug:nth-child(2) { animation-delay: .12s; }
.fxask-sug:nth-child(3) { animation-delay: .18s; }
.fxask-sug:nth-child(4) { animation-delay: .24s; }
.fxask-sug:nth-child(5) { animation-delay: .30s; }
.fxask-sug:nth-child(6) { animation-delay: .36s; }
.fxask-sug {
  animation: fxMsgIn .4s cubic-bezier(.2,.7,.2,1) both;
}

/* Citation chips — subtle glow on hover */
.fxask-cite:hover {
  background: rgba(86,135,147,.28);
  box-shadow: 0 0 8px rgba(86,135,147,.35);
  color: #C6DDE2;
}

/* Response card entrance — stagger table rows */
.fxask-tr {
  animation: fxMsgIn .28s cubic-bezier(.2,.7,.2,1) both;
}
.fxask-tr:nth-child(1) { animation-delay: .05s; }
.fxask-tr:nth-child(2) { animation-delay: .10s; }
.fxask-tr:nth-child(3) { animation-delay: .15s; }
.fxask-tr:nth-child(4) { animation-delay: .20s; }

/* Action primary button — glow pulse */
.fxask-action-primary {
  animation: actionPulse 2.5s ease-in-out infinite;
}
@keyframes actionPulse {
  0%, 100% { box-shadow: 0 2px 12px rgba(39,174,96,.35); }
  50%       { box-shadow: 0 4px 20px rgba(39,174,96,.55), 0 0 0 3px rgba(39,174,96,.15); }
}
.fxask-action-primary:hover { animation: none; }

/* ── Home hero greeting text glow ──────────────────────────────────────── */
.hmc-hero-greeting {
  text-shadow: 0 1px 12px rgba(0,0,0,.35), 0 0 40px rgba(86,135,147,.15);
}

/* Fixenator pulse dot — enhanced glow */
.hmc-hero-pulse {
  box-shadow: 0 0 0 4px rgba(39,174,96,.2), 0 0 12px rgba(39,174,96,.4);
}

/* ── Live badge glow ──────────────────────────────────────────────────── */
.hmc-live, .fx-activity-badge {
  animation: liveBadgeGlow 2.8s ease-in-out infinite;
}
@keyframes liveBadgeGlow {
  0%, 100% { box-shadow: none; }
  50%       { box-shadow: 0 0 10px rgba(39,174,96,.35); }
}

/* ─── Fullscreen Ask Fixenator workspace (.fxaf-*) ───────────────────── */
.fxaf-screen {
  position: fixed; inset: 0;
  z-index: 2100;
  background: #ffffff;
  display: flex; flex-direction: column;
  animation: fxafOpen .25s cubic-bezier(.2,.7,.2,1);
}
.fxaf-screen.fxaf-closing {
  animation: fxafClose .2s ease forwards;
  pointer-events: none;
}
@keyframes fxafOpen  { from { opacity:0; transform:scale(.98); } to { opacity:1; transform:none; } }
@keyframes fxafClose { from { opacity:1; transform:none; }       to { opacity:0; transform:scale(.98); } }

/* Header */
.fxaf-header {
  display: flex; align-items: center; gap: 12px;
  padding: 0 24px;
  height: 60px;
  border-bottom: 1px solid #EEF0F2;
  flex-shrink: 0;
  background: #ffffff;
}
.fxaf-header-left { display: flex; align-items: center; gap: 12px; }
.fxaf-header-avatar { position: relative; flex-shrink: 0; }
.fxaf-header-avatar .fxn-avatar {
  width: 36px !important; height: 36px !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 8px rgba(86,135,147,.22);
  animation: agentPulse 3s ease-in-out infinite;
}
.fxaf-header-dot {
  position: absolute; bottom: -2px; right: -2px;
  width: 9px; height: 9px; border-radius: 50%;
  background: #27AE60; border: 2px solid #fff;
  animation: cmdk-dot-pulse 2.2s ease-in-out infinite;
}
.fxaf-header-text { display: flex; flex-direction: column; gap: 1px; }
.fxaf-title    { font: 700 14px/18px 'Open Sans'; color: #172326; letter-spacing: 0.1px; }
.fxaf-subtitle { font: 400 11px/14px 'Open Sans'; color: #568793; }
.fxaf-header-badge {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(86,135,147,.1);
  border: 1px solid rgba(86,135,147,.25);
  font: 700 10px/14px 'Open Sans';
  letter-spacing: 0.4px;
  color: #568793;
  animation: cmdk-badge-pulse 2.5s ease-in-out infinite;
}
.fxaf-close {
  margin-left: auto;
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid #E2E7EB;
  border-radius: 8px;
  background: transparent;
  font-size: 16px; color: #8B9092;
  cursor: pointer; transition: all .12s;
}
.fxaf-close:hover { border-color: #ED323B; color: #ED323B; background: rgba(237,50,59,.05); }

/* Body: sidebar + main */
.fxaf-body { flex: 1; display: flex; min-height: 0; }

/* Sidebar */
.fxaf-sidebar {
  width: 208px; flex-shrink: 0;
  border-right: 1px solid #EEF0F2;
  background: #F7F8F9;
  display: flex; flex-direction: column;
  padding: 16px 0 12px;
}
.fxaf-sidebar-label {
  padding: 0 16px 8px;
  font: 600 10px/14px 'Open Sans';
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #A8B4B8;
}
.fxaf-history { flex: 1; overflow-y: auto; padding: 0 8px; }
.fxaf-history-empty { padding: 8px 8px; font: 400 12px/18px 'Open Sans'; color: #C0CAD0; }
.fxaf-history-item {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  padding: 7px 8px;
  border: none; border-radius: 6px;
  background: transparent;
  cursor: pointer; transition: background .1s;
}
.fxaf-history-item:hover { background: rgba(86,135,147,.08); }
.fxaf-history-icon { font-size: 14px !important; color: #A8B4B8; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.fxaf-history-text { font: 400 12px/16px 'Open Sans'; color: #4F6063; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 140px; }
.fxaf-new-btn {
  display: flex; align-items: center; justify-content: center; gap: 4px;
  margin: 10px 12px 0;
  padding: 7px 12px;
  border: 1px solid rgba(86,135,147,.3);
  border-radius: 6px;
  background: transparent;
  font: 600 11px/14px 'Open Sans';
  color: #568793; cursor: pointer; transition: all .12s;
}
.fxaf-new-btn:hover { background: rgba(86,135,147,.08); border-color: #568793; }

/* Main */
.fxaf-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.fxaf-thread {
  flex: 1; overflow-y: auto;
  padding: 32px 40px 16px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Welcome state */
.fxaf-welcome {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 12px; max-width: 600px;
  animation: cmdk-fade-in .3s ease;
}
.fxaf-welcome-avatar { position: relative; }
.fxaf-welcome-avatar .fxn-avatar {
  width: 64px !important; height: 64px !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(86,135,147,.28);
  animation: agentPulse 3s ease-in-out infinite;
}
.fxaf-welcome-dot {
  position: absolute; bottom: -3px; right: -3px;
  width: 13px; height: 13px; border-radius: 50%;
  background: #27AE60; border: 2.5px solid #fff;
  animation: cmdk-dot-pulse 2.2s ease-in-out infinite;
}
.fxaf-welcome-title { font: 600 24px/30px 'Open Sans'; color: #172326; margin: 0; }
.fxaf-welcome-sub   { font: 400 14px/20px 'Open Sans'; color: #4F6063; margin: 0; }
.fxaf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.fxaf-chip {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  border: 1px solid #E2E7EB;
  border-radius: 999px;
  background: #FAFBFC;
  font: 400 13px/18px 'Open Sans';
  color: #2F4F57; cursor: pointer;
  transition: all .15s;
}
.fxaf-chip:hover {
  border-color: #568793;
  background: rgba(86,135,147,.06);
  box-shadow: 0 2px 8px rgba(86,135,147,.12);
}
.fxaf-chip-icon { font: normal 15px 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; color: #568793; }

/* Conversation messages */
.fxaf-user-msg { display: flex; justify-content: flex-end; }
.fxaf-user-bubble {
  max-width: 70%;
  padding: 10px 16px;
  background: rgba(86,135,147,.1);
  border: 1px solid rgba(86,135,147,.2);
  border-radius: 16px 16px 4px 16px;
  font: 400 14px/21px 'Open Sans';
  color: #172326;
  animation: cmdk-fade-in .2s ease;
}
.fxaf-think-row {
  display: flex; align-items: center; gap: 12px;
  animation: cmdk-fade-in .2s ease;
}
.fxaf-think-avatar .fxn-avatar { width: 28px !important; height: 28px !important; border-radius: 6px !important; animation: agentPulse .9s ease-in-out infinite; }
.fxaf-think-dots { display: flex; align-items: center; gap: 5px; }
.fxaf-think-dots .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #568793; opacity: 0.3;
  animation: thinkDot 1.2s ease-in-out infinite;
}
.fxaf-think-dots .dot:nth-child(2) { animation-delay: .18s; }
.fxaf-think-dots .dot:nth-child(3) { animation-delay: .36s; }
.fxaf-think-text { font: 400 12px/16px 'Open Sans'; color: #568793; margin-left: 6px; animation: cmdk-fade-in .3s ease; }
.fxaf-resp-row { display: flex; align-items: flex-start; gap: 12px; animation: cmdk-fade-in .25s ease; }
.fxaf-resp-avatar .fxn-avatar { width: 28px !important; height: 28px !important; border-radius: 6px !important; flex-shrink: 0; }
.fxaf-resp-content { flex: 1; min-width: 0; }
.fxaf-resp-label {
  display: flex; align-items: center;
  font: 700 11px/14px 'Open Sans';
  letter-spacing: 0.3px; text-transform: uppercase;
  color: #568793; margin-bottom: 8px;
}
.fxaf-resp-text {
  font: 400 14px/22px 'Open Sans';
  color: #2F4F57; margin: 0;
  max-width: 640px;
}
.fxaf-resp-cards {
  display: flex; flex-direction: column; gap: 6px;
  margin-top: 14px; max-width: 480px;
}
.fxaf-rcard {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  border: 1px solid #E8ECEF;
  border-radius: 10px;
  background: #FAFBFC;
  cursor: pointer; text-decoration: none;
  transition: all .12s;
}
.fxaf-rcard:hover { border-color: #568793; background: rgba(86,135,147,.05); transform: translateX(2px); box-shadow: 0 2px 8px rgba(86,135,147,.1); }
.fxaf-rcard-label { font: 600 13px/18px 'Open Sans'; color: #172326; }
.fxaf-rcard-sub   { font: 400 11px/16px 'Open Sans'; color: #8B9092; margin-left: 6px; }
.fxaf-resp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.fxaf-raction {
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(86,135,147,.4);
  background: rgba(86,135,147,.07);
  font: 600 12px/16px 'Open Sans';
  color: #2F4F57; cursor: pointer;
  transition: all .15s; position: relative; overflow: hidden;
}
.fxaf-raction:hover { background: rgba(86,135,147,.18); border-color: #568793; color: #568793; }
.fxaf-results-in { animation: cmdk-results-pop .25s cubic-bezier(.22,.68,0,1.2); }

/* Input bar */
.fxaf-input-bar {
  flex-shrink: 0;
  padding: 14px 24px 16px;
  border-top: 1px solid #EEF0F2;
  background: #ffffff;
}
.fxaf-input-wrap {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  border: 1.5px solid #E2E7EB;
  border-radius: 999px;
  background: #FAFBFC;
  transition: border-color .15s, box-shadow .15s;
}
.fxaf-input-wrap:focus-within {
  border-color: #568793;
  box-shadow: 0 0 0 3px rgba(86,135,147,.1);
}
.fxaf-input-icon {
  font-size: 20px !important;
  font-family: 'Material Icons Outlined' !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: #A8B4B8; flex-shrink: 0;
  transition: color .2s;
}
.fxaf-icon-ai {
  color: #568793 !important;
  animation: cmdk-icon-pop .35s cubic-bezier(.22,.68,0,1.4);
}
.fxaf-input {
  flex: 1; border: none; outline: none; background: transparent;
  font: 400 15px/22px 'Open Sans';
  color: #172326; letter-spacing: 0.1px;
}
.fxaf-input::placeholder { color: #A8B4B8; }
.fxaf-send {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  border: none; background: #568793; color: white;
  cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.fxaf-send:hover { background: #3C636C; transform: scale(1.05); }
.fxaf-send .icon { font-size: 18px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.fxaf-input-hints {
  margin-top: 8px;
  font: 400 11px/16px 'Open Sans';
  color: #C0CAD0;
  text-align: center;
}
.fxaf-input-hints kbd {
  font: 500 10px/14px 'Open Sans';
  padding: 1px 5px;
  border: 1px solid #E2E7EB;
  border-radius: 3px;
  background: white;
  color: #8B9092;
  margin-right: 2px;
}

/* ─── Per-page agent status bar ──────────────────────────────────────── */
/* ─── Agent chip — inline in list-page-header right side ─────────────── */
.fx-agent-chip {
  display: flex; align-items: center; gap: 6px;
  padding: 5px 10px 5px 8px;
  border-radius: 999px;
  background: rgba(86,135,147,.10);
  border: 1px solid rgba(86,135,147,.22);
  font: 400 11px/15px 'Open Sans';
  color: #568793;
  white-space: nowrap;
  flex-shrink: 0;
}
.fx-agent-chip-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #27AE60; flex-shrink: 0;
  animation: cmdk-dot-pulse 2.2s ease-in-out infinite;
}
.fx-agent-chip-text { color: #4F6063; }
.fx-agent-chip-sep  { color: #C8D4D8; }
.fx-agent-chip-meta { color: #A8B4B8; font-size: 10px; }
.fx-agent-chip-badge {
  padding: 1px 6px;
  border-radius: 999px;
  background: rgba(39,174,96,.1);
  border: 1px solid rgba(39,174,96,.25);
  font: 700 9px/13px 'Open Sans';
  letter-spacing: 0.4px;
  color: #27AE60;
  animation: liveBadgeGlow 2.5s ease-in-out infinite;
}
.fx-agent-chip-badge-live { background: rgba(39,174,96,.1); border-color: rgba(39,174,96,.3); color: #27AE60; }
.fx-agent-chip-badge-warn { background: rgba(242,153,74,.1); border-color: rgba(242,153,74,.3); color: #C2873B; animation: none; }

/* ─── Fixenator Queue "+2 new" pill ─────────────────────────────────── */
.fxn-col-new {
  font: 700 9px/12px 'Open Sans';
  letter-spacing: 0.4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(39,174,96,.12);
  border: 1px solid rgba(39,174,96,.3);
  color: #27AE60;
  margin-left: 2px;
  animation: liveBadgeGlow 2.5s ease-in-out infinite;
}

/* ─── Inline action execution — ask-full.js ──────────────────────────── */
.fxaf-exec-actions {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 8px;
}
.fxaf-nav-actions {
  display: flex; gap: 8px; flex-wrap: wrap;
  margin-top: 4px;
  padding-top: 10px;
  border-top: 1px solid #F0F3F5;
}

/* Execute buttons (primary/secondary) */
.fxaf-raction-exec {
  display: flex; align-items: center; gap: 8px;
  width: 100%;
  padding: 10px 16px;
  border-radius: 8px;
  font: 600 13px/18px 'Open Sans';
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
}
.fxaf-raction-primary {
  background: rgba(86,135,147,.1);
  border: 1px solid rgba(86,135,147,.35);
  color: #2F4F57;
}
.fxaf-raction-primary:hover { background: rgba(86,135,147,.18); border-color: #568793; color: #172326; box-shadow: 0 2px 8px rgba(86,135,147,.15); }
.fxaf-raction-secondary {
  background: #F7F8F9;
  border: 1px solid #E2E7EB;
  color: #4F6063;
}
.fxaf-raction-secondary:hover { background: #EEF0F2; border-color: #C0CAD0; }

/* Nav links */
.fxaf-raction-nav {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid #E2E7EB;
  background: transparent;
  font: 500 12px/16px 'Open Sans';
  color: #568793;
  cursor: pointer; text-decoration: none;
  transition: all .12s;
}
.fxaf-raction-nav:hover { border-color: #568793; background: rgba(86,135,147,.06); }

/* Confirm state */
.fxaf-raction-confirming {
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 10px !important;
  padding: 12px 16px !important;
  background: rgba(86,135,147,.08) !important;
  border-color: #568793 !important;
}
.fxaf-exec-confirm-text {
  font: 400 12px/18px 'Open Sans';
  color: #4F6063;
}
.fxaf-exec-btns {
  display: flex; gap: 8px;
}
.fxaf-exec-yes {
  padding: 5px 14px;
  border-radius: 999px;
  border: none;
  background: #568793;
  color: white;
  font: 700 12px/16px 'Open Sans';
  cursor: pointer;
  transition: background .12s;
}
.fxaf-exec-yes:hover { background: #3C636C; }
.fxaf-exec-no {
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #E2E7EB;
  background: white;
  color: #8B9092;
  font: 500 12px/16px 'Open Sans';
  cursor: pointer;
}

/* Executing state */
.fxaf-raction-executing {
  opacity: 0.7;
  cursor: not-allowed !important;
  gap: 10px !important;
}
.fxaf-exec-spinner {
  display: inline-block;
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(86,135,147,.25);
  border-top-color: #568793;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Done state */
.fxaf-raction-done {
  background: rgba(39,174,96,.1) !important;
  border-color: rgba(39,174,96,.3) !important;
  color: #27AE60 !important;
  cursor: default !important;
}
.fxaf-raction-done .fxaf-raction-icon { color: #27AE60 !important; }

/* Icon in action buttons */
.fxaf-raction-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 16px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #568793;
  flex-shrink: 0;
}

/* Follow-up success message */
.fxaf-exec-success-text {
  font: 400 13px/21px 'Open Sans';
  color: #27AE60;
  margin: 0;
}

/* ─── AuditFlow Fixenator Queue inline approve ───────────────────────── */
.inv-fxn-approve-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  margin-top: 8px;
  border-top: 1px solid rgba(86,135,147,.12);
  border-radius: 0 0 8px 8px;
  background: rgba(86,135,147,.03);
}
.inv-fxn-approve-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(86,135,147,.35);
  background: rgba(86,135,147,.1);
  color: #2F4F57;
  font: 700 12px/16px 'Open Sans';
  cursor: pointer;
  transition: all .15s;
}
.inv-fxn-approve-btn:hover { background: #568793; color: white; border-color: #568793; box-shadow: 0 2px 8px rgba(86,135,147,.25); }
.inv-fxn-approve-btn .icon { font-size: 14px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.inv-fxn-approve-conf { font: 400 11px/15px 'Open Sans'; color: #A8B4B8; }
.inv-fxn-approved-label {
  display: flex; align-items: center; gap: 6px;
  font: 600 12px/16px 'Open Sans';
  color: #27AE60;
  animation: cmdk-fade-in .3s ease;
}
.inv-fxn-approved-label .icon { font-size: 15px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.inv-card-approved { opacity: 0.7; border-color: rgba(39,174,96,.3) !important; background: rgba(39,174,96,.03); }

/* ── Sidebar Material Icon nav item ─────────────────────────────────── */
.side-nav-mi {
  font-family: 'Material Icons Outlined' !important;
  font-size: 22px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  display: block;
  opacity: inherit;
  color: inherit;
  transition: opacity .12s;
}

/* ── Quotations page ─────────────────────────────────────────────────── */
.qt-page { display: flex; flex-direction: column; gap: 0; }
.qt-summary {
  display: flex; gap: 0;
  background: #F7F8FA;
  border: 1px solid #E8ECEF;
  border-radius: 8px;
  margin-bottom: 12px;
  overflow: hidden;
}
.qt-sum-stat {
  display: flex; flex-direction: column; gap: 2px;
  padding: 14px 18px;
  border-right: 1px solid #E8ECEF;
  flex: 1;
}
.qt-sum-stat:last-child { border-right: none; }
.qt-sum-right { background: white; }
.qt-sum-val { font: 600 20px/26px 'Open Sans'; color: #172326; }
.qt-sum-lbl { font: 400 11px/14px 'Open Sans'; color: #8B9092; }

.qt-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  margin: 12px 0 10px;
  flex-wrap: wrap;
}
.qt-filter-tabs { display: flex; gap: 2px; }
.qt-filter-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid #E2E7EB;
  border-radius: 6px;
  background: transparent;
  font: 500 12px/16px 'Open Sans';
  color: #4F6063;
  cursor: pointer;
  transition: all .12s;
}
.qt-filter-tab:hover { border-color: #568793; color: #2F4F57; }
.qt-filter-tab.active { background: rgba(86,135,147,.1); border-color: #568793; color: #2F4F57; font-weight: 700; }
.qt-filter-tab-risk.active { background: rgba(237,50,59,.08); border-color: #ED323B; color: #ED323B; }
.qt-filter-count {
  padding: 1px 6px; border-radius: 999px;
  background: #E8ECEF;
  font: 700 10px/14px 'Open Sans';
  color: #8B9092;
}
.qt-filter-tab.active .qt-filter-count { background: rgba(86,135,147,.2); color: #568793; }
.qt-search-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  border: 1px solid #E2E7EB;
  border-radius: 6px;
  background: white;
  transition: border-color .12s;
}
.qt-search-wrap:focus-within { border-color: #568793; }
.qt-search-wrap .icon { font-size: 16px !important; color: #A8B4B8; }
.qt-search {
  border: none; outline: none;
  font: 400 13px/18px 'Open Sans';
  color: #172326; width: 220px;
}
.qt-search::placeholder { color: #C0CAD0; }

.qt-table-wrap { overflow-x: auto; }
.qt-main-table { table-layout: auto; min-width: 900px; }
.qt-shp-row { cursor: pointer; transition: background .1s; }
.qt-shp-row:hover { background: rgba(86,135,147,.04) !important; }
.qt-shp-row-open { background: rgba(86,135,147,.07) !important; }
.qt-shp-row-risk td:first-child { border-left: 3px solid #ED323B; }
.qt-shp-id-cell { min-width: 140px; }
.qt-shp-id-wrap { display: flex; align-items: center; gap: 6px; }
.qt-shp-id { font: 700 12px/16px 'Open Sans'; color: #172326; }
.qt-shp-contract { font: 400 11px/14px 'Open Sans'; color: #A8B4B8; margin-top: 2px; }
.qt-shp-lane { font: 400 12px/16px 'Open Sans'; color: #4F6063; min-width: 180px; }
.qt-risk-dot { width: 6px; height: 6px; border-radius: 50%; background: #ED323B; flex-shrink: 0; animation: cmdk-dot-pulse 1.5s ease-in-out infinite; }
.qt-chip {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px; border: 1px solid;
  font: 600 10px/14px 'Open Sans'; letter-spacing: 0.3px;
  text-transform: capitalize; white-space: nowrap;
}
.qt-shp-qts .qt-count {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 999px;
  background: #F0F3F5;
  font: 500 11px/14px 'Open Sans'; color: #4F6063;
  white-space: nowrap;
}
.qt-expand-cell { width: 32px; text-align: center; }
.qt-expand-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important;
  color: #A8B4B8; transition: transform .2s ease;
}

/* Expanded detail */
.qt-detail-row td { padding: 0 !important; background: #F7F8FA; }
.qt-detail-inner { padding: 16px 20px 20px; }
.qt-detail-shp-info {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 12px 20px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #E8ECEF;
}
.qt-detail-field { display: flex; flex-direction: column; gap: 2px; }
.qt-detail-lbl { font: 400 10px/13px 'Open Sans'; color: #A8B4B8; text-transform: uppercase; letter-spacing: 0.4px; }
.qt-detail-val { font: 500 12px/16px 'Open Sans'; color: #172326; }
.qt-detail-quotes-label { font: 700 11px/14px 'Open Sans'; color: #8B9092; text-transform: uppercase; letter-spacing: 0.4px; margin-bottom: 10px; }
.qt-quote-card {
  background: white;
  border: 1px solid #E8ECEF;
  border-left: 3px solid #568793;
  border-radius: 8px;
  padding: 14px 16px;
  margin-bottom: 8px;
}
.qt-quote-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.qt-quote-meta { display: flex; align-items: center; gap: 10px; }
.qt-quote-id   { font: 700 12px/16px 'Open Sans'; color: #172326; }
.qt-quote-seller { font: 400 11px/14px 'Open Sans'; color: #8B9092; }
.qt-quote-right { display: flex; align-items: center; gap: 10px; }
.qt-quote-value { font: 700 15px/20px 'Open Sans'; color: #172326; }
.qt-charges-table th, .qt-charges-table td { padding: 7px 10px; font-size: 12px; }
.qt-charges-total td { font: 700 12px/16px 'Open Sans'; background: #F7F8FA; border-top: 2px solid #E8ECEF !important; }
.qt-quote-expires { margin-top: 8px; font: 400 11px/14px 'Open Sans'; color: #A8B4B8; }
.qt-detail-no-quotes { padding: 12px 0; font: 400 12px/16px 'Open Sans'; color: #A8B4B8; }
.qt-detail-flag { margin-top: 12px; }
.qt-empty { padding: 40px; text-align: center; font: 400 14px/20px 'Open Sans'; color: #A8B4B8; }

/* ─── Home activity boxes ─────────────────────────────────────────────── */
.hmc-act-box {
  background: white;
  border: 1px solid #E8ECEF;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
/* Audit box: neutral */
.hmc-act-box-audit .hmc-act-box-head { background: #F7F8F9; }
/* Prompts box: subtle teal tint */
.hmc-act-box-prompts { border-color: rgba(86,135,147,.2); }
.hmc-act-box-prompts .hmc-act-box-head { background: rgba(86,135,147,.06); border-bottom-color: rgba(86,135,147,.15); }
/* Agent box: slightly more prominent */
.hmc-act-box-agent { border-color: rgba(86,135,147,.25); }
.hmc-act-box-agent .hmc-act-box-head { background: rgba(86,135,147,.08); border-bottom-color: rgba(86,135,147,.18); }

.hmc-act-box-head {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #E8ECEF;
}
.hmc-act-box-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 15px !important;
  text-transform: none !important; letter-spacing: 0 !important;
  color: #8B9092;
}
.hmc-act-box-ai-star {
  font-size: 13px;
  color: #568793;
  animation: aiStarTwinkle 4s ease-in-out infinite;
  flex-shrink: 0;
}
.hmc-act-box-title {
  font: 600 12px/16px 'Open Sans';
  color: #172326; flex: 1;
  letter-spacing: 0.1px;
}
.hmc-act-see-all {
  font: 500 11px/14px 'Open Sans';
  color: #568793; background: none; border: none;
  cursor: pointer; padding: 2px 0;
  transition: color .12s;
}
.hmc-act-see-all:hover { color: #3C636C; text-decoration: underline; }

/* Activity items */
.hmc-act-list { padding: 4px 0; }
.hmc-act-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #F5F7F8;
  transition: background .1s;
}
.hmc-act-item:last-child { border-bottom: none; }
.hmc-act-item:hover { background: rgba(86,135,147,.04); }
.hmc-act-item-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 14px !important; text-transform: none !important; letter-spacing: 0 !important;
  flex-shrink: 0;
}
.hmc-act-item-body { flex: 1; min-width: 0; }
.hmc-act-item-text {
  font: 400 12px/16px 'Open Sans';
  color: #2F4F57;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hmc-act-item-time { font: 400 10px/13px 'Open Sans'; color: #A8B4B8; }
.hmc-act-empty { padding: 12px 14px; font: 400 12px/16px 'Open Sans'; color: #C0CAD0; }

/* Recently used prompts */
.hmc-prompt-link {
  display: flex; align-items: center; gap: 8px;
  width: 100%; padding: 8px 14px;
  border: none; background: transparent;
  text-align: left; cursor: pointer;
  border-bottom: 1px solid #F5F7F8;
  transition: background .1s;
}
.hmc-prompt-link:last-child { border-bottom: none; }
.hmc-prompt-link:hover { background: rgba(86,135,147,.06); }
.hmc-prompt-text {
  font: 400 12px/17px 'Open Sans'; color: #568793;
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.hmc-prompt-arrow {
  font-family: 'Material Icons Outlined' !important;
  font-size: 13px !important; text-transform: none !important; letter-spacing: 0 !important;
  color: #A8B4B8; flex-shrink: 0;
}

/* "See all" modal */
.hmc-all-modal { width: 520px !important; }
.hmc-all-modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid #EEF0F2;
  background: #F7F8F9;
}
.hmc-all-modal-title { font: 700 14px/18px 'Open Sans'; color: #172326; }
.hmc-all-modal-body { max-height: 480px; overflow-y: auto; }
.hmc-all-modal-body .hmc-act-item { padding: 10px 20px; }

/* ─── Final polish — micro-refinements ───────────────────────────────── */

/* Breadcrumb: tighter font weight on links vs current page */
.header-breadcrumb a { font-weight: 400; opacity: 0.7; }
.header-breadcrumb a:hover { opacity: 1; text-decoration: none; color: var(--fx-primary-500); }
.header-breadcrumb .current { opacity: 1; }

/* Notification AI section label — tighter padding */
.hdr-notif-section-label { padding: 6px 16px 3px; }

/* Smooth focus rings on all interactive elements */
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid rgba(86,135,147,.5);
  outline-offset: 2px;
  border-radius: 4px;
}

/* App shell — prevent content flash on route change */
#content-root { transition: none; }

/* Page title count chip — consistent weight */
.list-page-title .count { font-size: 16px; font-weight: 400; }

/* ai-callout icon size fix */
.ai-callout .icon { font-size: 14px !important; }
.ai-callout-sep { margin: 0 2px; }

/* Invoice detail tab active indicator — match production 3px */
.inv-sub-tab.active { border-bottom-width: 3px; }

/* Contracts grid responsive — better at wider screens */
@media (min-width: 1400px) {
  .contracts-grid { grid-template-columns: repeat(auto-fill, minmax(420px, 1fr)); }
}

/* Kanban horizontal scroll — hide scrollbar track when not scrolling */
.audit-board { scrollbar-gutter: stable; }

/* Reco chat sidebar — remove hardcoded min-height to allow flex shrink */
.reco-chat-sidebar { min-height: 0; flex: 1; }

/* Quotations table — consistent header height */
.qt-ships-table thead th { height: 38px; vertical-align: middle; }

/* Home progress card — remove the word "invoice lines approved by Fixenator" trailing text from being too long */
.hmc-prog-meta { font-size: 10px !important; }

/* Ensure all data tables use border-box */
.data-table { box-sizing: border-box; }

/* Finer placeholder opacity */
input::placeholder, textarea::placeholder { opacity: 0.55; }

/* ─── Home center column — Briefing + Inline Chat ────────────────────── */
.hmc-center-scroll {
  flex: 1; overflow-y: auto;
  display: flex; flex-direction: column;
  padding: 16px 16px 8px;
  gap: 12px;
  min-height: 0;
}

/* Daily Briefing card */
.hmc-briefing-card {
  background: #F7F8F9;
  border: 1px solid #E8ECEF;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.hmc-briefing-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: white;
  border-bottom: 1px solid #E8ECEF;
}
.hmc-briefing-avatar .fxn-avatar { width: 28px !important; height: 28px !important; border-radius: 6px !important; }
.hmc-briefing-meta { display: flex; flex-direction: column; gap: 1px; }
.hmc-briefing-name { font: 600 12px/16px 'Open Sans'; color: #172326; }
.hmc-briefing-time { font: 400 10px/14px 'Open Sans'; color: #A8B4B8; }
.hmc-briefing-bullets { display: flex; flex-direction: column; }
.hmc-bullet {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 9px 14px;
  border-bottom: 1px solid #F0F3F5;
  text-decoration: none;
  cursor: pointer;
  transition: background .1s;
}
.hmc-bullet:last-child { border-bottom: none; }
.hmc-bullet:hover { background: rgba(86,135,147,.05); }
.hmc-bullet-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 15px !important; text-transform: none !important; letter-spacing: 0 !important;
  color: #568793; flex-shrink: 0; margin-top: 1px;
}
.hmc-bullet span:last-child { font: 400 12px/17px 'Open Sans'; color: #2F4F57; }
.hmc-bullet span:last-child b { font-weight: 700; color: #172326; }

/* Chat messages area */
.hmc-chat-messages { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 8px; }

/* User bubble */
.hmc-chat-user { display: flex; justify-content: flex-end; }
.hmc-chat-user-bubble {
  max-width: 80%;
  padding: 8px 12px;
  background: rgba(86,135,147,.1);
  border: 1px solid rgba(86,135,147,.2);
  border-radius: 14px 14px 4px 14px;
  font: 400 13px/18px 'Open Sans'; color: #172326;
  animation: cmdk-fade-in .2s ease;
}

/* Fixenator response */
.hmc-chat-fxn { display: flex; align-items: flex-start; gap: 8px; }
.hmc-chat-fxn-avatar .fxn-avatar { width: 24px !important; height: 24px !important; border-radius: 5px !important; flex-shrink: 0; }
.hmc-chat-fxn-bubble {
  flex: 1; min-width: 0;
  padding: 8px 12px;
  background: white;
  border: 1px solid #E8ECEF;
  border-radius: 4px 14px 14px 14px;
  animation: cmdk-fade-in .2s ease;
}
.hmc-chat-thinking {
  display: flex; align-items: center; gap: 5px;
  padding: 10px 12px;
}
.hmc-chat-thinking .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #568793; opacity: .3;
  animation: thinkDot 1.2s ease-in-out infinite;
}
.hmc-chat-thinking .dot:nth-child(2) { animation-delay: .18s; }
.hmc-chat-thinking .dot:nth-child(3) { animation-delay: .36s; }
.hmc-chat-fxn-text { font: 400 13px/20px 'Open Sans'; color: #2F4F57; margin: 0; }
.hmc-chat-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.hmc-chat-action {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(86,135,147,.35);
  background: rgba(86,135,147,.06);
  font: 600 11px/15px 'Open Sans'; color: #568793;
  text-decoration: none; cursor: pointer; transition: all .12s;
}
.hmc-chat-action:hover { background: rgba(86,135,147,.14); border-color: #568793; }

/* Sticky ask bar */
.hmc-center-ask {
  flex-shrink: 0;
  padding: 8px 14px 14px;
  border-top: 1px solid #EEF0F2;
  background: white;
}
.hmc-chat-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-bottom: 8px;
}
.hmc-chat-chip {
  display: inline-flex; align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #E2E7EB;
  background: #F7F8F9;
  font: 400 11px/15px 'Open Sans'; color: #4F6063;
  cursor: pointer; transition: all .12s;
  white-space: nowrap;
}
.hmc-chat-chip:hover { border-color: #568793; color: #568793; background: rgba(86,135,147,.06); }
.hmc-ask-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 10px;
  border: 1.5px solid #E2E7EB;
  border-radius: 10px;
  background: #FAFBFC;
  transition: border-color .15s, box-shadow .15s;
}
.hmc-ask-bar:focus-within {
  border-color: #568793;
  box-shadow: 0 0 0 3px rgba(86,135,147,.1);
}
.hmc-ask-avatar .fxn-avatar { width: 24px !important; height: 24px !important; border-radius: 5px !important; flex-shrink: 0; animation: agentPulse 3s ease-in-out infinite; }
.hmc-ask-input {
  flex: 1; border: none; outline: none; background: transparent;
  font: 400 13px/18px 'Open Sans'; color: #172326;
}
.hmc-ask-input::placeholder { color: #A8B4B8; }
.hmc-ask-send {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 8px;
  border: none; background: #568793; color: white;
  cursor: pointer; flex-shrink: 0; transition: background .12s;
}
.hmc-ask-send:hover { background: #3C636C; }
.hmc-ask-send .icon { font-size: 15px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.hmc-ask-send:disabled { background: #D0D8DC; cursor: default; }

/* ─── Home unified activity feed ─────────────────────────────────────── */
.hmc-feed { display: flex; flex-direction: column; padding-bottom: 8px; }
.hmc-feed-item {
  display: flex; gap: 14px;
  animation: cmdk-fade-in .25s ease both;
}
.hmc-feed-icon-wrap {
  display: flex; flex-direction: column; align-items: center;
  width: 28px; flex-shrink: 0;
}
.hmc-feed-icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important;
  flex-shrink: 0;
}
.hmc-feed-line {
  width: 1px; flex: 1; min-height: 16px;
  background: #EEF0F2;
  margin: 4px 0;
}
.hmc-feed-body {
  flex: 1; min-width: 0;
  padding-bottom: 16px;
}
.hmc-feed-tag {
  display: inline-block;
  font: 700 9px/12px 'Open Sans';
  letter-spacing: 0.4px; text-transform: uppercase;
  color: #568793; margin-bottom: 3px;
}
.hmc-feed-tag-user { color: #8B9092; }
.hmc-feed-text {
  font: 400 13px/18px 'Open Sans'; color: #2F4F57;
  margin-bottom: 2px;
}
.hmc-feed-time { font: 400 11px/14px 'Open Sans'; color: #A8B4B8; }

/* ─── Home Ask Fixenator entry bar ──────────────────────────────────── */
.hmc-ask-entry {
  display: flex; align-items: center; gap: 10px;
  width: 100%; padding: 12px 14px;
  border: 1.5px solid rgba(86,135,147,.25);
  border-radius: 10px;
  background: rgba(86,135,147,.04);
  cursor: pointer;
  transition: all .15s ease;
  text-align: left;
  flex-shrink: 0;
}
.hmc-ask-entry:hover {
  border-color: #568793;
  background: rgba(86,135,147,.08);
  box-shadow: 0 2px 12px rgba(86,135,147,.12);
}
.hmc-ask-entry-avatar .fxn-avatar {
  width: 26px !important; height: 26px !important;
  border-radius: 6px !important;
  animation: agentPulse 3s ease-in-out infinite;
}
.hmc-ask-entry-placeholder {
  flex: 1;
  font: 400 13px/18px 'Open Sans';
  color: #A8B4B8;
}
.hmc-ask-entry-arrow {
  font-family: 'Material Icons Outlined' !important;
  font-size: 18px !important; text-transform: none !important; letter-spacing: 0 !important;
  color: #568793; flex-shrink: 0;
  transition: transform .15s ease;
}
.hmc-ask-entry:hover .hmc-ask-entry-arrow { transform: translateX(3px); }

/* ─── Home UX improvements ───────────────────────────────────────────── */

/* Overflow link below decision cards */
.hmc-more-link {
  display: flex; align-items: center; gap: 5px;
  padding: 9px 12px;
  font: 500 12px/16px 'Open Sans';
  color: #568793; text-decoration: none;
  border: 1px solid rgba(86,135,147,.2);
  border-radius: 6px;
  background: rgba(86,135,147,.04);
  margin-bottom: 12px;
  transition: all .12s;
}
.hmc-more-link:hover { background: rgba(86,135,147,.1); border-color: #568793; }
.hmc-more-link .icon { font-size: 16px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Slim progress strip — replaces heavy dark card */
.hmc-prog-strip {
  margin-top: 12px; padding: 10px 14px;
  background: rgba(86,135,147,.04);
  border: 1px solid rgba(86,135,147,.12);
  border-radius: 8px;
}
.hmc-prog-strip-top {
  display: flex; align-items: center; gap: 8px;
}
.hmc-prog-strip-label {
  flex: 1;
  font: 400 11px/15px 'Open Sans';
  color: #8B9092;
}
.hmc-prog-strip-pct {
  font: 700 13px/16px 'Open Sans';
  color: #568793;
}

/* Feed date group labels */
.hmc-feed-group-label {
  font: 600 10px/13px 'Open Sans';
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #A8B4B8;
  padding: 4px 0 10px;
}
.hmc-feed-group-label-yesterday { padding-top: 16px; margin-top: 4px; border-top: 1px solid #F0F3F5; }

/* Feed item footer (time + view link) */
.hmc-feed-foot {
  display: flex; align-items: center; gap: 10px;
  margin-top: 2px;
}
.hmc-feed-link {
  display: inline-flex; align-items: center; gap: 2px;
  font: 500 11px/14px 'Open Sans';
  color: #568793; text-decoration: none;
  opacity: 0; transition: opacity .15s;
}
.hmc-feed-link .icon { font-size: 11px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.hmc-feed-item:hover .hmc-feed-link { opacity: 1; }

/* ─── Decision card — 4 equal-weight actions ────────────────────────── */
.hmc-card-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.hmc-act-grid {
  display: flex; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 6px;
  border-radius: 6px;
  border: 1px solid #D8DDE2;
  background: #F7F8F9;
  font: 600 10px/13px 'Open Sans';
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: all .12s;
  color: #4F6063;
}
.hmc-act-grid .icon {
  font-family: 'Material Icons Outlined' !important;
  font-size: 12px !important; text-transform: none !important; letter-spacing: 0 !important;
}
.hmc-act-approve { color: #27AE60; border-color: rgba(39,174,96,.25); background: rgba(39,174,96,.05); }
.hmc-act-approve:hover { background: rgba(39,174,96,.12); border-color: #27AE60; }
.hmc-act-grid.hmc-act-send:hover    { color: #568793; border-color: rgba(86,135,147,.4); background: rgba(86,135,147,.06); }
.hmc-act-grid.hmc-act-dispute:hover { color: #F2994A; border-color: rgba(242,153,74,.4); background: rgba(242,153,74,.06); }
.hmc-act-grid.hmc-act-decline:hover { color: #ED323B; border-color: rgba(237,50,59,.3); background: rgba(237,50,59,.04); }

/* ─── Final micro-polish pass ─────────────────────────────────────────── */

/* Smooth all cursor:pointer elements that were missing transitions */
.hdr-notif-viewall, .hdr-currency-item, .hdr-account-section { transition: background .12s; }
.hdr-account-link:hover .icon { color: var(--fx-primary-500); }

/* All clear pill — more premium */
.hmc-all-clear .icon { font-size: 18px !important; }

/* Feed group labels — tighter cap height */
.hmc-feed-group-label { letter-spacing: 0.6px; }

/* Prog strip pct — match Fixenator teal */
.hmc-prog-strip-pct { color: #568793; font: 700 14px/18px 'Open Sans'; }

/* Section head badges on auditflow */
.hmc-badge .hmc-status-dot { flex-shrink: 0; }

/* Chart container aspect ratio — prevent squish on narrow screens */
.dash-panel canvas { max-height: 300px; }

/* Invoice chip text always capitalize */
.fx-chip { text-transform: capitalize; }

/* Breadcrumb active segment slightly bolder */
.header-breadcrumb .current { font-weight: 700; letter-spacing: -0.1px; }

/* Focus ring uniform across all inputs */
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid rgba(86,135,147,.5);
  outline-offset: 1px;
}

/* Reco chat sidebar scrollbar */
.reco-chat-sidebar::-webkit-scrollbar { width: 3px; }
.reco-chat-sidebar::-webkit-scrollbar-thumb { background: rgba(86,135,147,.25); border-radius: 2px; }

/* Subtle hover on kanban column headers */
.column-header .fx-tag-wrap:hover .fx-tag { opacity: .85; }

/* Activity feed link arrow on hover */
.hmc-feed-link .icon { transition: transform .15s; }
.hmc-feed-item:hover .hmc-feed-link .icon { transform: translateX(2px); }

/* ─── Home modular layout ────────────────────────────────────────────── */

/* Layout toggle button */
.hmc-layout-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 6px;
  border: 1px solid rgba(0,0,0,.08); background: transparent;
  color: #A8B4B8; cursor: pointer;
  transition: all .12s;
}
.hmc-layout-toggle:hover { border-color: #568793; color: #568793; background: rgba(86,135,147,.06); }
.hmc-layout-toggle .icon { font-size: 14px !important; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }

/* Optional logs column — slides in when toggled */
.hmc-logs {
  width: 248px;
  flex-shrink: 0;
  padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  background: #F7F8F9;
  border-left: 1px solid #EEF0F2;
  overflow-y: auto;
  animation: cmdk-fade-in .2s ease;
}

/* ── Keyboard shortcut focused card ─────────────────────────────────── */
.hmc-card.kb-focused {
  outline: 2px solid rgba(86,135,147,.6);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(86,135,147,.1), 0 8px 24px rgba(15,30,38,.1);
}

/* ── Export progress bar ─────────────────────────────────────────────── */
.fx-export-progress {
  position: fixed; bottom: 24px; right: 24px; z-index: 3000;
  background: white; border: 1px solid #E8ECEF;
  border-radius: 10px; padding: 14px 18px;
  width: 300px;
  box-shadow: 0 8px 32px rgba(15,30,38,.18);
  opacity: 0; transform: translateY(8px);
  transition: opacity .22s ease, transform .22s ease;
  pointer-events: none;
}
.fx-export-progress.show { opacity: 1; transform: translateY(0); }
.fx-export-header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.fx-export-header .icon { font-size: 16px !important; color: #568793; font-family: 'Material Icons Outlined' !important; text-transform: none !important; letter-spacing: 0 !important; }
.fx-export-name { font: 600 12px/16px 'Open Sans'; color: #172326; flex: 1; }
.fx-export-size { font: 400 11px/14px 'Open Sans'; color: #A8B4B8; }
.fx-export-bar-track { height: 4px; background: #F0F3F5; border-radius: 999px; overflow: hidden; margin-bottom: 6px; }
.fx-export-bar-fill { height: 100%; background: linear-gradient(90deg, #568793, #27AE60); border-radius: 999px; width: 0%; transition: width .35s ease; }
.fx-export-status { font: 400 11px/14px 'Open Sans'; color: #8B9092; }

/* ── Mobile baseline (tablet 768px, phone 480px) ────────────────────── */
@media (max-width: 900px) {
  /* Home: stack columns vertically */
  .hmc-grid { flex-direction: column; height: auto; overflow: visible; }
  .hmc-left { width: 100%; border-right: none; border-bottom: 1px solid #EEF0F2; max-height: 60vh; }
  .hmc-right { width: 100%; }
  .hmc-logs { display: none; } /* hide log column on mobile */
  .hmc-hero { grid-template-columns: 1fr; height: auto; padding: 24px 24px 20px; gap: 20px; }
  .hmc-hero-kpis { display: none; } /* KPIs hidden on mobile — hero stays clean */
  .hmc-hero-right { display: none; }

  /* Sidebar: icon-only on tablet */
  .side-nav-item .nav-label { display: none; }
  .side-nav-ask .nav-label { display: none; }
  .side-nav-cmdk .cmdk-label { display: none; }
}
@media (max-width: 600px) {
  /* Invoice detail: single column */
  .inv-page-header { padding: 16px; }
  .inv-info-cards { flex-direction: column; }
  .inv-info-card { min-width: 0; }

  /* List pages: tighten padding */
  .list-page-header { flex-wrap: wrap; gap: 8px; }
  .list-page-title { font-size: 20px; }
}
