/* Perceptual Positioning Lab - Tool-specific styles */

/* ===== CONCEPT GRID (Overview Section) ===== */
.concept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.concept-item {
  padding: 1rem;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary, #3b82f6);
}

.concept-item.best-for {
  background: #f0f9ff;
  border-left-color: #3b82f6;
}

.concept-item.best-for h4 { color: #1e40af; }

.concept-item.limitations {
  background: #fef3c7;
  border-left-color: #f59e0b;
}

.concept-item.limitations h4 { color: #92400e; }

.concept-item.output {
  background: #dcfce7;
  border-left-color: #22c55e;
}

.concept-item.output h4 { color: #166534; }

.concept-item.advantage {
  background: #f0fdf4;
  border-left-color: #10b981;
}

.concept-item.advantage h4 { color: #065f46; }

.concept-item h4 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.concept-item ul {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.concept-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Interpretation Aid */
.interpretation-aid {
  margin-top: 1rem;
}

.interpretation-aid .math-display {
  text-align: center;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

/* ===== INFO TOOLTIP ===== */
.info-tooltip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
  background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%);
  border-radius: 50%;
  cursor: help;
  margin-left: 0.5rem;
  vertical-align: middle;
  position: relative;
  transition: all 0.2s;
}

.info-tooltip:hover,
.info-tooltip:focus {
  background: linear-gradient(135deg, #c7d2fe 0%, #a5b4fc 100%);
  transform: scale(1.1);
  outline: none;
}

/* Native title tooltip enhanced styling via CSS pseudo-element */
.info-tooltip::after {
  content: attr(title);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: white;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.5;
  white-space: pre-line;
  max-width: 300px;
  min-width: 200px;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1000;
  margin-bottom: 8px;
}

.info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1e293b;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s, visibility 0.2s;
  z-index: 1001;
}

.info-tooltip:hover::after,
.info-tooltip:focus::after,
.info-tooltip:hover::before,
.info-tooltip:focus::before {
  opacity: 1;
  visibility: visible;
}

/* ===== METHODOLOGY EXPLAINER ===== */
.methodology-explainer {
  padding: 0.5rem 0;
}

.method-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.method-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.method-section h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--app-text, #1e293b);
  margin: 0 0 0.75rem 0;
}

.method-section > p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 1rem 0;
}

.analogy-box {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fef9c3 100%);
  border-left: 4px solid #f59e0b;
  border-radius: 0 8px 8px 0;
  padding: 0.875rem 1rem;
  margin-top: 0.75rem;
}

.analogy-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.analogy-box div {
  font-size: 0.85rem;
  line-height: 1.5;
  color: #78350f;
}

.analogy-box strong {
  color: #92400e;
}

/* Method Steps */
.method-steps {
  margin: 0;
  padding-left: 1.25rem;
  list-style: none;
  counter-reset: step-counter;
}

.method-steps li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
  color: #475569;
}

.method-steps li::before {
  counter-increment: step-counter;
  content: counter(step-counter);
  position: absolute;
  left: 0;
  top: 0;
  width: 1.5rem;
  height: 1.5rem;
  background: var(--app-accent, #2563eb);
  color: white;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-steps li strong {
  color: var(--app-text, #1e293b);
}

.math-inline {
  display: block;
  text-align: center;
  margin: 0.75rem 0 0 0;
  padding: 0.5rem;
  background: #f1f5f9;
  border-radius: 6px;
  font-size: 0.9rem;
}

.math-block {
  margin: 0.75rem 0 0 0;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  overflow: hidden;
}

.math-equation {
  text-align: center;
  padding: 0.75rem;
  background: #f1f5f9;
  border-bottom: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.math-definitions {
  padding: 0.625rem 0.875rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.def-item {
  font-size: 0.8rem;
  color: #475569;
  line-height: 1.4;
  padding-left: 0.5rem;
  border-left: 2px solid #cbd5e1;
}

.def-item em {
  font-style: normal;
  font-family: 'Times New Roman', Georgia, serif;
  color: #1e293b;
}

.def-item em sub,
.def-item em sup {
  font-size: 0.7em;
}

.step-note {
  font-size: 0.8rem;
  color: var(--app-muted, #64748b);
  margin: 0.5rem 0 0 0;
  font-style: italic;
}

/* Output Grid */
.output-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.output-item {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem;
  border-left: 3px solid var(--app-accent, #2563eb);
}

.output-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--app-text, #1e293b);
  margin-bottom: 0.5rem;
}

.output-desc {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #64748b;
}

/* Practical Uses List */
.practical-uses {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.practical-uses li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #475569;
}

.practical-uses li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #059669;
  font-weight: 700;
}

.practical-uses li strong {
  color: var(--app-text, #1e293b);
}

/* Technical Notes */
.method-technical {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1rem !important;
  margin-top: 1rem;
  border-bottom: none !important;
}

.method-technical h4 {
  font-size: 0.9rem;
  color: #64748b;
}

.method-technical p {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}

.terminology-note {
  background: #fffbeb;
  border: 1px solid #fcd34d;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #78350f;
}

.terminology-note strong:first-child {
  color: #92400e;
  display: block;
  margin-bottom: 0.25rem;
}

/* ===== BADGES ===== */
.badge--secondary {
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  margin-left: 0.5rem;
}

.required-badge {
  background: #fee2e2;
  color: #dc2626;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

.optional-badge {
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
}

/* ===== INPUT HEADER ===== */
.input-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.input-header h3 {
  margin: 0;
}

/* ===== PREFERENCE TOGGLE ===== */
.preference-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: var(--app-bg, #f5f7fb);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 26px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch .slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.3s;
  border-radius: 26px;
}

.toggle-switch .slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s;
  border-radius: 50%;
}

.toggle-switch input:checked + .slider {
  background-color: var(--app-accent, #2a7de1);
}

.toggle-switch input:checked + .slider:before {
  transform: translateX(22px);
}

/* ===== DATA PREVIEW ===== */
.data-preview {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--app-bg, #f5f7fb);
  border-radius: 8px;
}

.data-preview h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--app-muted, #5f6b7a);
}

.preview-table-container {
  max-height: 200px;
  overflow: auto;
  border: 1px solid var(--app-border, #d6dfea);
  border-radius: 4px;
}

.preview-table {
  width: 100%;
  font-size: 0.8rem;
  border-collapse: collapse;
}

.preview-table th,
.preview-table td {
  padding: 0.4rem 0.6rem;
  text-align: left;
  border-bottom: 1px solid var(--app-border, #d6dfea);
  white-space: nowrap;
}

.preview-table th {
  background: #f1f5f9;
  font-weight: 600;
  position: sticky;
  top: 0;
}

.preview-table tr:last-child td {
  border-bottom: none;
}

.preview-summary {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--app-muted, #5f6b7a);
}

/* ===== SETTINGS GRID ===== */
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.setting-group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.setting-group label {
  font-weight: 600;
  font-size: 0.9rem;
}

.setting-group select,
.setting-group input[type="text"],
.setting-group input[type="number"] {
  padding: 0.5rem;
  border: 1px solid var(--app-border, #d6dfea);
  border-radius: 6px;
  font-size: 0.9rem;
}

.setting-group .hint {
  font-size: 0.8rem;
  color: var(--app-muted, #5f6b7a);
  margin: 0.25rem 0 0 0;
}

/* ===== SETTING HELPER TOOLTIPS ===== */
.setting-label-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.setting-helper {
  position: relative;
  display: inline-flex;
}

.setting-helper-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  font-weight: 600;
  color: #64748b;
  background: #e2e8f0;
  border-radius: 50%;
  cursor: help;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.setting-helper-icon:hover {
  color: #2563eb;
  background: #dbeafe;
}

.setting-helper-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  padding: 14px 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.06);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-4px);
  text-align: left;
}

.setting-helper:hover .setting-helper-tooltip {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow */
.setting-helper-tooltip::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}

.setting-helper-tooltip h4 {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.setting-helper-tooltip p {
  font-size: 0.82rem;
  color: #4b5563;
  line-height: 1.5;
  margin: 0 0 10px 0;
}

.setting-helper-tooltip p:last-child {
  margin-bottom: 0;
}

.setting-helper-tooltip .helper-options {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  margin-top: 10px;
}

.setting-helper-tooltip .helper-option {
  font-size: 0.8rem;
  color: #374151;
  margin-bottom: 6px;
}

.setting-helper-tooltip .helper-option:last-child {
  margin-bottom: 0;
}

.setting-helper-tooltip .helper-option strong {
  color: #1f2937;
}

.setting-helper-tooltip .tip {
  font-size: 0.78rem;
  color: #6b7280;
  font-style: italic;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e5e7eb;
}

/* ===== ADVANCED SETTINGS ===== */
.advanced-settings {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 8px;
  background: #fafbfc;
}

.advanced-settings summary {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--app-muted, #64748b);
  list-style: none;
}

.advanced-settings summary::-webkit-details-marker {
  display: none;
}

.advanced-settings summary::before {
  content: '▶';
  display: inline-block;
  margin-right: 0.5rem;
  font-size: 0.7rem;
  transition: transform 0.2s;
}

.advanced-settings[open] summary::before {
  transform: rotate(90deg);
}

.advanced-settings-content {
  padding: 0 1rem 1rem 1rem;
}

.setting-group-checkbox {
  background: white;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 6px;
  padding: 1rem;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--app-accent, #2563eb);
}

.setting-group-checkbox .hint {
  margin-left: 1.6rem;
}

.setting-group-checkbox .hint strong {
  color: var(--app-text, #1e293b);
}

/* ===== RUN CONTROLS ===== */
.run-controls {
  display: flex;
  justify-content: center;
  padding-top: 1rem;
  border-top: 1px solid var(--app-border, #d6dfea);
}

.run-controls .primary {
  padding: 0.75rem 2rem;
  font-size: 1rem;
}

/* ===== MAP CONTROLS ===== */
.map-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--app-border, #d6dfea);
}

.view-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--app-bg, #f5f7fb);
  padding: 0.25rem;
  border-radius: 8px;
}

.view-button {
  padding: 0.5rem 1rem;
  border: none;
  background: transparent;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.view-button:hover {
  background: rgba(42, 125, 225, 0.1);
}

.view-button.active {
  background: var(--app-accent, #2a7de1);
  color: white;
}

.layer-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.layer-toggle {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  cursor: pointer;
  position: relative;
}

.layer-toggle input {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

/* Layer toggle help icons */
.layer-toggle .help-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  font-size: 10px;
  color: #94a3b8;
  background: #f1f5f9;
  border-radius: 50%;
  margin-left: 2px;
  cursor: help;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.layer-toggle .help-icon:hover {
  color: #2563eb;
  background: #dbeafe;
}

/* Explainer tooltip */
.layer-explainer {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  padding: 14px 16px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15), 0 0 0 1px rgba(0,0,0,0.05);
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  transform: translateX(-50%) translateY(-4px);
}

.layer-toggle:hover .layer-explainer,
.layer-explainer.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

/* Arrow pointer */
.layer-explainer::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid white;
}

.layer-explainer-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1f2937;
  margin-bottom: 8px;
}

.layer-explainer-title .emoji {
  font-size: 1.1rem;
}

.layer-explainer-desc {
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 10px;
}

.layer-explainer-dynamic {
  background: #f8fafc;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.78rem;
  color: #334155;
  border-left: 3px solid #2563eb;
}

.layer-explainer-dynamic .dynamic-label {
  font-weight: 600;
  color: #2563eb;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.layer-explainer-dynamic .dynamic-content {
  line-height: 1.5;
}

.layer-explainer-dynamic .highlight {
  font-weight: 600;
  color: #1e40af;
}

/* Disabled layer toggles (e.g., in 3D mode) */
.layer-toggle.toggle-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.layer-toggle.toggle-disabled input {
  cursor: not-allowed;
}

.layer-toggle.toggle-disabled .help-icon {
  display: none;
}

/* 3D Mode Indicator */
.mode-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #7c3aed 0%, #2563eb 100%);
  color: white;
  border-radius: 8px;
  margin-bottom: 12px;
  font-size: 0.85rem;
}

.mode-indicator.hidden {
  display: none;
}

.mode-indicator .mode-icon {
  font-size: 1.2rem;
}

.mode-indicator .mode-text {
  font-weight: 600;
}

.mode-indicator .mode-hint {
  margin-left: auto;
  font-size: 0.75rem;
  opacity: 0.85;
}

/* ===== CHART CONTAINERS ===== */
.chart-container {
  min-height: 500px;
  background: white;
  border-radius: 8px;
}

.chart-placeholder {
  width: 100%;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fafbfc;
  border-radius: 8px;
  color: var(--app-muted, #5f6b7a);
}

.chart-small {
  min-height: 250px;
}

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

.chart-card {
  display: flex;
  flex-direction: column;
}

.chart-note {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--app-muted, #5f6b7a);
}

/* ===== INTERPRETATION AID ===== */
.interpretation-aid {
  margin-top: 1rem;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 1rem;
}

.interpretation-aid summary {
  font-weight: 600;
  cursor: pointer;
  color: #0369a1;
}

.interpretation-content {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.6;
}

.interpretation-content ul {
  margin: 0.5rem 0;
  padding-left: 1.25rem;
}

.interpretation-content li {
  margin-bottom: 0.25rem;
}

/* ===== SIMULATION SECTION ===== */
.simulation-controls {
  background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
  border: 2px solid #7dd3fc;
}

.simulation-mode-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.sim-mode-button {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 2px solid var(--app-border, #d6dfea);
  background: white;
  border-radius: 8px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.sim-mode-button:hover {
  border-color: var(--app-accent, #2a7de1);
}

.sim-mode-button.active {
  border-color: var(--app-accent, #2a7de1);
  background: var(--app-accent, #2a7de1);
  color: white;
}

.sim-panel {
  padding: 1rem;
  background: white;
  border-radius: 8px;
  margin-top: 1rem;
}

.sim-control-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.sim-control-row label {
  font-weight: 500;
  min-width: 150px;
}

.sim-control-row select,
.sim-control-row input[type="text"] {
  flex: 1;
  padding: 0.5rem;
  border: 1px solid var(--app-border, #d6dfea);
  border-radius: 6px;
}

.sim-coord-inputs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.coord-input {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.coord-input label {
  font-weight: 500;
  font-size: 0.85rem;
}

.coord-input input[type="range"] {
  width: 100%;
}

.coord-input input[type="number"] {
  width: 80px;
  padding: 0.4rem;
  border: 1px solid var(--app-border, #d6dfea);
  border-radius: 4px;
  text-align: center;
}

/* ===== SIMULATION RESULTS ===== */
.simulation-results {
  margin-top: 1rem;
}

.sim-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sim-result-card {
  background: var(--app-bg, #f5f7fb);
  padding: 1rem;
  border-radius: 8px;
}

.sim-result-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.95rem;
  color: var(--app-text, #1f2a37);
}

.sim-insight {
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: white;
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--app-muted, #5f6b7a);
}

/* ===== FOCAL BRAND SECTION ===== */
.focal-brand-section .dual-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.focal-attributes {
  margin-bottom: 1.5rem;
}

.focal-recommendations {
  background: #dcfce7;
  border-left: 4px solid #22c55e;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
}

.focal-recommendations h4 {
  margin: 0 0 0.75rem 0;
  color: #166534;
}

/* ===== EXPORT CONTROLS ===== */
.export-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
}

/* ===== HIDDEN UTILITY ===== */
.hidden {
  display: none !important;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .map-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .view-toggle {
    flex-wrap: wrap;
  }
  
  .layer-toggles {
    justify-content: center;
  }
  
  /* Responsive tooltips */
  .layer-explainer {
    width: 280px;
    left: 0;
    transform: translateX(0);
  }
  
  .layer-explainer::before {
    left: 20px;
    transform: none;
  }
  
  .settings-grid {
    grid-template-columns: 1fr;
  }
  
  .sim-coord-inputs {
    grid-template-columns: 1fr;
  }
  
  .simulation-mode-toggle {
    flex-direction: column;
  }
}

/* ===== TEMPLATE BUTTONS ===== */
.template-buttons {
  margin-top: 0.75rem;
}

/* ===== SUMMARY TABLE ENHANCEMENTS ===== */
.summary-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.summary-table th,
.summary-table td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  border-bottom: 1px solid var(--app-border, #d6dfea);
}

.summary-table th {
  background: #f1f5f9;
  font-weight: 600;
}

.summary-table tbody tr:hover {
  background: #f8fafc;
}

/* Positive/negative value styling */
.value-positive {
  color: #16a34a;
  font-weight: 500;
}

.value-negative {
  color: #dc2626;
  font-weight: 500;
}

.value-neutral {
  color: var(--app-muted, #5f6b7a);
}

/* ===== DUAL PANELS ===== */
.dual-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.dual-panel {
  padding: 1.25rem;
}

.dual-panel h3 {
  margin-top: 0;
}

/* ===== PROFESSOR MODE ===== */
/* Professor Mode styles are centralized in shared/css/main.css */

/* ===== DIAGNOSTICS ===== */
.diagnostics-section {
  margin-top: 2rem;
}

.diagnostics-details summary {
  font-weight: 600;
  cursor: pointer;
  padding: 0.5rem 0;
}

.diagnostics-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.diagnostics-list li {
  padding: 0.75rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 6px;
  font-size: 0.9rem;
}

.diagnostic-warning {
  background: #fef3c7;
  border-left: 4px solid #f59e0b;
}

.diagnostic-success {
  background: #d1fae5;
  border-left: 4px solid #10b981;
}

.diagnostic-info {
  background: #e0e7ff;
  border-left: 4px solid #6366f1;
}

.diagnostics-content h4 {
  margin: 1rem 0 0.5rem;
  font-size: 0.95rem;
}

.diagnostics-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.diagnostics-content li {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* ============================================================
   2026 UX ENHANCEMENT STYLES
   Hero map, insight cards, dimension explorer, interactive panels
   ============================================================ */

/* ===== HERO MAP CONTAINER ===== */
.map-hero-container {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.map-wrapper {
  position: relative;
}

.chart-hero {
  width: 100%;
  min-height: 550px;
  background: linear-gradient(135deg, #fafbfc 0%, #f1f5f9 100%);
  border-radius: 12px;
  border: 2px solid var(--app-border, #e2e8f0);
  transition: border-color 0.3s;
}

.chart-hero:hover {
  border-color: var(--app-accent, #2a7de1);
}

.chart-medium {
  min-height: 350px;
  width: 100%;
}

/* Drag instruction - positioned below chart to avoid hiding x-axis */
.map-instruction-wrapper {
  text-align: center;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.map-instruction {
  display: inline-block;
  background: rgba(30, 41, 59, 0.85);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0.9;
  transition: opacity 0.3s;
}

.map-instruction.hidden {
  opacity: 0;
}

/* ===== BRAND HOVER CARD ===== */
.brand-hover-card {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25), 0 8px 16px rgba(15, 23, 42, 0.12);
  z-index: 1000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-hover-card.hidden {
  transform: translate(-50%, -50%) scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.hover-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--app-border, #e2e8f0);
  background: linear-gradient(135deg, var(--app-accent, #2a7de1) 0%, #1e40af 100%);
  border-radius: 12px 12px 0 0;
}

.hover-card-header h4 {
  margin: 0;
  color: white;
  font-size: 1rem;
}

.hover-card-close {
  color: white;
  opacity: 0.8;
  cursor: pointer;
  font-size: 1.25rem;
  font-weight: bold;
}

.hover-card-close:hover {
  opacity: 1;
}

/* Overlay backdrop for brand card */
.brand-card-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.brand-card-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.hover-card-body {
  padding: 1rem;
}

.mini-radar-container {
  height: 150px;
  margin-bottom: 0.75rem;
}

.hover-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.hover-stat {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
}

.stat-label {
  color: var(--app-muted, #64748b);
}

.stat-value {
  font-weight: 600;
  color: var(--app-text, #1e293b);
}

.hover-strengths {
  padding-top: 0.5rem;
  border-top: 1px solid var(--app-border, #e2e8f0);
}

.strength-label {
  font-size: 0.8rem;
  color: var(--app-muted, #64748b);
  display: block;
  margin-bottom: 0.4rem;
}

.strength-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.strength-tag {
  background: #dcfce7;
  color: #166534;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* ===== LIVE SIMULATION BAR ===== */
.simulation-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: white;
  z-index: 200;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.simulation-bar.hidden {
  transform: translateY(100%);
}

.sim-bar-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

.sim-bar-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.sim-brand-icon {
  font-size: 1.25rem;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.sim-bar-metrics {
  display: flex;
  gap: 2rem;
  flex: 1;
}

.sim-bar-metric {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.sim-bar-metric .metric-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.7;
}

.sim-bar-metric .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
}

.sim-bar-metric .metric-value.positive {
  color: #4ade80;
}

.sim-bar-metric .metric-value.negative {
  color: #f87171;
}

.sim-bar-reset {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}

.sim-bar-reset:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ===== INSIGHT CARDS SECTION ===== */
.insight-cards-section {
  padding: 1.5rem;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
  border-radius: 12px;
  margin: 1.5rem 0;
}

.insight-cards-section h3 {
  margin: 0 0 1rem 0;
  color: #166534;
}

.insight-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.insight-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.1);
  border-left: 4px solid #22c55e;
  transition: transform 0.2s, box-shadow 0.2s;
}

.insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(22, 101, 52, 0.15);
}

.insight-card.placeholder {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.insight-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.insight-card h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  color: var(--app-text, #1e293b);
}

.insight-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--app-muted, #64748b);
  line-height: 1.5;
}

.insight-card .insight-metric {
  font-size: 1.5rem;
  font-weight: 700;
  color: #16a34a;
  display: block;
  margin-top: 0.5rem;
}

/* ===== REPOSITIONING SIMULATION STYLES ===== */
.repositioning-banner {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.repositioning-banner.hidden {
  display: none;
}

.repositioning-banner .banner-content {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.repositioning-banner .banner-icon {
  font-size: 1.5rem;
}

.repositioning-banner .banner-text {
  flex: 1;
  font-size: 0.9rem;
  color: #92400e;
}

.repositioning-banner .moved-brands {
  font-weight: 600;
  color: #78350f;
}

.repositioning-banner .new-entrants {
  font-weight: 600;
  color: #166534; /* Green to match marker color */
}

.repositioning-banner .banner-reset-btn {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.repositioning-banner .banner-reset-btn:hover {
  background: #d97706;
  transform: translateY(-1px);
}

/* Repositioned insight cards */
.insight-card.repositioned {
  border-left: 4px solid #f59e0b;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
}

.insight-card.repositioning-header {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #f59e0b;
  grid-column: 1 / -1;
}

.insight-card.repositioning-header .btn-reset-repositioning {
  background: #f59e0b;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: all 0.2s;
}

.insight-card.repositioning-header .btn-reset-repositioning:hover {
  background: #d97706;
}

.repositioned-flag {
  background: #f59e0b;
  color: white;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 600;
  margin-left: 0.5rem;
  vertical-align: middle;
}

/* Comparison display in insight cards */
.insight-comparison {
  margin-top: 0.75rem;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 6px;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.comparison-original {
  color: #64748b;
  text-decoration: line-through;
  text-decoration-color: #94a3b8;
}

.comparison-new {
  color: #16a34a;
  font-weight: 600;
}

.insight-card.positive .insight-metric {
  color: #16a34a;
}

.insight-card.negative .insight-metric {
  color: #dc2626;
}

/* New entrant styling */
.insight-card.new-entrant {
  border-left: 4px solid #22c55e;
  background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.insight-card.new-entrant .insight-metric {
  color: #16a34a;
}

.new-entrant-highlight {
  color: #166534;
  font-weight: 600;
  background: #dcfce7;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}

.share-bar-item.new-entrant {
  border-left: 3px solid #22c55e;
  background: rgba(34, 197, 94, 0.1);
}

.share-bar-item.new-entrant .bar-fill {
  background: linear-gradient(90deg, #22c55e 0%, #16a34a 100%);
}

.delta-value.new-entrant {
  color: #16a34a;
  font-weight: 700;
}

.flow-row.new-entrant {
  background: rgba(34, 197, 94, 0.1);
  border-left: 3px solid #22c55e;
}

/* Heatmap repositioned indicator */
.heatmap-repositioned-flag {
  background: #fef3c7;
  border: 1px solid #f59e0b;
  color: #92400e;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 0.5rem;
}

/* ===== ORIGINAL/REPOSITIONED BADGES ===== */
.original-data-badge {
  display: inline-block;
  background: linear-gradient(135deg, #64748b 0%, #475569 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.repositioned-data-badge {
  display: inline-block;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: white;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  margin-left: 0.5rem;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== DIMENSION EXPLORER ===== */
.dimension-explorer-card {
  background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
  border: 2px solid #93c5fd;
}

.dimension-explorer {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.dim-explorer-row {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}

.dim-endpoints {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

.dim-negative {
  color: #dc2626;
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 30%;
}

.dim-label {
  font-weight: 600;
  color: var(--app-accent, #2563eb);
  font-size: 0.9rem;
}

.dim-variance-pct {
  font-weight: 500;
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 0.25rem;
}

.dim-positive {
  color: #16a34a;
  font-weight: 500;
  font-size: 0.85rem;
  max-width: 30%;
  text-align: right;
}

.dim-brand-strip {
  position: relative;
  height: 40px;
  background: linear-gradient(90deg, #fee2e2 0%, #f8fafc 50%, #dcfce7 100%);
  border-radius: 20px;
  margin: 0.5rem 0;
}

.dim-brand-chip {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--app-accent, #2563eb);
  color: white;
  padding: 0.25rem 0.6rem;
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.2s;
  z-index: 1;
}

.dim-brand-chip:hover {
  transform: translate(-50%, -50%) scale(1.05);
  z-index: 2;
}

.dim-variance-bar {
  position: relative;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  margin-top: 0.5rem;
}

.dim-variance-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--app-accent, #2563eb), #06b6d4);
  border-radius: 3px;
  transition: width 0.5s;
}

.dim-variance-label {
  position: absolute;
  right: 0;
  top: -18px;
  font-size: 0.7rem;
  color: var(--app-muted, #64748b);
}

/* ===== COMPETITIVE INTELLIGENCE SECTION ===== */
.competitive-intel-section {
  margin: 2rem 0;
}

.brand-selector-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.brand-selector {
  flex: 1;
  min-width: 150px;
  padding: 0.5rem;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.radar-insights {
  margin-top: 1rem;
  padding: 1rem;
  background: #eff6ff;
  border-radius: 8px;
  border-left: 4px solid #3b82f6;
}

/* ===== SEGMENT PERSONA CARDS ===== */
.segment-personas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.persona-card {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border-top: 4px solid;
  transition: transform 0.2s;
}

.persona-card:hover {
  transform: translateY(-3px);
}

.persona-card.segment-1 { border-top-color: #f43f5e; }
.persona-card.segment-2 { border-top-color: #8b5cf6; }
.persona-card.segment-3 { border-top-color: #06b6d4; }
.persona-card.segment-4 { border-top-color: #f59e0b; }

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

.persona-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.persona-name {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.persona-size {
  font-size: 0.8rem;
  color: var(--app-muted, #64748b);
}

.persona-stats {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.persona-stat {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
}

.persona-stat-value {
  font-weight: 700;
  font-size: 1rem;
  color: var(--app-text, #1e293b);
}

.persona-stat-label {
  font-size: 0.7rem;
  color: var(--app-muted, #64748b);
}

.persona-top-brands {
  margin-top: 0.5rem;
}

.persona-top-brands span {
  font-size: 0.8rem;
  font-weight: 600;
}

.top-brand-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.brand-chip {
  background: #e0e7ff;
  color: #4338ca;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
}

/* Additional persona card styles for segment visualization */
.persona-emoji {
  font-size: 1.75rem;
}

.persona-header .persona-size {
  margin-left: auto;
  font-weight: 700;
  font-size: 1rem;
  color: var(--app-accent, #2563eb);
  background: #eff6ff;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
}

.persona-body {
  margin-top: 0.75rem;
}

.persona-trait {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.4rem 0;
  border-bottom: 1px solid #f1f5f9;
}

.persona-trait:last-of-type {
  border-bottom: none;
}

.trait-label {
  font-size: 0.8rem;
  color: var(--app-muted, #64748b);
}

.trait-value {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--app-text, #1e293b);
}

.trait-value.winner {
  color: #059669;
  background: #d1fae5;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
}

.persona-coords {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--app-muted, #94a3b8);
  text-align: center;
  font-family: 'SF Mono', 'Consolas', monospace;
}

.persona-size-bar {
  margin-top: 0.75rem;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.size-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--app-accent, #2563eb), #7c3aed);
  border-radius: 3px;
  transition: width 0.3s ease;
}

.persona-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--app-muted, #64748b);
}

.predefined-badge {
  font-size: 0.65rem;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

/* ===== PREDEFINED SEGMENT OPTION ===== */
.predefined-segment-option {
  margin-top: 1rem;
  padding: 1rem;
  background: #fafbfc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.segment-column-toggle {
  margin-bottom: 0.75rem;
}

.segment-column-toggle .checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.9rem;
}

.segment-column-toggle .hint {
  margin: 0.5rem 0 0 1.6rem;
  font-size: 0.8rem;
  color: var(--app-muted, #64748b);
}

#segment-column-selector {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e2e8f0;
}

#segment-column-preview {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #f0fdf4;
  border-radius: 4px;
  border-left: 3px solid #22c55e;
}

/* ===== PLAYGROUND HERO SECTION ===== */
.playground-hero {
  margin-bottom: 1.5rem;
}

.playground-instruction-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border-radius: 12px;
  border-left: 4px solid #f59e0b;
  margin-bottom: 1rem;
}

.banner-icon {
  font-size: 2rem;
}

.banner-text strong {
  color: #92400e;
}

.banner-text {
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
}

.playground-modes {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.mode-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border: 2px solid var(--app-border, #e2e8f0);
  background: white;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
}

.mode-pill:hover {
  border-color: var(--app-accent, #2563eb);
  background: #eff6ff;
}

.mode-pill.active {
  border-color: var(--app-accent, #2563eb);
  background: var(--app-accent, #2563eb);
  color: white;
}

.mode-icon {
  font-size: 1.1rem;
}

/* ===== SIMULATION IMPACT SECTION ===== */
.simulation-section .section-subtitle {
  color: var(--app-muted, #64748b);
  font-size: 1rem;
  margin: -0.5rem 0 1.5rem 0;
  font-weight: 400;
}

/* ===== IMPACT DASHBOARD ===== */
.impact-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.impact-panel {
  background: white;
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--app-border, #e2e8f0);
  min-height: 280px;
}

.impact-panel h4 {
  margin: 0 0 1.25rem 0;
  font-size: 1.1rem;
  color: var(--app-text, #1e293b);
  font-weight: 600;
}

.share-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-before-after {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.share-bar-container {
  flex: 1;
}

.share-bar-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--app-muted, #64748b);
  margin-bottom: 0.75rem;
}

.share-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.share-bar {
  height: 24px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  padding: 0 0.5rem;
  font-size: 0.8rem;
  color: white;
  font-weight: 600;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.share-arrow {
  font-size: 2rem;
  color: var(--app-muted, #64748b);
}

.share-delta-callout {
  text-align: center;
  padding: 1rem;
  background: #f0fdf4;
  border-radius: 8px;
}

.share-delta-callout .delta-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: #16a34a;
}

.share-delta-callout .delta-value.negative {
  color: #dc2626;
}

.share-delta-callout .delta-label {
  display: block;
  font-size: 0.75rem;
  color: var(--app-muted, #64748b);
  margin-top: 0.25rem;
}

.sankey-mini {
  height: 180px;
}

.cannib-summary {
  font-size: 0.95rem;
  color: var(--app-muted, #64748b);
  margin-top: 0.75rem;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 6px;
  line-height: 1.5;
}

.cannib-summary .flow-gainer,
.cannib-summary .flow-loser {
  display: inline-block;
  margin-right: 1rem;
  font-weight: 600;
}

.cannib-summary .flow-gainer {
  color: #16a34a;
}

.cannib-summary .flow-loser {
  color: #dc2626;
}

.attribute-delta-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.attr-delta-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.attr-delta-label {
  font-size: 0.9rem;
  width: 100px;
  text-align: right;
  font-weight: 500;
}

.attr-delta-bar-wrap {
  flex: 1;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.attr-delta-bar {
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s;
}

.attr-delta-bar.increase {
  background: linear-gradient(90deg, #4ade80, #22c55e);
}

.attr-delta-bar.decrease {
  background: linear-gradient(90deg, #f87171, #dc2626);
}

.attr-delta-value {
  font-size: 0.85rem;
  font-weight: 600;
  width: 55px;
}

.impact-subtext {
  font-size: 0.9rem;
  color: var(--app-muted, #64748b);
  margin: -0.5rem 0 1rem 0;
}

.attr-delta-value {
  font-size: 0.75rem;
  font-weight: 600;
  width: 50px;
}

/* ===== NEW PRODUCT & WHITESPACE PANELS ===== */
.new-product-panel,
.whitespace-panel {
  margin-bottom: 1.5rem;
}

.new-product-form {
  max-width: 500px;
}

.form-row {
  margin-bottom: 1rem;
}

.form-row label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-row input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 8px;
  font-size: 1rem;
}

.new-product-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.preview-metric {
  text-align: center;
}

.preview-metric .metric-label {
  display: block;
  font-size: 0.75rem;
  color: var(--app-muted, #64748b);
  margin-bottom: 0.25rem;
}

.preview-metric .metric-value {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--app-text, #1e293b);
}

.form-actions {
  display: flex;
  gap: 0.75rem;
}

.whitespace-controls {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1rem;
}

.whitespace-controls label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
}

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

.opportunity-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  border-left: 4px solid #f43f5e;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.opportunity-rank {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #f43f5e;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.opportunity-coords {
  font-family: monospace;
  font-size: 0.9rem;
  color: var(--app-text, #1e293b);
  margin-bottom: 0.5rem;
}

.opportunity-share {
  font-size: 1.1rem;
  font-weight: 700;
  color: #16a34a;
}

/* ===== SCENARIO MANAGER ===== */
.scenario-manager {
  background: #f8fafc;
  border: 1px dashed var(--app-border, #e2e8f0);
}

.scenario-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.saved-scenarios {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.scenario-thumb {
  width: 120px;
  padding: 0.75rem;
  background: white;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
}

.scenario-thumb:hover {
  border-color: var(--app-accent, #2563eb);
}

.scenario-thumb-img {
  width: 100%;
  height: 60px;
  background: #e2e8f0;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.scenario-thumb-label {
  font-size: 0.75rem;
  text-align: center;
  font-weight: 500;
}

/* ===== FOCAL BRAND DEEP DIVE ===== */
.focal-hero-card {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid var(--app-border, #e2e8f0);
}

.focal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.focal-brand-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--app-accent, #2563eb), #1e40af);
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-initial {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
}

.focal-brand-info {
  flex: 1;
}

.focal-brand-info h3 {
  margin: 0 0 0.25rem 0;
}

.focal-tagline {
  margin: 0;
  font-size: 0.85rem;
  color: var(--app-muted, #64748b);
}

.focal-select {
  padding: 0.5rem;
  border: 1px solid var(--app-border, #e2e8f0);
  border-radius: 6px;
  font-size: 0.9rem;
}

.focal-scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.scorecard {
  text-align: center;
  padding: 1rem;
  background: white;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.scorecard-value {
  display: block;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--app-accent, #2563eb);
  margin-bottom: 0.25rem;
}

.scorecard-label {
  font-size: 0.75rem;
  color: var(--app-muted, #64748b);
}

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

.focal-panel {
  padding: 1.25rem;
}

.focal-panel h4 {
  margin: 0 0 1rem 0;
}

.distance-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.distance-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.distance-bar-label {
  width: 80px;
  font-size: 0.85rem;
  font-weight: 500;
}

.distance-bar-track {
  flex: 1;
  height: 20px;
  background: #e2e8f0;
  border-radius: 10px;
  overflow: hidden;
}

.distance-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #3b82f6, #06b6d4);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.5rem;
  font-size: 0.7rem;
  color: white;
  font-weight: 600;
  transition: width 0.5s;
}

.distance-bar-fill.repositioned {
  background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

/* ===== RECOMMENDATION CARDS ===== */
.recommendation-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.rec-card {
  background: white;
  border-radius: 10px;
  padding: 1.25rem;
  border-left: 4px solid var(--app-accent, #2563eb);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.rec-card.priority-high {
  border-left-color: #f43f5e;
}

.rec-card.priority-medium {
  border-left-color: #f59e0b;
}

.rec-card.placeholder {
  border-left-color: #94a3b8;
  background: #f8fafc;
}

.rec-icon {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 0.5rem;
}

.rec-card h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
}

.rec-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--app-muted, #64748b);
  line-height: 1.5;
}

/* ===== SCREE & VARIANCE SECTION (moved to competitive intel) ===== */
.variance-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.variance-card {
  background: white;
  border-radius: 10px;
  padding: 1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.variance-card h4 {
  margin: 0 0 0.75rem 0;
  font-size: 0.9rem;
}

/* ===== POSITIONING PLAYGROUND IMPACT DASHBOARD ===== */
.impact-dashboard {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Two-column layout for Market Share + Cannibalization */
.impact-dashboard-two-col {
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 900px) {
  .impact-dashboard-two-col {
    grid-template-columns: 1fr;
  }
}

.impact-panel {
  background: white;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e2e8f0;
}

.impact-panel h4 {
  margin: 0 0 1rem 0;
  font-size: 0.95rem;
  color: var(--app-accent, #2563eb);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.impact-panel h4 .info-tooltip {
  font-size: 0.85rem;
}

.impact-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem 0;
}

/* Share comparison bars */
.share-comparison {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.share-before-after {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.share-bar-container {
  flex: 1;
}

.share-bar-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.share-bars {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.share-bar-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  padding: 0.25rem 0;
}

.share-bar-item.highlighted {
  font-weight: 600;
}

.share-bar-item.highlighted .bar-brand {
  color: var(--app-accent, #2563eb);
}

.share-bar-item .bar-brand {
  width: 65px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  font-weight: 500;
}

.share-bar-item .bar-track {
  flex: 1;
  height: 14px;
  background: #f1f5f9;
  border-radius: 7px;
  overflow: hidden;
}

.share-bar-item .bar-fill {
  height: 100%;
  background: #3b82f6;
  border-radius: 7px;
  transition: width 0.3s;
}

.share-bar-item.positive .bar-fill {
  background: #22c55e;
}

.share-bar-item.negative .bar-fill {
  background: #ef4444;
}

.share-bar-item .bar-value {
  width: 48px;
  text-align: right;
  font-weight: 600;
}

.share-arrow {
  font-size: 1.5rem;
  color: #94a3b8;
  padding-top: 1.5rem;
}

.share-delta-callout {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.75rem;
  background: #f8fafc;
  border-radius: 8px;
}

.share-delta-callout .delta-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #64748b;
}

.share-delta-callout .delta-value.positive {
  color: #22c55e;
}

.share-delta-callout .delta-value.negative {
  color: #ef4444;
}

.share-delta-callout .delta-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Cannibalization flow */
.cannib-summary {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.flow-gainer {
  color: #16a34a;
  font-weight: 600;
}

.flow-loser {
  color: #dc2626;
  font-weight: 600;
}

.mini-flow {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}

.flow-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.9rem;
  padding: 0.35rem 0.5rem;
  background: #f8fafc;
  border-radius: 6px;
}

.flow-brand {
  width: 60px;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 500;
}

.flow-bar {
  height: 12px;
  border-radius: 6px;
  transition: width 0.3s;
}

.flow-bar.positive {
  background: linear-gradient(90deg, #86efac, #22c55e);
}

.flow-bar.negative {
  background: linear-gradient(90deg, #fca5a5, #ef4444);
}

.flow-bar.neutral {
  background: #e2e8f0;
}

.flow-delta {
  width: 55px;
  text-align: right;
  font-weight: 600;
}

.flow-delta.positive {
  color: #16a34a;
}

.flow-delta.negative {
  color: #dc2626;
}

.flow-delta.neutral {
  color: #64748b;
}

/* Simulation reset bar */
.simulation-reset-bar {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
  text-align: right;
}

/* Attribute delta bars */
.attribute-delta-bars {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.attr-delta-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
}

.attr-name {
  width: 80px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
  color: #475569;
}

.attr-bar-track {
  flex: 1;
  height: 10px;
  background: #f1f5f9;
  border-radius: 5px;
  overflow: hidden;
}

.attr-bar-fill {
  height: 100%;
  border-radius: 5px;
  transition: width 0.3s;
}

.attr-bar-fill.increase {
  background: linear-gradient(90deg, #a5f3fc, #22d3ee);
}

.attr-bar-fill.decrease {
  background: linear-gradient(90deg, #fde68a, #fbbf24);
}

.attr-delta-val {
  width: 45px;
  text-align: right;
  font-weight: 500;
}

.attr-delta-val.positive {
  color: #0891b2;
}

.attr-delta-val.negative {
  color: #d97706;
}

.coord-change {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

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

.coord-row .positive {
  color: #22c55e;
  font-weight: 600;
}

.coord-row .negative {
  color: #ef4444;
  font-weight: 600;
}

.no-data {
  color: #94a3b8;
  font-style: italic;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem;
}

/* ===== MARKET ENTRANT MODAL ===== */
.entrant-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 1;
  transition: opacity 0.2s;
}

.entrant-modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.entrant-modal {
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  width: 100%;
  max-width: 400px;
  transform: scale(1);
  transition: transform 0.2s;
}

.entrant-modal-overlay.hidden .entrant-modal {
  transform: scale(0.95);
}

.entrant-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.entrant-modal-header h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: #64748b;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.modal-close:hover {
  color: #1e293b;
}

.entrant-modal-body {
  padding: 1.25rem;
}

.entrant-modal-body label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.entrant-modal-body input {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  margin-bottom: 0.75rem;
  box-sizing: border-box;
}

.entrant-modal-body input:focus {
  outline: none;
  border-color: var(--app-accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.entrant-modal-footer {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  padding: 1rem 1.25rem;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
  border-radius: 0 0 12px 12px;
}

/* ==================== CUSTOMER WEIGHTS UI ==================== */
.weights-toggle {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.weight-type-badge {
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.4;
}

.weight-type-badge.usage-badge {
  background: linear-gradient(135deg, #dbeafe, #ede9fe);
  color: #3730a3;
  border: 1px solid #a5b4fc;
}

.weight-type-badge.spend-badge {
  background: linear-gradient(135deg, #dcfce7, #fef3c7);
  color: #166534;
  border: 1px solid #86efac;
}

.share-type-indicator {
  font-size: 0.75rem;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.5rem;
}

.share-type-indicator.unit-share {
  display: none;
}

.share-type-indicator.usage-weighted {
  background: #dbeafe;
  color: #1e40af;
}

.share-type-indicator.dollar-share {
  background: #dcfce7;
  color: #166534;
}

#weights-section {
  border-left: 3px solid #8b5cf6;
}

#weights-preview-table td:last-child {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
  font-size: 0.85rem;
}
