:root {
  --bg-dark: #0B0F17;
  --bg-card: #111827;
  --bg-card-hover: #162032;
  --bg-input: #1E293B;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #3B82F6;
  
  --primary: #3B82F6;
  --primary-hover: #2563EB;
  --emerald: #10B981;
  --emerald-bg: rgba(16, 185, 129, 0.1);
  --amber: #F59E0B;
  --purple: #8B5CF6;
  --rose: #F43F5E;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dim: #6B7280;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px -2px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 25px -5px rgba(59, 130, 246, 0.25);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-dark);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* App Header */
.app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1.75rem;
  background-color: rgba(17, 24, 39, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: #fff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
}

.brand-accent {
  background: linear-gradient(90deg, #60A5FA, #A78BFA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-subtitle {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.product-pills {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.25rem 0.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
}

.product-pill {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 9999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.product-pill:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.product-pill.active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.live-status-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 9999px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: #34D399;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 8px #34D399;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

.nav-svg-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.tab-svg-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #94A3B8;
  transition: color 0.2s ease, transform 0.2s ease;
}

.tab-btn:hover .tab-svg-icon,
.tab-btn.active .tab-svg-icon {
  color: #60A5FA;
  transform: translateY(-1px);
}

.tab-counter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.68rem;
  font-family: var(--font-mono);
  font-weight: 700;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.08);
  color: #CBD5E1;
  border: 1px solid rgba(255, 255, 255, 0.12);
  margin-left: 0.25rem;
}

.tab-btn.active .tab-counter-badge {
  background: rgba(59, 130, 246, 0.25);
  color: #93C5FD;
  border-color: rgba(59, 130, 246, 0.4);
}

.icon-emerald { color: #34D399; }
.icon-blue { color: #60A5FA; }
.icon-purple { color: #A78BFA; }

.cloud-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #CBD5E1;
  padding: 0.4rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
}

.cloud-badge:hover {
  background: rgba(59, 130, 246, 0.15);
  border-color: rgba(59, 130, 246, 0.4);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25);
}

.cloud-dot-live {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #34D399;
  box-shadow: 0 0 6px #34D399;
}

.cloud-service-card {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.user-profile-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #374151;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 700;
  color: #93C5FD;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.user-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #E2E8F0;
}

.user-role {
  font-size: 0.68rem;
  color: var(--text-dim);
}

/* App Body Layout */
.app-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: calc(100vh - 65px);
}

/* Sidebar */
.sidebar {
  background: #0E131F;
  border-right: 1px solid var(--border-color);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.sidebar-section {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.section-header-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-transform: uppercase;
}

.badge-tag {
  font-size: 0.65rem;
  background: rgba(59, 130, 246, 0.15);
  color: #60A5FA;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
}

.workspace-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.ws-name {
  font-size: 1rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ws-tagline {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.ws-meta-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border-color);
  padding-top: 0.5rem;
}

.ws-objectives-text {
  font-size: 0.78rem;
  color: #CBD5E1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  line-height: 1.45;
}

.cost-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cost-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
}

.cost-lbl {
  color: var(--text-muted);
}

.cost-val {
  font-family: var(--font-mono);
  font-weight: 600;
  color: #fff;
}

.cost-progress-track {
  width: 100%;
  height: 6px;
  background: #1E293B;
  border-radius: 3px;
  overflow: hidden;
}

.cost-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #10B981, #3B82F6);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.cost-sub-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
}

.text-emerald {
  color: #34D399;
}

.governance-box {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.gov-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: #94A3B8;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.audit-log-container {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 160px;
  overflow-y: auto;
}

.audit-entry {
  font-size: 0.68rem;
  font-family: var(--font-mono);
  color: #94A3B8;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.35rem 0.5rem;
  border-radius: 4px;
  border-left: 2px solid #3B82F6;
}

.audit-time {
  color: #64748B;
  display: block;
  font-size: 0.62rem;
}

/* Content Pane */
.content-pane {
  background: var(--bg-dark);
  padding: 1.5rem 2rem;
  overflow-y: auto;
}

.content-tabs {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
  margin-bottom: 1.5rem;
}

.tab-btn {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1rem;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.04);
}

.tab-btn.active {
  color: #FFFFFF;
  background: var(--bg-card);
  border-color: var(--border-color);
  box-shadow: var(--shadow-sm);
}

.pane-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  gap: 1rem;
}

.pane-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 0.25rem;
}

.pane-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 650px;
}

/* Common UI Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--primary);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: #334155;
}

.btn-sm {
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
}

.btn-emerald {
  background: #10B981;
  color: #FFFFFF;
}

.btn-emerald:hover {
  background: #059669;
}

/* Tab Contents */
.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* Grid & Card Layouts */
.briefs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.brief-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  transition: transform 0.2s, border-color 0.2s;
}

.brief-card:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.brief-question {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
}

.brief-badge {
  font-size: 0.7rem;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.05);
  color: #94A3B8;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.brief-meta-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.76rem;
}

.brief-meta-row {
  display: flex;
  gap: 0.4rem;
}

.brief-meta-k {
  color: var(--text-dim);
  min-width: 85px;
}

.brief-meta-v {
  color: var(--text-main);
  flex: 1;
}

/* Sources List */
.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
}

.source-item-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.source-icon {
  font-size: 1.5rem;
}

.source-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
}

.source-details {
  font-size: 0.75rem;
  color: var(--text-dim);
  display: flex;
  gap: 1rem;
  margin-top: 0.2rem;
}

.status-badge-approved {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Jobs Queue */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Persona Dialogue & Knowledge Graph Visualizer Styles */
.graph-layout-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 1.25rem;
}

.graph-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 480px;
}

.box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.75rem;
}

.box-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: #FFFFFF;
}

.persona-nodes-grid {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow-y: auto;
  max-height: 440px;
}

.persona-node-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  transition: all 0.2s;
}

.persona-node-card:hover {
  background: rgba(59, 130, 246, 0.05);
  border-color: rgba(59, 130, 246, 0.4);
}

.node-concept-card {
  background: rgba(139, 92, 246, 0.08);
  border: 1px dashed rgba(139, 92, 246, 0.4);
}

.node-avatar {
  font-size: 1.5rem;
  line-height: 1;
}

.node-info {
  flex: 1;
}

.node-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: #E2E8F0;
}

.node-role {
  font-size: 0.72rem;
  color: #94A3B8;
  margin-bottom: 0.35rem;
}

.node-badges {
  display: flex;
  gap: 0.4rem;
}

.dialogue-stream {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  overflow-y: auto;
  max-height: 440px;
  padding-right: 0.5rem;
}

.chat-bubble {
  background: #1E293B;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  position: relative;
}

.chat-bubble-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.speaker-name {
  font-weight: 700;
  color: #60A5FA;
}

.round-pill {
  font-family: var(--font-mono);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  color: #94A3B8;
}

.chat-text {
  font-size: 0.84rem;
  color: #F1F5F9;
  line-height: 1.45;
}

.chat-target {
  font-size: 0.7rem;
  color: #A78BFA;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

.job-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.job-id {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: #FFFFFF;
}

.job-status-running {
  background: rgba(245, 158, 11, 0.15);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.job-status-completed {
  background: rgba(16, 185, 129, 0.15);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 9999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.job-spec {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.job-cost-box {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 0.4rem;
}

.cost-figure {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  color: #10B981;
}

/* Reports Container */
.reports-container {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}

.report-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1rem;
}

.report-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
}

.report-meta {
  font-size: 0.74rem;
  color: var(--text-dim);
  margin-top: 0.35rem;
}

.report-section-title {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: #60A5FA;
  margin-bottom: 0.5rem;
}

.evidence-tag {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-right: 0.4rem;
}

.tag-cat-a {
  background: rgba(16, 185, 129, 0.2);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.4);
}

.tag-cat-b {
  background: rgba(59, 130, 246, 0.2);
  color: #60A5FA;
  border: 1px solid rgba(59, 130, 246, 0.4);
}

.tag-cat-c {
  background: rgba(245, 158, 11, 0.2);
  color: #FBBF24;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.finding-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-bottom: 0.65rem;
}

.finding-head {
  font-weight: 600;
  font-size: 0.88rem;
  color: #E2E8F0;
  margin-bottom: 0.25rem;
}

.finding-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.persona-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.persona-chip {
  background: #1E293B;
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  color: #E2E8F0;
}

.caveat-banner {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: #FDA4AF;
  line-height: 1.45;
}

/* Experiments Grid */
.experiments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1.25rem;
}

.exp-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
}

.exp-hypothesis {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.4;
}

.exp-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.exp-stat-box {
  display: flex;
  flex-direction: column;
}

.exp-stat-lbl {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.exp-stat-val {
  font-size: 0.95rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: #38BDF8;
}

.exp-observed {
  font-size: 0.75rem;
  color: #A7F3D0;
  background: rgba(16, 185, 129, 0.1);
  padding: 0.5rem 0.75rem;
  border-radius: 4px;
  border-left: 2px solid #10B981;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.modal-card {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

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

.modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #FFFFFF;
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dim);
  cursor: pointer;
}

.modal-close:hover {
  color: #fff;
}

.modal-form {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #E2E8F0;
}

.form-group input,
.form-group select,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  color: #FFFFFF;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-hint {
  font-size: 0.68rem;
  color: var(--text-dim);
}

.input-readonly {
  opacity: 0.7;
  cursor: not-allowed;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

.brief-preview-box {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--border-color);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: #E2E8F0;
}

.cost-estimate-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-sm);
  color: #34D399;
  font-family: var(--font-mono);
  font-size: 0.82rem;
}

.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
  margin-top: 0.5rem;
}
