:root {
  font-family: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #0f2942;
  background-color: #f2f6fb;
  --facture-bg: #f2f6fb;
  --facture-panel: #ffffff;
  --facture-card: #ffffff;
  --facture-border: #dbe6ef;
  --facture-muted: #6b7a90;
  --facture-accent: #00a6c8;
  --facture-accent-2: #ff8a3c;
  --facture-soft: #f6fbff;
  --facture-success: #1f9d68;
  --facture-success-bg: #dff5eb;
  --facture-danger: #dc3545;
  --facture-danger-bg: #fde8ea;
}

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

body {
  min-height: 100vh;
  background: linear-gradient(180deg, #f7fbff 0%, #eef3fa 70%);
  color: #0f2942;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 1.5rem clamp(0.75rem, 2vw, 2rem);
}

#root {
  width: min(1400px, 100%);
}

.app-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

.facture-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.5rem;
  padding: 1.75rem 2.25rem;
  background: var(--facture-panel);
  border: 1px solid var(--facture-border);
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(16, 50, 90, 0.12);
}

.facture-header h1 {
  font-size: clamp(1.5rem, 2.3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.03em;
}

.facture-header p {
  margin-top: 0.25rem;
  color: var(--facture-muted);
  max-width: 620px;
  line-height: 1.4;
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.badge-pill {
  padding: 0.45rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(0, 166, 200, 0.15);
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--facture-accent);
  background: rgba(0, 166, 200, 0.08);
}

.layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: 280px minmax(0, 1fr);
  align-items: start;
  width: 100%;
}

@media (max-width: 1080px) {
  .layout {
    grid-template-columns: 1fr;
  }
}

.panel {
  border-radius: 28px;
  border: 1px solid var(--facture-border);
  background: var(--facture-panel);
  box-shadow: 0 12px 30px rgba(16, 50, 90, 0.08);
  padding: 1.5rem;
  min-height: calc(100vh - 180px);
}

.panel-list {
  background: var(--facture-panel);
  max-height: calc(100vh - 140px);
  display: flex;
  flex-direction: column;
}

.panel-detail {
  background: var(--facture-panel);
  overflow-y: auto;
  max-height: calc(100vh - 140px);
}

.panel-header {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.search-box {
  flex: 1;
  position: relative;
}

.search-box input {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--facture-border);
  background: var(--facture-soft);
  padding: 0.85rem 1rem 0.85rem 2.5rem;
  color: #0f2942;
  font-size: 0.95rem;
}

.search-box svg {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  stroke: var(--facture-muted);
}

.result-count {
  font-size: 0.85rem;
  color: var(--facture-muted);
  min-width: 80px;
  text-align: left;
}

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

.material-select,
.filter-select {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--facture-border);
  background: var(--facture-soft);
  color: #0f2942;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.78rem;
  color: var(--facture-muted);
}

.slider-control input[type='range'] {
  accent-color: var(--facture-teal);
}

.part-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
  overflow-y: auto;
  padding-right: 0.25rem;
  min-height: 0;
}

.part-tile {
  border-radius: 20px;
  border: 1px solid var(--facture-border);
  padding: 1rem 1.1rem;
  background: var(--facture-card);
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: left;
}

.part-tile:hover,
.part-tile:focus-visible {
  border-color: var(--facture-accent);
  box-shadow: 0 10px 18px rgba(0, 166, 200, 0.18);
}

.part-tile.active {
  border-color: var(--facture-accent);
  box-shadow: 0 12px 28px rgba(0, 166, 200, 0.25);
}

.part-tile h3 {
  font-size: 1rem;
  margin-bottom: 0.2rem;
}

.part-tile p {
  font-size: 0.86rem;
  color: var(--facture-muted);
}

.empty-state {
  text-align: center;
  color: var(--facture-muted);
  margin-top: 4rem;
  line-height: 1.5;
}

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

.detail-card {
  border-radius: 20px;
  border: 1px solid var(--facture-border);
  background: var(--facture-soft);
  padding: 1rem;
}

.detail-card h4 {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  color: var(--facture-muted);
  margin-bottom: 0.45rem;
}

.detail-card p {
  font-weight: 600;
  color: #0f2942;
}

.pdf-link {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
  font-weight: 500;
  color: var(--facture-accent);
  margin-top: 0.75rem;
  text-decoration: none;
}

.toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--facture-muted);
}

.toggle input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--facture-accent);
}

.similar-section h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
  font-weight: 500;
}

.similar-section .hint {
  font-size: 0.85rem;
  color: var(--facture-muted);
  margin-bottom: 0.75rem;
}

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

.similar-card {
  border-radius: 20px;
  border: 1px solid var(--facture-border);
  padding: 1.1rem;
  background: var(--facture-card);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.similar-card.active {
  border-color: var(--facture-accent);
  transform: translateY(-2px);
}

.similar-card .score {
  font-size: 2.4rem;
  font-weight: 600;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--facture-accent-2);
}

.similar-card .score span {
  font-size: 0.85rem;
  color: var(--facture-muted);
}

.properties {
  color: var(--facture-muted);
  font-size: 0.9rem;
  line-height: 1.5;
  margin-top: 0.5rem;
}

.properties.muted {
  color: #9ba9bc;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(0, 166, 200, 0.2);
  padding: 0.2rem 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: rgba(0, 166, 200, 0.12);
  color: var(--facture-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.chip.match {
  background: var(--facture-success-bg);
  border-color: rgba(31, 157, 104, 0.4);
  color: var(--facture-success);
}

.chip-check {
  font-size: 0.75rem;
}

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

.preview-header h3 {
  font-size: 1.1rem;
  font-weight: 500;
  margin: 0;
}

.compare-ai-btn {
  font-size: 0.85rem;
}

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

.preview-card {
  border: 1px solid var(--facture-border);
  border-radius: 20px;
  padding: 0.75rem;
  background: var(--facture-card);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.preview-card h4 {
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--facture-muted);
}

.pdf-preview {
  border: 1px solid var(--facture-border);
  border-radius: 12px;
  aspect-ratio: 1.414 / 1;
  min-height: 500px;
  width: 100%;
}

.comparison-section {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.comparison-table-wrapper {
  border: 1px solid var(--facture-border);
  border-radius: 20px;
  padding: 1rem;
  background: var(--facture-soft);
}

.comparison-table-wrapper h3 {
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid var(--facture-border);
}

.comparison-table thead th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--facture-muted);
}

.comparison-table .status-col {
  text-align: center;
}

.comparison-table tbody th {
  font-weight: 600;
  color: #0f2942;
  width: 30%;
}

.comparison-table td {
  color: var(--facture-muted);
}

.status-cell {
  text-align: center;
  width: 70px;
}

.status-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--facture-success-bg);
  color: var(--facture-success);
  font-weight: 700;
}

.shared-chips {
  margin-top: 1.25rem;
}

.shared-chips h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--facture-muted);
  margin-bottom: 0.35rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--facture-gold);
  background: rgba(255, 179, 71, 0.08);
  margin-top: 0.6rem;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  border-radius: 12px;
  border: 1px solid var(--facture-border);
  background: var(--facture-panel);
  color: #0f2942;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn:hover {
  border-color: var(--facture-accent);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--facture-accent);
  border-color: var(--facture-accent);
  color: white;
}

.btn-primary:hover {
  background: #008fa8;
  border-color: #008fa8;
}

.btn-secondary {
  background: var(--facture-soft);
  border-color: var(--facture-border);
  color: var(--facture-muted);
}

.btn-secondary:hover {
  background: var(--facture-panel);
  color: #0f2942;
}

.btn-icon {
  padding: 0.5rem;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
}

.btn-icon:hover {
  background: var(--facture-soft);
  border-color: var(--facture-border);
}

.btn-icon svg {
  display: block;
}

/* ============ Modal / Dialog ============ */

.modal {
  border: none;
  border-radius: 24px;
  padding: 0;
  max-width: 640px;
  width: calc(100% - 2rem);
  background: var(--facture-panel);
  box-shadow: 0 25px 50px rgba(16, 50, 90, 0.25);
}

dialog.modal[open] {
  display: flex;
  flex-direction: column;
  position: fixed !important;
  inset: 0 !important;
  margin: auto !important;
  max-height: 90vh;
  overflow-y: auto;
}

.modal::backdrop {
  background: rgba(15, 41, 66, 0.5);
  backdrop-filter: blur(4px);
}

.modal-content {
  padding: 1.5rem;
}

.modal-sm {
  max-width: 420px;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.modal-header h2 {
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============ Dropzone ============ */

.dropzone {
  border: 2px dashed var(--facture-border);
  border-radius: 16px;
  padding: 3rem 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  background: var(--facture-soft);
}

.dropzone:hover,
.dropzone.dragover {
  border-color: var(--facture-accent);
  background: rgba(0, 166, 200, 0.05);
}

.dropzone svg {
  color: var(--facture-muted);
  margin-bottom: 1rem;
}

.dropzone p {
  color: #0f2942;
  font-weight: 500;
  margin-bottom: 0.25rem;
}

.dropzone .hint {
  font-size: 0.85rem;
  color: var(--facture-muted);
  font-weight: 400;
}

/* ============ Form Styles ============ */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 480px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
}

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

.form-group-full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--facture-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 0.65rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--facture-border);
  background: var(--facture-soft);
  color: #0f2942;
  font-size: 0.95rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--facture-accent);
  box-shadow: 0 0 0 3px rgba(0, 166, 200, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-group .hint {
  font-size: 0.8rem;
  color: var(--facture-muted);
  margin-top: 0.25rem;
}

.form-group .hint a {
  color: var(--facture-accent);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: #0f2942;
  text-transform: none;
  letter-spacing: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--facture-accent);
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--facture-border);
}

/* ============ Loading / Spinner ============ */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--facture-border);
  border-top-color: var(--facture-accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
}

.loading-message {
  color: var(--facture-muted);
  font-size: 0.95rem;
}

/* ============ Duplicate Section ============ */

.duplicate-section {
  padding: 2rem;
  text-align: center;
}

.duplicate-info {
  background: var(--facture-soft);
  border-radius: 12px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.duplicate-info p {
  margin: 0.25rem 0;
  color: var(--facture-muted);
}

.duplicate-info strong {
  color: #0f2942;
}

.duplicate-actions {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

/* ============ Settings Content ============ */

.settings-content {
  padding-top: 0.5rem;
}

/* ============ Overlay ============ */

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 41, 66, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.overlay.hidden {
  display: none;
}

.overlay-content {
  background: var(--facture-panel);
  border-radius: 24px;
  padding: 2.5rem 3rem;
  text-align: center;
  box-shadow: 0 25px 50px rgba(16, 50, 90, 0.3);
  max-width: 400px;
  width: calc(100% - 2rem);
}

.overlay-content h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.25rem;
}

.overlay-content p {
  color: var(--facture-muted);
  margin-bottom: 1.25rem;
}

.overlay-content .spinner {
  margin: 0 auto;
}

/* ============ Progress Bar ============ */

.progress-bar {
  height: 8px;
  background: var(--facture-soft);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--facture-accent);
  border-radius: 4px;
  width: 0%;
  transition: width 0.3s ease;
}

/* ============ Compare Dialog ============ */

.modal-lg {
  max-width: 90vw;
  width: 1400px;
  max-height: 95vh;
}

.compare-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .compare-container {
    grid-template-columns: 1fr;
  }
}

.compare-side h3 {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--facture-accent);
}

.compare-dropzone {
  border: 2px dashed var(--facture-border);
  border-radius: 16px;
  padding: 1rem;
  background: var(--facture-soft);
  transition: all 0.2s ease;
  cursor: pointer;
}

.compare-dropzone:hover,
.compare-dropzone.dragover {
  border-color: var(--facture-accent);
  background: rgba(0, 166, 200, 0.05);
}

.compare-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--facture-border);
  background: var(--facture-panel);
  color: #0f2942;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.compare-preview {
  height: 280px;
  border-radius: 12px;
  background: var(--facture-panel);
  border: 1px solid var(--facture-border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.compare-preview iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.compare-preview .placeholder {
  color: var(--facture-muted);
  font-size: 0.9rem;
}

.compare-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--facture-border);
  border-bottom: 1px solid var(--facture-border);
}

.language-selector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.language-selector label {
  font-size: 0.85rem;
  color: var(--facture-muted);
  white-space: nowrap;
}

.language-selector select {
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--facture-border);
  background: var(--facture-soft);
  color: #0f2942;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 0.85rem 2rem;
  font-size: 1rem;
}

/* ============ Analysis Section ============ */

.analysis-section {
  margin-top: 1.5rem;
}

.analysis-section h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--facture-accent);
}

.analysis-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  gap: 1rem;
}

.analysis-loading p {
  color: var(--facture-muted);
}

.analysis-error {
  background: var(--facture-danger-bg);
  border: 1px solid var(--facture-danger);
  border-radius: 12px;
  padding: 1rem;
  color: var(--facture-danger);
}

.analysis-result {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Metrics Cards */
.analysis-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.metric-card {
  background: var(--facture-panel);
  border: 1px solid var(--facture-border);
  border-radius: 16px;
  padding: 1.25rem;
  text-align: center;
}

.metric-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--facture-muted);
  margin-bottom: 0.5rem;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.2;
}

.metric-value span {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--facture-muted);
}

.metric-desc {
  font-size: 0.85rem;
  color: var(--facture-muted);
  margin-top: 0.35rem;
}

.score-high {
  color: var(--facture-success);
}

.score-medium {
  color: var(--facture-accent-2);
}

.score-low {
  color: var(--facture-danger);
}

.cost-value {
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.cheaper-badge {
  background: var(--facture-success-bg);
  color: var(--facture-success);
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 1rem;
  font-weight: 600;
}

.analysis-cost-factors {
  background: rgba(255, 138, 60, 0.08) !important;
  border: 1px solid rgba(255, 138, 60, 0.2);
}

.analysis-cost-factors h4 {
  color: var(--facture-accent-2) !important;
}

.analysis-cost-factors li::before {
  content: "$";
  color: var(--facture-accent-2);
}

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

.cache-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  background: var(--facture-soft);
  border: 1px solid var(--facture-border);
  border-radius: 999px;
  font-size: 0.75rem;
  color: var(--facture-muted);
}

.cache-indicator svg {
  color: var(--facture-success);
}

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

.analysis-result section {
  background: var(--facture-soft);
  border-radius: 12px;
  padding: 1rem;
}

.analysis-result h4 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--facture-accent);
  margin-bottom: 0.5rem;
}

.analysis-summary p {
  color: #0f2942;
  line-height: 1.6;
}

.analysis-differences ul,
.analysis-similarities ul {
  list-style: none;
  padding: 0;
}

.analysis-differences li,
.analysis-similarities li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--facture-muted);
  line-height: 1.5;
}

.analysis-differences li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--facture-accent-2);
  font-weight: bold;
}

.analysis-similarities li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--facture-success);
}

.analysis-recommendations {
  background: rgba(0, 166, 200, 0.08) !important;
  border: 1px solid rgba(0, 166, 200, 0.2);
}

.analysis-recommendations p {
  color: #0f2942;
  line-height: 1.6;
}

/* Small spinner for buttons */
.spinner-sm {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* ============ Hidden Utility ============ */

.hidden {
  display: none !important;
}
