/* econode_studio/web/css/styles.css - Apple Human Interface Guidelines Design Tokens */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;600;700&family=Source+Sans+3:wght@400;600;700&display=swap');

:root {
  --bg-app: #FAF9F5;
  --bg-card: #FFFFFF;
  --bg-subtle: #F8FAFC;
  --bg-muted: #F1F5F9;
  --border-color: #E2E8F0;
  --border-strong: #CBD5E1;
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-dim: #94A3B8;

  --accent-emerald: #059669;
  --accent-emerald-light: #ECFDF5;
  --accent-emerald-border: #86EFAC;
  --accent-slate: #0F172A;
  --accent-amber: #D97706;
  --accent-amber-light: #FEF3C7;
  --accent-blue: #0284C7;
  --accent-blue-light: #E0F2FE;

  --font-sans: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Roboto Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
}

.mono {
  font-family: var(--font-mono);
}

/* -------------------------------------------------------------
   TOP NAVIGATION BAR (Apple HIG Desktop)
------------------------------------------------------------- */
.top-navbar {
  height: 52px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.brand-section {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.brand-logo .dot {
  color: var(--accent-emerald);
}

.brand-divider {
  color: var(--border-strong);
  font-size: 14px;
}

.project-title {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-pill {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.badge-emerald {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.badge-slate {
  background: var(--bg-muted);
  color: var(--text-secondary);
  border: 1px solid var(--border-strong);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.nav-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.nav-btn.active {
  background: var(--bg-muted);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

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

/* Language Toggle Segment */
.lang-toggle {
  display: flex;
  background: var(--bg-muted);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.lang-btn {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 8px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--text-muted);
}

.lang-btn.active {
  background: var(--bg-card);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

/* User Profile Pill */
.user-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.user-pill:hover {
  border-color: var(--border-strong);
}

.user-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-slate);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
}

.user-avatar.client {
  background: var(--accent-emerald);
}

.user-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-primary);
}

/* -------------------------------------------------------------
   BUTTONS (Apple Design & High Contrast)
------------------------------------------------------------- */
.btn {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.15s ease;
  border: 1px solid transparent;
  outline: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent-slate);
  color: #FFFFFF;
  border-color: var(--accent-slate);
}

.btn-primary:hover {
  background: #1E293B;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-muted);
  border-color: var(--text-muted);
}

.btn-emerald {
  background: var(--accent-emerald);
  color: #FFFFFF;
  border-color: var(--accent-emerald);
}

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

.btn-sm {
  padding: 5px 10px;
  font-size: 10.5px;
}

/* -------------------------------------------------------------
   VIEW CONTAINERS
------------------------------------------------------------- */
.view-container {
  display: none;
  max-width: 1440px;
  margin: 0 auto;
  padding: 24px;
}

.view-container.active {
  display: block;
}

/* -------------------------------------------------------------
   AUTH SCREENS (Login & Sign-Up)
------------------------------------------------------------- */
.auth-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 52px);
  padding: 32px 16px;
}

.auth-card {
  width: 100%;
  max-width: 480px;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.auth-header {
  margin-bottom: 24px;
}

.auth-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 8px;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 4px;
}

.btn-google {
  width: 100%;
  height: 44px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
  margin-bottom: 8px;
}

.btn-google:hover {
  border-color: var(--text-muted);
  background: var(--bg-subtle);
}

.google-icon-box {
  width: 24px;
  height: 24px;
  background: var(--accent-slate);
  color: #FFFFFF;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
}

.auth-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 18px 0;
  color: var(--text-dim);
  font-size: 10px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid var(--border-color);
}

.auth-divider:not(:empty)::before {
  margin-right: .75em;
}

.auth-divider:not(:empty)::after {
  margin-left: .75em;
}

.form-group {
  margin-bottom: 14px;
}

.form-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 5px;
}

.form-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11.5px;
  font-family: var(--font-mono);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.15s ease;
}

.form-input:focus {
  border-color: var(--accent-slate);
  background: #FFFFFF;
}

.demo-access-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px;
  margin-top: 18px;
}

.demo-access-title {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

.demo-buttons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.demo-account-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.demo-account-card:hover {
  border-color: var(--accent-emerald);
}

/* -------------------------------------------------------------
   DASHBOARD VIEW
------------------------------------------------------------- */
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.kpi-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.kpi-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.kpi-subtext {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 4px;
}

.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-toolbar {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
}

.table-filters {
  display: flex;
  align-items: center;
  gap: 6px;
}

.segmented-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: #FFFFFF;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.segmented-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.segmented-btn:active {
  transform: scale(0.97);
}

.segmented-btn.active {
  background: var(--accent-slate);
  color: #FFFFFF;
  border-color: var(--accent-slate);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.data-table th {
  background: var(--bg-subtle);
  padding: 10px 16px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.data-table td {
  padding: 14px 16px;
  font-size: 11.5px;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-primary);
}

.data-table tr:hover {
  background: var(--bg-subtle);
}

/* -------------------------------------------------------------
   CANVAS VIEW (Product System Modeling)
------------------------------------------------------------- */
#viewCanvas {
  max-width: 100% !important;
  width: 100% !important;
  padding: 16px 20px !important;
}

.canvas-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 16px;
  width: 100%;
  min-width: 0;
  height: calc(100vh - 100px);
  min-height: 580px;
}

/* Ocultar panel izquierdo (Catálogo) en cualquier vista: el lienzo toma el espacio izquierdo */
.canvas-wrapper.hide-left {
  grid-template-columns: 1fr 320px !important;
}
.canvas-wrapper.hide-left > .catalog-panel {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Ocultar panel derecho (Inspector) en cualquier vista: el lienzo toma el espacio derecho */
.canvas-wrapper.hide-right {
  grid-template-columns: 280px 1fr !important;
}
.canvas-wrapper.hide-right > .inspector-panel {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Maximizar Lienzo (Zen Mode: ambos paneles laterales ocultos -> Lienzo al 100% sin márgenes) */
.canvas-wrapper.hide-left.hide-right {
  grid-template-columns: 1fr !important;
  gap: 0px !important;
}
.canvas-wrapper.hide-left.hide-right > .catalog-panel,
.canvas-wrapper.hide-left.hide-right > .inspector-panel {
  display: none !important;
  opacity: 0;
  pointer-events: none;
}

/* Modo Hoja de Cálculo (Table Mode): Catálogo e Inspector ocultos automáticamente (100% amplitud) */
.canvas-wrapper.table-mode {
  grid-template-columns: 1fr !important;
  gap: 0px !important;
}
.canvas-wrapper.table-mode > .catalog-panel,
.canvas-wrapper.table-mode #panelProcessCatalog,
.canvas-wrapper.table-mode > .inspector-panel,
.canvas-wrapper.table-mode #panelNodeInspector,
.canvas-wrapper.table-mode #rightPanel {
  display: none !important;
  width: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

/* Filas de adición interactiva estilo Excel común */
.excel-row-add-flow {
  background: rgba(0, 0, 0, 0.01);
  border-bottom: 1px dashed var(--border-color);
}
.excel-row-add-flow:hover {
  background: rgba(16, 185, 129, 0.03);
}
.excel-row-new-process {
  background: rgba(16, 185, 129, 0.02);
  border-top: 2px dashed #CBD5E1 !important;
  border-bottom: 2px solid #CBD5E1 !important;
}
.excel-row-new-process:hover {
  background: rgba(16, 185, 129, 0.05);
}
.excel-inline-input::placeholder {
  color: var(--text-muted);
  opacity: 0.65;
  font-style: italic;
}
.excel-inline-input:focus {
  outline: none;
  background: var(--bg-card);
  box-shadow: inset 0 0 0 1px #10B981;
  border-radius: 2px;
}

/* Autocomplete Floating Dropdown para Hoja de Cálculo (Selector de Procesos y Flujos) */
.excel-autocomplete-dropdown {
  position: fixed;
  z-index: 99999;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #CBD5E1);
  border-radius: 6px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.14), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
  max-height: 270px;
  min-width: 340px;
  max-width: 540px;
  overflow-y: auto;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 11.5px;
  display: flex;
  flex-direction: column;
  animation: excelDropdownFadeIn 0.12s ease-out;
}

@keyframes excelDropdownFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

.excel-ac-header {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted, #64748B);
  background: rgba(0, 0, 0, 0.02);
  border-bottom: 1px solid var(--border-color, #E2E8F0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.excel-ac-list {
  list-style: none;
  margin: 0;
  padding: 3px 0;
  display: flex;
  flex-direction: column;
}

.excel-ac-item {
  padding: 6px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background 0.1s ease, color 0.1s ease;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}

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

.excel-ac-item:hover,
.excel-ac-item.active {
  background: rgba(16, 185, 129, 0.09);
}

.excel-ac-item.active {
  outline: none;
}

.excel-ac-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
  margin-right: 8px;
}

.excel-ac-item-name {
  font-weight: 600;
  color: var(--text-primary, #0F172A);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excel-ac-item:hover .excel-ac-item-name,
.excel-ac-item.active .excel-ac-item-name {
  color: #047857;
}

.excel-ac-item-sub {
  font-size: 9.5px;
  color: var(--text-muted, #64748B);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.excel-ac-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.excel-ac-badge-unit {
  font-family: var(--font-mono, monospace);
  font-size: 9px;
  font-weight: 700;
  color: #047857;
  background: rgba(16, 185, 129, 0.1);
  padding: 1px 5px;
  border-radius: 3px;
}

.excel-ac-badge-tag {
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
  background: #F1F5F9;
  color: #475569;
}

.excel-ac-badge-connected {
  background: rgba(109, 40, 217, 0.1);
  color: #6D28D9;
  font-weight: 700;
}

.excel-ac-loading,
.excel-ac-empty {
  padding: 12px 10px;
  text-align: center;
  color: var(--text-muted, #64748B);
  font-size: 11px;
  font-style: italic;
}

.excel-provider-select {
  width: 100%;
  max-width: 100%;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 4px;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-primary);
  padding: 2px 4px;
  cursor: pointer;
  text-overflow: ellipsis;
  white-space: nowrap;
  outline: none;
  transition: all 0.15s ease;
}

.excel-provider-select:hover,
.excel-provider-select:focus {
  background: #FFFFFF;
  border-color: #CBD5E1;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.excel-provider-select.is-connected {
  color: #6D28D9;
  font-weight: 600;
  background: rgba(109, 40, 217, 0.07);
  border-color: rgba(109, 40, 217, 0.22);
}

.excel-inline-select {
  width: 100%;
  max-width: 100%;
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border-color, #CBD5E1);
  border-radius: 4px;
  font-family: inherit;
  font-size: 10.5px;
  color: var(--text-primary);
  padding: 2px 4px;
  cursor: pointer;
  outline: none;
  transition: all 0.15s ease;
}

.excel-inline-select:focus {
  border-color: #0284C7;
  box-shadow: 0 0 0 1px #0284C7;
}

.excel-row-new-connection {
  background: rgba(14, 165, 233, 0.03);
  border-top: 2px dashed #BAE6FD !important;
  border-bottom: 2px solid #BAE6FD !important;
}

.excel-row-new-connection:hover {
  background: rgba(14, 165, 233, 0.07);
}

/* Estilo para botones de colapso rápido dentro de los paneles */
.panel-collapse-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 6px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.panel-collapse-btn:hover {
  background: var(--bg-card);
  color: var(--text-primary);
  border-color: var(--border-color);
}
.panel-collapse-btn:active {
  transform: scale(0.95);
}

.canvas-subview-container {
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.canvas-slide-pill {
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.25), 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 7px 18px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  background: var(--text-primary);
  color: #FFFFFF;
}

.canvas-slide-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
  background: #1E293B;
}

.canvas-slide-pill:active {
  transform: translateY(0) scale(0.97);
}

.canvas-slide-pill .slide-down-arrow {
  display: inline-block;
  transition: transform 0.25s ease;
}

.canvas-slide-pill:hover .slide-down-arrow {
  transform: translateY(2px);
}

/* -------------------------------------------------------------
   CANVAS ZOOM CONTROLS (Apple HIG Floating & Toolbar)
------------------------------------------------------------- */
.canvas-floating-zoom {
  position: absolute;
  bottom: 14px;
  right: 20px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  padding: 2px 4px;
  user-select: none;
}

.btn-zoom-action {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  cursor: pointer;
  padding: 4px 8px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.btn-zoom-action:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.btn-zoom-action:active {
  transform: scale(0.92);
}

.btn-zoom-value {
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  cursor: pointer;
  padding: 3px 6px;
  font-size: 11px;
  font-weight: 600;
  min-width: 46px;
  text-align: center;
  font-feature-settings: "tnum";
  transition: all 0.15s ease;
}

.btn-zoom-value:hover {
  background: var(--bg-muted);
  color: var(--accent-emerald);
}

.btn-zoom-value:active {
  transform: scale(0.96);
}

#canvasZoomContainer {
  transform-origin: 0 0;
  will-change: transform;
}

/* -------------------------------------------------------------
   LCI SPREADSHEET TABLE (Excel / Numbers Ergonomics)
------------------------------------------------------------- */
.spreadsheet-app-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
}

/* 1. Ribbon Bar */
.spreadsheet-ribbon-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 12px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border-color);
  gap: 8px;
  flex-wrap: wrap;
  min-height: 42px;
}

.spreadsheet-file-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  font-size: 11px;
}

.spreadsheet-excel-icon {
  font-size: 13px;
  line-height: 1;
}

.spreadsheet-search-box {
  height: 27px;
  font-size: 11px;
  width: 190px;
  padding: 2px 8px;
}

/* 2. Formula Bar (fx Bar) */
.spreadsheet-formula-bar-container {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-color);
  padding: 3px 10px;
  gap: 8px;
  font-size: 11.5px;
}

.spreadsheet-name-box {
  min-width: 44px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  border-radius: 3px;
  font-weight: 700;
  font-size: 11px;
  color: var(--text-primary);
  user-select: none;
  padding: 0 4px;
}

.spreadsheet-fx-label {
  font-style: italic;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 0 4px;
  user-select: none;
}

.spreadsheet-formula-input-wrapper {
  flex: 1;
  display: flex;
  align-items: center;
}

.spreadsheet-formula-input {
  width: 100%;
  height: 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  padding: 2px 6px;
  font-size: 11.5px;
  background: transparent;
  color: var(--text-primary);
  font-family: inherit;
  font-feature-settings: "tnum";
}

.spreadsheet-formula-input:focus {
  outline: none;
  border-color: #10B981;
  background: var(--bg-card);
}

/* 3. Grid Scroll Area */
.spreadsheet-grid-scroll-area {
  flex: 1;
  overflow: auto;
  background: var(--bg-card);
  position: relative;
}

.lci-excel-grid {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
  font-feature-settings: "tnum";
  table-layout: fixed;
  user-select: text;
}

/* Column Letter Headers (Row 1) */
.excel-col-letter {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 6;
  user-select: none;
}

.excel-corner-cell {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  width: 38px;
  min-width: 38px;
  position: sticky;
  top: 0;
  left: 0;
  z-index: 7;
}

/* Column Label Headers (Row 2) */
.excel-col-label-th {
  background: var(--bg-muted);
  color: var(--text-secondary);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  padding: 6px 8px;
  border: 1px solid var(--border-color);
  position: sticky;
  top: 22px;
  z-index: 5;
  text-align: left;
}

/* Row Number Gutter */
.excel-row-num {
  background: var(--bg-subtle);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 10px;
  text-align: center;
  padding: 3px 4px;
  border: 1px solid var(--border-color);
  width: 38px;
  min-width: 38px;
  position: sticky;
  left: 0;
  z-index: 4;
  user-select: none;
}

/* Highlight active row/col header */
.excel-col-letter.active-header,
.excel-row-num.active-header {
  background: rgba(16, 185, 129, 0.15) !important;
  color: #059669 !important;
  font-weight: 700;
}

/* Spreadsheet Grid Cells */
.excel-cell {
  padding: 4px 8px;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 11px;
  vertical-align: middle;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  position: relative;
  background: var(--bg-card);
  transition: background-color 0.1s;
}

.excel-cell:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* Active Excel Cell Selection Box */
.excel-cell.excel-active-cell {
  outline: 2px solid #10B981 !important;
  outline-offset: -1px;
  z-index: 3;
  background: rgba(16, 185, 129, 0.04) !important;
}

.excel-active-cell::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 5px;
  height: 5px;
  background: #10B981;
  border: 1px solid #ffffff;
  pointer-events: none;
}

/* Merged Product System Cell (Excel-style merged block across rows) */
.excel-merged-system-cell {
  vertical-align: middle !important;
  text-align: center !important;
  background: var(--bg-card) !important;
  font-weight: 700;
  color: var(--text-primary);
  padding: 14px 12px !important;
  border: 1px solid var(--border-color) !important;
  white-space: normal !important;
  word-break: break-word !important;
  line-height: 1.4 !important;
  user-select: text;
}

/* Inline Edit Input */
.excel-inline-input {
  width: 100%;
  border: none;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  margin: 0;
  outline: none;
}

/* Process Start Row & Alternation */
.excel-row-process-start td {
  border-top: 2px solid var(--border-strong) !important;
}

/* Reference Flow Row (Mint Highlight matching LCI_practica4.xlsx) */
.excel-row-reference td {
  background: rgba(16, 185, 129, 0.08) !important;
}

.excel-row-reference .excel-row-num {
  background: rgba(16, 185, 129, 0.18) !important;
  color: #047857 !important;
  font-weight: 700;
}

.excel-row-waste td {
  background: rgba(239, 68, 68, 0.04) !important;
}

.excel-row-emission td {
  background: rgba(245, 158, 11, 0.04) !important;
}

.excel-badge-ref {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 6px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 700;
}

.excel-badge-techno {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  background: #EFF6FF;
  color: #1E40AF;
  border: 1px solid #BFDBFE;
  border-radius: 3px;
  font-size: 9.5px;
}

.excel-badge-connected {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 1px 5px;
  background: #F5F3FF;
  color: #5B21B6;
  border: 1px solid #DDD6FE;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 600;
}

/* 4. Bottom Tabs & Status Bar (Excel Bottom Bar) */
.spreadsheet-bottom-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border-color);
  padding: 2px 12px;
  min-height: 28px;
  user-select: none;
}

.spreadsheet-sheet-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
}

.spreadsheet-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
  color: var(--text-secondary);
  font-size: 11px;
  padding: 3px 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.15s ease;
}

.spreadsheet-tab-btn:hover {
  background: var(--bg-muted);
  color: var(--text-primary);
}

.spreadsheet-tab-btn.active {
  background: var(--bg-card);
  color: #10B981;
  font-weight: 700;
  border-color: var(--border-color);
  box-shadow: 0 -2px 0 #10B981;
}

.spreadsheet-status-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 10px;
  color: var(--text-muted);
}

.spreadsheet-status-bar .status-indicator {
  color: #10B981;
  font-weight: 700;
}

.canvas-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  width: 100%;
}

.canvas-panel.center-panel {
  min-width: 0;
  width: 100%;
  flex: 1;
}

.panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-color);
  background: var(--bg-subtle);
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canvas-stage {
  position: relative;
  background: #FAFAFA;
  background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: auto;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.process-node-card {
  position: absolute;
  width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  box-shadow: var(--shadow-md);
  cursor: grab;
  user-select: none;
  pointer-events: auto;
}

.process-node-card:active {
  cursor: grabbing;
}

.node-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.node-title {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.node-val {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-emerald);
}

/* -------------------------------------------------------------
   MODALS
------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(2px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

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

.modal-dialog {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 820px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: modalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

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

.modal-body {
  padding: 24px;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-subtle);
}

/* Dropzone for Import Center */
.dropzone-box {
  border: 2px dashed var(--border-strong);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.15s ease;
}

.dropzone-box:hover {
  border-color: var(--accent-emerald);
  background: var(--accent-emerald-light);
}

/* -------------------------------------------------------------
   HOME LANDING PAGE STYLES (Penpot Replica)
------------------------------------------------------------- */
.landing-nav-link {
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.landing-nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-muted);
}

.home-hero-section {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 60px 0 40px;
}

.home-hero-title {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.05;
}

.home-hero-subtitle {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-top: 10px;
  letter-spacing: -0.01em;
}

.home-hero-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 14px;
  max-width: 520px;
}

.home-hero-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.home-hero-trust-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 28px;
  font-size: 11px;
  color: var(--text-muted);
}

.home-hero-visual-card {
  background: #FFFFFF;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-md);
  position: relative;
}

.home-partners-section {
  padding: 32px 0 40px;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  text-align: center;
  margin: 30px 0;
}

.home-partners-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

.partner-badge {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.home-section {
  padding: 48px 0;
}

.section-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: var(--accent-emerald);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-title {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

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

.capability-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.capability-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.capability-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  margin-bottom: 14px;
  color: var(--accent-emerald);
}

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

.capability-desc {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.advantage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.home-metrics-section {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 36px 0;
  margin: 30px 0;
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.metric-value {
  font-family: var(--font-mono);
  font-size: 28px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.metric-label {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  margin-top: 4px;
}

.metric-sub {
  font-size: 9.5px;
  color: var(--text-dim);
  margin-top: 2px;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.testimonial-quote {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  font-style: italic;
}

.faq-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 860px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.faq-question {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  font-size: 11.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

.home-footer {
  margin-top: 60px;
  border-top: 1px solid var(--border-strong);
  padding: 40px 0 24px;
}

.home-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}

.home-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--border-color);
  font-size: 10.5px;
  color: var(--text-muted);
}

/* -------------------------------------------------------------
   INTERACTIVE CANVAS CONNECTORS & SANKEY
------------------------------------------------------------- */
.node-ports-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 6px;
  border-top: 1px dashed var(--border-color);
}

.node-port {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--bg-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.node-port:hover {
  background: var(--accent-emerald);
  color: #FFFFFF;
  border-color: var(--accent-emerald);
  transform: scale(1.15);
}

.node-port.port-out {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border-color: var(--accent-blue);
}

.node-port.port-out:hover {
  background: var(--accent-blue);
  color: #FFFFFF;
}

.process-node-card.connect-target-candidate {
  outline: 2px dashed var(--accent-blue);
  outline-offset: 3px;
  cursor: pointer !important;
  box-shadow: 0 0 12px rgba(2, 132, 199, 0.25) !important;
  animation: pulse-candidate 1.6s infinite ease-in-out;
}

@keyframes pulse-candidate {
  0% { transform: scale(1); }
  50% { transform: scale(1.02); box-shadow: 0 0 16px rgba(2, 132, 199, 0.45) !important; }
  100% { transform: scale(1); }
}

/* Dropdown de Exportación Global en Canvas */
.canvas-export-dropdown-wrapper {
  position: relative;
  display: inline-block;
}

.canvas-export-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  min-width: 170px;
  z-index: 100;
  padding: 4px 0;
}

.canvas-export-menu.show {
  display: block;
}

.canvas-export-item {
  width: 100%;
  padding: 7px 12px;
  background: none;
  border: none;
  text-align: left;
  font-size: 11px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  transition: background 0.15s ease;
}

.canvas-export-item:hover {
  background: var(--bg-muted);
}

.sankey-legend-box {
  position: absolute;
  bottom: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  box-shadow: var(--shadow-md);
  z-index: 50;
}

.node-sankey-badge {
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  display: inline-block;
}

.node-sankey-badge.mass {
  background: var(--accent-emerald-light);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
}

.node-sankey-badge.energy {
  background: var(--accent-blue-light);
  color: var(--accent-blue);
  border: 1px solid var(--border-strong);
}

/* Report highlight mark */
mark.report-highlight {
  background-color: #FEF08A;
  color: #713F12;
  border-radius: 2px;
  padding: 1px 3px;
  box-shadow: 0 0 0 1px rgba(202, 138, 4, 0.3);
}

/* -------------------------------------------------------------
   PRINT & EXECUTIVE PDF REPORT STYLES (ISO 14044 / NOM-070)
------------------------------------------------------------- */
@media print {
  @page {
    size: A4 portrait;
    margin: 12mm 15mm 15mm 15mm;
  }

  body {
    background: #FFFFFF !important;
    color: #0F172A !important;
    font-size: 10pt !important;
    line-height: 1.45 !important;
  }

  .print-official-header,
  .print-official-footer {
    display: block !important;
  }

  .top-navbar,
  .modal-overlay,
  #econodeToast,
  .sankey-toggle-group,
  .home-hero-cta-group,
  .btn,
  #connectHelpBanner,
  #canvasSankeyLegend,
  #reportHighlightTooltip,
  #viewReportCommentsCol,
  .report-web-actions {
    display: none !important;
  }

  .view-container {
    display: none !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  .view-container.active {
    display: block !important;
  }

  #viewReport {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  #viewReport > div {
    display: block !important;
    grid-template-columns: 1fr !important;
  }

  #reportMainCard {
    box-shadow: none !important;
    border: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .data-table {
    width: 100% !important;
    border-collapse: collapse !important;
    page-break-inside: avoid;
    margin-bottom: 14pt !important;
  }

  .data-table th, .data-table td {
    border: 1px solid #CBD5E1 !important;
    padding: 5pt 7pt !important;
    font-size: 9pt !important;
  }

  .data-table th {
    background: #F1F5F9 !important;
    color: #0F172A !important;
  }

  .badge-pill {
    border: 1px solid #64748B !important;
    color: #0F172A !important;
    background: transparent !important;
  }
}

/* -------------------------------------------------------------
   PENPOT VISTA 3: CANVAS STICKY NOTES (POST-ITS) & CONNECTORS
------------------------------------------------------------- */
.canvas-sticky-note {
  position: absolute;
  width: 190px;
  min-height: 95px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  font-family: var(--font-sans);
  pointer-events: auto;
  cursor: grab;
  z-index: 50;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
  user-select: none;
}

.canvas-sticky-note:active {
  cursor: grabbing;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.14);
  transform: scale(1.02);
}

.canvas-sticky-note.role-auditor {
  background-color: #FEFCE8;
  border: 1px solid #FEF08A;
  color: #713F12;
}

.canvas-sticky-note.role-analyst {
  background-color: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
}

.canvas-sticky-note.role-client {
  background-color: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #14532D;
}

.sticky-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 10px;
  font-weight: 700;
  border-bottom: 1px dashed rgba(0, 0, 0, 0.12);
  padding-bottom: 4px;
}

.sticky-content-body {
  font-size: 11px;
  line-height: 1.35;
  color: inherit;
  word-break: break-word;
}

/* -------------------------------------------------------------
   PENPOT VISTA 1: INTERACTIVE FLOW CARDS (PROCESS EDITOR)
------------------------------------------------------------- */
.proc-flow-card {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
  cursor: grab;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.proc-flow-card:hover {
  border-color: var(--accent-blue);
  box-shadow: var(--shadow-md);
}

.proc-flow-card.dragging {
  opacity: 0.5;
  cursor: grabbing;
}

/* -------------------------------------------------------------
   NOTION-STYLE FLOATING BUBBLE TOOLBAR & MARKDOWN FORMATTING
------------------------------------------------------------- */
.bubble-btn {
  background: transparent;
  border: none;
  color: #FFFFFF;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  cursor: pointer;
  transition: background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bubble-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* -------------------------------------------------------------
   RESPONSIVE ERGONOMICS (Apple HIG Desktop 1024px - 1200px)
------------------------------------------------------------- */
@media screen and (max-width: 1200px) {
  .top-navbar {
    padding: 0 16px;
  }
  .nav-links {
    gap: 4px;
  }
  .nav-btn {
    padding: 5px 8px;
    font-size: 11px;
  }
  .project-title {
    max-width: 180px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media screen and (max-width: 1024px) {
  .top-navbar {
    height: auto;
    padding: 8px 14px;
    flex-wrap: wrap;
    gap: 8px;
  }
  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .table-filters {
    overflow-x: auto;
    padding-bottom: 4px;
  }
}

/* Enhancements for PDF print view */
@media print {
  #reportBubbleToolbar,
  #reportFormattingToolbar,
  .canvas-export-group,
  .modal-overlay {
    display: none !important;
  }

  #reportDocumentBody {
    font-size: 10pt !important;
    line-height: 1.5 !important;
    color: #000000 !important;
  }

  #reportDocumentBody table {
    page-break-inside: avoid !important;
  }

  .print-official-header {
    display: block !important;
    margin-bottom: 20pt !important;
  }

  .print-official-footer {
    display: block !important;
    margin-top: 25pt !important;
    page-break-inside: avoid !important;
  }
}

/* Canvas Interactivity & Interactive Disconnect Edges */
#canvasNodesLayer {
  pointer-events: none;
}

#canvasSvgOverlay {
  pointer-events: none;
}

.canvas-edge-hitpath {
  cursor: pointer;
  pointer-events: stroke !important;
}

.canvas-edge-path {
  cursor: pointer;
  pointer-events: stroke !important;
  transition: stroke 0.15s ease, stroke-width 0.15s ease, stroke-opacity 0.15s ease;
}

.canvas-edge-group:hover .canvas-edge-path {
  stroke: #EF4444 !important;
  stroke-opacity: 1 !important;
  filter: drop-shadow(0 0 4px rgba(239, 68, 68, 0.45));
}

.canvas-edge-badge {
  cursor: pointer;
  pointer-events: all !important;
  transition: transform 0.15s ease;
}

.canvas-edge-group:hover .canvas-edge-badge rect,
.canvas-edge-badge:hover rect {
  fill: #FEF2F2 !important;
  stroke: #EF4444 !important;
  stroke-width: 1.8px !important;
}

.canvas-edge-group:hover .canvas-edge-badge text.edge-label-text,
.canvas-edge-badge:hover text.edge-label-text {
  fill: #B91C1C !important;
}

.canvas-edge-group:hover .canvas-edge-badge text.edge-close-icon,
.canvas-edge-badge:hover text.edge-close-icon {
  fill: #EF4444 !important;
}

/* Client Role: Read-only report view (No editing toolbars) */
body.role-client #reportFormattingToolbar,
body.role-client #reportBubbleToolbar,
body.role-client #reportHighlightTooltip {
  display: none !important;
}

#reportDocumentBody[contenteditable="false"] {
  outline: none;
  cursor: default;
  user-select: text;
}



/* ========================================================================= */
/* STRAND LIGHT & FOLD TOOLBAR STYLES (Apple Human Interface Guidelines)     */
/* ========================================================================= */

#viewHome {
  background-color: #FFFFFF;
  background-image: 
    radial-gradient(ellipse 900px 500px at 70% 18%, rgba(16, 185, 129, 0.07) 0%, rgba(2, 132, 199, 0.05) 40%, transparent 75%),
    radial-gradient(circle 600px at 15% 75%, rgba(245, 158, 11, 0.03) 0%, transparent 60%),
    radial-gradient(rgba(15, 23, 42, 0.065) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 26px 26px;
  background-position: 0 0, 0 0, 0 0;
  position: relative;
  overflow-x: hidden;
}

/* Strand Top Pill Badge */
.strand-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  font-size: 12px;
  color: var(--text-primary);
  margin-bottom: 20px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}
.strand-pill-badge:hover {
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  transform: translateY(-1px);
}
.strand-pill-tag {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 9999px;
  letter-spacing: 0.02em;
}
.strand-pill-separator {
  color: #94A3B8;
  font-weight: 600;
  font-size: 11px;
}
.strand-pill-text {
  font-weight: 500;
  color: #1E293B;
  letter-spacing: -0.01em;
}
.strand-pill-arrow {
  color: #059669;
  font-size: 11px;
  transition: transform 0.2s ease;
}
.strand-pill-badge:hover .strand-pill-arrow {
  transform: translateX(3px);
}

/* Strand Hero Title */
.strand-hero-title {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: #0F172A;
  margin: 0 0 16px 0;
}
.strand-title-accent {
  background: linear-gradient(135deg, #059669 0%, #0284C7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}
.strand-hero-desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: #475569;
  margin: 0 0 28px 0;
  max-width: 520px;
  letter-spacing: -0.01em;
}

/* Strand CTA Buttons */
.strand-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.btn-strand-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 22px;
  background: #0F172A;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.16);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-strand-primary:hover {
  background: #1E293B;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.24);
  transform: translateY(-1px);
}
.btn-strand-primary:active {
  transform: scale(0.97);
}

.btn-strand-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 20px;
  background: rgba(255, 255, 255, 0.88);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(12px);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-strand-secondary:hover {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}
.btn-strand-secondary:active {
  transform: scale(0.97);
}
.btn-strand-arrow {
  color: #64748B;
  transition: transform 0.2s ease, color 0.2s ease;
}
.btn-strand-secondary:hover .btn-strand-arrow {
  color: #0F172A;
  transform: translate(2px, -2px);
}

/* Strand Trust Row */
.strand-trust-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11.5px;
  color: #64748B;
}
.strand-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.strand-trust-check {
  color: #059669;
  font-weight: 700;
}
.strand-trust-dot {
  color: #CBD5E1;
}

/* Strand Visual Card (Floating Glass Preview) */
.strand-hero-visual-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  padding: 20px 22px;
  box-shadow: 0 20px 40px -15px rgba(15, 23, 42, 0.08), 0 0 1px rgba(0, 0, 0, 0.1);
  position: relative;
  backdrop-filter: blur(16px);
}
.strand-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.strand-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}
.strand-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseLiveDot 2s infinite;
}
@keyframes pulseLiveDot {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}
.strand-status-pill {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: 9999px;
  padding: 3px 10px;
}

/* FOLD TOOLBAR (Floating Glassmorphism Dock) */
.fold-toolbar-container {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}
.fold-toolbar-dock {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 6px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 9999px;
  box-shadow: 0 8px 24px -4px rgba(15, 23, 42, 0.1), 0 2px 6px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(20px);
}
.fold-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.fold-tool-btn:hover {
  background: rgba(15, 23, 42, 0.04);
  color: #0F172A;
}
.fold-tool-btn.active {
  background: #0F172A;
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.2);
}
.fold-tool-btn:active {
  transform: scale(0.96);
}
.fold-tool-icon {
  font-size: 12px;
}

/* Strand Card Footer Telemetry */
.strand-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding: 10px 14px;
  background: #F8FAFC;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 12px;
}
.strand-telemetry-label {
  font-size: 9.5px;
  color: #64748B;
  font-family: var(--font-mono);
  font-weight: 600;
}
.strand-telemetry-val {
  font-size: 12px;
  color: #059669;
  font-family: var(--font-mono);
  margin-left: 6px;
}
.strand-telemetry-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 9.5px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  padding: 3px 9px;
  border-radius: 9999px;
  border: 1px solid #A7F3D0;
}
.strand-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10B981;
}

/* STRAND 3-PILLAR GRID */
.strand-pillars-section {
  padding: 40px 0 20px;
  margin-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.strand-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strand-pillar-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 16px;
  padding: 22px 20px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.strand-pillar-card:hover {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.15);
  box-shadow: 0 10px 25px -8px rgba(15, 23, 42, 0.06);
  transform: translateY(-2px);
}
.strand-pillar-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.strand-pillar-title {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0F172A;
  margin: 0 0 8px 0;
}
.strand-pillar-desc {
  font-size: 12.5px;
  line-height: 1.6;
  color: #64748B;
  margin: 0;
}

@media (max-width: 1024px) {
  .strand-hero-title {
    font-size: 36px;
  }
  .strand-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}


/* ========================================================================= */
/* RADICAL REDESIGN: STRAND LIGHT + FOLD TOOLBAR + BENTO GRID (Apple HIG)    */
/* ========================================================================= */

#viewHome,
.view-home {
  background-color: #FFFFFF;
  background-color: #FAFAFA;
  background-image: 
    radial-gradient(ellipse 1100px 600px at 50% 12%, rgba(16, 185, 129, 0.08) 0%, rgba(2, 132, 199, 0.05) 45%, transparent 75%),
    radial-gradient(circle 800px at 85% 80%, rgba(99, 102, 241, 0.04) 0%, transparent 60%),
    radial-gradient(rgba(15, 23, 42, 0.07) 1.2px, transparent 1.2px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
  background-position: 0 0, 0 0, 0 0;
  position: relative;
  overflow-x: hidden;
  padding: 0 0 60px 0;
}

/* HERO SECTION (CENTERED & COMMANDING STRAND LAYOUT) */
.strand-hero-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 70px 24px 30px;
  text-align: center;
}

.strand-hero-center {
  max-width: 920px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* TOP ANNOUNCEMENT PILL */
.strand-top-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 6px 8px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 9999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  font-size: 12.5px;
  color: #0F172A;
  text-decoration: none;
  margin-bottom: 28px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
}
.strand-top-pill:hover {
  border-color: rgba(15, 23, 42, 0.28);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.strand-top-pill-badge {
  background: #0F172A;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 9999px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.strand-top-pill-text {
  font-weight: 600;
  color: #1E293B;
  letter-spacing: -0.01em;
}
.strand-top-pill-arrow {
  color: #059669;
  font-size: 12px;
  transition: transform 0.2s ease;
}
.strand-top-pill:hover .strand-top-pill-arrow {
  transform: translateX(3px);
}

/* STRAND MAIN TITLE */
.strand-main-title {
  font-size: 58px;
  font-weight: 850;
  letter-spacing: -0.045em;
  line-height: 1.04;
  color: #090D16;
  margin: 0 0 20px 0;
}
.strand-gradient-text {
  color: #09090B;
  background: linear-gradient(180deg, #09090B 0%, #18181B 50%, #27272A 85%, #059669 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  letter-spacing: -0.035em;
}

/* STRAND SUBTITLE */
.strand-main-subtitle {
  font-size: 17px;
  line-height: 1.62;
  color: #475569;
  max-width: 700px;
  margin: 0 auto 32px;
  letter-spacing: -0.015em;
}

/* STRAND BUTTONS */
.strand-action-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.btn-strand-obsidian {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 28px;
  background: #090D16;
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 6px 20px rgba(9, 13, 22, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-strand-obsidian:hover {
  background: #1A2234;
  box-shadow: 0 8px 26px rgba(9, 13, 22, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.btn-strand-obsidian:active {
  transform: scale(0.96);
}
.btn-strand-shine {
  position: absolute;
  top: 0; left: -100%; width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
  transition: left 0.7s ease;
}
.btn-strand-obsidian:hover .btn-strand-shine {
  left: 100%;
}
.btn-strand-icon-arrow {
  font-size: 13px;
  transition: transform 0.2s ease;
}
.btn-strand-obsidian:hover .btn-strand-icon-arrow {
  transform: translateX(4px);
}

.btn-strand-glass {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 48px;
  padding: 0 24px;
  background: rgba(255, 255, 255, 0.9);
  color: #0F172A;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.015em;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(14px);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-strand-glass:hover {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.3);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}
.btn-strand-glass:active {
  transform: scale(0.96);
}
.btn-strand-glass-arrow {
  color: #64748B;
  font-size: 13px;
  transition: transform 0.2s ease, color 0.2s ease;
}
.btn-strand-glass:hover .btn-strand-glass-arrow {
  color: #0F172A;
  transform: translate(2px, -2px);
}

/* STRAND TRUST ROW */
.strand-trust-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: #64748B;
}
.strand-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}
.trust-check {
  color: #059669;
  font-weight: 800;
}
.strand-trust-sep {
  color: #CBD5E1;
}

/* IMMERSIVE PRODUCT STAGE (1080px Wide Container) */
.strand-stage-wrapper {
  width: 100%;
  max-width: 1080px;
  margin: 48px auto 0;
  position: relative;
}

.strand-stage-window {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  box-shadow: 0 30px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  position: relative;
  backdrop-filter: blur(20px);
}

.strand-stage-chrome,
.strand-stage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  background: #F8FAFC;
  border-bottom: 1px solid rgba(15, 23, 42, 0.07);
}
.stage-traffic-lights {
  display: flex;
  align-items: center;
  gap: 7px;
}
.traffic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.traffic-red { background: #FF5F56; }
.traffic-yellow { background: #FFBD2E; }
.traffic-green { background: #27C93F; }

.stage-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #64748B;
  font-family: var(--font-mono);
}
.stage-bread-sep { color: #CBD5E1; }
.stage-bread-active { font-weight: 700; color: #0F172A; }

.stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
}
.stage-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10B981;
  box-shadow: 0 0 8px #10B981;
  animation: pulseLiveDot 2s infinite;
}

.strand-canvas-viewport,
.strand-stage-viewport {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(248, 250, 252, 0.8) 0%, #FFFFFF 100%);
  padding: 24px 20px 20px;
}

.strand-interactive-svg {
  width: 100%;
  height: auto;
  min-height: 320px;
  overflow: visible;
}

/* FOLD TOOLBAR (RECENT.DESIGN DOCK INTERACTION) */
.fold-dock-overlay {
  display: flex;
  justify-content: center;
  margin-top: 6px;
  position: relative;
  z-index: 10;
}

.fold-dock-bar,
#heroFoldToolbar {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 9999px;
  box-shadow: 0 12px 32px -6px rgba(15, 23, 42, 0.14), 0 3px 8px rgba(0, 0, 0, 0.04), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.fold-dock-tab,
.fold-dock-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 16px;
  min-height: 36px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  user-select: none;
  -webkit-user-select: none;
  outline: none;
}
.fold-dock-tab:hover,
.fold-dock-item:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0F172A;
}
.fold-dock-tab:focus-visible,
.fold-dock-item:focus-visible {
  outline: 2px solid #059669;
  outline-offset: 2px;
}
.fold-dock-tab.is-active,
.fold-dock-tab.active,
.fold-dock-item.is-active,
.fold-dock-item.active {
  background: #090D16;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(9, 13, 22, 0.25);
}
.fold-dock-tab:active,
.fold-dock-item:active {
  transform: scale(0.97);
}
.fold-dock-icon {
  font-size: 13px;
  line-height: 1;
}
.fold-dock-name,
.fold-dock-label {
  font-size: 12.5px;
  line-height: 1;
}
.fold-dock-indicator {
  display: inline-block;
}

/* STAGE TELEMETRY FOOTER */
.strand-stage-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px;
  background: #F8FAFC;
  border-top: 1px solid rgba(15, 23, 42, 0.07);
  flex-wrap: wrap;
  gap: 14px;
}
.stage-metric-box {
  display: flex;
  align-items: center;
  gap: 7px;
}
.stage-metric-lbl {
  font-size: 10px;
  color: #64748B;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.stage-metric-val {
  font-size: 13px;
  color: #059669;
  font-family: var(--font-mono);
  font-weight: 700;
}
.stage-norm-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 12px;
  border-radius: 9999px;
}
.stage-norm-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10B981;
}

/* STRAND 3-PILLAR FOUNDATION GRID */
.strand-pillars-section,
.strand-pillars-container {
  max-width: 1080px;
  margin: 80px auto 40px;
  padding: 0 24px;
  border-top: none;
}
.strand-pillars-heading {
  text-align: center;
  margin-bottom: 36px;
}
.strand-tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.strand-section-title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #090D16;
  margin: 0;
}
.strand-pillars-cards,
.strand-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.strand-pillar-card,
.strand-card {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  padding: 28px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.strand-pillar-card:hover,
.strand-card:hover {
  background: #FFFFFF;
  border-color: rgba(15, 23, 42, 0.2);
  box-shadow: 0 14px 34px -8px rgba(15, 23, 42, 0.08);
  transform: translateY(-3px);
}
.strand-card-number,
.strand-pillar-num,
.strand-pillar-number {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: #059669;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.strand-card-title,
.strand-pillar-title {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: #090D16;
  margin: 0 0 10px 0;
  line-height: 1.3;
}
.strand-card-text,
.strand-pillar-desc,
.strand-pillar-text {
  font-size: 13.5px;
  line-height: 1.62;
  color: #475569;
  margin: 0 0 18px 0;
  flex-grow: 1;
}
.strand-card-meta-pill,
.strand-pillar-meta-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 600;
  color: #64748B;
  background: #F1F5F9;
  padding: 3px 10px;
  border-radius: 9999px;
}

/* BENTO GRID OF CORE CAPABILITIES */
.strand-bento-section {
  max-width: 1080px;
  margin: 80px auto 40px;
  padding: 0 24px;
}
.strand-bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.strand-bento-card,
.bento-card {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}
.strand-bento-card:hover,
.bento-card:hover {
  border-color: rgba(15, 23, 42, 0.22);
  box-shadow: 0 16px 36px -8px rgba(15, 23, 42, 0.08), inset 0 1px 0 #FFFFFF;
  transform: translateY(-3px);
}
.strand-bento-card.bento-wide,
.bento-card.bento-wide,
.bento-wide {
  grid-column: span 2;
}
.strand-bento-badge,
.bento-badge {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  color: #0284C7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.strand-bento-title,
.bento-title {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #090D16;
  margin: 0 0 10px 0;
  line-height: 1.25;
}
.strand-bento-desc,
.bento-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: #475569;
  margin: 0 0 18px 0;
  flex-grow: 1;
}
.strand-bento-code-pill,
.bento-code-pill {
  display: inline-block;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 12px;
  border-radius: 9999px;
}
.strand-bento-status-pill,
.bento-status-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: #059669;
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  padding: 4px 12px;
  border-radius: 9999px;
}

/* CONFRONTATION MATRIX TABLE */
.strand-comparison-section,
.strand-matrix-section {
  max-width: 1080px;
  margin: 80px auto 40px;
  padding: 0 24px;
}
.strand-comparison-wrapper,
.strand-matrix-wrapper {
  background: #FFFFFF;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 30px -8px rgba(15, 23, 42, 0.06);
}
.strand-comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}
.strand-comparison-table th {
  padding: 16px 20px;
  font-size: 12.5px;
  font-weight: 750;
  border-bottom: 2px solid rgba(15, 23, 42, 0.08);
}
.strand-comparison-table td {
  padding: 14px 20px;
  font-size: 13px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  line-height: 1.5;
}
.strand-comparison-table tbody tr:hover {
  background: #F8FAFC;
}
.strand-badge-red {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  font-weight: 600;
  font-size: 11px;
}
.strand-badge-emerald {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 9999px;
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  font-weight: 700;
  font-size: 11px;
}

/* FINAL CTA BANNER */
.strand-final-cta-section {
  max-width: 1080px;
  margin: 80px auto 40px;
  padding: 0 24px;
}
.strand-final-cta-card {
  background: linear-gradient(135deg, #090D16 0%, #1E293B 100%);
  border-radius: 24px;
  padding: 56px 40px;
  text-align: center;
  color: #FFFFFF;
  box-shadow: 0 24px 50px -12px rgba(9, 13, 22, 0.25);
  position: relative;
  overflow: hidden;
}
.strand-cta-title {
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.035em;
  margin: 0 0 14px 0;
}
.strand-cta-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: #94A3B8;
  max-width: 620px;
  margin: 0 auto 30px;
}
.strand-cta-btns {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.strand-final-cta-card .btn-strand-obsidian {
  background: #FFFFFF;
  color: #090D16;
  border-color: rgba(255, 255, 255, 0.3);
}
.strand-final-cta-card .btn-strand-obsidian:hover {
  background: #F1F5F9;
}
.strand-final-cta-card .btn-strand-glass {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.25);
}
.strand-final-cta-card .btn-strand-glass:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* ========================================================================= */
/* RESPONSIVE BREAKPOINTS & APPLE HIG DESKTOP ERGONOMICS                     */
/* ========================================================================= */

@media (max-width: 1024px) {
  .strand-main-title,
  .strand-hero-title {
    font-size: 40px;
  }
  .strand-pillars-cards,
  .strand-pillars-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .strand-bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .bento-wide,
  .strand-bento-card.bento-wide {
    grid-column: span 1;
  }
  .fold-dock-bar,
  #heroFoldToolbar {
    flex-wrap: wrap;
    border-radius: 16px;
    justify-content: center;
    max-width: 100%;
  }
  .fold-dock-tab,
  .fold-dock-item {
    padding: 6px 12px;
    font-size: 11.5px;
  }
  .strand-comparison-wrapper,
  .strand-matrix-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .strand-comparison-table {
    min-width: 680px;
  }
}

@media (max-width: 768px) {
  .strand-hero-section {
    padding: 48px 16px 24px;
  }
  .strand-main-title,
  .strand-hero-title {
    font-size: 32px;
    line-height: 1.1;
  }
  .strand-main-subtitle {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 24px;
  }
  .strand-action-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    gap: 12px;
  }
  .btn-strand-obsidian,
  .btn-strand-glass {
    width: 100%;
  }
  .strand-stage-wrapper {
    margin-top: 32px;
  }
  .strand-stage-window {
    border-radius: 16px;
  }
  .strand-stage-chrome,
  .strand-stage-header {
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .strand-stage-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 16px;
    gap: 10px;
  }
  .strand-pillars-container,
  .strand-pillars-section,
  .strand-bento-section,
  .strand-comparison-section,
  .strand-matrix-section,
  .strand-final-cta-section {
    margin: 48px auto 24px;
    padding: 0 16px;
  }
  .strand-section-title {
    font-size: 26px;
  }
  .strand-final-cta-card {
    padding: 36px 20px;
    border-radius: 18px;
  }
  .strand-cta-title {
    font-size: 24px;
  }
  .strand-cta-btns {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .strand-cta-btns button {
    width: 100%;
  }
}

/* ACCESSIBILITY: PREFERS-REDUCED-MOTION */
@media (prefers-reduced-motion: reduce) {
  .strand-top-pill,
  .btn-strand-obsidian,
  .btn-strand-glass,
  .fold-dock-tab,
  .fold-dock-item,
  .strand-pillar-card,
  .strand-card,
  .strand-bento-card,
  .bento-card {
    transition: none !important;
    transform: none !important;
  }
  .btn-strand-shine {
    display: none !important;
  }
  .stage-live-dot {
    animation: none !important;
  }
}

/* ACCESSIBILITY: PREFERS-REDUCED-TRANSPARENCY */
@media (prefers-reduced-transparency: reduce) {
  .strand-top-pill,
  .strand-stage-window,
  .fold-dock-bar,
  #heroFoldToolbar,
  .btn-strand-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: #FFFFFF !important;
  }
}




/* ==========================================================================
   PALLADIO FULL-BLEED PINNED MARGINS HERO (Responsive on All Zoom Levels)
   ========================================================================== */
.view-home {
  background-color: #F4F3EE !important;
  color: #0F172A;
  width: 100% !important;
  max-width: 100% !important;
  overflow-x: hidden !important;
}

/* 1. TOP NAVBAR: PINNED TO SCREEN EDGES */
.top-navbar {
  background: #F4F3EE !important;
  border-bottom: none !important;
  padding: 16px 28px 12px 28px !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.brand-section {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.brand-logo {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 28px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  cursor: pointer;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.brand-logo .dot {
  color: #10B981 !important;
  font-size: 14px !important;
}

.brand-divider,
#navProjectTitle,
#landingNavLinks,
#btnNavLogin,
#btnNavSignup {
  display: none !important;
}

.nav-right-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#btnNavEnterStudio {
  background: #2A3844 !important;
  color: #FAF8F5 !important;
  border-radius: 9999px !important;
  padding: 0 24px !important;
  height: 42px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: none !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12) !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
#btnNavEnterStudio:hover {
  background: #18232C !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;
}

.lang-toggle {
  background: rgba(0, 0, 0, 0.05) !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 9999px !important;
  padding: 3px !important;
}
.lang-btn {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 600 !important;
  padding: 3px 10px !important;
  border-radius: 9999px !important;
}

/* 2. FULL-BLEED HERO: PINNED TO 20PX MARGINS REGARDLESS OF ZOOM */
.palladio-hero-section {
  display: flex !important;
  justify-content: center !important;
  padding: 0 20px 24px 20px !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  background: #F4F3EE !important;
}

.palladio-hero-canvas {
  width: 100% !important;
  max-width: none !important; /* Never shrink or get boxed on zoom! */
  height: calc(100vh - 88px) !important;
  min-height: 640px !important;
  background: #18232C !important;
  border-radius: 28px !important;
  padding: 44px 58px 48px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.28), 0 0 0 1px rgba(0, 0, 0, 0.08) !important;
}

/* Background image pinned 100% to canvas borders */
.palladio-canvas-bg-img {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 32% !important;
  z-index: 0 !important;
  pointer-events: none !important;
}

.palladio-fresco-overlay {
  position: absolute !important;
  inset: 0 !important;
  pointer-events: none !important;
  background: radial-gradient(circle at 25% 40%, rgba(20, 30, 38, 0.15) 0%, rgba(16, 24, 32, 0.55) 100%) !important;
  mix-blend-mode: multiply !important;
  z-index: 1 !important;
}

.palladio-top-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  z-index: 2 !important;
  position: relative !important;
  width: fit-content !important;
  margin-bottom: 20px !important;
}

.palladio-top-plus {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FAF9F5 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}

.palladio-top-text {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: rgba(250, 249, 245, 0.85) !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
}

.palladio-hero-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: clamp(52px, 5.8vw, 92px) !important;
  font-weight: 400 !important;
  line-height: 1.01 !important;
  color: #FAF9F5 !important;
  letter-spacing: -0.025em !important;
  margin: 0 0 auto 0 !important;
  z-index: 2 !important;
  position: relative !important;
  max-width: 940px !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45) !important;
}

.palladio-hero-bottom-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  width: 100% !important;
  z-index: 2 !important;
  position: relative !important;
  gap: 40px !important;
  margin-top: 36px !important;
}

.palladio-bottom-left {
  max-width: 540px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 24px !important;
}

.palladio-hero-paragraph {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif !important;
  font-size: 15px !important;
  color: rgba(250, 249, 245, 0.9) !important;
  line-height: 1.62 !important;
  margin: 0 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}

.palladio-actions {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.palladio-btn-book {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 46px !important;
  padding: 0 24px !important;
  border-radius: 9999px !important;
  background: #FAF8F5 !important;
  color: #18232C !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
  text-decoration: none !important;
}
.palladio-btn-book:hover {
  background: #FFFFFF !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35) !important;
}

.palladio-btn-pricing {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 46px !important;
  padding: 0 22px !important;
  border-radius: 9999px !important;
  background: rgba(24, 35, 44, 0.65) !important;
  color: #FAF9F5 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  backdrop-filter: blur(12px) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}
.palladio-btn-pricing:hover {
  background: rgba(24, 35, 44, 0.85) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px) !important;
}

.palladio-btn-arrow {
  font-size: 14px !important;
  transition: transform 0.2s ease !important;
}
.palladio-btn-book:hover .palladio-btn-arrow,
.palladio-btn-pricing:hover .palladio-btn-arrow {
  transform: translateX(3px) !important;
}

/* 3. COMPACT FLOATING CASE STUDY CARD */
.palladio-floating-case-card {
  width: 300px !important;
  background: #EAE6DF !important;
  border-radius: 20px !important;
  padding: 14px !important;
  color: #18232C !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.45) !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  flex-shrink: 0 !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease !important;
}
.palladio-floating-case-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 25px 55px -10px rgba(0, 0, 0, 0.55) !important;
}

.palladio-case-card-link {
  text-decoration: none !important;
  color: inherit !important;
  display: block !important;
}

.palladio-case-thumb-wrap {
  width: 100% !important;
  height: 135px !important;
  border-radius: 13px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  background: #D5CEBF !important;
}

.palladio-case-thumb {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  filter: contrast(1.05) !important;
}

.palladio-case-body {
  display: flex !important;
  flex-direction: column !important;
}

.palladio-case-pill {
  display: inline-block !important;
  background: #18232C !important;
  color: #FAF9F5 !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  padding: 3px 9px !important;
  border-radius: 9999px !important;
  letter-spacing: 0.02em !important;
  margin-bottom: 8px !important;
  width: fit-content !important;
}

.palladio-case-desc {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 11.5px !important;
  line-height: 1.45 !important;
  color: #475569 !important;
  margin: 0 0 12px 0 !important;
  font-weight: 500 !important;
}

.palladio-case-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  padding-top: 10px !important;
  border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
}

.palladio-case-stat {
  display: flex !important;
  flex-direction: column !important;
}

.palladio-stat-val {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 26px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  line-height: 1.0 !important;
  display: block !important;
}

.palladio-stat-lbl {
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  font-size: 9.5px !important;
  color: #64748B !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  margin-top: 2px !important;
}

.palladio-case-circle-btn {
  width: 32px !important;
  height: 32px !important;
  border-radius: 50% !important;
  background: #DCD6CA !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #18232C !important;
  font-size: 14px !important;
  transition: all 0.2s ease !important;
}
.palladio-floating-case-card:hover .palladio-case-circle-btn {
  background: #18232C !important;
  color: #FAF9F5 !important;
  transform: translateX(2px) !important;
}

/* RESPONSIVE PALLADIO */
@media (max-width: 1024px) {
  .palladio-hero-canvas {
    padding: 36px 32px 40px !important;
    height: auto !important;
    min-height: auto !important;
  }
  .palladio-hero-bottom-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 32px !important;
  }
  .palladio-floating-case-card {
    width: 100% !important;
    max-width: 340px !important;
  }
}


/* ==========================================================================
   PALLADIO BENTO SECTION & LOGO RIBBON
   ========================================================================== */
.palladio-bento-wrapper {
  background: #F4F3EE !important;
  width: 100% !important;
  padding: 60px 20px 90px 20px !important;
  box-sizing: border-box !important;
}

.palladio-bento-container {
  max-width: 1360px !important;
  margin: 0 auto !important;
}

.palladio-bento-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  margin-bottom: 36px !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

.palladio-bento-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #18232C !important;
  margin-bottom: 10px !important;
}

.palladio-bento-tag .tag-dot {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #18232C !important;
  color: #F4F3EE !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.palladio-bento-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 46px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  line-height: 1.1 !important;
  margin: 0 !important;
  letter-spacing: -0.01em !important;
}

.palladio-bento-lead {
  font-size: 15px !important;
  color: #55606B !important;
  max-width: 460px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* 4-Column Bento Grid */
.palladio-bento-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 16px !important;
  margin-bottom: 20px !important;
}

.bento-card-palladio {
  background: rgba(255, 255, 255, 0.45) !important;
  border: 1px dashed #D2CEC2 !important;
  border-radius: 20px !important;
  padding: 22px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  min-height: 420px !important;
  box-sizing: border-box !important;
  transition: all 0.2s ease !important;
}

.bento-card-palladio:hover {
  background: rgba(255, 255, 255, 0.8) !important;
  border-color: #18232C !important;
  box-shadow: 0 8px 24px rgba(24, 35, 44, 0.05) !important;
}

/* Column 1: Art Card */
.bento-card-art {
  padding: 14px !important;
}

.bento-art-inner {
  position: relative !important;
  height: 230px !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  background: #243342 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.bento-art-img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  opacity: 0.75 !important;
  transition: transform 0.3s ease !important;
}

.bento-card-art:hover .bento-art-img {
  transform: scale(1.03) !important;
}

.bento-art-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(24,35,44,0.15) 0%, rgba(24,35,44,0.85) 100%) !important;
}

.bento-art-title {
  position: relative !important;
  z-index: 2 !important;
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 22px !important;
  color: #FAF9F5 !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  margin-bottom: 12px !important;
}

.bento-art-btn {
  position: relative !important;
  z-index: 2 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  padding: 7px 16px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.45) !important;
  color: #FAF9F5 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease !important;
}

.bento-art-btn:hover {
  background: #FAF9F5 !important;
  color: #18232C !important;
}

.bento-checklist {
  padding: 16px 8px 4px 8px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
}

.bento-check-row {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  font-size: 12.5px !important;
  color: #4A5562 !important;
  line-height: 1.35 !important;
  font-weight: 500 !important;
}

.bento-check-icon {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  border: 1px solid #B8B09F !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: #18232C !important;
  flex-shrink: 0 !important;
}

/* Columns 2, 3, 4: Stat Cards */
.bento-stat-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #2D3E4F !important;
  width: fit-content !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.bento-pill-sym {
  font-size: 11px !important;
  color: #00835C !important;
}

.bento-stat-num {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 64px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  line-height: 1 !important;
  margin: 14px 0 8px 0 !important;
  letter-spacing: -0.02em !important;
}

.bento-stat-desc {
  font-size: 13px !important;
  color: #64748B !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

/* Bottom Logo Ribbon */
.palladio-logo-ribbon {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin-top: 10px !important;
}

.logo-ribbon-pill-dark {
  background: #18232C !important;
  color: #F4F3EE !important;
  padding: 12px 24px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
}

.logo-ribbon-item {
  border: 1px dashed #D2CEC2 !important;
  border-radius: 14px !important;
  padding: 11px 20px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  background: rgba(255, 255, 255, 0.45) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  transition: all 0.2s ease !important;
}

.logo-ribbon-item:hover {
  background: #FFFFFF !important;
  border-color: #18232C !important;
  transform: translateY(-1px) !important;
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .palladio-bento-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 680px) {
  .palladio-bento-grid {
    grid-template-columns: 1fr !important;
  }
  .palladio-bento-header {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .palladio-bento-title {
    font-size: 36px !important;
  }
}


/* ==========================================================================
   PALLADIO ACCORDION: CUATRO PILARES DE RIGOR T?CNICO (FAQ REPLACEMENT)
   ========================================================================== */
.palladio-accordion-wrapper {
  background: #F4F3EE !important;
  width: 100% !important;
  padding: 60px 20px 90px 20px !important;
  box-sizing: border-box !important;
}

.palladio-accordion-container {
  max-width: 1360px !important;
  margin: 0 auto !important;
}

.palladio-acc-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
  margin-bottom: 36px !important;
  flex-wrap: wrap !important;
  gap: 24px !important;
}

.palladio-acc-tag {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
  color: #18232C !important;
  margin-bottom: 10px !important;
}

.palladio-acc-tag .tag-dot {
  width: 14px !important;
  height: 14px !important;
  border-radius: 50% !important;
  background: #18232C !important;
  color: #F4F3EE !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  font-weight: 700 !important;
}

.palladio-acc-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 46px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  line-height: 1.1 !important;
  letter-spacing: -0.01em !important;
  margin: 0 !important;
}

.palladio-acc-lead {
  font-size: 15px !important;
  color: #55606B !important;
  max-width: 480px !important;
  line-height: 1.55 !important;
  margin: 0 !important;
}

.palladio-acc-deck {
  display: flex !important;
  gap: 12px !important;
  height: 520px !important;
  width: 100% !important;
  align-items: stretch !important;
}

.palladio-acc-card {
  background: #FAF6ED !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 22px !important;
  position: relative !important;
  overflow: hidden !important;
  display: flex !important;
  cursor: pointer !important;
  transition: flex 0.55s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02) !important;
}

.palladio-acc-card:not(.active) {
  flex: 0 0 76px !important;
  width: 76px !important;
}

.palladio-acc-card:not(.active):hover {
  background: #F1ECE0 !important;
  border-color: rgba(24, 35, 44, 0.2) !important;
}

.palladio-acc-card:not(.active) .palladio-acc-open-content {
  display: none !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.palladio-acc-rail {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding: 18px 0 32px 0 !important;
  user-select: none !important;
}

.palladio-acc-rail-num {
  width: 38px !important;
  height: 26px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.12) !important;
  background: rgba(255, 255, 255, 0.6) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #55606B !important;
}

.palladio-acc-rail-label-box {
  flex: 1 !important;
  display: flex !important;
  align-items: flex-end !important;
  justify-content: center !important;
  padding-bottom: 20px !important;
}

.palladio-acc-rail-label {
  transform: rotate(-90deg) !important;
  transform-origin: center center !important;
  white-space: nowrap !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #18232C !important;
  letter-spacing: 0.01em !important;
}

.palladio-acc-card.active {
  flex: 1 1 0% !important;
  min-width: 0 !important;
  cursor: default !important;
  background: #FAF6ED !important;
}

.palladio-acc-card.active .palladio-acc-rail {
  display: none !important;
}

.palladio-acc-open-content {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  position: relative !important;
  animation: fadeInAcc 0.4s ease forwards !important;
}

@keyframes fadeInAcc {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.palladio-acc-text-col {
  width: 52% !important;
  height: 100% !important;
  padding: 38px 40px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  position: relative !important;
  z-index: 3 !important;
}

.palladio-acc-card-title {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 400 !important;
  color: #18232C !important;
  line-height: 1.15 !important;
  margin-bottom: 14px !important;
  letter-spacing: -0.01em !important;
}

.palladio-acc-card-desc {
  font-size: 13.5px !important;
  color: #55606B !important;
  line-height: 1.55 !important;
  max-width: 440px !important;
  margin: 0 !important;
}

.palladio-acc-offers-section {
  margin-top: 24px !important;
}

.palladio-acc-offers-label {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: #7A8793 !important;
  margin-bottom: 14px !important;
}

.palladio-acc-offer-item {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  margin-bottom: 10px !important;
  font-size: 13px !important;
  color: #2D3E4F !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
}

.palladio-acc-offer-bullet {
  width: 17px !important;
  height: 17px !important;
  border-radius: 50% !important;
  border: 1px solid #7A8793 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 10px !important;
  color: #18232C !important;
  flex-shrink: 0 !important;
}

.palladio-acc-art-col {
  position: absolute !important;
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: 54% !important;
  height: 100% !important;
  overflow: hidden !important;
  mask: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%) !important;
  -webkit-mask: linear-gradient(90deg, rgba(0,0,0,0) 0%, rgba(0,0,0,1) 40%) !important;
  pointer-events: none !important;
}

.palladio-acc-art-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

.palladio-acc-open-num-pill {
  position: absolute !important;
  top: 30px !important;
  right: 32px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(0, 0, 0, 0.15) !important;
  background: rgba(255, 255, 255, 0.7) !important;
  backdrop-filter: blur(8px) !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: #18232C !important;
  z-index: 4 !important;
}

.palladio-acc-footnote {
  margin-top: 24px !important;
  text-align: center !important;
  font-size: 13px !important;
  color: #7A8793 !important;
  font-style: italic !important;
}

@media (max-width: 1024px) {
  .palladio-acc-deck {
    flex-direction: column !important;
    height: auto !important;
  }
  .palladio-acc-card:not(.active) {
    flex: none !important;
    width: 100% !important;
    height: 56px !important;
  }
  .palladio-acc-rail {
    flex-direction: row !important;
    padding: 0 20px !important;
  }
  .palladio-acc-rail-label {
    transform: none !important;
  }
  .palladio-acc-rail-label-box {
    justify-content: flex-start !important;
    padding-bottom: 0 !important;
    margin-left: 14px !important;
  }
  .palladio-acc-text-col {
    width: 100% !important;
  }
  .palladio-acc-art-col {
    display: none !important;
  }
}


/* ==========================================================================
   PALLADIO 3-PROFILES GRID SECTION (Perfiles de Usuario)
   ========================================================================== */
.palladio-profiles-wrapper {
  background: #F4F3EE;
  padding: 80px 24px 100px;
  position: relative;
  z-index: 10;
}

.palladio-profiles-container {
  max-width: 1360px;
  margin: 0 auto;
}

.palladio-profiles-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.palladio-profiles-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18232C;
  margin-bottom: 12px;
}

.palladio-profiles-tag .tag-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #18232C;
  color: #F4F3EE;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.palladio-profiles-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  color: #18232C;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.palladio-profiles-lead {
  font-size: 15px;
  color: #55606B;
  max-width: 480px;
  line-height: 1.55;
  margin: 0;
}

.palladio-profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.palladio-profile-card {
  background: #ECE9DF;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 20px;
  padding: 14px 14px 22px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.palladio-profile-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(24, 35, 44, 0.07);
  border-color: rgba(24, 35, 44, 0.16);
}

.palladio-profile-thumb-wrap {
  position: relative;
  width: 100%;
  height: 250px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #DDD9CE;
}

.palladio-profile-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.palladio-profile-card:hover .palladio-profile-thumb {
  transform: scale(1.025);
}

.palladio-profile-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(24, 35, 44, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #F4F3EE;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.palladio-profile-badge svg {
  width: 11px;
  height: 11px;
  fill: currentColor;
  color: #55D6A9;
}

.palladio-profile-body {
  padding: 0 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
  justify-content: space-between;
}

.palladio-profile-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #18232C;
  line-height: 1.2;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.palladio-profile-desc {
  font-size: 13.5px;
  color: #55606B;
  line-height: 1.55;
  margin-bottom: 24px;
  flex: 1;
}

.palladio-profile-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 4px;
}

.palladio-profile-action-lbl {
  font-size: 13px;
  font-weight: 600;
  color: #18232C;
  transition: color 0.2s ease;
}

.palladio-profile-card:hover .palladio-profile-action-lbl {
  color: #0E7F5E;
}

.palladio-profile-circle-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.14);
  background: #FAF9F5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #18232C;
  transition: all 0.2s ease;
}

.palladio-profile-card:hover .palladio-profile-circle-btn {
  background: #18232C;
  color: #FAF9F5;
  border-color: #18232C;
  transform: translateX(2px);
}

@media (max-width: 1024px) {
  .palladio-profiles-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .palladio-profiles-header {
    flex-direction: column;
    align-items: flex-start;
  }
}


/* ==========================================================================
   PALLADIO CASOS DE ESTUDIO (#homeCases)
   ========================================================================== */
.palladio-cases-wrapper {
  background: #F4F3EE;
  padding: 80px 24px 70px;
  position: relative;
  z-index: 10;
}

.palladio-cases-container {
  max-width: 1360px;
  margin: 0 auto;
}

.palladio-cases-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  flex-wrap: wrap;
  gap: 24px;
}

.palladio-cases-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18232C;
  margin-bottom: 12px;
}

.palladio-cases-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  color: #18232C;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.palladio-cases-lead {
  font-size: 15px;
  color: #55606B;
  max-width: 480px;
  line-height: 1.55;
  margin: 0;
}

/* Featured Hero Case Card */
.palladio-featured-case-card {
  background: #FAF6ED;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 24px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.palladio-featured-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(24, 35, 44, 0.07);
}

.palladio-featured-case-content {
  padding: 40px 44px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.palladio-case-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.palladio-case-pill-dark {
  background: #18232C;
  color: #F4F3EE;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
}

.palladio-case-pill-green {
  background: #E8F5E9;
  color: #0E7F5E;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 12px;
  border-radius: 999px;
}

.palladio-featured-case-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 34px;
  font-weight: 400;
  line-height: 1.15;
  color: #18232C;
  margin-bottom: 14px;
}

.palladio-featured-case-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #55606B;
  margin-bottom: 24px;
}

.palladio-featured-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 28px;
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.palladio-feat-stat .stat-num {
  display: block;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  color: #18232C;
  line-height: 1;
}

.palladio-feat-stat .stat-lbl {
  font-size: 11.5px;
  font-weight: 600;
  color: #7A8691;
}

.palladio-featured-action-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.palladio-btn-case-cta {
  background: #18232C;
  color: #FAF9F5;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.palladio-btn-case-cta:hover {
  background: #0E7F5E;
  transform: translateX(2px);
}

.palladio-case-hint {
  font-size: 12px;
  color: #7A8691;
}

.palladio-featured-case-media {
  background: #E5E2D8;
  position: relative;
  overflow: hidden;
}

.palladio-featured-case-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.4s ease;
}

.palladio-featured-case-card:hover .palladio-featured-case-img {
  transform: scale(1.025);
}

/* Secondary Cases Grid */
.palladio-secondary-cases-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.palladio-sec-case-card {
  background: #ECE9DF;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 20px;
  padding: 16px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  text-decoration: none;
  color: inherit;
}

.palladio-sec-case-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(24, 35, 44, 0.06);
}

.palladio-sec-case-thumb-wrap {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  height: 140px;
  background: #DDD9CE;
}

.palladio-sec-case-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.palladio-sec-case-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(24, 35, 44, 0.85);
  color: #F4F3EE;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9.5px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.palladio-sec-case-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.palladio-sec-case-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 21px;
  font-weight: 400;
  color: #18232C;
  line-height: 1.2;
  margin-bottom: 6px;
}

.palladio-sec-case-desc {
  font-size: 12.5px;
  color: #55606B;
  line-height: 1.45;
  margin-bottom: 10px;
}

.palladio-sec-case-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.case-metric-highlight {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #0E7F5E;
}

.palladio-circle-arrow-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FAF9F5;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #18232C;
  text-decoration: none;
  transition: all 0.2s ease;
}

.palladio-sec-case-card:hover .palladio-circle-arrow-btn {
  background: #18232C;
  color: #FAF9F5;
  transform: translateX(2px);
}

/* ==========================================================================
   PALLADIO PLANES Y PRECIOS (#homePricing)
   ========================================================================== */
.palladio-pricing-wrapper {
  background: #F4F3EE;
  padding: 80px 24px 100px;
  position: relative;
  z-index: 10;
}

.palladio-pricing-container {
  max-width: 1360px;
  margin: 0 auto;
}

.palladio-pricing-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 32px;
  flex-wrap: wrap;
  gap: 24px;
}

.palladio-pricing-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #18232C;
  margin-bottom: 12px;
}

.palladio-pricing-title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 46px;
  font-weight: 400;
  color: #18232C;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.palladio-pricing-lead {
  font-size: 15px;
  color: #55606B;
  max-width: 480px;
  line-height: 1.55;
  margin: 0;
}

.palladio-pricing-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 40px;
}

.palladio-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.palladio-plan-card {
  background: #FAF6ED;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 22px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.palladio-plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(24, 35, 44, 0.08);
  border-color: rgba(24, 35, 44, 0.2);
}

.palladio-plan-card.featured {
  background: #FFFFFF;
  border-color: rgba(14, 127, 94, 0.35);
  box-shadow: 0 8px 28px rgba(14, 127, 94, 0.08);
}

.palladio-featured-pill {
  position: absolute;
  top: -12px;
  left: 32px;
  background: #0E7F5E;
  color: #FAF9F5;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 999px;
  box-shadow: 0 2px 8px rgba(14, 127, 94, 0.3);
}

.palladio-plan-name {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  color: #18232C;
  margin-bottom: 8px;
}

.palladio-plan-desc {
  font-size: 13.5px;
  color: #55606B;
  line-height: 1.5;
  min-height: 42px;
  margin-bottom: 20px;
}

.palladio-plan-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 4px;
}

.palladio-price-currency {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 28px;
  color: #18232C;
}

.palladio-price-amount {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 52px;
  color: #18232C;
  font-weight: 400;
  line-height: 1;
}

.palladio-price-period {
  font-size: 13px;
  font-weight: 600;
  color: #7A8691;
  margin-left: 4px;
}

.palladio-price-subtext {
  font-size: 11.5px;
  color: #7A8691;
  font-family: 'JetBrains Mono', monospace;
  margin-bottom: 24px;
}

.palladio-plan-features {
  border-top: 1px solid rgba(0, 0, 0, 0.07);
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.palladio-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: #38424B;
  line-height: 1.45;
}

.palladio-feature-item .feat-check {
  color: #0E7F5E;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
}

.palladio-plan-cta {
  margin-top: 20px;
}

.palladio-plan-btn {
  width: 100%;
  padding: 12px 20px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.palladio-plan-btn.outline {
  background: transparent;
  border: 1px solid rgba(24, 35, 44, 0.2);
  color: #18232C;
}

.palladio-plan-btn.outline:hover {
  background: #18232C;
  color: #FAF9F5;
}

.palladio-plan-btn.solid {
  background: #18232C;
  border: 1px solid #18232C;
  color: #FAF9F5;
  box-shadow: 0 4px 14px rgba(24, 35, 44, 0.15);
}

.palladio-plan-btn.solid:hover {
  background: #0E7F5E;
  border-color: #0E7F5E;
  transform: translateY(-1px);
}

@media (max-width: 1024px) {
  .palladio-featured-case-card {
    grid-template-columns: 1fr;
  }
  .palladio-featured-case-media {
    height: 240px;
  }
  .palladio-secondary-cases-grid {
    grid-template-columns: 1fr;
  }
  .palladio-pricing-grid {
    grid-template-columns: 1fr;
  }
}



/* ==========================================================================
   PORTAFOLIO & DASHBOARD REDESIGN (APPLE HIG & PALLADIO SPEC)
   ========================================================================== */
#viewDashboard {
  background: #FAF9F5 !important;
  min-height: calc(100vh - 65px);
  padding: 32px 32px 64px 32px;
  max-width: 1400px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

#viewDashboard .dashboard-header h1 {
  font-family: 'Instrument Serif', Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 400 !important;
  letter-spacing: -0.015em !important;
  color: #18232C !important;
  line-height: 1.15 !important;
  margin: 0 0 6px 0 !important;
}

#viewDashboard .dashboard-header p {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 13px !important;
  color: #64748B !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

#viewDashboard .table-card {
  background: #FFFFFF !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
  overflow: hidden !important;
  transition: box-shadow 0.2s ease !important;
}

#viewDashboard .table-toolbar {
  padding: 16px 20px !important;
  background: #FFFFFF !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
}

#viewDashboard .table-filters {
  display: inline-flex !important;
  align-items: center !important;
  background: #F4F3EE !important;
  padding: 3px !important;
  border-radius: 999px !important;
  gap: 3px !important;
  border: 1px solid rgba(0, 0, 0, 0.04) !important;
}

#viewDashboard .table-filters .segmented-btn {
  background: transparent !important;
  border: none !important;
  border-radius: 999px !important;
  padding: 6px 15px !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  color: #64748B !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

#viewDashboard .table-filters .segmented-btn:hover {
  color: #18232C !important;
  background: rgba(255, 255, 255, 0.6) !important;
}

#viewDashboard .table-filters .segmented-btn.active {
  background: #18232C !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  box-shadow: 0 2px 6px rgba(24, 35, 44, 0.15) !important;
}

#viewDashboard #inputSearchSystems {
  width: 240px !important;
  height: 36px !important;
  padding: 0 16px !important;
  background: #FAF9F5 !important;
  border: 1px solid rgba(0, 0, 0, 0.10) !important;
  border-radius: 999px !important;
  font-size: 12px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  color: #18232C !important;
  transition: all 0.2s ease !important;
  outline: none !important;
  box-sizing: border-box !important;
}

#viewDashboard #inputSearchSystems:focus {
  border-color: #0E7F5E !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(14, 127, 94, 0.12) !important;
}

#viewDashboard #btnDashInvite {
  height: 36px !important;
  padding: 0 13px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  border: 1px solid rgba(14, 127, 94, 0.35) !important;
  color: #0E7F5E !important;
  background: #F2FBF7 !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#viewDashboard #btnDashInvite:hover {
  background: #E6F7F0 !important;
  border-color: #0E7F5E !important;
}

#viewDashboard #btnDashNewSystem {
  height: 36px !important;
  padding: 0 15px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  background: #18232C !important;
  color: #FFFFFF !important;
  border: none !important;
  box-shadow: 0 2px 6px rgba(24, 35, 44, 0.15) !important;
  transition: all 0.15s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

#viewDashboard #btnDashNewSystem:hover {
  background: #253644 !important;
  transform: translateY(-1px) !important;
}

#viewDashboard .data-table {
  width: 100% !important;
  border-collapse: collapse !important;
  text-align: left !important;
}

#viewDashboard .data-table thead th {
  background: #FAF6ED !important;
  padding: 13px 18px !important;
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #7A8691 !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  border-top: none !important;
  white-space: nowrap !important;
}

#viewDashboard .data-table tbody td {
  padding: 16px 18px !important;
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
  vertical-align: middle !important;
  color: #18232C !important;
}

#viewDashboard .data-table tbody tr {
  transition: background-color 0.15s ease !important;
}

#viewDashboard .data-table tbody tr:hover {
  background-color: #FAF8F3 !important;
}

#viewDashboard .data-table tbody tr:last-child td {
  border-bottom: none !important;
}

#viewDashboard .mono {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  background: #F1EFEA !important;
  color: #334155 !important;
  padding: 4px 8px !important;
  border-radius: 6px !important;
  display: inline-block !important;
  letter-spacing: -0.01em !important;
  white-space: nowrap !important;
}

#viewDashboard .user-chip-mini {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 10px !important;
  font-weight: 600 !important;
  padding: 3px 8px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

#viewDashboard .badge-pill {
  font-family: 'Plus Jakarta Sans', -apple-system, sans-serif !important;
  font-size: 10.5px !important;
  font-weight: 600 !important;
  padding: 4px 10px !important;
  border-radius: 6px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  white-space: nowrap !important;
}

#viewDashboard .data-table td button {
  white-space: nowrap !important;
}


/* ==========================================================================
   SELECTOR DE BASES DE DATOS LCI (APPLE HIG SEGMENTED CONTROL)
   ========================================================================== */
.catalog-sources-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-sources-bar::-webkit-scrollbar {
  display: none;
}

.apple-segmented-control {
  display: inline-flex;
  background: var(--bg-card, #F4F3EE);
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--border-color, #E5E2D9);
  gap: 3px;
}

.apple-segmented-control .segment-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary, #5C6470);
  font-size: 11.5px;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s cubic-bezier(0.16, 1, 0.3, 1);
}

.apple-segmented-control .segment-btn:hover {
  color: var(--text-primary, #18232C);
  background: rgba(0, 0, 0, 0.03);
}

.apple-segmented-control .segment-btn:active {
  transform: scale(0.97);
}

.apple-segmented-control .segment-btn.active {
  background: #FFFFFF;
  color: var(--text-primary, #18232C);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 0.5px 1px rgba(0, 0, 0, 0.04);
}

.apple-segmented-control .segment-count {
  font-size: 9.5px;
  font-family: 'Fira Code', monospace;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted, #71717A);
  font-weight: 600;
}

.apple-segmented-control .segment-btn.active .segment-count {
  background: rgba(14, 127, 94, 0.12);
  color: #0E7F5E;
}

/* BADGES DE FUENTE DE ORIGEN LCI */
.badge-source {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-source-all {
  background: rgba(24, 35, 44, 0.08);
  border: 1px solid rgba(24, 35, 44, 0.2);
  color: #18232C;
}

.badge-source-ecoinvent {
  background: rgba(29, 78, 216, 0.08);
  border: 1px solid rgba(29, 78, 216, 0.22);
  color: #1D4ED8;
}

.badge-source-glad {
  background: rgba(67, 56, 202, 0.08);
  border: 1px solid rgba(67, 56, 202, 0.22);
  color: #4338CA;
}

.badge-source-oekobaudat {
  background: rgba(180, 83, 9, 0.08);
  border: 1px solid rgba(180, 83, 9, 0.22);
  color: #B45309;
}

.badge-source-ademe {
  background: rgba(14, 127, 94, 0.08);
  border: 1px solid rgba(14, 127, 94, 0.22);
  color: #0E7F5E;
}

.badge-source-custom {
  background: rgba(71, 85, 105, 0.08);
  border: 1px solid rgba(71, 85, 105, 0.22);
  color: #334155;
}
