/**
 * ============================================================================
 * MILIND AMBEKAR — PRIVATE WEALTH & PORTFOLIO MANAGEMENT PLATFORM (v2.1.0)
 * Luxury Private-Banking & Public Corporate Website Stylesheet (`app.css`)
 * ============================================================================
 */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Primary Brand Palette — HPE (Hewlett Packard Enterprise) Electric Emerald, Obsidian Carbon & Sovereign Gold */
  --hpe-emerald-500: #D4AF37;
  --hpe-emerald-400: #FFE58F;
  --hpe-emerald-600: #B8860B;
  --hpe-cyan-400: #1E3A5F;
  --brand-plum-950: #060E1A;
  --brand-plum-900: #0A192F;
  --brand-purple-800: #0F2B48;
  --brand-purple-700: #D4AF37;
  --brand-orchid-500: #1E3A5F;
  --brand-orchid-100: rgba(212, 175, 55, 0.08);
  --brand-gold-500: #D4AF37;
  --brand-gold-600: #B8860B;
  --brand-gold-100: rgba(212, 175, 55, 0.08);

  /* Neutral & Surface Tokens — HPE Architectural Ice Alabaster & Slate */
  --surface-ivory: #F4F8F9;
  --surface-alabaster: #EBF2F4;
  --surface-card: #FFFFFF;
  --surface-elevated: #F7FAFB;
  --border-subtle: #D5E3E6;
  --border-strong: #9EC9C0;

  /* Typography Tokens */
  --text-obsidian: #0B1820;
  --text-slate: #1C2E38;
  --text-muted: #4E6570;
  --text-subtle: #758C96;

  /* Semantic & Field Change Vivid Green Highlight Tokens (Crisp Emerald #047857 / #059669 / #10B981) */
  --change-green-800: #065F46;
  --change-green-700: #047857;
  --change-green-600: #059669;
  --change-green-500: #10B981;
  --change-green-bg: #ECFDF5;
  --change-green-border: #10B981;
  --change-green-border-subtle: #A7F3D0;
  --change-green-badge-bg: #D1FAE5;

  --status-warn-700: #9C6514;
  --status-warn-bg: #FDF4E3;
  --status-danger-700: #B42318;
  --status-danger-bg: #FDECEB;
  --status-info-700: #00688B;
  --status-info-bg: #E6F7FC;

  /* Base Variables Bridged Directly to `wealth-engine.js` (19 Tabs / 301 Fields) */
  --bg: #FFFFFF;
  --bg2: #F4F8F9;
  --bg3: #EBF2F4;
  --bgi: #E6F8F3;
  --bgs: #E6F8F3;
  --bgw: #FDF4E3;
  --bgr: #FDECEB;
  --tx: #0B1820;
  --tx2: #2A404B;
  --tx3: #5F7782;
  --txi: #007A5E;
  --txs: #007A5E;
  --txw: #8A520B;
  --txr: #9B1C1C;
  --bl: #0A192F;
  --bld: #060E1A;
  --bli: #F1F5F9;
  --gn: #01A982;
  --gnl: #E6F8F3;
  --bdr: #E2E8F0;
  --bdrm: #CBD5E1;
  --rm: 10px;
  --rl: 16px;

  /* Font Stacks */
  --fn: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', sans-serif;
  --fn-display: 'Playfair Display', 'Newsreader', Georgia, serif;
  --fn-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(10, 25, 47, 0.04);
  --shadow-md: 0 8px 24px rgba(10, 25, 47, 0.07);
  --shadow-lg: 0 18px 42px rgba(10, 25, 47, 0.12);
  --shadow-plum: 0 12px 32px rgba(10, 25, 47, 0.18);
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--fn);
  background-color: var(--surface-ivory);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(118, 81, 201, 0.06) 0%, transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(212, 175, 55, 0.08) 0%, transparent 46%),
    linear-gradient(180deg, #FCFAF7 0%, #F5F1EC 100%);
  color: var(--text-obsidian);
  min-height: 100vh;
  padding-bottom: 52px;
  overflow-x: hidden;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* ── PUBLIC CORPORATE WEBSITE STYLES (`#viewPublicWebsite`) ─────────────── */
.public-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 18, 23, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1.5px solid rgba(212, 175, 55, 0.38);
  padding: 0.6rem 1.75rem;
  min-height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: nowrap;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(212, 175, 55, 0.24);
  border-radius: 999px;
  padding: 4px 8px;
}

.public-nav-links::-webkit-scrollbar {
  display: none;
}

.public-nav-links a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  white-space: nowrap;
  transition: all 0.18s ease;
}

.public-nav-links a:hover {
  color: #FFFFFF;
  background: rgba(1, 169, 130, 0.24);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 163, 0.45);
}

.public-hero {
  background:
    radial-gradient(circle at 82% 22%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
    radial-gradient(circle at 18% 75%, rgba(30, 58, 95, 0.24) 0%, transparent 50%),
    linear-gradient(145deg, #060E1A 0%, #0A192F 48%, #0F2B48 100%);
  color: #FFFFFF;
  padding: 4.5rem 2rem 4rem;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid rgba(212, 175, 55, 0.35);
}

.public-hero-inner {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 3rem;
  align-items: center;
}

.public-hero h1 {
  font-family: var(--fn-display);
  font-size: 44px;
  line-height: 1.15;
  font-weight: 600;
  color: #FFFFFF;
  margin: 1rem 0 1.2rem;
}

.public-hero p {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.84);
  max-width: 620px;
}

.public-section {
  max-width: 1320px;
  margin: 0 auto;
  padding: 4rem 2rem;
}

.public-section-alt {
  background: var(--surface-alabaster);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.public-section-dark {
  background: linear-gradient(145deg, #060E1A 0%, #0A192F 100%);
  color: #FFFFFF;
}

.public-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-purple-700);
  margin-bottom: 0.5rem;
}

.public-section-title {
  font-family: var(--fn-display);
  font-size: 32px;
  color: var(--brand-plum-900);
  margin-bottom: 0.75rem;
  line-height: 1.22;
}

.public-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.public-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
}

.public-luxury-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.public-luxury-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-gold-500);
}

.public-luxury-card h3 {
  font-family: var(--fn-display);
  font-size: 20px;
  color: var(--brand-plum-900);
  margin-bottom: 0.55rem;
}

.public-luxury-card p {
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.65;
}

.journey-step-rail {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.65rem;
  margin-top: 2rem;
}

.journey-step-node {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 14px;
  padding: 1.15rem 0.9rem;
  text-align: center;
  transition: all 0.2s;
}

.journey-step-node:hover {
  background: rgba(212, 175, 55, 0.18);
  transform: translateY(-2px);
}

.faq-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.15rem 1.4rem;
  font-size: 15px;
  font-weight: 600;
  color: var(--brand-plum-900);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--fn);
}

.faq-answer {
  padding: 0 1.4rem 1.15rem;
  font-size: 13.8px;
  color: var(--text-muted);
  line-height: 1.65;
  display: none;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ── TOP ENTERPRISE COMMAND BAR ─────────────────────────────────────────── */
.enterprise-topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 25, 47, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(212, 175, 55, 0.28);
  color: #FFFFFF;
  padding: 0.55rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.brand-monogram {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #0A192F;
  font-family: var(--fn-display);
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-titles {
  display: flex;
  flex-direction: column;
}

.brand-eyebrow {
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--brand-gold-500);
  font-weight: 600;
}

.brand-main {
  font-family: var(--fn-display);
  font-size: 15.5px;
  font-weight: 600;
  color: #FFFFFF;
}

.topbar-nav {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.topbar-btn {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 5px 11px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--fn);
}

.topbar-btn:hover {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--brand-gold-500);
  color: #FFFFFF;
}

.topbar-btn.active {
  background: var(--brand-gold-500);
  color: var(--brand-plum-950);
  border-color: var(--brand-gold-500);
  font-weight: 700;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11.5px;
}

.role-tag {
  background: var(--brand-gold-500);
  color: var(--brand-plum-950);
  font-weight: 700;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: 0.05em;
}

/* ── COMPACT PERSISTENT CUSTOMER CONTEXT BAR (DEFECT-003 FIX) ───────────── */
.compact-context-bar {
  position: sticky;
  top: 53px;
  z-index: 950;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.55rem 1rem;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  box-shadow: var(--shadow-sm);
}

.context-identity-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.dossier-sidebar-hierarchy {
  background: linear-gradient(145deg, #060E1A 0%, #0A192F 100%);
  color: #FFFFFF;
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 0.85rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 4px solid #D4AF37;
  box-shadow: 0 4px 16px rgba(6, 14, 26, 0.25);
}

.dossier-hierarchy-header {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--brand-gold-500, #D4AF37);
  font-weight: 700;
  margin-bottom: 6px;
}

.dossier-hierarchy-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  font-size: 11.5px;
  padding: 4.5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.dossier-hierarchy-row:last-child {
  border-bottom: none;
  padding-bottom: 1px;
}

.dossier-hierarchy-row > span:first-child,
.dossier-hierarchy-label {
  color: rgba(255, 255, 255, 0.68);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 60px;
  line-height: 1.35;
}

.dossier-hierarchy-row > strong,
.dossier-hierarchy-row > span:last-child,
.dossier-hierarchy-value {
  text-align: right;
  flex: 1;
  min-width: 0;
  word-break: break-word;
  line-height: 1.35;
}

.tag-demo-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(212, 175, 55, 0.2);
  color: var(--brand-gold-400, #FFE58F);
  border: 1px solid rgba(212, 175, 55, 0.4);
  vertical-align: middle;
  margin-left: 4px;
}

/* ── WORKSPACE SHELL & SIDEBAR TAB MODIFIED BADGES (DEFECT-001/002) ─────── */
.portal-container {
  max-width: 1440px;
  margin: 1rem auto;
  padding: 0 1.25rem;
}

.workspace-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.workspace-shell.has-diff-rail-open {
  grid-template-columns: 220px minmax(0, 1fr) 280px;
}

.workspace-sidebar {
  position: sticky;
  top: 112px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.75rem 0.65rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 165px);
  overflow-y: auto;
}

.workspace-sidebar-title {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  padding: 0 0.3rem;
}

.workspace-sidebar .snav {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 0;
}

.workspace-sidebar .sn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  min-height: 38px;
  font-size: 12px;
  border-radius: 8px;
  background: transparent;
  color: var(--text-slate);
  border: 1px solid transparent;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
}

.workspace-sidebar .sn-left {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.workspace-sidebar .sn-idx {
  font-family: var(--fn-mono);
  font-size: 10.5px;
  opacity: 0.72;
}

.workspace-sidebar .sn-meta {
  font-size: 10.5px;
  font-weight: 700;
}

.workspace-sidebar .sn-meta.has-mod {
  background: var(--change-green-600);
  color: #FFFFFF;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
}

.workspace-sidebar .sn:hover {
  background: var(--surface-alabaster);
  color: var(--brand-purple-700);
}

.workspace-sidebar .sn.active {
  background: var(--brand-purple-700);
  color: #FFFFFF;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.workspace-sidebar .sn.done:not(.active) {
  background: var(--surface-ivory);
  color: var(--brand-plum-900);
}

.workspace-main-column {
  min-width: 0;
  position: relative;
}

#main {
  padding-bottom: 75px !important;
}

/* ── STICKY BOTTOM FORM ACTION BAR (DEDICATED DOCKED TRAY) ─────────────────────── */
.sticky-form-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.65rem 1.25rem;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: nowrap;
  box-shadow: 0 -4px 16px rgba(10, 25, 47, 0.08);
}

/* ── FIELD-LEVEL GREEN CHANGE HIGHLIGHTING (VIVID EMERALD #10B981 / #059669) ──── */
.fg.field-modified-green,
.field-modified-green {
  background: #F0FDF4 !important;
  border: 1.5px solid #10B981 !important;
  border-left: 5px solid #059669 !important;
  border-radius: 11px !important;
  padding: 10px 12px !important;
  transition: all 0.2s ease;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.16) !important;
}

.fg.field-modified-green input,
.fg.field-modified-green select,
.fg.field-modified-green textarea,
input.field-modified-green,
select.field-modified-green,
textarea.field-modified-green {
  border-color: #10B981 !important;
  background-color: #FFFFFF !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22) !important;
}

.field-change-badge {
  margin-top: 8px;
  padding: 6px 12px;
  background: #ECFDF5;
  border: 1px solid #10B981;
  border-left: 4px solid #059669;
  border-radius: 8px;
  font-size: 12px;
  color: #065F46;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  line-height: 1.45;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.12);
}

.field-change-badge .chg-dot {
  color: #059669;
  font-weight: 800;
  font-size: 13px;
}

.field-change-badge strong {
  color: #047857;
}

.field-change-badge .chg-orig {
  color: #6B7280;
  text-decoration: line-through;
  background: #F3F4F6;
  padding: 1px 6px;
  border-radius: 4px;
}

.field-change-badge .chg-new,
.field-change-badge .chg-new-val {
  color: #047857;
  font-weight: 700;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 1px 7px;
  border-radius: 4px;
}

.field-change-badge .chg-added {
  color: #047857;
  font-weight: 700;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 1px 7px;
  border-radius: 4px;
}

.field-change-badge .chg-removed {
  color: #991B1B;
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  padding: 1px 7px;
  border-radius: 4px;
}

.field-change-badge .chg-sep {
  color: #10B981;
  font-weight: 800;
  margin: 0 4px;
}

.live-inr-preview {
  font-family: var(--fn-mono);
  font-size: 11px;
  font-weight: 600;
  color: #047857;
  background: #D1FAE5;
  border: 1px solid #A7F3D0;
  padding: 1px 7px;
  border-radius: 6px;
  margin-left: 6px;
}

.workspace-diff-rail {
  display: none;
}

.workspace-shell.has-diff-rail-open .workspace-diff-rail {
  display: block;
  position: sticky;
  top: 112px;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 0.95rem;
  box-shadow: var(--shadow-sm);
  max-height: calc(100vh - 165px);
  overflow-y: auto;
}

#diffRailCountBadge {
  background: #D1FAE5 !important;
  color: #065F46 !important;
  border: 1px solid #10B981 !important;
  font-weight: 700 !important;
  padding: 2px 8px !important;
  border-radius: 12px !important;
}

.diff-pill-item {
  padding: 0.75rem 0.85rem;
  border-radius: 9px;
  background: #F0FDF4;
  border: 1px solid #10B981;
  border-left: 4px solid #059669;
  margin-bottom: 0.55rem;
  cursor: pointer;
  transition: all 0.18s;
  box-shadow: 0 1px 4px rgba(16, 185, 129, 0.08);
}

.diff-pill-item:hover {
  border-color: #059669;
  background: #ECFDF5;
  transform: translateX(2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.16);
}

.diff-pill-item .diff-title {
  font-size: 12.5px;
  font-weight: 700;
  color: #047857;
}

.diff-pill-item .diff-tab-tag {
  font-size: 10px;
  font-weight: 700;
  background: #D1FAE5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  padding: 2px 7px;
  border-radius: 4px;
}

.diff-pill-item .diff-body {
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin-top: 5px;
}

/* ── LOGIN, CARDS, BUTTONS, TABLES & MODALS ─────────────────────────────── */
.login-shell {
  max-width: 580px;
  margin: 2.5rem auto;
  display: block;
  background: var(--surface-card, #FFFFFF);
  border-radius: 20px;
  border: 1px solid var(--border-subtle, #E2E8F0);
  box-shadow: 0 16px 40px rgba(10, 25, 47, 0.08);
  overflow: hidden;
}

.login-form-panel {
  padding: 2.25rem 2.25rem;
  display: flex;
  flex-direction: column;
  background: var(--surface-card, #FFFFFF);
}

.portal-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface-alabaster);
  padding: 4px;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.portal-mode-btn {
  padding: 9px 12px;
  border: none;
  background: transparent;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: var(--fn);
}

.portal-mode-btn.active {
  background: var(--brand-purple-700);
  color: #FFFFFF;
}

#modeBtnCustomer.active {
  background: #01A982 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(1, 169, 130, 0.28);
}

#modeBtnEmployee.active {
  background: #0A192F !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.28);
}

.demo-roles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.demo-role-card {
  text-align: left;
  padding: 0.6rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-ivory);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--fn);
}

.demo-role-card:hover {
  border-color: var(--brand-purple-700);
  background: var(--brand-orchid-100);
}

.demo-role-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-plum-900);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.demo-role-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.hero-banner-plum {
  background: linear-gradient(135deg, #060E1A 0%, #0A192F 100%);
  color: #FFFFFF;
  border-radius: 18px;
  padding: 1.65rem 2rem;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-left: 5px solid #D4AF37;
}

.principal-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.principal-card {
  background: var(--surface-card);
  border: 1.5px solid var(--border-subtle);
  border-radius: 18px;
  padding: 1.65rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.principal-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--brand-purple-700), var(--brand-gold-500));
}

.principal-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brand-purple-700);
  background: var(--brand-orchid-100);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 0.65rem;
  width: fit-content;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.status-APPROVED, .status-LOCKED {
  background: var(--change-green-bg);
  color: var(--change-green-700);
  border: 1px solid var(--change-green-border);
}

.status-SUBMITTED_FOR_REVIEW, .status-UNDER_REVIEW, .status-RESUBMITTED {
  background: var(--brand-orchid-100);
  color: var(--brand-purple-700);
  border: 1px solid var(--border-strong);
}

.status-CHANGES_REQUESTED {
  background: var(--status-danger-bg);
  color: var(--status-danger-700);
  border: 1px solid #F5B5B0;
}

.status-DRAFT, .status-IN_PROGRESS {
  background: var(--brand-gold-100);
  color: var(--status-warn-700);
  border: 1px solid #EBD098;
}

.prog-bar {
  display: flex;
  gap: 3px;
  margin-bottom: 0.75rem;
}

.ps {
  flex: 1;
  min-width: 10px;
  height: 5px;
  background: var(--border-subtle);
  border-radius: 99px;
}

.ps.done { background: var(--change-green-600); }
.ps.active { background: var(--brand-purple-700); }

.sec-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.25rem 1.45rem;
  margin-bottom: 0.85rem;
  box-shadow: var(--shadow-sm);
}

.sec-eyebrow {
  font-size: 10px;
  color: var(--brand-purple-700);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.sec-h {
  font-family: var(--fn-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-plum-900);
  margin-bottom: 3px;
}

.sec-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.fg { margin-bottom: 14px; }
.fl { font-size: 13px; color: #334155; font-weight: 600; margin-bottom: 5px; display: flex; align-items: center; }
.fn2 { font-size: 11px; color: var(--text-muted); margin-top: 3px; }

input[type=text], input[type=number], input[type=password], input[type=email], input[type=date], select {
  width: 100%;
  padding: 9px 13px;
  min-height: 42px;
  font-size: 13.5px;
  font-family: var(--fn);
  background: var(--surface-card);
  color: var(--text-obsidian);
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

input[type=text]:focus, input[type=number]:focus, input[type=password]:focus, input[type=email]:focus, input[type=date]:focus, select:focus {
  border-color: #2563EB;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

/* Custom Executive Date Input & Calendar Picker Indicator */
input[type=date] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  cursor: pointer;
  width: 100%;
  min-height: 42px;
  height: 42px;
  padding: 8px 14px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: var(--fn);
  color: var(--text-obsidian);
  background: var(--surface-card);
  border: 1.5px solid #CBD5E1;
  border-radius: 8px;
  outline: none;
  box-sizing: border-box;
}

input[type=date]::-webkit-calendar-picker-indicator {
  cursor: pointer;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  padding: 4px;
  border-radius: 6px;
  opacity: 0.8;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23393185' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3Ccircle cx='8' cy='14' r='1.2' fill='%23393185'%3E%3C/circle%3E%3Ccircle cx='12' cy='14' r='1.2' fill='%23393185'%3E%3C/circle%3E%3Ccircle cx='16' cy='14' r='1.2' fill='%23393185'%3E%3C/circle%3E%3Ccircle cx='8' cy='18' r='1.2' fill='%23393185'%3E%3C/circle%3E%3Ccircle cx='12' cy='18' r='1.2' fill='%23393185'%3E%3C/circle%3E%3Ccircle cx='16' cy='18' r='1.2' fill='%23393185'%3E%3C/circle%3E%3C/svg%3E");
  background-size: 18px 18px;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.15s, background-color 0.15s;
}

input[type=date]::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
  background-color: rgba(57, 49, 133, 0.1);
}

.dob-verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: #065F46;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 6px;
}

.dob-hint-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: #64748B;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
}

textarea {
  width: 100%;
  padding: 14px 18px;
  min-height: 120px;
  font-size: 13.8px;
  font-family: var(--fn);
  background: var(--surface-card);
  color: var(--text-obsidian);
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  resize: vertical;
  line-height: 1.6;
  box-sizing: border-box;
}

/* Custom select chevron — removes native OS arrow, adds inline SVG chevron */
.select-wrap {
  position: relative;
  display: block;
  width: 100%;
}
.select-wrap::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}
.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px !important;
  cursor: pointer;
}

/* Global select — also apply appearance:none so any unwrapped selects lose native chrome */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 44px;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px;
}


input[type=number] { -moz-appearance: textfield; }
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

input:focus, select:focus, textarea:focus {
  border-color: #393185;
  box-shadow: 0 0 0 4px rgba(57, 49, 133, 0.12);
}

.r2 { display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.r3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 11px; }
.r4 { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 11px; }

.ir { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 5px; }
.iro {
  padding: 10px 16px;
  min-height: 44px;
  border: 1.5px solid #E2E8F0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text-slate);
  background: var(--surface-card);
  transition: all 0.18s;
  user-select: none;
  display: inline-flex;
  align-items: center;
  box-sizing: border-box;
}
.iro:hover { border-color: var(--brand-purple-700); color: var(--brand-purple-700); }
.iro.sel { border-color: var(--brand-purple-700); background: var(--brand-purple-700); color: #FFFFFF; font-weight: 600; }

.rg { display: flex; flex-direction: column; gap: 7px; margin-top: 5px; }
.ro {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 12px 16px;
  min-height: 44px;
  border: 1.5px solid #E2E8F0;
  border-radius: 9px;
  cursor: pointer;
  background: var(--surface-card);
  box-sizing: border-box;
}
.ro.sel { border-color: var(--brand-purple-700); background: var(--brand-orchid-100); }

.sc {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  margin-bottom: 0.85rem;
}

.sct {
  font-size: 11px;
  font-weight: 700;
  color: #1E293B;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 4px;
}

.add-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12.5px;
  color: var(--brand-purple-700);
  cursor: pointer;
  padding: 5px 11px;
  background: var(--brand-orchid-100);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  font-weight: 600;
}

.rm-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--status-danger-700);
  font-size: 18px;
  padding: 0 5px;
}

.rep-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 8px; flex-wrap: wrap; }
.rep-row .fg { margin-bottom: 0; flex: 1; min-width: 110px; }
.div { border: none; border-top: 1px solid var(--border-subtle); margin: 1.1rem 0; }
.info { background: var(--brand-orchid-100); border-left: 4px solid var(--brand-purple-700); border-radius: 9px; padding: 9px 13px; margin-bottom: 0.9rem; }
.info p { font-size: 12.5px; color: var(--brand-plum-900); }
.warn { background: var(--status-warn-bg); border-left: 4px solid var(--brand-gold-600); border-radius: 9px; padding: 9px 13px; margin-bottom: 0.9rem; }
.warn p { font-size: 12.5px; color: var(--status-warn-700); }
.hint { background: var(--surface-ivory); border: 1px solid var(--border-subtle); border-radius: 9px; padding: 9px 13px; margin-bottom: 0.9rem; }
.hint p { font-size: 12px; color: var(--text-muted); line-height: 1.55; }

.nav-btns {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-subtle);
}

.btn-p {
  background: linear-gradient(135deg, #0A192F 0%, #060E1A 100%);
  color: #FFFFFF;
  border: 1px solid #D4AF37;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 13.2px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fn);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.btn-p:hover {
  background: #0F2B48;
  border-color: #FFE58F;
  box-shadow: 0 4px 12px rgba(10, 25, 47, 0.25);
}

.btn-s {
  background: var(--surface-card);
  color: var(--text-slate);
  border: 1.5px solid #E2E8F0;
  padding: 12px 20px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: var(--fn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-green {
  background: linear-gradient(135deg, #2C8A5A 0%, #1E6B43 100%);
  color: #FFFFFF;
  border: none;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.btn-danger {
  background: var(--status-danger-bg);
  color: var(--status-danger-700);
  border: 1px solid #F5B5B0;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--fn);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
}

.enterprise-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
}

.enterprise-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.enterprise-table th {
  background: var(--surface-alabaster);
  color: var(--brand-plum-900);
  font-weight: 700;
  text-align: left;
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-strong);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.enterprise-table td {
  padding: 11px 13px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-slate);
  vertical-align: middle;
}

.wealth-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.wealth-kpi-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.2rem 1.35rem;
  box-shadow: var(--shadow-sm);
}

.wealth-kpi-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); }
.wealth-kpi-val { font-family: var(--fn-display); font-size: 25px; font-weight: 700; color: var(--brand-plum-900); margin: 0.35rem 0; }
.wealth-movement-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--change-green-bg);
  color: var(--change-green-700);
  border: 1px solid var(--change-green-border);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 14, 26, 0.72);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-card {
  background: var(--surface-card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  max-width: 560px;
  width: 100%;
  padding: 1.85rem;
  box-shadow: var(--shadow-lg);
}

.hiranyam-endorsement-strip {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: #FFFFFF;
  border-top: 1px solid #E2E0EE;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.04);
  padding: 7px 16px calc(7px + env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.hiranyam-sparkle { color: #EA892F; font-size: 13px; }
.hiranyam-text { color: #393185; font-weight: 600; font-size: 11.5px; letter-spacing: 0.35px; font-family: var(--fn); }

@media (max-width: 1180px) {
  .workspace-shell { grid-template-columns: 220px minmax(0, 1fr); }
  .workspace-diff-rail { grid-column: 1 / -1; position: static; max-height: none; }
  .wealth-kpi-grid, .public-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .journey-step-rail { grid-template-columns: repeat(4, 1fr); }
}

@media (max-width: 860px) {
  .login-shell, .principal-entry-grid, .workspace-shell, .public-hero-inner, .public-grid-3 {
    grid-template-columns: 1fr;
  }
  .workspace-sidebar { position: static; max-height: none; }
  .workspace-sidebar .snav { flex-direction: row; flex-wrap: wrap; }
  .workspace-sidebar .sn { width: auto; }
}

@media (max-width: 580px) {
  .r2, .r3, .r4, .wealth-kpi-grid, .trust-metrics-grid, .demo-roles-grid, .public-grid-4, .journey-step-rail {
    grid-template-columns: 1fr;
  }
}

/* ============================================================================
   ULTRA-LUXURY AI VISUAL SHOWCASE, FOREGROUND/BACKGROUND PARALLAX & SVG CHARTS
   ============================================================================ */
/* ============================================================================
   ULTRA-LUXURY HPE (HEWLETT PACKARD ENTERPRISE) THEME & HOLOGRAPHIC TELEMETRY
   ============================================================================ */
.public-navbar,
.enterprise-topbar {
  background: linear-gradient(90deg, #060E1A 0%, #0A192F 60%, #060E1A 100%) !important;
  border-bottom: 2px solid #01A982 !important;
}

.brand-monogram {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%) !important;
  color: #0A192F !important;
  border: 1px solid rgba(212, 175, 55, 0.5) !important;
  border-radius: 8px !important;
  font-family: var(--fn-display) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(10, 25, 47, 0.25) !important;
}

.public-section-dark {
  background: linear-gradient(145deg, #060E1A 0%, #0A192F 55%, #060E1A 100%) !important;
  border-top: 2px solid rgba(0, 229, 163, 0.45) !important;
  border-bottom: 2px solid rgba(0, 229, 163, 0.45) !important;
}

.ai-hero-stage {
  position: relative;
  min-height: 84vh;
  display: flex;
  align-items: center;
  background-image:
    linear-gradient(105deg, rgba(4, 14, 19, 0.52) 0%, rgba(7, 24, 32, 0.28) 50%, rgba(4, 14, 19, 0.48) 100%),
    url('/assets/images/pms_hero_capital_markets.svg?v=6'),
    url('/assets/images/global_capital_skyline.jpg?v=6');
  background-size: cover;
  background-position: center center;
  background-attachment: scroll;
  color: #FFFFFF;
  padding: 3.5rem 1.75rem 4rem;
  border-bottom: 2px solid rgba(212, 175, 55, 0.55);
  overflow: hidden;
}

.hero-bg-financial-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.ai-hero-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 76% 32%, rgba(1, 169, 130, 0.28) 0%, transparent 52%),
    radial-gradient(circle at 22% 25%, rgba(212, 175, 55, 0.22) 0%, transparent 48%);
  pointer-events: none;
  z-index: 1;
}

.ai-glass-cockpit {
  position: relative;
  background: rgba(7, 21, 27, 0.84);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  border-left: 5px solid #01A982;
  border-radius: 16px;
  padding: 1.6rem 1.75rem;
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.6), 0 0 28px rgba(1, 169, 130, 0.14);
}

.ai-floating-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(1, 169, 130, 0.16);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(212, 175, 55, 0.52);
  border-left: 4px solid #01A982;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 11.5px;
  font-weight: 800;
  color: #D4AF37;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ai-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.35rem;
}

.ai-bento-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 205px 1.85rem 1.65rem;
  color: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.48);
  border-top: 4px solid #01A982;
  box-shadow: 0 18px 42px rgba(5, 14, 18, 0.25);
  background-color: #0A192F;
  background-size: 100% auto, cover;
  background-repeat: no-repeat;
  background-position: top center, center center;
  transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
}

.ai-bento-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 26px 56px rgba(1, 169, 130, 0.25);
  border-color: #D4AF37;
}

.ai-bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 16, 0.0) 0%, rgba(4, 12, 16, 0.12) 44%, rgba(3, 11, 15, 0.94) 56%, rgba(3, 11, 15, 0.98) 100%);
  z-index: 1;
}

.ai-bento-content {
  position: relative;
  z-index: 2;
}

.bento-span-7 { grid-column: span 7; }
.bento-span-5 { grid-column: span 5; }
.bento-span-6 { grid-column: span 6; }
.bento-span-4 { grid-column: span 4; }

.ai-parallax-banner {
  position: relative;
  background-image:
    linear-gradient(105deg, rgba(5, 16, 21, 0.72) 0%, rgba(8, 28, 35, 0.58) 60%, rgba(5, 16, 21, 0.78) 100%),
    url('/assets/images/pms_hero_capital_markets.svg?v=8'),
    url('/assets/images/global_capital_skyline.jpg?v=8');
  background-size: cover;
  background-position: center;
  background-attachment: scroll;
  color: #FFFFFF;
  padding: 4.5rem 1.75rem;
  border-top: 2px solid rgba(212, 175, 55, 0.45);
  border-bottom: 2px solid rgba(212, 175, 55, 0.45);
}

.ef-cohort-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(0, 229, 163, 0.35);
  border-left: 4px solid #01A982;
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.ef-cohort-btn:hover,
.ef-cohort-btn.active {
  background: linear-gradient(135deg, rgba(1, 169, 130, 0.32) 0%, rgba(0, 200, 255, 0.22) 100%);
  border-color: #D4AF37;
  box-shadow: 0 6px 22px rgba(0, 229, 163, 0.25);
  transform: translateY(-2px);
}

.symbolic-relation-box {
  background: linear-gradient(145deg, #060E1A 0%, #0F2B48 55%, #060E1A 100%);
  border: 1.5px solid rgba(0, 229, 163, 0.48);
  border-left: 6px solid #01A982;
  border-radius: 18px;
  padding: 2.25rem;
  color: #FFFFFF;
  box-shadow: 0 22px 50px rgba(4, 12, 16, 0.35);
}

.pulse-gold-dot {
  animation: pulseGoldNode 2.4s infinite ease-in-out;
}

@keyframes pulseGoldNode {
  0%, 100% { r: 6px; filter: drop-shadow(0 0 4px #D4AF37); }
  50% { r: 9px; filter: drop-shadow(0 0 14px #01A982); }
}

@media (max-width: 960px) {
  .bento-span-7, .bento-span-5, .bento-span-6, .bento-span-4 {
    grid-column: span 12;
  }
  .ai-hero-stage, .ai-parallax-banner {
    background-attachment: scroll;
  }
}

/* ============================================================================
   v2.4.0 HPE ENTERPRISE EMERALD + CYBER CYAN + LUMINOUS DATA MESH SYSTEM
   ============================================================================ */
:root {
  --royal-purple-950: #060E1A;
  --royal-purple-900: #0A192F;
  --royal-purple-800: #0F2B48;
  --royal-gold-500: #D4AF37;
  --royal-gold-400: #FFE58F;
  --luminous-dot-gold: #D4AF37;
  --luminous-dot-amethyst: #01A982;
}

.skip-to-main-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  background: #060E1A;
  color: #D4AF37;
  border: 2px solid #D4AF37;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s ease;
}

.skip-to-main-link:focus {
  top: 12px;
  outline: 3px solid #01A982;
}

.constellation-dot-layer {
  position: relative;
  background-image:
    radial-gradient(circle at 15% 22%, rgba(1, 169, 130, 0.18) 1.5px, transparent 2px),
    radial-gradient(circle at 78% 18%, rgba(0, 200, 255, 0.18) 2px, transparent 2.5px),
    radial-gradient(circle at 42% 68%, rgba(0, 229, 163, 0.16) 1.5px, transparent 2px),
    radial-gradient(circle at 88% 76%, rgba(1, 169, 130, 0.14) 1.5px, transparent 2px);
  background-size: 260px 260px;
}

.svg-icon-badge {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, #060E1A 0%, #0F2B48 100%);
  border: 1.5px solid #D4AF37;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #D4AF37;
  box-shadow: 0 6px 16px rgba(1, 169, 130, 0.22);
  flex-shrink: 0;
}

.svg-icon-badge svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.svg-inline-icon {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -3px;
  flex-shrink: 0;
}

.luminous-neural-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1.5px solid rgba(0, 229, 163, 0.45);
  border-top: 4px solid #01A982;
  background-color: #0A192F;
  background-size: 100% auto, cover;
  background-repeat: no-repeat;
  background-position: top center, center center;
  min-height: 315px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 168px 1.4rem 1.35rem;
  color: #FFFFFF;
  box-shadow: 0 16px 36px rgba(5, 14, 18, 0.28);
}

.luminous-neural-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 16, 0.0) 0%, rgba(4, 12, 16, 0.14) 44%, rgba(3, 11, 15, 0.94) 58%, rgba(3, 11, 15, 0.98) 100%);
  z-index: 1;
}

.luminous-neural-card > * {
  position: relative;
  z-index: 2;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid #D4AF37;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ai-bento-card:hover,
  .ef-cohort-btn:hover {
    transform: none !important;
  }
}

/* ============================================================================
   MOBILE-FIRST UNIVERSALITY & ZERO-OVERFLOW RESPONSIVE ARCHITECTURE (P0 RULE 6)
   Breakpoints: 1024px (Tablet Landscape), 768px (Tablet/Large Mobile), 480px & 360px (Smartphones)
   ============================================================================ */
@media (max-width: 1024px) {
  /* 2-Tier Mobile/Tablet Public Header:
     Row 1: Brand Identity (left) + Client/Advisor Login Buttons (right)
     Row 2: Smooth Touch-Scrollable Section Pill Strip (100% width) */
  .public-navbar {
    flex-wrap: wrap !important;
    padding: 0.55rem 1rem !important;
    gap: 0.5rem !important;
    height: auto !important;
  }

  .public-navbar .brand-cluster {
    flex: 1 1 auto;
    min-width: 0;
  }

  .public-navbar .brand-main {
    font-size: 14.5px !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .public-navbar .brand-eyebrow {
    font-size: 8.5px !important;
    letter-spacing: 0.08em !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .public-nav-links {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
    padding: 5px 8px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }

  .public-nav-links a {
    font-size: 11.5px !important;
    padding: 5px 10px !important;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  /* Authenticated Enterprise Topbar: Horizontal Swipeable Navigation Strip on Mobile/Tablet */
  .enterprise-topbar {
    padding: 0.55rem 0.95rem !important;
    gap: 0.5rem !important;
  }

  .enterprise-topbar .topbar-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
    gap: 6px !important;
  }

  .enterprise-topbar .topbar-nav::-webkit-scrollbar {
    display: none;
  }

  .enterprise-topbar .topbar-btn {
    flex-shrink: 0;
    white-space: nowrap;
    min-height: 36px;
  }
}

@media (max-width: 768px) {
  /* Hero Section Mobile Optimization */
  .ai-hero-stage {
    padding: 1.75rem 1rem 2.25rem !important;
    min-height: auto !important;
  }

  .public-section {
    padding: 2.5rem 1rem !important;
  }

  .public-section-title {
    font-size: clamp(22px, 6vw, 28px) !important;
    line-height: 1.2 !important;
  }

  .ai-glass-cockpit {
    padding: 1.15rem 1rem !important;
  }

  .symbolic-relation-box {
    padding: 1.25rem 1rem !important;
  }

  /* 19-Tab Workspace Sidebar becomes a Horizontal Touch-Scrollable Pill Bar on Mobile */
  .workspace-sidebar {
    padding: 0.65rem !important;
    border-radius: 12px !important;
  }

  .workspace-sidebar .snav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 6px !important;
    padding-bottom: 4px;
  }

  .workspace-sidebar .snav::-webkit-scrollbar {
    display: none;
  }

  .workspace-sidebar .sn {
    flex-shrink: 0 !important;
    width: auto !important;
    white-space: nowrap !important;
    padding: 8px 12px !important;
    font-size: 12px !important;
  }

  /* Ensure all financial tables scroll horizontally inside their containers without breaking mobile layout */
  .enterprise-table {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  /* Bento & Neural Cards on Mobile: scale top SVG chart 100% width with compact top padding */
  .ai-bento-card {
    min-height: 310px !important;
    padding: 155px 1.2rem 1.25rem !important;
    background-size: 100% auto, cover !important;
    background-position: top center, center center !important;
  }

  .luminous-neural-card {
    min-height: 275px !important;
    padding: 142px 1.15rem 1.15rem !important;
    background-size: 100% auto, cover !important;
    background-position: top center, center center !important;
  }

  /* Efficient Frontier 4-column allocation bar becomes 2x2 grid on mobile */
  #pubEfAllocationBars {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
}

@media (max-width: 540px) {
  /* Compact Smartphone Viewports (360px Android, 375px-430px iPhone) */
  .public-navbar .brand-monogram {
    width: 30px !important;
    height: 30px !important;
    font-size: 13px !important;
  }

  .public-navbar .brand-eyebrow {
    display: none !important;
  }

  #publicNavbarGuestBtns .topbar-btn,
  #publicNavbarUserBtns .topbar-btn {
    padding: 6px 9px !important;
    font-size: 11px !important;
    min-height: 34px !important;
  }

  .ai-floating-badge {
    font-size: 10px !important;
    padding: 5px 10px !important;
    letter-spacing: 0.05em !important;
    white-space: normal !important;
    line-height: 1.35 !important;
  }

  /* Hero KPI Strip: 3 crisp compact columns on 360px-540px screens */
  .hero-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 6px !important;
  }

  .hero-kpi-card {
    padding: 9px 8px !important;
  }

  .hero-kpi-num {
    font-size: 17px !important;
  }

  /* Full-width touch-friendly CTA buttons on phones */
  .hero-cta-group {
    flex-direction: column !important;
    width: 100% !important;
  }

  .hero-cta-group button {
    width: 100% !important;
    justify-content: center !important;
    min-height: 46px !important;
  }

  /* Cockpit miniature strip & Governance 4-step grid stack cleanly into 1 column on phones */
  .cockpit-mini-strip {
    grid-template-columns: 1fr !important;
    gap: 8px !important;
  }

  .governance-step-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .ai-bento-card {
    min-height: 290px !important;
    padding: 138px 1.05rem 1.15rem !important;
  }

  .ai-bento-card h3 {
    font-size: 19px !important;
  }

  .luminous-neural-card {
    min-height: 255px !important;
    padding: 128px 1.05rem 1.1rem !important;
  }
}




/* ── Realistic Hero Scene Switcher & Ambiance ────────────────────────── */
.hero-scene-bar {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(6, 14, 26, 0.72);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 3px 5px;
  border-radius: 999px;
}

.hero-scene-btn {
  background: transparent;
  border: 1px solid transparent;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  outline: none;
}

.hero-scene-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.12);
}

.hero-scene-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(168, 139, 75, 0.42) 100%);
  border-color: rgba(212, 175, 55, 0.8);
  color: #F8E7BE;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.login-brand-panel {
  position: relative;
  transition: background-image 0.5s ease-in-out;
}

.login-brand-panel h1 {
  text-shadow: 0 2px 14px rgba(0,0,0,0.55);
}

.trust-metric-card {
  background: rgba(6, 14, 26, 0.65) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(212, 175, 55, 0.32) !important;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.trust-metric-card:hover {
  transform: translateY(-2px);
  border-color: rgba(212, 175, 55, 0.65) !important;
}

/* ── Fiduciary Validation Modal & Field Highlighting ─────────────────── */
.val-progress-track {
  width: 100%;
  height: 8px;
  background: var(--surface-alabaster);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.75rem 0 1rem;
}
.val-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
  border-radius: 999px;
  transition: width 0.3s ease;
}
.val-error-list {
  max-height: 380px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1rem 0;
  padding-right: 4px;
}
.val-error-card {
  background: #FFFDF8;
  border: 1px solid #FDE68A;
  border-left: 4px solid #D97706;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: all 0.2s ease;
}
.val-error-card:hover {
  border-color: #D97706;
  background: #FEF3C7;
  transform: translateX(2px);
}
.val-tab-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #92400E;
  background: #FDE68A;
  padding: 2px 7px;
  border-radius: 4px;
  margin-bottom: 2px;
}
.val-error-msg {
  font-size: 12.5px;
  color: #78350F;
  font-weight: 600;
}
.val-error-detail {
  font-size: 11px;
  color: #A16207;
  margin-top: 1px;
}
.btn-jump-fix {
  background: #D97706;
  color: #FFFFFF;
  border: none;
  font-size: 11.5px;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.18s ease;
}
.btn-jump-fix:hover {
  background: #B45309;
}
@keyframes pulseValidationBorder {
  0% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0.7); border-color: #D97706; }
  50% { box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.25); border-color: #D97706; }
  100% { box-shadow: 0 0 0 0 rgba(217, 119, 6, 0); }
}
.field-validation-highlight {
  animation: pulseValidationBorder 1.2s infinite ease-in-out !important;
  border-color: #D97706 !important;
  background-color: #FFFDF8 !important;
}

/* ==========================================================================
   19-Tab Mandatory Fiduciary Validation System & Field Rule Popups
.fl-row {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
  margin-bottom: 4px !important;
}
.fl-row .fl {
  margin-bottom: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.fl-row .field-info-icon {
  margin-left: 2px !important;
  flex-shrink: 0 !important;
}
.field-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: rgba(212, 175, 55, 0.15);
  color: #B8860B;
  font-size: 11px;
  cursor: pointer;
  margin-left: 4px;
  font-weight: 600;
  transition: all 0.15s ease;
  vertical-align: middle;
}
.field-info-icon:hover {
  background: #D4AF37;
  color: #FFFFFF;
}

.val-inline-status:empty {
  display: none !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 0 !important;
}

/* ── EMBEDDED CALCULATOR MODAL & SANDBOX MODE STYLES ───────────────────── */
body.is-embedded-sandbox #enterpriseTopbar {
  display: none !important;
}
body.is-embedded-sandbox #wsTestCalculatorSandboxBanner {
  display: none !important;
}
body.is-embedded-sandbox .compact-context-bar {
  top: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0.65rem !important;
  padding: 0.5rem 1rem !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
body.is-embedded-sandbox .workspace-sidebar {
  top: 56px !important;
  max-height: calc(100vh - 80px) !important;
}
body.is-embedded-sandbox .workspace-shell.has-diff-rail-open .workspace-diff-rail {
  top: 56px !important;
  max-height: calc(100vh - 80px) !important;
}
body.is-embedded-sandbox .hiranyam-endorsement-strip {
  position: static !important;
  margin-top: 1.5rem !important;
  box-shadow: none !important;
}

.field-val-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: rgba(212, 175, 55, 0.12);
  color: var(--brand-gold-600, #B8860B);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 1px 6px;
  font-size: 10px;
  font-weight: 700;
  border-radius: 4px;
  cursor: pointer;
  line-height: 1.3;
  margin-left: 5px;
  vertical-align: middle;
  transition: all 0.15s ease;
}
.field-val-btn:hover {
  background: var(--brand-gold-500, #D4AF37);
  color: #FFFFFF;
  border-color: var(--brand-gold-600, #B8860B);
}

.val-req-star {
  color: #DC2626;
  font-weight: 800;
  margin-left: 2px;
}

/* Inline Field Validation & Error States */
.input-invalid,
input.input-invalid,
select.input-invalid,
textarea.input-invalid {
  border-color: #DC2626 !important;
  background-color: #FEF2F2 !important;
  box-shadow: 0 0 0 2px rgba(220, 38, 38, 0.22) !important;
  color: #991B1B !important;
}

.field-has-val-error > .fl-row .fl,
.field-has-val-error > label.fl {
  color: #B91C1C !important;
}

.field-has-val-error {
  border-left: 3px solid #DC2626 !important;
  padding-left: 8px !important;
  transition: all 0.15s ease-in-out;
}

.val-inline-status {
  font-size: 11.5px;
  line-height: 1.35;
  margin-top: 4px;
  min-height: 14px;
}
.val-inline-error {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #B91C1C;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(185, 28, 28, 0.06);
}
.val-inline-ok {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #047857;
  font-weight: 600;
  font-size: 11.5px;
}

/* Sidebar Tab Validation Badges */
.sn-val-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 10px;
  margin-left: auto;
  line-height: 1.2;
}
.sn-val-warn {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}
.sn-val-ok {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
}
.sn-val-neutral {
  background: #F3F4F6;
  color: #9CA3AF;
  border: 1px solid #E5E7EB;
  font-size: 9px;
}

/* ── Risk Profiling Interactive Radio Questions ── */
.risk-q-wrap {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle, #E2E8F0);
  border-radius: 10px;
  padding: 16px 18px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.risk-q-wrap:hover {
  border-color: rgba(214, 179, 106, 0.45);
}
.risk-q-header {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 700;
  font-size: 14px;
  color: var(--brand-plum-900, #0A192F);
  margin-bottom: 12px;
  line-height: 1.45;
}
.risk-q-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(214, 179, 106, 0.16);
  color: #926C15;
  font-size: 11.5px;
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}
.risk-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rcard {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid #E2E8F0;
  border-radius: 8px;
  background: #FAFAFA;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}
.rcard:hover {
  background: #F8FAFC;
  border-color: #CBD5E1;
}
.rcard.sel {
  background: rgba(214, 179, 106, 0.08);
  border-color: #D6B36A;
  box-shadow: 0 0 0 1px #D6B36A;
}
.risk-radio-input {
  width: 17px;
  height: 17px;
  accent-color: #D6B36A;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}
.rca {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: #334155;
  line-height: 1.4;
}
.rcard.sel .rca {
  color: #0F172A;
  font-weight: 600;
}
.risk-opt-letter {
  font-weight: 700;
  color: #64748B;
  min-width: 18px;
}
.rcard.sel .risk-opt-letter {
  color: #926C15;
}
.risk-submit-bar {
  margin-top: 1.5rem;
  padding: 16px 20px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

/* Interactive Field Validation Rule Pop-up Modal */
.val-rule-modal-card {
  background: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(10, 25, 47, 0.22);
  padding: 1.5rem 1.75rem;
  width: 100%;
  max-width: 580px;
}
.val-rule-section {
  background: var(--surface-ivory, #F4F8F9);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 10px;
}
.val-rule-sec-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.val-rule-sec-content {
  font-size: 13px;
  color: var(--brand-plum-900);
  line-height: 1.5;
}
.val-rule-list {
  padding-left: 1.2rem;
  margin-top: 4px;
}
.val-rule-list li {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 3px;
}
.val-rule-status-box {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  margin-top: 10px;
}
.val-rule-status-box.err {
  background: #FEE2E2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
}
.val-rule-status-box.ok {
  background: #D1FAE5;
  border: 1px solid #6EE7B7;
  color: #065F46;
}

/* ==========================================================================
   Customer Portal Approval Celebration Banner
   ========================================================================== */
.cust-approval-banner {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08) 0%, rgba(212, 175, 55, 0.12) 100%);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-left: 5px solid #10B981;
  border-radius: 12px;
  padding: 1.15rem 1.35rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08);
}
.cust-approval-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   Customer Notification Center
   ========================================================================== */
.notif-bell-btn {
  position: relative;
}
.notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #EF4444;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 10px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 2px 5px rgba(239, 68, 68, 0.4);
}
.notif-list-container {
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}
.notif-card {
  transition: all 0.18s ease;
}
.notif-unread {
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.12);
}

/* ==========================================================================
   HNI Customer Read-Only Dossier Protection & Styling
   ========================================================================== */
.workspace-readonly-customer #main input,
.workspace-readonly-customer #main select,
.workspace-readonly-customer #main textarea {
  background-color: #F8FAFC !important;
  color: #1E293B !important;
  border-color: #E2E8F0 !important;
  cursor: default !important;
  box-shadow: none !important;
  user-select: text !important;
}

.workspace-readonly-customer #main input:focus,
.workspace-readonly-customer #main select:focus,
.workspace-readonly-customer #main textarea:focus {
  outline: none !important;
  border-color: #CBD5E1 !important;
  box-shadow: none !important;
}

.workspace-readonly-customer #main input[type="checkbox"],
.workspace-readonly-customer #main input[type="radio"],
.workspace-readonly-customer #main input[type="range"] {
  cursor: default !important;
  pointer-events: none !important;
}

.workspace-readonly-customer #main .ir .iro {
  cursor: default !important;
}

.workspace-readonly-customer #main .ir .iro:not(.sel) {
  opacity: 0.45;
  pointer-events: none !important;
}

.workspace-readonly-customer #main .rg .ro {
  cursor: default !important;
}

.workspace-readonly-customer #main .rg .ro:not(.sel) {
  opacity: 0.45;
  pointer-events: none !important;
}

.workspace-readonly-customer #main .rcard:not(.sel) {
  opacity: 0.5;
  pointer-events: none !important;
}

.workspace-readonly-customer #main .add-btn,
.workspace-readonly-customer #main .rm-btn,
.workspace-readonly-customer #main .btn-add-row,
.workspace-readonly-customer #main .btn-del-row,
.workspace-readonly-customer #main .btn-remove-row,
.workspace-readonly-customer #main .btn-dyn-add,
.workspace-readonly-customer #main .btn-dyn-del {
  display: none !important;
}

.workspace-readonly-customer .ws-agent-only-action {
  display: none !important;
}

.workspace-readonly-customer .ws-customer-only-badge {
  display: inline-flex !important;
}

/* ==========================================================================
   Global Toast Notification System & Bottom Save Feedback Pill
   ========================================================================== */
.global-toast-container {
  position: fixed;
  bottom: 84px;
  right: 28px;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
  max-width: 440px;
  width: calc(100vw - 40px);
}

.global-toast {
  pointer-events: auto;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 18px;
  background: #FFFFFF;
  border-radius: 12px;
  box-shadow: 0 12px 36px -4px rgba(10, 25, 47, 0.22), 0 0 1px 1px rgba(10, 25, 47, 0.08);
  border-left: 5px solid #059669;
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.global-toast.toast-show {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.global-toast.toast-hiding {
  transform: translateY(10px) scale(0.94);
  opacity: 0;
}

.global-toast-icon {
  font-size: 22px;
  line-height: 1;
  margin-top: 2px;
  flex-shrink: 0;
}

.global-toast-body {
  flex: 1;
}

.global-toast-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #0F172A;
  margin-bottom: 2px;
  line-height: 1.35;
}

.global-toast-message {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", sans-serif;
  font-size: 12px;
  color: #475569;
  line-height: 1.45;
}

.global-toast-close {
  background: transparent;
  border: none;
  font-size: 18px;
  color: #94A3B8;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  border-radius: 4px;
  transition: color 0.15s ease;
}
.global-toast-close:hover {
  color: #1E293B;
}

.global-toast.toast-success {
  border-left-color: #059669;
}
.global-toast.toast-success .global-toast-title {
  color: #065F46;
}

.global-toast.toast-error {
  border-left-color: #DC2626;
}
.global-toast.toast-error .global-toast-title {
  color: #991B1B;
}

.global-toast.toast-warning {
  border-left-color: #D97706;
}
.global-toast.toast-warning .global-toast-title {
  color: #92400E;
}

.global-toast.toast-info {
  border-left-color: #2563EB;
}
.global-toast.toast-info .global-toast-title {
  color: #1E40AF;
}

.ws-save-notice {
  animation: wsNoticePop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes wsNoticePop {
  0% { transform: scale(0.92); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Interactive Family Wealth Tree & Hierarchy Canvas
   ========================================================================== */
.family-tree-canvas {
  position: relative;
  padding: 2.5rem 1.5rem;
  background: radial-gradient(circle at top center, rgba(212, 175, 55, 0.1) 0%, rgba(10, 25, 47, 0.02) 65%, transparent 100%);
  border: 1.5px solid var(--border-subtle);
  border-radius: 16px;
  margin-bottom: 1.5rem;
}

.ft-level-head {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.ft-connector-vert {
  width: 2px;
  height: 40px;
  background: linear-gradient(180deg, #D4AF37 0%, #0A192F 100%);
  margin: 0 auto;
}

.ft-connector-split {
  position: relative;
  width: 580px;
  max-width: 90%;
  margin: 0 auto 36px auto;
  height: 2px;
  background: #0A192F;
}

.ft-connector-split::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 2px;
  height: 20px;
  background: #0A192F;
}

.ft-connector-split::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  width: 2px;
  height: 20px;
  background: #0A192F;
}

.ft-level-members {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.ft-card {
  background: #FFFFFF;
  border: 2px solid var(--border-subtle);
  border-radius: 14px;
  padding: 1.35rem 1.5rem;
  width: 320px;
  max-width: 100%;
  box-shadow: 0 10px 28px rgba(10, 25, 47, 0.07);
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.ft-card.ft-head {
  border-color: #D4AF37;
  background: linear-gradient(145deg, #FFFFFF 0%, #FAF6ED 100%);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.22);
}

.ft-card.ft-spouse {
  border-color: #8B5CF6;
  background: linear-gradient(145deg, #FFFFFF 0%, #F5F3FF 100%);
}

.ft-card.ft-child {
  border-color: #01A982;
  background: linear-gradient(145deg, #FFFFFF 0%, #ECFDF5 100%);
}

.ft-card.accessible {
  cursor: pointer;
}

.ft-card.accessible:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(10, 25, 47, 0.14);
}

.ft-card.locked {
  filter: grayscale(0.4);
  opacity: 0.88;
  cursor: not-allowed;
  background: #F8FAFC;
  border-style: dashed;
}

.ft-card-hdr {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.ft-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
  color: #FFFFFF;
}

.ft-name {
  font-family: var(--fn-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--brand-plum-900);
}

.ft-role-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 12px;
}

.ft-aum-box {
  margin: 0.85rem 0;
  padding: 8px 12px;
  background: rgba(10, 25, 47, 0.04);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ft-aum-val {
  font-weight: 800;
  font-size: 15px;
  color: var(--brand-plum-900);
}

.ft-action-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 700;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.ft-locked-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #64748B;
  background: #E2E8F0;
  padding: 4px 8px;
  border-radius: 6px;
}





/* ============================================================================
   PROJECT WOWW: MATTE FINTECH DESIGN SYSTEM (USER REFERENCE IMAGE 2)
   Zero Glare, Matte Dark Navy, Dual Portfolio Cards (Muted Teal & Terracotta)
   ============================================================================ */

.matte-fintech-section {
  background: #18243B;
  border-radius: 18px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 40px rgba(10, 18, 30, 0.35);
  color: #F1F5F9;
}

.matte-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.matte-header-title {
  font-family: var(--fn-display);
  font-size: 20px;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  gap: 10px;
}

.matte-pills-filter {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.06);
  padding: 4px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  gap: 4px;
}

.matte-pill-btn {
  background: transparent;
  border: none;
  color: #94A3B8;
  padding: 6px 14px;
  border-radius: 24px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.matte-pill-btn.active {
  background: linear-gradient(135deg, #FFE58F 0%, #FFD700 35%, #D4AF37 70%, #9E7806 100%);
  color: #08152F;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.4);
}

.matte-dual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}

/* Matte Teal / Emerald: Core Managed Portfolio Card */
.matte-card-teal {
  background: linear-gradient(145deg, #2E6250 0%, #1F4739 100%);
  border: 1px solid rgba(167, 243, 208, 0.25);
  border-radius: 16px;
  padding: 1.4rem;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(31, 71, 57, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

/* Matte Terracotta / Copper: External / Direct Holdings Card */
.matte-card-terracotta {
  background: linear-gradient(145deg, #8B5133 0%, #683B23 100%);
  border: 1px solid rgba(253, 186, 116, 0.25);
  border-radius: 16px;
  padding: 1.4rem;
  color: #FFFFFF;
  box-shadow: 0 12px 30px rgba(104, 59, 35, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.matte-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(8px);
}

.matte-val-large {
  font-family: var(--fn-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 10px 0 4px;
  letter-spacing: -0.01em;
}

.matte-sub-stat {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.85);
  display: flex;
  align-items: center;
  gap: 8px;
}

.matte-stat-pill {
  background: rgba(255, 255, 255, 0.18);
  padding: 2px 8px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 11.5px;
}

.matte-stat-pill.gold {
  background: linear-gradient(135deg, #FFE58F 0%, #FFD700 40%, #D4AF37 100%);
  color: #08152F;
}

.matte-mini-table {
  width: 100%;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.matte-mini-col {
  display: flex;
  flex-direction: column;
}

.matte-mini-label {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.65);
}

.matte-mini-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 2px;
}

/* ==========================================================================
   TOP ENVIRONMENT INDICATOR BANNER (P0 Environment Isolation Standard)
   ========================================================================== */
.env-banner {
  width: 100%;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.78125rem; /* ~12.5px */
  line-height: 1.35;
  padding: 6px 0;
  position: relative;
  z-index: 10002;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
}

.env-banner .container,
.env-banner .env-banner-container {
  max-width: 100%;
  padding-left: clamp(16px, 3vw, 48px);
  padding-right: clamp(16px, 3vw, 48px);
  margin: 0 auto;
}

.env-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.env-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.env-pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  flex-shrink: 0;
  animation: envPulseAnim 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes envPulseAnim {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.22); }
}

.env-badge {
  font-size: 0.6875rem; /* 11px */
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.env-message {
  font-weight: 500;
  letter-spacing: 0.01em;
}

.env-message code.env-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.env-switch-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71875rem;
  font-weight: 600;
  text-decoration: none;
  padding: 3px 12px;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.env-switch-btn:hover {
  transform: translateY(-1px);
}

/* Production Specific Styling */
.env-banner-prod {
  background: #0B192C;
  border-bottom: 1.5px solid #F59E0B;
  color: #F8FAFC;
}

.env-pulse-prod {
  background: #F59E0B;
  box-shadow: 0 0 8px #F59E0B, 0 0 16px rgba(245, 158, 11, 0.6);
}

.env-badge-prod {
  background: rgba(245, 158, 11, 0.22);
  color: #FCD34D;
  border: 1px solid rgba(245, 158, 11, 0.7);
}

.env-banner-prod .env-code {
  background: rgba(245, 158, 11, 0.15);
  color: #FDE68A;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.env-banner-prod .env-switch-btn {
  background: rgba(56, 189, 248, 0.16);
  color: #38BDF8;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.env-banner-prod .env-switch-btn:hover {
  background: rgba(56, 189, 248, 0.28);
  color: #E0F2FE;
  box-shadow: 0 0 8px rgba(56, 189, 248, 0.45);
}

/* UAT / Test Server Specific Styling */
.env-banner-uat {
  background: #061826;
  border-bottom: 1.5px solid #06B6D4;
  color: #F0FDFA;
}

.env-pulse-uat {
  background: #06B6D4;
  box-shadow: 0 0 8px #06B6D4, 0 0 16px rgba(6, 182, 212, 0.6);
}

.env-badge-uat {
  background: rgba(6, 182, 212, 0.22);
  color: #67E8F9;
  border: 1px solid rgba(6, 182, 212, 0.7);
}

.env-banner-uat .env-code {
  background: rgba(6, 182, 212, 0.15);
  color: #A5F3FC;
  border: 1px solid rgba(6, 182, 212, 0.35);
}

.env-banner-uat .env-switch-btn {
  background: rgba(245, 158, 11, 0.16);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.45);
}

.env-banner-uat .env-switch-btn:hover {
  background: rgba(245, 158, 11, 0.28);
  color: #FEF3C7;
  box-shadow: 0 0 8px rgba(245, 158, 11, 0.45);
}

@media (max-width: 768px) {
  .env-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .env-banner-right {
    width: 100%;
  }
  .env-switch-btn {
    width: 100%;
    justify-content: center;
  }
}



/* ==========================================================================
   COLLAPSIBLE WORKSPACE PANELS & END-TO-END FULL VIEWPORT REPORT EXPANSION
   Addresses user requirements: Collapsible Left Sidebar, Collapsible Top Header,
   End-to-End Report Expansion, and Instant Report Minimization.
   ========================================================================== */

/* 1. Collapsible Left Sidebar */
.workspace-shell.is-sidebar-collapsed {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
.workspace-shell.is-sidebar-collapsed.has-diff-rail-open {
  grid-template-columns: minmax(0, 1fr) 280px !important;
  gap: 1.25rem !important;
}
.workspace-shell.is-sidebar-collapsed .workspace-sidebar {
  display: none !important;
}

/* 2. Collapsible Top Header & Banners */
body.is-topbar-collapsed .portal-topbar {
  display: none !important;
}
body.is-topbar-collapsed #wsTestCalculatorSandboxBanner,
body.is-topbar-collapsed #wsCustomerReadOnlyBanner,
body.is-topbar-collapsed #wsCorrectionBanner {
  display: none !important;
}
body.is-topbar-collapsed .compact-context-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}
body.is-topbar-collapsed .workspace-sidebar {
  top: 56px !important;
  max-height: calc(100vh - 72px) !important;
}

/* 3. End-to-End Full Viewport Report Mode */
body.is-report-expanded {
  overflow-x: auto;
}
body.is-report-expanded .portal-container {
  max-width: 100vw !important;
  width: 100% !important;
  margin: 0.25rem 0 !important;
  padding: 0 1.25rem !important;
}
body.is-report-expanded .workspace-shell {
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 0 !important;
}
body.is-report-expanded .workspace-sidebar {
  display: none !important;
}
body.is-report-expanded .portal-topbar {
  display: none !important;
}
body.is-report-expanded #wsTestCalculatorSandboxBanner,
body.is-report-expanded #wsCustomerReadOnlyBanner,
body.is-report-expanded #wsCorrectionBanner {
  display: none !important;
}
body.is-report-expanded .compact-context-bar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #FFFFFF;
  box-shadow: 0 4px 18px rgba(10, 25, 47, 0.12);
  padding: 8px 18px;
  border-radius: 8px;
}
body.is-report-expanded .hiranyam-endorsement-strip {
  position: static !important;
}

/* 4. Enhanced High-Readability Styling for Financial Statement Tables */
.tbl-stmt-wrapper {
  overflow-x: auto;
  border-radius: 8px 8px 0 0;
  border: 1px solid var(--border-subtle, #CBD5E1);
  background: #FFFFFF;
  margin-top: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: #94A3B8 #F1F5F9;
}
.tbl-stmt-wrapper::-webkit-scrollbar {
  height: 8px;
}
.tbl-stmt-wrapper::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 4px;
}
.tbl-stmt-wrapper::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}
.tbl-stmt-wrapper::-webkit-scrollbar-thumb:hover {
  background: #94A3B8;
}

/* High-Readability & Crisp 1px Cell Borders for ALL Financial Tables */
.tbl-stmt-wrapper table,
table.stmt-table,
#viewWorkspace table {
  border-collapse: collapse !important;
  border-spacing: 0 !important;
  border: 1.5px solid #94A3B8 !important;
}

.tbl-stmt-wrapper th,
#viewWorkspace th,
body.is-report-expanded th {
  border: 1px solid #94A3B8 !important;
  font-weight: 700 !important;
}

.tbl-stmt-wrapper td,
#viewWorkspace td,
body.is-report-expanded td {
  border: 1px solid #CBD5E1 !important;
}

/* Comfortable typography when expanded */
body.is-report-expanded table {
  font-size: 13px !important;
}
body.is-report-expanded th {
  font-size: 12px !important;
  padding: 8px 10px !important;
}
body.is-report-expanded td {
  font-size: 12.5px !important;
  padding: 7px 10px !important;
}

/* 5. Report Table Minimized Banner & Bottom Quick Bar */
.stmt-minimized-pill {
  padding: 12px 18px;
  background: linear-gradient(135deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px dashed #93C5FD;
  border-radius: 8px;
  margin: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}
.stmt-minimized-pill:hover {
  border-color: #3B82F6;
  background: #EFF6FF;
  transform: translateY(-1px);
}

.stmt-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid #CBD5E1;
  border-top: none;
  border-radius: 0 0 8px 8px;
  margin-bottom: 1.5rem;
}
