:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --border: #e5e7eb;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #2563eb;
  --primary-contrast: #ffffff;
  
  /* Score color variables */
  --score-red: linear-gradient(90deg, #fca5a5, #f87171);
  --score-orange: linear-gradient(90deg, #fcd34d, #fbbf24);
  --score-yellow: linear-gradient(90deg, #fef08a, #fde047);
  --score-green: linear-gradient(90deg, #86efac, #4ade80);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
}

  #app {
    display: grid;
    grid-template-columns: 300px 2fr 420px;
    height: 100vh;
  }

.sidebar {
  background: var(--bg);
  padding: 16px;
  border-right: 1px solid var(--border);
  overflow: auto;
  height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.brand-logo { display: block; height: 32px; width: auto; }

.sidebar-cards { display: grid; gap: 14px; }
.card {
  text-align: left;
  padding: 14px;
  background: var(--panel);
  border: 2px solid #cfe3ff;
  border-radius: 10px;
  cursor: pointer;
}
.card-title { font-weight: 600; margin-bottom: 4px; }
.card-desc { color: var(--muted); font-size: 12px; line-height: 1.3; }

.content { padding: 16px 18px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; height: 100vh; }
.content-header { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
}

.header-buttons {
  display: flex;
  align-items: center;
}

.btn-secondary {
  background-color: #6b7280;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-right: 10px;
}

.btn-secondary:hover {
  background-color: #4b5563;
}

.model-switcher {
  display: none !important;
}

.model-select {
  background-color: white;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.model-select:hover {
  border-color: #9ca3af;
}

.model-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.page-title { margin: 0; font-size: 20px; }

.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--border); background: var(--panel); padding: 8px 12px; border-radius: 8px; cursor: pointer; }
.btn-primary { background: var(--primary); color: var(--primary-contrast); border-color: var(--primary); }
.btn-icon { font-size: 16px; }

/* Summary Section */
.summary-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.scores-container {
  display: flex;
  gap: 20px;
  align-items: flex-end;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.summary-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.summary-item label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.summary-item span {
  font-size: 14px;
  font-weight: 600;
}

.total-amount {
  color: var(--primary);
  font-size: 16px !important;
}

.deal-score, .weighted-win-rate {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 180px;
  flex-shrink: 0;
  padding: 16px;
  background: #fafafa;
  border-radius: 12px;
  border: 1px solid #f0f0f0;
  transition: all 0.2s ease;
}

.deal-score:hover, .weighted-win-rate:hover {
  background: #f5f5f5;
  border-color: #e0e0e0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.deal-score label, .weighted-win-rate label {
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  text-align: center;
  margin-bottom: 4px;
}

.score-bar {
  position: relative;
  height: 28px;
  background: #f3f4f6;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.score-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981) !important;
  border-radius: 14px;
  transition: width 0.3s ease;
}

.score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 14px;
  color: black;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  z-index: 2;
  min-width: 20px;
  text-align: center;
}

/* Style for N/A values */
.score-value.no-score {
  color: black;
  font-weight: 600;
  text-shadow: none;
}

/* Enhanced Widget Content Styles */
.metrics-overview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 16px 0;
}

.metric-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  text-align: center;
}

.metric-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.pricing-breakdown {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
  line-height: 1.4;
}

.pricing-breakdown span {
  margin-right: 8px;
}

.pricing-insights {
  margin: 16px 0;
}

.insight-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  margin: 8px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.insight-icon {
  font-size: 16px;
  margin-right: 12px;
  margin-top: 2px;
}

.insight-content {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
}

.recommendations {
  margin: 16px 0;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  padding: 12px;
  margin: 8px 0;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.rec-badge {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 12px;
  min-width: 60px;
  text-align: center;
}

.rec-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--text);
  flex: 1;
}

/* Tabs */
.tabs {
  display: flex;
  gap: 2px;
  background: var(--bg);
  padding: 4px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.tab {
  flex: 1;
  padding: 8px 16px;
  border: none;
  background: transparent;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.tab.active {
  background: var(--panel);
  color: var(--text);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}



/* Table Sections */
.table-section {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.pricing-tiers-section {
  padding: 20px;
  border-top: 1px solid var(--border);
  background: transparent;
}

.pricing-tiers-section h4 {
  margin: 0 0 16px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.pricing-tiers-container {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pricing-tier-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
}

.pricing-tier-row.aggressive {
  border-left: 2px solid #d1d5db;
}

.pricing-tier-row.target {
  border-left: 2px solid #d1d5db;
}

.pricing-tier-row.stretch {
  border-left: 2px solid #d1d5db;
}

.pricing-tier-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pricing-tier-label {
  min-width: 80px;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}

.pricing-tier-price {
  min-width: 100px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
}

.pricing-tier-metrics {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pricing-tier-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.pricing-tier-metric-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.pricing-tier-metric-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.pricing-tier-accept-btn {
  padding: 6px 12px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pricing-tier-accept-btn:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.pricing-tier-accept-btn:active {
  transform: translateY(0);
}

.table-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.table-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.table-container {
  overflow: auto;
}

.pricing-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 13px;
}

.pricing-table th {
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.pricing-table .sub-header th {
  background: #f1f5f9;
  font-size: 10px;
  padding: 4px 12px;
}

.pricing-table td {
  border-bottom: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 13px;
  white-space: nowrap;
}

.pricing-table tbody tr:hover {
  background: transparent;
}

.pricing-table tbody tr.selected {
  background: transparent;
}

.margin-score {
  display: flex;
  align-items: center;
  gap: 8px;
}

.score-bar-small {
  flex: 1;
  height: 16px;
  background: #e5e7eb;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.score-fill-small {
  height: 100%;
  border-radius: 8px;
  transition: width 0.3s ease;
  background: var(--score-color, var(--score-green));
}

.score-fill-green {
  background: var(--score-color, linear-gradient(90deg, #10b981, #059669));
}

.score-fill-orange {
  background: var(--score-color, linear-gradient(90deg, #f59e0b, #d97706));
}

.score-value-small {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: 10px;
  color: black;
}

.win-rate-score {
  font-weight: 600;
  font-size: 12px;
  color: var(--score-color, var(--score-green));
}

.discount-input {
  width: 60px;
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 11px;
  text-align: center;
}

.discount-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 1px var(--primary);
}

.chat { border-left: 1px solid var(--border); background: var(--bg); display: grid; grid-template-rows: auto 1fr auto auto; height: 100vh; }
.chat-header { padding: 16px; font-weight: 600; }
.chat-body { padding: 14px 16px; overflow: auto; display: flex; flex-direction: column; gap: 8px; }

/* Chat message layout */
.message { display: flex; gap: 10px; align-items: flex-end; }
.message .bubble { max-width: 78%; padding: 10px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; background: #f3f4f6; color: #111827; }
.message.user-msg { justify-content: flex-end; }
.message.user-msg .bubble { background: #e5e7eb; border-bottom-right-radius: 6px; }
.message.bot-msg { justify-content: flex-start; }
.message.bot-msg .bubble { background: #eef2ff; border-bottom-left-radius: 6px; }
.message .avatar { width: 28px; height: 28px; border-radius: 50%; background: #e5e7eb; display: grid; place-items: center; font-size: 12px; color: #374151; flex: 0 0 28px; }
.message.user-msg .avatar { display: none; }

/* Streaming/thinking state */
.message.thinking .bubble { opacity: 0.95; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%{opacity:.8} 50%{opacity:1} 100%{opacity:.8} }

/* Markdown styling inside bubbles */
.message .bubble h1, .message .bubble h2, .message .bubble h3 { margin: 8px 0 6px; font-weight: 700; }
.message .bubble h1 { font-size: 20px; }
.message .bubble h2 { font-size: 18px; }
.message .bubble h3 { font-size: 16px; }

/* Make numeric points bold and bigger in headings */
.message .bubble h1,
.message .bubble h2,
.message .bubble h3 {
  font-variant-numeric: oldstyle-nums;
  display: block;
}

/* Styling for entire numbered sentences */
.message .bubble .numbered-sentence {
  font-weight: 900;
  font-size: 1.4em;
  color: inherit;
}

/* Bold number styling (no background) */
.message .bubble .bold-number {
  font-weight: 700;
  color: inherit; /* Use current text color */
  background: none; /* No background */
}

.message .bubble p { margin: 0 0 16px 0; font-size: 13px; }
.message .bubble p:last-child { margin-bottom: 0; }
.message .bubble ul, .message .bubble ol { margin: 6px 0 6px 18px; padding: 0; }
.message .bubble li { margin: 4px 0; font-size: 14px; }
.message .bubble code { background: #1118270d; border: 1px solid #e5e7eb; border-radius: 4px; padding: 1px 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.message .bubble pre { background: #0f172a; color: #e5e7eb; padding: 10px; border-radius: 10px; overflow: auto; font-size: 12px; }
.message .bubble pre code { background: transparent; border: 0; color: inherit; padding: 0; }
.message .bubble a { color: #2563eb; text-decoration: none; }
.message .bubble a:hover { text-decoration: underline; }

.chips { display: flex; gap: 10px; padding: 8px 16px; flex-wrap: wrap; }
.chip { background: #e5e7eb; border-radius: 16px; padding: 6px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { background: #d1d5db; }
.chat-input { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--border); }
.chat-input input { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--panel); }
.send { background: var(--primary); color: #fff; border: none; padding: 0 14px; border-radius: 10px; cursor: pointer; }

.drawer { 
  position: fixed; 
  inset: 0; 
  background: rgba(15, 23, 42, 0.3); 
  display: none; 
  z-index: 1000;
}
.drawer.open { 
  display: block; 
}
.drawer-panel { 
  position: absolute; 
  left: 0; 
  top: 0; 
  bottom: 0; 
  width: 1200px; 
  background: var(--panel); 
  border-right: 1px solid var(--border); 
  box-shadow: 0 10px 30px rgba(0,0,0,0.12); 
  transform: translateX(-100%); 
  transition: transform 220ms ease; 
  display: flex; 
  flex-direction: column; 
}
.drawer.open .drawer-panel { 
  transform: translateX(0); 
}
.drawer-header { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--border); }
.drawer-title { 
  font-weight: 600; 
  font-size: 16px;
  color: var(--text);
}
.drawer-body { 
  padding: 16px; 
  color: var(--text); 
  line-height: 1.4; 
  overflow-y: auto;
  flex: 1;
  font-size: 13px;
}
.icon-btn { 
  border: 1px solid var(--border); 
  background: var(--panel); 
  border-radius: 8px; 
  padding: 6px 8px; 
  cursor: pointer; 
}

/* Widget content specific styles */
.widget-content h3 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.widget-content h4 {
  margin: 20px 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* New widget content styles */
.widget-header-image {
  margin-bottom: 20px;
  text-align: center;
}

.widget-header-image img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.product-context {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border-left: 4px solid #3b82f6;
  font-size: 14px;
  color: #374151;
  text-align: center;
  font-weight: 500;
}

.insights-section,
.implications-section,
.sales-guidance {
  margin-bottom: 24px;
}

.insight-item,
.action-item,
.guidance-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg);
  border-radius: 8px;
  border: 1px solid var(--border);
}

.insight-icon {
  font-size: 16px;
  margin-right: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.insight-content,
.action-text,
.guidance-text {
  flex: 1;
  line-height: 1.4;
  color: var(--text);
  font-size: 13px;
}

.action-badge,
.guidance-badge {
  background: var(--primary);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.transaction-list {
  margin: 16px 0;
}

.transaction-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  margin: 8px 0;
}

.status {
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.status.approved {
  background: #dcfce7;
  color: #166534;
}

.status.pending {
  background: #fef3c7;
  color: #92400e;
}

/* Chart container and controls for discount simulator */
.chart-container {
  margin: 20px 0;
  text-align: center;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  padding: 15px;
  overflow: visible;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.chart-container canvas {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin: 5px;
  display: block;
}

.chart-controls {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.chart-controls label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.chart-controls input[type="range"] {
  width: 200px;
  height: 6px;
  border-radius: 3px;
  background: #e5e7eb;
  outline: none;
  -webkit-appearance: none;
}

.chart-controls input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chart-controls input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

/* Approval Table Styles */
.approval-table {
  margin: 20px 0;
  overflow-x: auto;
}

.approval-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.approval-table th {
  background: transparent;
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
  border-bottom: 1px solid #e5e7eb;
}

.approval-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 13px;
}

.approval-table tbody tr:hover {
  background: transparent;
}

.margin-excellent {
  color: #059669;
  font-weight: 600;
}

.margin-safe {
  color: #d97706;
  font-weight: 600;
}

.margin-thin {
  color: #dc2626;
  font-weight: 600;
}

.margin-critical {
  color: #dc2626;
  font-weight: 600;
}

.highlighted {
  background: transparent !important;
  color: #1e40af;
  font-weight: 600;
}

/* Comparison Table Styles */
.comparison-table {
  margin: 20px 0;
  overflow-x: auto;
}

.comparison-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 12px;
}

.comparison-table th {
  background: transparent;
  padding: 10px 8px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  color: var(--text);
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.comparison-table td {
  padding: 8px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 11px;
  line-height: 1.3;
  vertical-align: top;
}

.comparison-table tbody tr:hover {
  background: transparent;
}

.feature-name {
  font-weight: 600;
  color: var(--text);
  background: transparent;
}

.iridium {
  color: #000000;
  font-weight: 500;
}

.competitor {
  color: #000000;
  font-weight: 500;
}

.concern {
  color: #d97706;
  font-style: italic;
  font-size: 10px;
}

.argument {
  color: #1e40af;
  font-size: 10px;
  line-height: 1.4;
}

/* TCO Table Styles */
.tco-table {
  margin: 20px 0;
  overflow-x: auto;
}

.tco-table table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 11px;
}

.tco-table th {
  background: #1f2937;
  color: white;
  padding: 10px 6px;
  text-align: center;
  font-weight: 600;
  font-size: 10px;
  border-bottom: 1px solid #374151;
  white-space: nowrap;
}

.tco-table td {
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  vertical-align: middle;
}

.tco-table tbody tr:nth-child(even) {
  background: transparent;
}

.tco-table tbody tr:hover {
  background: #e5e7eb;
}

.vendor-name {
  font-weight: 600;
  color: var(--text);
  text-align: left !important;
}

.tco-highlight {
  background: #fef3c7 !important;
  color: #92400e;
  font-weight: 600;
  border-radius: 4px;
}

.tco-competitive {
  background: transparent !important;
  color: #1e40af;
  font-weight: 600;
  border-radius: 4px;
}



/* Chart Legend Styles */
.chart-legend {
  margin-top: 20px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

.chart-legend h4 {
  margin: 0 0 12px 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.legend-item {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  font-size: 12px;
  color: var(--text);
}

.legend-color {
  width: 16px;
  height: 3px;
  margin-right: 8px;
  border-radius: 2px;
}

.legend-insight {
  margin-top: 12px;
  padding: 8px 12px;
  background: #fef3c7;
  border-radius: 6px;
  font-size: 11px;
  color: #92400e;
  border-left: 3px solid #f59e0b;
}

@media (max-width: 1200px) {
  #app { grid-template-columns: 260px 2fr 420px; }
}
@media (max-width: 980px) {
  #app { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
  .sidebar { grid-row: 2; }
  .chat { grid-row: 3; }
  .kpi-bar { grid-template-columns: repeat(3, 1fr); }
  .table-scroll { max-height: unset; }
}

/* Partner Margin Insights Chart Styling */
.margin-chart-container {
  background: transparent;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.deal-info h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
  color: #1f2937;
  font-weight: 600;
}

.meta {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.4;
}

.control-badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.control-badge {
  display: flex;
  align-items: center;
  gap: 6px;
}

.control-badge label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.badge {
  background: #e5e7eb;
  color: #374151;
  border-radius: 12px;
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border: 1px solid #d1d5db;
}

.sequence-notes {
  font-size: 12px;
  color: #6b7280;
  margin-top: 12px;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  line-height: 1.4;
}

.chart-controls {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 8px;
}

.controls-row {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.control-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.control-group label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.control-group input[type="range"] {
  width: 120px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  outline: none;
  -webkit-appearance: none;
}

.control-group input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
}

.control-group input[type="range"]::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: #2563eb;
  border-radius: 50%;
  cursor: pointer;
  border: none;
}

.ticks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #9ca3af;
  margin-top: 4px;
}

.control-group input[type="checkbox"] {
  margin-right: 6px;
  accent-color: #2563eb;
}

.key-figures {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 12px;
}

.figure-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
}

.figure-item .label {
  font-size: 12px;
  color: #6b7280;
  font-weight: 500;
}

.figure-item .value {
  font-size: 14px;
  color: #1f2937;
  font-weight: 600;
}

#marginChart {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
}

/* Hide scrollbars for all browsers */
* {
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* Internet Explorer 10+ */
}

*::-webkit-scrollbar {
  display: none; /* WebKit browsers (Chrome, Safari, Edge) */
}

/* Ensure scrolling still works for specific elements */
.sidebar,
.content,
.chat-body,
.table-container,
.message .bubble pre {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar,
.content::-webkit-scrollbar,
.chat-body::-webkit-scrollbar,
.table-container::-webkit-scrollbar,
.message .bubble pre::-webkit-scrollbar {
  display: none;
}

/* Inline pricing tiers styling */
.pricing-tiers-row {
  background: transparent;
  border-top: none !important;
}

.pricing-tiers-row td {
  padding: 0 !important;
  border-bottom: 1px solid #e5e7eb;
}

.pricing-tiers-inline {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pricing-tiers-inline .pricing-tier-row {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 6px;
  gap: 12px;
  margin: 0;
}

.pricing-tiers-inline .pricing-tier-row:last-child {
  margin-bottom: 0;
}

.pricing-tiers-inline .pricing-tier-row.aggressive {
  border-left: 2px solid #d1d5db;
}

.pricing-tiers-inline .pricing-tier-row.target {
  border-left: 2px solid #d1d5db;
}

.pricing-tiers-inline .pricing-tier-row.stretch {
  border-left: 2px solid #d1d5db;
}

.pricing-tiers-inline .pricing-tiers-header {
  padding: 16px 20px 8px 20px;
  background: transparent;
}

.pricing-tiers-inline .pricing-tiers-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* Software Product Sections */
.software-section {
  margin-bottom: 24px;
}

.software-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.software-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.product-section {
  margin-bottom: 24px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: white;
  overflow: hidden;
}

.product-header {
  padding: 16px 20px;
  background: transparent;
  border-bottom: 1px solid var(--border);
}

.product-header h4 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.product-details {
  padding: 0;
}

.product-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.product-table th,
.product-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.product-table th {
  background: transparent;
  font-weight: 600;
  color: var(--text);
}

.product-table tbody tr:hover {
  background: transparent;
}

.product-table .discount-input {
  width: 80px;
  padding: 4px 8px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 13px;
}

/* Services Section - Same styling as Software */
.services-section {
  margin-bottom: 24px;
}

.services-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.services-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

/* Customer Demographics Styling */
.customer-demographics {
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
  background: var(--panel);
}

/* Customer History Table Styles */
.history-table {
  margin-top: 16px;
}

.history-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.history-table th,
.history-table td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  vertical-align: top;
}

.history-table th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #374151;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.history-table td {
  color: #6b7280;
  font-size: 13px;
  line-height: 1.5;
}

.history-table tr:hover {
  background-color: #f9fafb;
}

.history-table td:first-child {
  font-weight: 600;
  color: #374151;
}

.history-table td:nth-child(2),
.history-table td:nth-child(3) {
  font-weight: 500;
  color: #374151;
}

/* Transaction Journey Styles */
.transaction-journey {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.transaction-journey h4 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 20px;
}

.phase-section {
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #3b82f6;
}

.phase-header h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.phase-content {
  margin-left: 0;
}

.context-section h6 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.context-section p {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  margin: 0 0 8px 0;
}

.context-section ul {
  margin: 8px 0 8px 16px;
  padding: 0;
}

.context-section li {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 4px;
}

.implications-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid #e5e7eb;
}

.implications-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 16px 0;
}

.implication-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 12px;
  padding: 12px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #10b981;
}

.implication-badge {
  background: #10b981;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 12px;
  min-width: 60px;
  text-align: center;
  flex-shrink: 0;
}

.implication-text {
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
  flex: 1;
}

.implication-text strong {
  color: #1f2937;
  font-weight: 600;
}

/* Playbook Styles */
.playbook-section {
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #3b82f6;
}

.section-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 16px 0;
}

.features-subsection {
  margin-bottom: 16px;
}

.features-subsection h5 {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.feature-list,
.question-list {
  margin: 8px 0 8px 16px;
  padding: 0;
}

.feature-list li,
.question-list li {
  font-size: 12px;
  line-height: 1.5;
  color: #6b7280;
  margin-bottom: 6px;
}

.status-good {
  background: #10b981;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.status-better {
  background: #3b82f6;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.status-best {
  background: #8b5cf6;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.status-addon {
  background: #f59e0b;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
}

.reaction-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 8px;
  padding: 8px;
  background: #f8fafc;
  border-radius: 6px;
  border-left: 3px solid #10b981;
}

.reaction-badge {
  background: #10b981;
  color: white;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 4px;
  margin-right: 12px;
  min-width: 80px;
  text-align: center;
  flex-shrink: 0;
}

.reaction-text {
  font-size: 12px;
  line-height: 1.4;
  color: #374151;
  flex: 1;
}

/* Packaging Image Size */
.widget-header-image img[src="assets/packaging.png"] {
  max-width: 60%;
  height: auto;
  margin: 0 auto;
  display: block;
}

/* Competitive Analysis Styles */
.widget-description {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ca-tabs {
  display: flex;
  background: #f3f4f6;
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 20px;
}

.ca-tab {
  flex: 1;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
}

.ca-tab.active {
  background: #10b981;
  color: white;
}

.ca-tab:hover:not(.active) {
  color: #374151;
}

.ca-section {
  margin-bottom: 24px;
}

.ca-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
}

.section-description {
  font-size: 11px;
  color: #6b7280;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ca-controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.control-group {
  display: flex;
  flex-direction: column;
  background: #f9fafb;
  border-radius: 8px;
  padding: 12px;
}

.control-group label {
  font-size: 11px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 4px;
}

.ca-input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 12px;
  color: #374151;
  width: 100%;
}

.tco-table {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  margin-bottom: 16px;
}

.tco-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  background: #f9fafb;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
}

.tco-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  padding: 12px;
  border-bottom: 1px solid #f3f4f6;
  align-items: center;
}

.tco-row.hyland {
  background: #f0fdf4;
  border: 1px solid #10b981;
  border-radius: 8px;
  margin: 8px;
  padding: 12px;
}

.tco-col {
  font-size: 12px;
  color: #374151;
}

.vendor-name {
  font-weight: 600;
  margin-bottom: 4px;
}

.vendor-notes {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.3;
}

.tier-selector {
  display: flex;
  gap: 4px;
  background: #f3f4f6;
  border-radius: 6px;
  padding: 2px;
}

.tier-btn {
  flex: 1;
  padding: 4px 8px;
  font-size: 10px;
  font-weight: 500;
  border: none;
  background: transparent;
  color: #6b7280;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.tier-btn.active {
  background: #10b981;
  color: white;
}

.tco-total {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.tco-summary {
  font-size: 11px;
  color: #6b7280;
}

.tco-value {
  font-size: 14px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  background: #f3f4f6;
  color: #374151;
}

.tco-value.best {
  background: #10b981;
  color: white;
}

.tier-definitions {
  font-size: 11px;
  color: #6b7280;
  line-height: 1.4;
}

.tier-def {
  font-weight: 600;
  color: #374151;
}

/* Qualitative Section Styles */
.qual-matrix {
  overflow-x: auto;
  margin-bottom: 16px;
}

.qual-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.qual-table th {
  background: #f9fafb;
  font-weight: 600;
  color: #374151;
  text-align: left;
  padding: 8px;
  border-bottom: 1px solid #e5e7eb;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.qual-table td {
  padding: 8px;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.attr-col {
  width: 25%;
  font-weight: 500;
  color: #374151;
}

.weight-col {
  width: 8%;
  text-align: center;
}

.vendor-col {
  width: 10%;
}

.weight-input {
  width: 40px;
  padding: 2px 4px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 10px;
  text-align: center;
}

.score-cell {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #10b981;
  color: white;
  font-size: 10px;
  font-weight: 600;
}

.qual-table .score-bar {
  width: 60px;
  height: 4px;
  background: #e5e7eb;
  border-radius: 2px;
  overflow: hidden;
}

.qual-table .score-bar .score-fill {
  height: 100%;
  background: #10b981;
  transition: width 0.3s ease;
}

.score-note {
  font-size: 9px;
  color: #6b7280;
  line-height: 1.3;
}

.weighted-averages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 16px;
}

.avg-label {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
  grid-column: 1 / -1;
  margin-bottom: 4px;
}

.avg-value {
  background: #f9fafb;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #374151;
  text-align: center;
}

.ca-section.hidden {
  display: none;
}

/* Value-based Selling Widget Styles - Exact VBS.jsx Structure */
.vbs-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.vbs-header-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.vbs-header-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.vbs-title-section h4 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.vbs-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-top: 4px;
}

.vbs-recommended-price {
  font-size: 18px;
  font-weight: 700;
  color: #059669;
}

.vbs-export-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
  transition: all 0.2s ease;
}

.vbs-export-btn:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
}

.export-icon {
  font-size: 16px;
}

.vbs-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.vbs-card-content h5 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

.vbs-select {
  width: 100%;
  max-width: 400px;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.vbs-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.vbs-feature-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}

.vbs-checkbox {
  width: 16px;
  height: 16px;
  accent-color: #3b82f6;
}

.vbs-feature-label {
  flex: 1;
  font-size: 14px;
  color: #374151;
  cursor: pointer;
}

.vbs-wtp-input {
  width: 100px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 14px;
  text-align: right;
}

.vbs-wtp-unit {
  font-size: 12px;
  color: #6b7280;
  min-width: 60px;
}

.vbs-waterfall-container {
  height: 600px;
  margin-bottom: 16px;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  padding: 16px;
  overflow-y: auto;
}

.vbs-waterfall-chart {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.vbs-waterfall-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
}

.vbs-bar-label {
  width: 200px;
  font-size: 12px;
  color: #374151;
  font-weight: 500;
  flex-shrink: 0;
}

.vbs-bar-container {
  flex: 1;
  position: relative;
  height: 32px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.vbs-bar-start {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: transparent;
  z-index: 1;
}

.vbs-bar-fill {
  position: absolute;
  top: 0;
  height: 100%;
  border-radius: 4px;
  transition: all 0.3s ease;
}

.baseline-fill {
  background: linear-gradient(90deg, #6b7280, #9ca3af);
}

.feature-fill {
  background: linear-gradient(90deg, #3b82f6, #60a5fa);
  z-index: 2;
}

.total-fill {
  background: linear-gradient(90deg, #059669, #10b981);
}

.vbs-bar-value {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 600;
  color: white;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 3;
  white-space: nowrap;
}

.vbs-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vbs-badge {
  padding: 6px 12px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  font-size: 12px;
  color: #374151;
}

.vbs-badge-secondary {
  background: #e0f2fe;
  border-color: #b3e5fc;
  color: #0277bd;
}

.vbs-badge-outline {
  background: transparent;
  border-color: #d1d5db;
  color: #6b7280;
}

.badge-text {
  font-weight: 500;
}

.value-categories {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.value-category {
  background: white;
  border-radius: 8px;
  padding: 16px;
  border: 1px solid #e5e7eb;
}

.category-header h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.category-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.questions-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.questions-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.questions-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.questions-section li {
  font-size: 12px;
  color: #4b5563;
  margin-bottom: 6px;
  padding-left: 12px;
  position: relative;
  font-style: italic;
  line-height: 1.4;
}

.questions-section li::before {
  content: "•";
  color: #6b7280;
  font-weight: bold;
  position: absolute;
  left: 0;
}

.implications-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.implications-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.implications-section p {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

.positioning-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  grid-column: 1 / -1;
  margin-top: 8px;
}

.positioning-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.positioning-section p {
  font-size: 12px;
  color: #4b5563;
  margin: 0;
  font-weight: 400;
  line-height: 1.4;
}

.positioning-section strong {
  font-weight: 600;
  color: #1f2937;
}

/* Pricing Corridor Widget Styles */
.bands-legend {
  margin-bottom: 20px;
}

.legend-items {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  display: inline-block;
}

.legend-label {
  font-size: 11px;
  color: #4b5563;
  font-weight: 500;
}

.margin-distribution {
  margin-bottom: 20px;
}

.distribution-table {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
}

.table-header {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 11px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.table-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 11px;
  color: #4b5563;
}

.table-row:last-child {
  border-bottom: none;
}

.col-range {
  font-weight: 500;
}

.col-count {
  text-align: center;
  font-weight: 600;
  color: #1f2937;
}

.col-percentage {
  text-align: center;
  font-weight: 500;
}

.col-band {
  text-align: center;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 10px;
}

.f-band {
  background: #fee2e2;
  color: #dc2626;
}

.d-band {
  background: #fed7aa;
  color: #ea580c;
}

.c-band {
  background: #fef3c7;
  color: #d97706;
}

.b-band {
  background: #dcfce7;
  color: #16a34a;
}

.a-band {
  background: #dcfce7;
  color: #15803d;
}

.tier-lines {
  margin-bottom: 20px;
}

.tier-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.tier-card {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tier-line {
  width: 4px;
  height: 40px;
  border-radius: 2px;
}

.tier-line.aggressive {
  background: #f97316;
  border-left: 2px solid #f97316;
  border-right: 2px solid #f97316;
}

.tier-line.target {
  background: #a78bfa;
  border-left: 2px solid #a78bfa;
  border-right: 2px solid #a78bfa;
}

.tier-line.stretch {
  background: #22d3ee;
  border-left: 2px solid #22d3ee;
  border-right: 2px solid #22d3ee;
}

.tier-info h5 {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.tier-margin {
  font-size: 14px;
  font-weight: 700;
  color: #059669;
  margin-bottom: 4px;
}

.tier-info p {
  font-size: 10px;
  color: #6b7280;
  margin: 0;
  line-height: 1.3;
}

.mayo-marker {
  margin-bottom: 20px;
}

.marker-info {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f0f9ff;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #3b82f6;
  margin-top: 8px;
}

.marker-circle {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #3b82f6;
  border: 2px solid white;
  box-shadow: 0 0 0 1px #3b82f6;
}

.marker-details {
  flex: 1;
}

.marker-label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 2px;
}

.marker-margin {
  font-size: 11px;
  color: #059669;
  font-weight: 600;
  margin-bottom: 2px;
}

.marker-position {
  font-size: 10px;
  color: #6b7280;
}

.reading-guide {
  margin-bottom: 20px;
}

.guide-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.guide-item {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.guide-item h5 {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 6px 0;
}

.guide-item p {
  font-size: 11px;
  color: #4b5563;
  margin: 0;
  line-height: 1.4;
}

.mayo-summary {
  margin-bottom: 20px;
}

.summary-content {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 8px;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}

.summary-card {
  background: white;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  text-align: center;
}

.summary-label {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.summary-value {
  font-size: 13px;
  color: #059669;
  font-weight: 700;
  margin-bottom: 4px;
}

.summary-margin {
  font-size: 11px;
  color: #6b7280;
  font-weight: 500;
}

.summary-note {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #e5e7eb;
}

.summary-note em {
  font-size: 10px;
  color: #6b7280;
  font-style: italic;
}

.seller-implications {
  margin-bottom: 20px;
}

.implication-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.implication-section:last-child {
  margin-bottom: 0;
}

.implication-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.implication-section p {
  font-size: 11px;
  color: #4b5563;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.implication-section p:last-child {
  margin-bottom: 0;
}

.implication-section strong {
  font-weight: 600;
  color: #1f2937;
}

.negotiation-strategy {
  margin-bottom: 20px;
}

.strategy-section {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
  margin-bottom: 12px;
}

.strategy-section:last-child {
  margin-bottom: 0;
}

.strategy-section h5 {
  font-size: 12px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.strategy-section p {
  font-size: 11px;
  color: #4b5563;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.strategy-section p:last-child {
  margin-bottom: 0;
}

.strategy-section strong {
  font-weight: 600;
  color: #1f2937;
}

/* ROI Calculator Styles */
.roi-section {
  margin-bottom: 24px;
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

.roi-calculator {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 16px;
}

.roi-inputs {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.input-group label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.roi-input {
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 14px;
  background: white;
}

.roi-input:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.roi-results {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.roi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: white;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.roi-label {
  font-size: 13px;
  color: #6b7280;
  font-weight: 500;
}

.roi-value {
  font-size: 16px;
  font-weight: 700;
  color: #059669;
}

/* Process Section Styles */
.process-section {
  margin-bottom: 24px;
}

.process-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.process-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

.step-number {
  width: 32px;
  height: 32px;
  background: #3b82f6;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 4px 0;
}

.step-content p {
  font-size: 13px;
  color: #6b7280;
  margin: 0;
}

/* Messaging Section Styles */
.messaging-section {
  margin-bottom: 24px;
}

.messaging-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.message-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.message-card h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
}

.message-card p {
  font-size: 13px;
  color: #374151;
  margin: 0 0 12px 0;
  font-style: italic;
}

.message-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.message-card li {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 4px;
  padding-left: 16px;
  position: relative;
}

.message-card li::before {
  content: "→";
  color: #3b82f6;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* Sales Strategy Styles */
.sales-strategy {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}

.strategy-section {
  margin-bottom: 24px;
  background: #f9fafb;
  border-radius: 8px;
  padding: 16px;
  border-left: 4px solid #3b82f6;
}

.strategy-section h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

.strategy-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.questions-section,
.seller-notes {
  background: white;
  border-radius: 6px;
  padding: 12px;
  border: 1px solid #e5e7eb;
}

.questions-section h6,
.seller-notes h6 {
  font-size: 12px;
  font-weight: 600;
  color: #374151;
  margin: 0 0 8px 0;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.questions-section ul,
.seller-notes ul {
  margin: 0;
  padding-left: 16px;
}

.questions-section li,
.seller-notes li {
  font-size: 11px;
  line-height: 1.4;
  color: #6b7280;
  margin-bottom: 6px;
}

.questions-section li {
  color: #374151;
}

.seller-notes li {
  color: #1f2937;
  font-weight: 500;
}

@media (max-width: 768px) {
  .strategy-content {
    grid-template-columns: 1fr;
  }
}
  color: var(--text);
}

.demographics-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 24px;
}

.demographics-header h1 {
  font-size: 20px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.demographics-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.demographics-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.card-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.card-content {
  padding: 20px;
}

.demographics-table {
  width: 100%;
  border-collapse: collapse;
}

.demographics-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  vertical-align: top;
}

.demographics-table .table-label {
  width: 33%;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}

.demographics-table .alt-row {
  background: #f8fafc;
}

.demographics-list {
  list-style: disc;
  padding-left: 20px;
  margin: 0;
}

.demographics-list li {
  margin-bottom: 4px;
  font-size: 14px;
  line-height: 1.5;
}

.list-label {
  font-weight: 600;
  color: var(--text);
}

.table-container {
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.two-column-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.info-box {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
}

.info-box.full-width {
  grid-column: 1 / -1;
}

.info-title {
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 14px;
}

.percentile-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.percentile-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.percentile-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.percentile-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.percentile-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  border: 1px solid;
}

.percentile-pill.good {
  background: #d1fae5;
  color: #065f46;
  border-color: #a7f3d0;
}

.percentile-pill.bad {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fca5a5;
}

.percentile-pill.neutral {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.demographics-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.footer-note {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Proposal Content */
.proposal-content {
  background: white;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
  overflow: hidden;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}

.proposal-content.hidden {
  display: none;
}

.pdf-preview {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  max-width: 1000px;
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pdf-header {
  background: #f8fafc;
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pdf-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.pdf-actions {
  display: flex;
  gap: 8px;
}

.pdf-btn {
  padding: 8px 16px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pdf-btn:hover {
  background: #1d4ed8;
}

.pdf-content {
  flex: 1;
  overflow-y: auto;
  padding: 0;
}

.pdf-page {
  padding: 40px;
  background: white;
  min-height: 100%;
}

.pdf-page-header {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--primary);
}

.company-logo {
  font-size: 24px;
  font-weight: 700;
  color: #333;
  margin-bottom: 8px;
}

.proposal-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.proposal-subtitle {
  font-size: 16px;
  color: var(--muted);
}

.pdf-section {
  margin-bottom: 32px;
}

.pdf-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.pdf-section p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 16px;
}

.summary-highlights {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
}

.highlight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #e5e7eb;
}

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

.highlight-label {
  font-weight: 600;
  color: var(--text);
}

.highlight-value {
  font-weight: 700;
  color: var(--primary);
  font-size: 16px;
}

.solution-card {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 16px;
}

.solution-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.solution-details {
  margin-top: 12px;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
  font-size: 14px;
}

.detail-row span:first-child {
  font-weight: 600;
  color: var(--muted);
}

.detail-row span:last-child {
  color: var(--text);
}

.services-table {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 16px;
  padding: 8px 0;
  font-size: 14px;
}

.service-name {
  font-weight: 600;
  color: var(--text);
}

.service-duration,
.service-cost {
  color: var(--muted);
}

.services-note {
  font-size: 13px;
  color: var(--muted);
  font-style: italic;
}

.pricing-table {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
}

.pricing-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid #e5e7eb;
  font-size: 14px;
}

.pricing-row:last-child {
  border-bottom: none;
}

.pricing-row.total {
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
  border-top: 2px solid var(--primary);
  margin-top: 8px;
  padding-top: 16px;
}

.next-steps {
  padding-left: 20px;
  font-size: 14px;
  line-height: 1.6;
}

.next-steps li {
  margin-bottom: 8px;
  color: var(--text);
}

.pdf-footer {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.contact-info {
  font-size: 13px;
  color: var(--muted);
}

.contact-item {
  margin-bottom: 4px;
}

.proposal-date {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}

/* Pricing Corridor Widget Styles */
.pc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
}

.pc-title-section h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #1f2937;
}

.pc-description {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.4;
}

.pc-legend {
  display: flex;
  gap: 16px;
  align-items: center;
}

.pc-legend .legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.pc-legend .legend-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.pc-legend .legend-color.f-band {
  background: #E53935;
}

.pc-legend .legend-color.d-band {
  background: #FB8C00;
}

.pc-legend .legend-color.c-band {
  background: #FFD54F;
}

.pc-legend .legend-color.b-band {
  background: #66BB6A;
}

.pc-legend .legend-color.a-band {
  background: #2E7D32;
}

.pc-legend .legend-label {
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.pc-chart-container {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 20px;
  overflow: hidden;
}

.pc-chart {
  background: transparent;
  border-radius: 6px;
  display: block;
  margin: 0 auto;
}

.pc-tier-labels {
  position: relative;
  margin-top: 12px;
  height: 24px;
}

.tier-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: #374151;
}

.tier-label .tier-line {
  width: 20px;
  height: 2px;
  display: inline-block;
}

.tier-label .tier-line.aggressive {
  background: #f97316;
  border-top: 2px dashed #f97316;
}

.tier-label .tier-line.target {
  background: #a78bfa;
  border-top: 2px dashed #a78bfa;
}

.tier-label .tier-line.stretch {
  background: #22d3ee;
}

.pc-mayo-label {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
  font-size: 12px;
  font-weight: 500;
  color: #374151;
  margin-top: 8px;
}

.mayo-marker-circle {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #1f2937;
  position: relative;
}

.mayo-marker-circle::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2937;
}

.pc-annotations {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.pc-annotation-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 16px;
}

.annotation-title {
  font-size: 14px;
  font-weight: 600;
  color: #6b7280;
  margin: 0 0 12px 0;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.tier-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #374151;
}

.tier-line {
  width: 20px;
  height: 2px;
  display: inline-block;
}

.tier-line.aggressive {
  background: #f97316;
  border-top: 2px dashed #f97316;
}

.tier-line.target {
  background: #a78bfa;
  border-top: 2px dashed #a78bfa;
}

.tier-line.stretch {
  background: #22d3ee;
}

.pc-annotation-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
}

.pc-annotation-card ul {
  margin: 0;
  padding-left: 16px;
}

.pc-annotation-card li {
  font-size: 13px;
  color: #4b5563;
  line-height: 1.5;
  margin-bottom: 4px;
}

.pc-annotation-card code {
  background: #e5e7eb;
  padding: 2px 4px;
  border-radius: 3px;
  font-size: 11px;
  color: #374151;
}

/* AI Streaming Animation */
.typing-dots {
  display: inline-block;
  animation: typing 1.4s infinite;
  margin: 0 2px;
}

.typing-dots:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-dots:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.3;
  }
  30% {
    opacity: 1;
  }
}

/* Cross-Sell Bundling Widget Styles */
.cs-interactive-section {
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.cs-dashboard {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cs-dashboard-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  align-items: center;
}

.cs-dashboard-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cs-dashboard-label {
  font-size: 0.75rem;
  color: #64748b;
  font-weight: 500;
}

.cs-dashboard-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.cs-package-buttons {
  display: flex;
  gap: 0.5rem;
}

.cs-package-btn {
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  background: white;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.cs-package-btn:hover {
  background: #f3f4f6;
}

.cs-package-btn.active {
  background: #1e293b;
  color: white;
  border-color: #1e293b;
}

.cs-library {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cs-library h4 {
  margin: 0 0 1rem 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.cs-module-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cs-module-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-group-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cs-module-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s;
}

.cs-module-item:hover {
  border-color: #3b82f6;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.cs-module-info {
  flex: 1;
}

.cs-module-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
}

.cs-module-details {
  font-size: 0.75rem;
  color: #6b7280;
}

.cs-add-btn {
  padding: 0.5rem 1rem;
  background: #3b82f6;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.cs-add-btn:hover {
  background: #2563eb;
}

.cs-buckets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.cs-bucket {
  background: white;
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.cs-bucket {
  grid-column: 1 / -1; /* make all buckets span full width */
}

.cs-bucket-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.cs-bucket h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.cs-bucket-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.cs-bucket-label {
  color: #64748b;
}

.cs-bucket-value {
  color: #111827;
  font-weight: 600;
}

.cs-bucket-dot {
  color: #cbd5e1;
}

.cs-bucket-content {
  min-height: 120px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cs-empty {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: center;
  padding: 2rem;
  border: 2px dashed #d1d5db;
  border-radius: 8px;
}

.cs-module-chip {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: white;
  transition: all 0.2s;
}

.cs-module-chip:hover {
  border-color: #3b82f6;
  box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1);
}

.cs-chip-info {
  flex: 1;
  min-width: 0;
}

.cs-chip-name {
  font-size: 0.875rem;
  font-weight: 500;
  color: #1e293b;
  margin-bottom: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cs-chip-meta {
  font-size: 0.75rem;
  color: #6b7280;
}

.cs-chip-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.cs-tier-select {
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.75rem;
  background: white;
}

.cs-qty-input {
  width: 60px;
  padding: 0.25rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.75rem;
  text-align: center;
}

.cs-chip-price {
  font-size: 0.875rem;
  font-weight: 600;
  color: #1e293b;
  min-width: 80px;
  text-align: right;
}

.cs-remove-btn {
  padding: 0.25rem 0.75rem;
  background: #ef4444;
  color: white;
  border: none;
  border-radius: 4px;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.cs-remove-btn:hover {
  background: #dc2626;
}

/* Customer Transaction History Chart Styles */
.ct-chart-section {
  margin: 2rem 0;
  background: white;
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.ct-chart-section h4 {
  margin: 0 0 1.5rem 0;
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.ct-chart-container {
  width: 100%;
}

.ct-chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1rem;
}

.ct-chart-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #1e293b;
}

.ct-chart-subtitle {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 400;
}

.ct-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  color: #374151;
}

.ct-legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ct-legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
}

.ct-legend-divider {
  color: #9ca3af;
  margin: 0 0.5rem;
}

.ct-chart-wrapper {
  width: 100%;
  height: 460px;
  background: white;
  border-radius: 8px;
  overflow: hidden;
}

.ct-chart {
  width: 100%;
  height: 100%;
}

/* Empty Content Styles */
.empty-content {
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-style: italic;
}

/* Proposal Content Styles */
.proposal-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid #e2e8f0;
}

.proposal-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 0.5rem;
}

.proposal-subtitle {
  font-size: 1.1rem;
  color: #64748b;
  margin: 0;
}

.proposal-content {
  max-width: 100%;
}

.proposal-section {
  margin-bottom: 2.5rem;
}

.proposal-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 1rem;
}

.proposal-section p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1rem;
}

.pricing-tiers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.tier-card {
  background: white;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.2s ease;
}

.tier-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.1);
}

.tier-card.aggressive {
  border-color: #ef4444;
}

.tier-card.target {
  border-color: #3b82f6;
}

.tier-card.stretch {
  border-color: #8b5cf6;
}

.tier-card h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #1e293b;
}

.tier-metrics {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.metric {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
  min-width: 80px;
}

.metric .label {
  font-size: 0.875rem;
  color: #64748b;
  margin-bottom: 0.25rem;
}

.metric .value {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1e293b;
}

.recommendations-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recommendations-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid #f1f5f9;
  color: #475569;
  position: relative;
  padding-left: 1.5rem;
}

.recommendations-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
}

.recommendations-list li:last-child {
  border-bottom: none;
}


