/* Marsh Insurance AI Assistant Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* Brand Palette - Marsh Deep Corporate Navy & Precision Blues */
  --brand-navy-950: #040d1a;
  --brand-navy-900: #081a33;
  --brand-navy-800: #0c274c;
  --brand-navy-700: #123b63;
  --brand-navy-600: #194f85;
  --brand-blue-500: #0284c7;
  --brand-blue-400: #38bdf8;
  --brand-cyan: #06b6d4;
  --brand-accent: #0077c8;

  /* Surfaces & Backgrounds */
  --bg-app: #f4f7fb;
  --bg-surface: #ffffff;
  --bg-surface-subtle: #f8fafc;
  --bg-surface-elevated: #ffffff;
  --border-light: #e2e8f0;
  --border-medium: #cbd5e1;
  --border-focus: #0284c7;

  /* Text & Typography */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-light: #f8fafc;

  /* Status Tokens */
  --status-draft-bg: #fffbeb;
  --status-draft-text: #b45309;
  --status-draft-border: #fde68a;

  --status-review-bg: #eff6ff;
  --status-review-text: #1d4ed8;
  --status-review-border: #bfdbfe;

  --status-approved-bg: #ecfdf5;
  --status-approved-text: #047857;
  --status-approved-border: #a7f3d0;

  --status-rejected-bg: #fff1f2;
  --status-rejected-text: #be123c;
  --status-rejected-border: #fecdd3;

  /* Shadows & Elevation */
  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.06);
  --shadow-glow: 0 0 20px rgba(2, 132, 199, 0.25);

  /* Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition-fast: 0.18s ease;
  --transition-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-image:
    radial-gradient(at 10% 10%, rgba(2, 132, 199, 0.05) 0px, transparent 50%),
    radial-gradient(at 90% 20%, rgba(18, 59, 99, 0.06) 0px, transparent 50%),
    radial-gradient(at 50% 90%, rgba(6, 182, 212, 0.04) 0px, transparent 50%);
  background-attachment: fixed;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--brand-navy-900);
  font-weight: 700;
  line-height: 1.25;
  margin-top: 0;
}

h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  letter-spacing: -0.025em;
  font-weight: 800;
}

h2 {
  font-size: 1.5rem;
  letter-spacing: -0.015em;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
}

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

a {
  color: var(--brand-blue-500);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--brand-navy-800);
}

.container {
  max-width: 1240px;
  width: 100%;
  margin: 0 auto;
  padding: 2.2rem 1.5rem 5rem;
  flex: 1;
}

/* TOPBAR */
.topbar {
  background: linear-gradient(135deg, var(--brand-navy-950) 0%, var(--brand-navy-900) 60%, var(--brand-navy-800) 100%);
  color: var(--text-light);
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 20px rgba(4, 13, 26, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: #ffffff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #00A3FF 0%, #005696 100%);
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 163, 255, 0.4);
}

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

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-badge {
  font-size: 0.65rem;
  text-transform: uppercase;
  background: rgba(0, 163, 255, 0.2);
  border: 1px solid rgba(0, 163, 255, 0.4);
  color: var(--brand-blue-400);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.brand-subtitle {
  font-size: 0.72rem;
  color: #94a3b8;
  font-weight: 500;
  letter-spacing: 0.01em;
}

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

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
}

.nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  color: #ffffff;
  background: rgba(2, 132, 199, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.35);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.workspace-active-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 0.35rem 0.8rem;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  color: #e2e8f0;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #10b981;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse-ring 2s infinite cubic-bezier(0.45, 0, 0.2, 1);
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }

  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

.btn-nav-action {
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: #cbd5e1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-nav-action:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

/* HERO */
.hero {
  padding: 1.5rem 0 2rem;
  position: relative;
}

.hero.compact {
  padding: 0.8rem 0 1.2rem;
}

.pill-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(2, 132, 199, 0.1);
  color: var(--brand-navy-700);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.pill.live {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border-color: rgba(16, 185, 129, 0.3);
}

.hero p {
  max-width: 780px;
  color: var(--text-secondary);
  font-size: 1.08rem;
  line-height: 1.6;
}

/* CARDS */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin: 1.4rem 0;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.card:hover {
  border-color: var(--border-medium);
  box-shadow: var(--shadow-md);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.card-header h2,
.card-header h3 {
  margin-bottom: 0;
}

/* FLASH ALERTS */
.alert {
  padding: 0.9rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
  font-weight: 500;
  border: 1px solid transparent;
  animation: slide-in 0.25s ease;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.alert.success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}

.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fecaca;
}

.alert.info {
  background: #f0f9ff;
  color: #075985;
  border-color: #bae6fd;
}

/* GRIDS */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

/* STATS */
.stat-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 1.4rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.stat-icon.blue {
  background: rgba(2, 132, 199, 0.12);
  color: var(--brand-blue-500);
}

.stat-icon.green {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.stat-icon.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
}

.stat-icon.purple {
  background: rgba(139, 92, 246, 0.12);
  color: #8b5cf6;
}

.stat-value {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-navy-950);
  line-height: 1.1;
  margin-bottom: 0.35rem;
  font-family: var(--font-sans);
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* BUTTONS & FORMS */
label {
  display: block;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--brand-navy-900);
  margin: 1.1rem 0 0.45rem;
}

.label-hint {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: 0.4rem;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: #ffffff;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand-blue-500);
  box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  background: linear-gradient(135deg, var(--brand-navy-700) 0%, var(--brand-accent) 100%);
  color: #ffffff;
  border: 0;
  border-radius: var(--radius-md);
  padding: 0.75rem 1.4rem;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(18, 59, 99, 0.25);
}

button:hover,
.button:hover {
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, var(--brand-navy-700) 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(18, 59, 99, 0.35);
  color: #ffffff;
}

button:active,
.button:active {
  transform: translateY(0);
}

.button.secondary,
button.secondary {
  background: #ffffff;
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-sm);
}

.button.secondary:hover,
button.secondary:hover {
  background: var(--bg-surface-subtle);
  border-color: #94a3b8;
  color: var(--brand-navy-900);
}

.button.accent {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  box-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

.button.success {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  box-shadow: 0 2px 10px rgba(16, 185, 129, 0.3);
}

.button.danger {
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  box-shadow: 0 2px 10px rgba(225, 29, 72, 0.3);
}

.button.sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.82rem;
}

.button.lg {
  padding: 0.95rem 1.85rem;
  font-size: 1.05rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* DRAG & DROP UPLOAD */
.upload-dropzone {
  border: 2px dashed #93c5fd;
  background: linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
  overflow: hidden;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--brand-blue-500);
  background: #e0f2fe;
  box-shadow: var(--shadow-glow);
}

.upload-icon-wrapper {
  width: 58px;
  height: 58px;
  background: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: var(--brand-blue-500);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.15);
}

.upload-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--brand-navy-900);
  margin-bottom: 0.35rem;
}

.upload-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.file-input-hidden {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-preview-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.file-preview-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
}

.file-preview-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.file-tag-badge {
  background: #e0f2fe;
  color: var(--brand-navy-700);
  font-weight: 700;
  font-size: 0.7rem;
  padding: 2px 6px;
  border-radius: 4px;
}

/* CHATBOT */
.chat-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 240px);
  min-height: 580px;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.chat-header {
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-header-title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar-bot {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, var(--brand-blue-500) 100%);
  color: #ffffff;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
}

.messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  scroll-behavior: smooth;
}

.message-bubble {
  max-width: 82%;
  display: flex;
  gap: 0.85rem;
  animation: message-pop 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes message-pop {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.message-bubble.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-bubble.assistant {
  align-self: flex-start;
}

.msg-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 700;
}

.message-bubble.user .msg-avatar {
  background: #3b82f6;
  color: #ffffff;
}

.message-bubble.assistant .msg-avatar {
  background: var(--brand-navy-800);
  color: #ffffff;
}

.msg-body {
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-size: 0.94rem;
  line-height: 1.6;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.message-bubble.user .msg-body {
  background: linear-gradient(135deg, var(--brand-navy-800) 0%, var(--brand-navy-700) 100%);
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.message-bubble.assistant .msg-body {
  background: #ffffff;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.msg-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  gap: 0.8rem;
}

.msg-sender {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-navy-900);
}

.message-bubble.user .msg-sender {
  color: #93c5fd;
}

.msg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.message-bubble.user .msg-time {
  color: #bfdbfe;
}

.msg-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
}

.btn-msg-copy {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: all var(--transition-fast);
}

.btn-msg-copy:hover {
  background: #f1f5f9;
  color: var(--text-primary);
}

/* SOURCES */
.sources-container {
  margin-top: 0.85rem;
  border-top: 1px dashed var(--border-light);
  padding-top: 0.75rem;
}

.sources-details {
  border: 1px solid #e0e7ff;
  background: #f8faff;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-top: 0.5rem;
}

.sources-details summary {
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--brand-navy-700);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0f4ff;
  user-select: none;
}

.sources-details[open] summary {
  border-bottom: 1px solid #e0e7ff;
}

.source-item {
  padding: 0.8rem 1rem;
  border-bottom: 1px solid #e8eeff;
  font-size: 0.82rem;
}

.source-item:last-child {
  border-bottom: none;
}

.source-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  flex-wrap: wrap;
}

.source-doc-pill {
  font-weight: 700;
  color: var(--brand-navy-900);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.source-page-badge {
  background: #e2e8f0;
  color: #334155;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
}

.source-score-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-family: var(--font-mono);
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 600;
}

.source-snippet {
  color: #475569;
  background: #ffffff;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid #e2e8f0;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
  max-height: 140px;
  overflow-y: auto;
}

.chat-suggestions-bar {
  padding: 0.65rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  white-space: nowrap;
}

.chip-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 0.2rem;
}

.prompt-chip {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: var(--radius-full);
  padding: 0.35rem 0.85rem;
  font-size: 0.8rem;
  color: var(--brand-navy-900);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.prompt-chip:hover {
  background: #e2e8f0;
  border-color: #94a3b8;
  color: var(--brand-blue-500);
}

.chat-input-bar {
  padding: 1.1rem 1.5rem;
  background: #ffffff;
  border-top: 1px solid var(--border-light);
}

.chat-form-inner {
  display: flex;
  gap: 0.75rem;
  align-items: flex-end;
}

.chat-textarea {
  flex: 1;
  min-height: 52px;
  max-height: 140px;
  resize: vertical;
  border-radius: var(--radius-lg);
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
}

.btn-send {
  height: 52px;
  padding: 0 1.5rem;
  border-radius: var(--radius-lg);
}

.chat-keyboard-hint {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.4rem;
  display: flex;
  justify-content: space-between;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0.8rem 1.1rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 50%;
  animation: typing-bounce 1.4s infinite ease-in-out both;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing-bounce {

  0%,
  80%,
  100% {
    transform: scale(0);
    opacity: 0.3;
  }

  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* OBJECTIVE 2.1 & 2.2: AUDIT SUMMARY & GATE COMPONENTS */
.audit-gate-banner {
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  box-shadow: var(--shadow-md);
  border: 1px solid transparent;
}

.audit-gate-banner.pass {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border-color: #6ee7b7;
  color: #064e3b;
}

.audit-gate-banner.review_required {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border-color: #fcd34d;
  color: #78350f;
}

.audit-gate-banner.fail {
  background: linear-gradient(135deg, #fff1f2 0%, #ffe4e6 100%);
  border-color: #fca5a5;
  color: #881337;
}

.gate-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-full);
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gate-badge.pass {
  background: #059669;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3);
}

.gate-badge.review_required {
  background: #d97706;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.3);
}

.gate-badge.fail {
  background: #e11d48;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.3);
}

/* FIGURES & HALLUCINATION AUDIT TAGS */
.figure-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  margin: 2px 4px 2px 0;
}

.figure-tag.verified {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}

.figure-tag.unverified {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
  animation: pulse-ring 2.5s infinite;
}

.deck-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
}

.status-badge.draft {
  background: var(--status-draft-bg);
  color: var(--status-draft-text);
  border-color: var(--status-draft-border);
}

.status-badge.in_review,
.status-badge.in-review {
  background: var(--status-review-bg);
  color: var(--status-review-text);
  border-color: var(--status-review-border);
}

.status-badge.approved {
  background: var(--status-approved-bg);
  color: var(--status-approved-text);
  border-color: var(--status-approved-border);
}

.status-badge.rejected {
  background: var(--status-rejected-bg);
  color: var(--status-rejected-text);
  border-color: var(--status-rejected-border);
}

/* SLIDE STAGE */
.presentation-stage {
  background: linear-gradient(135deg, #091e3a 0%, #030b17 100%);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-xl);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  margin-bottom: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.slide-canvas {
  aspect-ratio: 16 / 9;
  background: #ffffff;
  color: var(--brand-navy-950);
  border-radius: var(--radius-lg);
  padding: 3.5rem 4rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: opacity var(--transition-base), transform var(--transition-base);
}

.slide-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 2px solid #0077c8;
  padding-bottom: 1.25rem;
  margin-bottom: 1.8rem;
}

.slide-number-tag {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.85rem;
  color: #0284c7;
  background: #e0f2fe;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
}

.slide-brand-watermark {
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--brand-navy-700);
}

.slide-canvas h2 {
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  color: var(--brand-navy-900);
  margin-bottom: 1.5rem;
  line-height: 1.25;
}

.slide-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.slide-bullets li {
  position: relative;
  padding-left: 1.8rem;
  font-size: clamp(0.95rem, 1.35vw, 1.15rem);
  line-height: 1.5;
  color: #1e293b;
}

.slide-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  background: #0284c7;
  border-radius: 2px;
}

.slide-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.78rem;
  color: #64748b;
  margin-top: 2rem;
}

.stage-nav-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.btn-stage-nav {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-stage-nav:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.25);
}

.btn-stage-nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.slide-dots {
  display: flex;
  gap: 0.55rem;
}

.slide-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.slide-dot.active {
  background: #38bdf8;
  width: 26px;
  border-radius: var(--radius-full);
}

/* CLAIMS */
.claim-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  margin-bottom: 0.9rem;
  background: #ffffff;
  overflow: hidden;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.claim-card:hover {
  border-color: #94a3b8;
  box-shadow: var(--shadow-sm);
}

.claim-summary-btn {
  padding: 1rem 1.25rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
  background: #ffffff;
  font-weight: 600;
}

.claim-summary-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.claim-id-badge {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: #f1f5f9;
  color: var(--brand-navy-900);
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 700;
}

.claim-content-details {
  padding: 1.25rem;
  background: #f8fafc;
  border-top: 1px solid var(--border-light);
}

.claim-statement {
  font-size: 0.96rem;
  color: var(--brand-navy-900);
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.claim-reason-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #92400e;
  margin-bottom: 1rem;
}

.claim-reason-box.grounded {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

.claim-reason-box.untraceable {
  background: #fff1f2;
  border-color: #fecdd3;
  color: #9f1239;
}

/* MODALS */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(4, 13, 26, 0.65);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-overlay.open {
  display: flex;
}

.modal-card {
  background: #ffffff;
  border-radius: var(--radius-xl);
  max-width: 840px;
  width: 100%;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: modal-enter 0.2s ease-out;
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: scale(0.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.modal-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-body {
  padding: 1.5rem;
  overflow-y: auto;
}

.json-pre-box {
  background: #0f172a;
  color: #38bdf8;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  padding: 1.25rem;
  border-radius: var(--radius-md);
  overflow-x: auto;
  line-height: 1.6;
}

/* SLIDE EDITOR ACCORDIONS */
.editor-slide-block {
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  padding: 1.2rem;
  background: #ffffff;
}

.editor-slide-block h4 {
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.95rem;
}

/* FOOTER */
.app-footer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  padding: 1.5rem 2rem;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  margin-top: auto;
}

.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

@media (max-width: 992px) {

  .grid,
  .grid.four {
    grid-template-columns: repeat(2, 1fr);
  }

  .presentation-stage {
    padding: 1.5rem;
  }

  .slide-canvas {
    padding: 2rem 2rem;
  }
}

@media (max-width: 768px) {
  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    padding: 1rem;
  }

  .topbar-left,
  .topbar-right {
    justify-content: space-between;
  }

  .grid,
  .grid.two,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 1.5rem 1rem 3rem;
  }

  .message-bubble {
    max-width: 95%;
  }

  .slide-canvas {
    padding: 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   EXECUTIVE AI SEARCH & COMMAND CENTER DESIGN SYSTEM (CLEAN & MODERN)
   ========================================================================== */

/* Hero Section */
.hero-clean {
  text-align: center;
  padding: 2.2rem 1rem 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  background: rgba(2, 132, 199, 0.08);
  border: 1px solid rgba(2, 132, 199, 0.22);
  border-radius: var(--radius-full);
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-navy-900);
  margin-bottom: 1.25rem;
  backdrop-filter: blur(8px);
}

.badge-separator {
  color: #94a3b8;
}

.hero-headline {
  font-size: clamp(2.2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin-bottom: 1rem;
  color: var(--brand-navy-950);
}

.gradient-text {
  background: linear-gradient(135deg, #0284c7 0%, #005696 45%, #4338ca 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheadline {
  font-size: 1.12rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto;
}

/* Active Workspace Banner */
.active-workspace-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border: 1.5px solid #bae6fd;
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.aw-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.aw-title-group h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--brand-navy-900);
}

.aw-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.aw-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

/* Executive Command Card (Large, Bold & Prominent) */
.executive-command-card {
  background: #ffffff;
  border: 1.5px solid rgba(2, 132, 199, 0.25);
  border-radius: 24px;
  padding: 2.5rem 2.8rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 24px 50px -15px rgba(2, 132, 199, 0.15), 0 0 0 1px rgba(226, 232, 240, 0.85);
  transition: all var(--transition-base);
}

.executive-command-card:hover {
  box-shadow: 0 30px 60px -15px rgba(2, 132, 199, 0.22);
  border-color: rgba(2, 132, 199, 0.45);
}

.command-input-container {
  display: flex;
  gap: 1.1rem;
  align-items: stretch;
  flex-wrap: wrap;
  margin-bottom: 1.4rem;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 340px;
  display: flex;
  align-items: center;
}

.search-lens-icon {
  position: absolute;
  left: 1.4rem;
  color: #0284c7;
  pointer-events: none;
}

.command-input {
  width: 100%;
  font-size: 1.25rem;
  font-weight: 600;
  height: 68px;
  padding: 1.25rem 10.5rem 1.25rem 4rem;
  border: 2px solid #cbd5e1;
  border-radius: 18px;
  background: #f8fafc;
  color: var(--brand-navy-950);
  transition: all var(--transition-fast);
}

.command-input::placeholder {
  color: #94a3b8;
  font-weight: 450;
  font-size: 1.15rem;
}

.command-input:focus {
  background: #ffffff;
  border-color: var(--brand-blue-500);
  box-shadow: 0 0 0 5px rgba(2, 132, 199, 0.18);
  outline: none;
}

.btn-command-enrich {
  position: absolute;
  right: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #e0f2fe;
  color: #0284c7;
  border: 1.5px solid #bae6fd;
  font-weight: 750;
  font-size: 0.95rem;
  padding: 0.75rem 1.2rem;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-command-enrich:hover {
  background: #0284c7;
  color: #ffffff;
  border-color: #0284c7;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
}

.btn-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #0284c7 0%, #005696 100%);
  color: #ffffff;
  font-weight: 750;
  font-size: 1.18rem;
  height: 68px;
  padding: 1.25rem 2.4rem;
  border: none;
  border-radius: 18px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 10px 26px rgba(2, 132, 199, 0.38);
  transition: all var(--transition-fast);
}

.btn-primary-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(2, 132, 199, 0.48);
  background: linear-gradient(135deg, #0369a1 0%, #004477 100%);
}

.command-quick-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
  margin-bottom: 1.6rem;
}

.quick-label {
  font-size: 0.92rem;
  font-weight: 700;
  color: #64748b;
}

.quick-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.quick-company-pill {
  background: #f1f5f9;
  border: 1.5px solid #cbd5e1;
  color: var(--brand-navy-900);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-company-pill:hover {
  background: var(--brand-navy-900);
  color: #ffffff;
  border-color: var(--brand-navy-900);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

/* Loading Shimmer Bar */
.enrichment-shimmer-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: linear-gradient(90deg, #f0f9ff 0%, #e0f2fe 50%, #f0f9ff 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite linear;
  border: 1px solid #bae6fd;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #0369a1;
  margin-bottom: 1.25rem;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }

  100% {
    background-position: -200% 0;
  }
}

/* Intelligence Dossier */
.intelligence-dossier {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 1.5rem 1.6rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 10px 25px -5px rgba(22, 101, 52, 0.08);
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dossier-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid #e2e8f0;
}

.dossier-entity {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  flex: 1;
  min-width: 280px;
}

.dossier-avatar {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.dossier-verified-chip {
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.dossier-desc {
  font-size: 0.86rem;
  color: #475569;
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.dossier-metrics {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.dossier-stat-pill {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.6rem 0.85rem;
  display: flex;
  flex-direction: column;
}

.dossier-stat-pill.highlight {
  border-color: #86efac;
  background: #f0fdf4;
}

.dossier-stat-pill .stat-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.dossier-stat-pill strong {
  font-size: 0.88rem;
  color: var(--brand-navy-950);
}

.dossier-risks {
  padding-top: 1rem;
}

.dossier-risks-title {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
}

.dossier-risk-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}

.dossier-risk-badge {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.4;
}

/* Portfolio & Upload Status Bar (Enlarged & Prominent) */
.portfolio-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.25rem;
  padding-top: 1.6rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.98rem;
}

.psb-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.psb-left input[type="checkbox"] {
  width: 19px !important;
  height: 19px !important;
}

.psb-label {
  cursor: pointer;
  color: var(--brand-navy-900);
  font-size: 0.96rem;
}

.psb-sub {
  color: #64748b;
  font-size: 0.88rem;
  margin-left: 0.45rem;
}

.psb-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-subtle-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 10px;
  padding: 0.55rem 1.05rem;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--brand-navy-900);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-subtle-toggle:hover {
  background: #ffffff;
  border-color: var(--brand-blue-500);
  color: var(--brand-blue-500);
}

.collapsible-drawer {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.25rem;
  animation: slideDown 0.25s ease;
}

.upload-dropzone.compact {
  padding: 1.2rem 1rem;
  margin: 0;
}

.clean-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  background: #ffffff;
  color: var(--text-primary);
}

/* 3-Step Value Showcase */
.value-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin-bottom: 2rem;
}

.showcase-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 2rem 1.8rem;
  position: relative;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.showcase-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(2, 132, 199, 0.35);
}

.showcase-step-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #0284c7;
  background: #e0f2fe;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.showcase-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.showcase-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.showcase-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.showcase-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.showcase-card h4 {
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  color: var(--brand-navy-950);
}

.showcase-card p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .value-showcase-grid {
    grid-template-columns: 1fr;
  }

  .command-input-container {
    flex-direction: column;
  }

  .btn-primary-action {
    width: 100%;
  }
}

/* ==========================================================================
   EXECUTIVE WORKSPACE DESIGN SYSTEM (CLEAN & MODERN)
   ========================================================================== */

/* Workspace Header Card */
.ws-header-card {
  background: #ffffff;
  border: 1.5px solid rgba(2, 132, 199, 0.2);
  border-radius: 20px;
  padding: 1.8rem 2.2rem;
  margin-bottom: 1.6rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  box-shadow: 0 12px 30px -10px rgba(2, 132, 199, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.8);
}

.ws-header-left {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  flex: 1;
  min-width: 320px;
}

.ws-avatar {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0284c7 0%, #4338ca 100%);
  color: #ffffff;
  font-size: 1.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
}

.ws-badges-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}

.ws-chip {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-full);
}

.ws-chip.sector {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ws-chip.size {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.ws-title {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--brand-navy-950);
  margin: 0 0 0.25rem;
  letter-spacing: -0.02em;
}

.ws-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 680px;
  line-height: 1.45;
}

.ws-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #0284c7 0%, #005696 100%);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.6rem;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3);
  transition: all var(--transition-fast);
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.45);
  background: linear-gradient(135deg, #0369a1 0%, #004477 100%);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #ffffff;
  color: var(--brand-navy-900);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.btn-hero-secondary:hover {
  background: #f8fafc;
  border-color: var(--brand-blue-500);
  color: var(--brand-blue-500);
  transform: translateY(-1px);
}

/* Metrics Bar */
.ws-metrics-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.ws-metric-item {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ws-metric-item:hover {
  box-shadow: var(--shadow-md);
  border-color: #cbd5e1;
}

.ws-metric-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ws-metric-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.ws-metric-icon.green {
  background: #dcfce7;
  color: #16a34a;
}

.ws-metric-icon.purple {
  background: #ede9fe;
  color: #7c3aed;
}

.ws-metric-icon.amber {
  background: #fef3c7;
  color: #d97706;
}

.ws-metric-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.ws-metric-val {
  font-size: 0.95rem;
  color: var(--brand-navy-950);
}

/* Main Workspace Card */
.ws-card-main {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.ws-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid #f1f5f9;
}

/* Winning Policy Spotlight Banner */
.ws-winner-banner {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid #86efac;
  border-radius: 16px;
  padding: 1.5rem 1.8rem;
  margin-bottom: 1.6rem;
  box-shadow: 0 10px 25px -6px rgba(22, 101, 52, 0.08);
}

.ww-badge-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.4rem;
}

.ww-rank-badge {
  background: #047857;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

.ww-score-pill {
  background: #dcfce7;
  color: #166534;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  border: 1px solid #86efac;
}

.ww-policy-title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.4rem;
  color: #064e3b;
  font-weight: 800;
}

.ww-insurer {
  font-size: 0.95rem;
  font-weight: 500;
  color: #047857;
}

.ww-rationale {
  font-size: 0.98rem;
  color: #065f46;
  line-height: 1.65;
  margin: 0;
}

.ww-features-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.95rem;
  margin-top: 1.25rem;
  padding-top: 1.15rem;
  border-top: 1px solid #bbf7d0;
}

.ww-feature-pill {
  background: #ffffff;
  border: 1px solid #a7f3d0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  display: flex;
  flex-direction: column;
}

.wf-tag {
  font-size: 0.75rem;
  font-weight: 750;
  text-transform: uppercase;
  color: #047857;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.ww-feature-pill strong {
  font-size: 0.95rem;
  color: #064e3b;
  line-height: 1.45;
  font-weight: 700;
}

/* 4-Policy Benchmark Grid */
.ws-benchmark-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.ws-policy-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.45rem 1.35rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.ws-policy-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.ws-policy-card.is-winner {
  border: 2px solid #10b981;
  background: #f0fdf4;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.2);
}

.wpc-rank-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.65rem;
}

.wpc-rank-winner {
  font-size: 0.78rem;
  font-weight: 800;
  color: #047857;
  background: #dcfce7;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

.wpc-rank-tag {
  font-size: 0.78rem;
  font-weight: 700;
  color: #64748b;
  background: #f1f5f9;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
}

.wpc-score {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--brand-navy-900);
}

.ws-policy-card.is-winner .wpc-score {
  color: #047857;
}

.wpc-name {
  margin: 0;
  font-size: 1.22rem;
  font-weight: 750;
  line-height: 1.3;
  color: var(--brand-navy-950);
}

.wpc-insurer {
  font-size: 0.88rem;
  color: var(--text-muted);
  display: block;
  margin-top: 2px;
  margin-bottom: 0.95rem;
}

/* Clean Gist Highlights List (Direct, Legible, No Text Walls) */
.wpc-gist-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
}

.wpc-gist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.92rem;
  color: #1e293b;
  line-height: 1.48;
}

.wpc-gist-bullet {
  color: #0284c7;
  font-weight: 850;
  font-size: 0.95rem;
  line-height: 1.4;
  flex-shrink: 0;
}

.ws-policy-card.is-winner .wpc-gist-bullet {
  color: #047857;
}

.wpc-gist-text {
  flex: 1;
}

.wpc-footer {
  margin-top: 0.85rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

.wpc-fit-tag {
  display: inline-block;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  line-height: 1.35;
}

.ws-policy-card.is-winner .wpc-fit-tag {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}

/* Bottom Two-Column Layout */
.ws-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.6rem;
}

.ws-hub-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.8rem 2rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ws-action-block {
  display: flex;
  gap: 1.1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 1.3rem;
  margin-bottom: 1.1rem;
  transition: all var(--transition-fast);
}

.ws-action-block:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: var(--shadow-sm);
}

.ws-action-block.highlight {
  background: linear-gradient(135deg, #f0f9ff 0%, #ffffff 100%);
  border-color: #bae6fd;
}

.wab-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0284c7 0%, #005696 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.wab-icon.blue {
  background: #e0f2fe;
  color: #0284c7;
}

.wab-content {
  flex: 1;
}

.ws-discovery-pills {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.ws-question-pill {
  display: block;
  padding: 0.45rem 0.75rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.8rem;
  color: var(--brand-navy-900);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.ws-question-pill:hover {
  border-color: var(--brand-blue-500);
  background: #f0f9ff;
  color: var(--brand-blue-500);
  transform: translateX(2px);
}

/* Client Meta Grid in Hub */
.ws-client-meta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.wcm-cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.75rem 0.95rem;
}

.wcm-tag {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.wcm-cell strong {
  font-size: 0.9rem;
  color: var(--brand-navy-950);
}

.ws-risks-container {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.ws-risk-items {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.ws-risk-line {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: #334155;
  line-height: 1.45;
}

.risk-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f59e0b;
  margin-top: 6px;
  flex-shrink: 0;
}

.ws-file-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.ws-file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.ws-file-title {
  font-weight: 600;
  font-size: 0.84rem;
  color: var(--brand-navy-900);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ws-file-tag {
  font-size: 0.68rem;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.ws-compliance-strip {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  color: #92400e;
  line-height: 1.4;
}

@media (max-width: 1024px) {
  .ws-benchmark-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-metrics-bar {
    grid-template-columns: repeat(2, 1fr);
  }

  .ws-split-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .ws-benchmark-grid {
    grid-template-columns: 1fr;
  }

  .ws-metrics-bar {
    grid-template-columns: 1fr;
  }

  .ws-header-actions {
    width: 100%;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    justify-content: center;
  }
}