:root {
  --red:        #D01B0A;
  --red-light:  rgba(208,27,10,.08);
  --red-mid:    rgba(208,27,10,.14);
  --dark:       #111111;
  --sidebar-bg: #141414;
  --main-bg:    #F5F4F1;
  --card-bg:    #FFFFFF;
  --border:     #E5E3DC;
  --text-1:     #1A1A1A;
  --text-2:     #6B6B6B;
  --text-3:     #ABABAB;
  /* compatibilite anciens styles */
  --gray:       #555;
  --gray-light: #aaa;
  --bg:         #F5F4F1;
  --border-dark: rgba(255,255,255,.07);
  --focus: rgba(208,27,10,.25);
}

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

body {
  font-family: Calibri, Arial, sans-serif;
  background: var(--main-bg);
  min-height: 100vh;
  margin: 0;
}

/* ── APP SHELL ── */
.app {
  display: none;
  height: 100vh;
  overflow: hidden;
}
.app.active { display: flex; }

/* ── MAIN CONTENT AREA ── */
.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── TOPBAR ── */
.topbar {
  height: 52px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 24px;
  gap: 12px;
  flex-shrink: 0;
}
.topbar-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
}
.topbar-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f4f4f4;
  border-radius: 20px;
  padding: 5px 10px 5px 5px;
  font-size: 12px;
  color: var(--text-2);
  flex-shrink: 0;
}

/* ── SCREEN AREA ── */
.screen-area {
  flex: 1;
  overflow-y: auto;
  position: relative;
}
.screen {
  display: none;
  padding: 32px 40px;
  min-height: 100%;
}
.screen.active { display: block; animation: fadeUp .2s ease forwards; }

/* Wizard screen centers content */
#screen-wizard {
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px;
}
#screen-wizard.active { display: flex; }
.wizard-wrap { width: 100%; max-width: 580px; }

/* ── CARD ── */
.card {
  background: #fff;
  border-radius: 12px;
  width: 100%;
  padding: 32px 36px 28px;
  border: 1px solid var(--border);
}
.wizard-wrap .card { box-shadow: 0 4px 20px rgba(0,0,0,.08); }

/* ── HEADER ── */
.card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
.logo-badge {
  width: 36px; height: 36px;
  background: var(--red);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-badge svg { width: 20px; height: 20px; fill: #fff; }
.card-title   { font-size: 16px; font-weight: 700; color: var(--dark); }
.card-subtitle { font-size: 12px; color: var(--gray-light); margin-top: 1px; }

.user-chip {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 7px;
  background: #f4f4f4;
  border-radius: 20px;
  padding: 5px 10px 5px 5px;
  font-size: 12px;
  color: var(--gray);
  flex-shrink: 0;
}
.user-avatar {
  width: 22px; height: 22px;
  background: var(--red);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

/* ── PROGRESS BAR ── */
.progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}
.prog-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  position: relative;
  cursor: pointer;
}
.prog-dot {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: #eee;
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #bbb;
  transition: background .2s, color .2s, transform .2s;
  border: 2px solid #eee;
}
.prog-item:hover .prog-dot { border-color: #ccc; }
.prog-item.active  .prog-dot { background: var(--red); color: #fff; border-color: var(--red); transform: scale(1.1); }
.prog-item.done    .prog-dot { background: #fff; color: var(--red); border-color: var(--red); }
.prog-label {
  font-size: 9px;
  color: #bbb;
  white-space: nowrap;
  letter-spacing: .02em;
}
.prog-item.active .prog-label { color: var(--red); font-weight: 700; }
.prog-item.done   .prog-label { color: var(--gray-light); }

.prog-line {
  flex: 1;
  height: 1.5px;
  background: #eee;
  margin-bottom: 16px;
  transition: background .2s;
  min-width: 12px;
}
.prog-line.done { background: var(--red); opacity: .35; }

/* ── STEPS ── */
.step { display: none; }
.step.active { display: block; animation: fadeUp .25s ease forwards; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.step-heading { font-size: 18px; font-weight: 700; color: var(--dark); margin-bottom: 5px; }
.step-desc    { font-size: 13px; color: var(--gray); margin-bottom: 22px; line-height: 1.5; }

/* ── SIDEBAR ── */
#sidebar {
  width: 220px;
  background: var(--sidebar-bg);
  color: #fff;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  transition: transform .22s cubic-bezier(.4,0,.2,1);
  overflow: hidden;
}
.sidebar-header {
  display: flex; align-items: center; justify-content: center;
  padding: 20px 16px 16px;
  border-bottom: 1px solid var(--border-dark);
}
.sidebar-header img { height: 52px; width: auto; display: block; }
.logo-mark { width: 30px; height: 30px; background: var(--red); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo-mark svg { width: 18px; height: 18px; fill: #fff; }
.sidebar-brand { font-size: 13px; font-weight: 700; letter-spacing: .3px; color: #fff; }
.sidebar-brand span { color: var(--red); }
.sidebar-nav { flex: 1; padding: 10px 8px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; }
.sidebar-nav-section { font-size: 8pt; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: rgba(255,255,255,.28); padding: 10px 8px 4px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px; padding: 9px 10px;
  border-radius: 7px; cursor: pointer; font-size: 10.5pt; color: rgba(255,255,255,.6);
  background: none; border: none; font-family: inherit; width: 100%; text-align: left;
  transition: background .12s, color .12s; position: relative;
}
.sidebar-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sidebar-link.active { background: var(--red-light); color: #fff; }
.sidebar-link.active::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 2.5px; background: var(--red); border-radius: 0 2px 2px 0; }
.sidebar-link svg { flex-shrink: 0; opacity: .7; }
.sidebar-link:hover svg, .sidebar-link.active svg { opacity: 1; }
.sidebar-footer { padding: 10px 8px; border-top: 1px solid var(--border-dark); }
.sidebar-footer-user { padding: 6px 10px 10px; font-size: 11px; color: rgba(255,255,255,.45); display: flex; align-items: center; gap: 8px; }
.sidebar-footer-avatar { width: 24px; height: 24px; border-radius: 50%; background: var(--red); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; flex-shrink: 0; }
.sidebar-logout { color: rgba(255,255,255,.4); }
.sidebar-logout:hover { background: rgba(255,255,255,.05); color: #ff6b6b; }

/* Mobile hamburger */
#sidebar-toggle {
  position: fixed; left: 12px; top: 12px; z-index: 299;
  background: var(--sidebar-bg); border: 1px solid rgba(255,255,255,.12);
  color: #fff; border-radius: 8px; padding: 8px; cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
#sidebar-toggle.visible { display: flex; }
#sidebar-toggle:hover { background: #222; }

/* Overlay mobile */
#sidebar-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  z-index: 299;
}
#sidebar-overlay.visible { display: block; }

/* Legacy screen IDs */
#home-screen, #archives-screen, #dev-screen, #barometer-screen, #admin-screen, #dashboard-screen {
  display: none;
  padding: 32px 40px;
}
#home-screen.active, #archives-screen.active, #dev-screen.active,
#barometer-screen.active, #admin-screen.active, #dashboard-screen.active {
  display: block;
  animation: fadeUp .2s ease forwards;
}
/* Tool screen wrapper */
#tool-screen {
  display: none;
  align-items: center; justify-content: center;
  padding: 32px 24px;
  min-height: 100%;
}
#tool-screen.active { display: flex; }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  #sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 400;
    transform: translateX(-220px);
    transition: transform .22s cubic-bezier(.4,0,.2,1);
  }
  #sidebar.sb-mobile-open { transform: translateX(0); }
  .main-content { width: 100%; }
  #sidebar-toggle { display: flex !important; }
  .screen, #home-screen, #archives-screen, #dev-screen,
  #barometer-screen, #admin-screen, #dashboard-screen { padding: 20px 16px; }
}

/* ── HOME / DASHBOARD ── */
#tool-screen .card { max-width: 480px; }
.home-greeting { font-size: 13pt; font-weight: 600; margin-bottom: 4px; }
.home-sub { font-size: 10.5pt; color: #888; margin-bottom: 24px; }
.home-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.home-date { font-size: 12px; color: var(--text-3); margin-bottom: 20px; }
.home-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 24px 16px; border-radius: 10px; border: 1.5px solid #e0e0e0;
  background: white; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  font-family: inherit; position: relative;
}
.home-btn:hover:not(.home-btn-disabled) { border-color: var(--red); box-shadow: 0 2px 12px rgba(208,27,10,.1); }
.home-btn svg { color: var(--red); }
.home-btn-label { font-size: 11pt; font-weight: 600; color: var(--dark); }
.home-btn-sub { font-size: 9pt; color: #999; text-align: center; }
.home-btn-disabled { opacity: .45; cursor: not-allowed; }
.home-btn-disabled svg { color: #aaa; }
.soon-badge {
  position: absolute; top: 10px; right: 10px;
  font-size: 7.5pt; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  background: #f0f0f0; color: #999; border-radius: 4px; padding: 2px 6px;
}
/* Tool cards */
.tool-card {
  background: var(--card-bg); border: 1.5px solid var(--border); border-radius: 14px;
  padding: 22px 20px; cursor: pointer; position: relative;
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: flex; flex-direction: column; gap: 8px;
}
.tool-card:hover { border-color: var(--red); box-shadow: 0 4px 20px rgba(208,27,10,.1); transform: translateY(-1px); }
.tool-card.featured { border-color: var(--red); background: linear-gradient(135deg,#fff 80%,rgba(208,27,10,.04)); }
.tool-status { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 2px 8px; border-radius: 20px; display: inline-block; align-self: flex-start; }
.ts-live { background: #dcfce7; color: #166534; }
.ts-beta { background: #fef3c7; color: #92400e; }
.ts-wip  { background: #f0f0f0; color: #aaa; }
.tool-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--red-light); display: flex; align-items: center; justify-content: center; margin-top: 4px; }
.tool-icon svg { color: var(--red); }
.tool-name { font-size: 14px; font-weight: 700; color: var(--text-1); }
.tool-desc { font-size: 12px; color: var(--text-2); line-height: 1.4; }
.pipeline-card { background: var(--card-bg); border: 1px solid var(--border); border-radius: 10px; padding: 16px; }
.pipeline-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 8px; }
.pipeline-value { font-size: 26px; font-weight: 800; color: var(--text-1); }
.pipeline-filter { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--card-bg); color: var(--text-2); cursor: pointer; transition: all .15s; }
.pipeline-filter:hover { border-color: var(--red); color: var(--red); }
.pipeline-filter.active { background: var(--dark); border-color: var(--dark); color: #fff; }

/* ── SHARED FORM ── */
.field-label { font-size: 12px; font-weight: 700; color: var(--dark); margin-bottom: 6px; display: block; }

.pwd-wrap { position: relative; margin-bottom: 12px; }
.pwd-wrap input {
  width: 100%;
  padding: 11px 42px 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  letter-spacing: .1em;
  outline: none;
  transition: border-color .2s;
}
.pwd-wrap input:focus { border-color: var(--red); }
.pwd-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; padding: 2px;
  color: var(--gray-light); display: flex; align-items: center;
}
.pwd-toggle:hover { color: var(--gray); }

/* ── RADIO CARDS ── */
.radio-cards { display: flex; flex-direction: column; gap: 10px; }

.radio-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 2px solid #e8e8e8;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
  user-select: none;
  position: relative;
}
.radio-card:hover:not(.disabled) { border-color: #ccc; background: #fafafa; }
.radio-card.selected { border-color: var(--red); background: rgba(208,27,10,.04); }
.radio-card.disabled { opacity: .5; cursor: default; }

.radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid #ccc;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: border-color .18s;
}
.radio-card.selected .radio-dot { border-color: var(--red); }
.radio-dot::after {
  content: '';
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--red);
  opacity: 0;
  transition: opacity .18s;
}
.radio-card.selected .radio-dot::after { opacity: 1; }

.radio-card-inner { flex: 1; }
.radio-card-title  { font-size: 14px; font-weight: 700; color: var(--dark); }
.radio-card-detail { font-size: 12px; color: var(--gray-light); margin-top: 2px; }

.badge {
  font-size: 10px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 20px;
  flex-shrink: 0;
}
.badge-red   { background: rgba(208,27,10,.1); color: var(--red); }
.badge-gray  { background: #f0f0f0; color: #999; }

/* ── TOGGLE SWITCH ── */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 0;
  border-bottom: 1px solid #f0f0f0;
}
.toggle-row:last-child { border-bottom: none; }
.toggle-label { font-size: 14px; font-weight: 700; color: var(--dark); }
.toggle-sub   { font-size: 12px; color: var(--gray-light); margin-top: 2px; }

.toggle {
  position: relative;
  width: 42px; height: 24px;
  flex-shrink: 0;
}
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #ddd;
  border-radius: 24px;
  cursor: pointer;
  transition: background .2s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform .2s;
}
.toggle input:checked + .toggle-slider { background: var(--red); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── CLIENT AUTOCOMPLETE ── */
.client-search-wrap { position: relative; margin-bottom: 16px; }
.client-search-icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: #aaa; pointer-events: none; }
.client-search-input {
  width: 100%; padding: 9px 12px 9px 36px; border: 1.5px solid #ddd;
  border-radius: 8px; font-size: 13.5px; font-family: inherit; color: var(--dark);
  outline: none; box-sizing: border-box; transition: border-color .2s;
}
.client-search-input:focus { border-color: var(--red); }
.client-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: white; border: 1.5px solid #ddd; border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,.1); z-index: 200;
  max-height: 220px; overflow-y: auto; display: none;
}
.client-dropdown.open { display: block; }
.client-option { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid #f0f0f0; }
.client-option:last-child { border-bottom: none; }
.client-option:hover { background: #fafafa; }
.client-opt-name { font-size: 13px; font-weight: 600; color: var(--dark); }
.client-opt-sub { font-size: 11px; color: #aaa; margin-top: 2px; }
.client-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff5f5; border: 1.5px solid var(--red); border-radius: 6px;
  padding: 5px 10px; font-size: 12px; font-weight: 600; color: var(--red);
  margin-bottom: 14px;
}
.client-badge-clear {
  background: none; border: none; cursor: pointer; color: var(--red);
  padding: 0; line-height: 1; font-size: 16px; margin-top: -1px;
}

/* ── FORM FIELDS ── */
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.field-grid .field-full { grid-column: 1 / -1; }

.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: 12px; font-weight: 700; color: var(--dark); }
.field label .req { color: var(--red); margin-left: 2px; }
.field label .opt { font-weight: 400; color: var(--gray-light); font-size: 11px; margin-left: 4px; }

.field input,
.field textarea {
  padding: 9px 12px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-size: 13.5px;
  font-family: inherit;
  color: var(--dark);
  outline: none;
  transition: border-color .2s;
  width: 100%;
  background: #fff;
}
.field input:focus, .field textarea:focus { border-color: var(--red); }
.field textarea { resize: vertical; min-height: 72px; line-height: 1.5; }

/* Champ montant avec prefix € */
.input-prefix { position: relative; }
.input-prefix input { padding-left: 28px; }
.input-prefix::before {
  content: '€';
  position: absolute;
  left: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--gray-light);
  pointer-events: none;
}
.input-suffix { position: relative; }
.input-suffix input { padding-right: 32px; }
.input-suffix::after {
  content: '%';
  position: absolute;
  right: 11px; top: 50%; transform: translateY(-50%);
  font-size: 13px; color: var(--gray-light);
  pointer-events: none;
}

/* Calcul live */
.calc-box {
  background: #f8f8f8;
  border-radius: 8px;
  padding: 14px 16px;
  margin-top: 14px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.calc-item { text-align: center; }
.calc-label { font-size: 10px; color: var(--gray-light); font-weight: 700; letter-spacing: .05em; margin-bottom: 3px; }
.calc-value { font-size: 15px; font-weight: 700; color: var(--dark); }
.calc-value.highlight { color: var(--red); }

.acompte-section {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #f0f0f0;
  display: none;
}
.acompte-section.visible { display: block; }

/* ── BUTTONS ── */
.btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 11px 22px;
  border-radius: 8px;
  font-size: 14px; font-family: inherit; font-weight: 600;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .1s;
}
.btn:active { transform: scale(.97); }
.btn-primary   { background: var(--red); color: #fff; }
.btn-primary:hover { opacity: .88; }
.btn-secondary { background: #f0f0f0; color: var(--dark); }
.btn-secondary:hover { background: #e4e4e4; }
.btn-full { width: 100%; justify-content: center; }

.btn-row {
  display: flex; gap: 10px; margin-top: 28px;
}
.btn-row .btn-secondary { flex: 0 0 auto; }
.btn-row .btn-primary   { flex: 0 0 auto; }

/* ── TOAST ── */
.toast {
  position: fixed; bottom: 28px; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--dark); color: #fff;
  padding: 11px 20px; border-radius: 8px;
  font-size: 13px;
  opacity: 0;
  transition: opacity .2s, transform .2s;
  pointer-events: none;
  z-index: 999;
  white-space: nowrap;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── PLACEHOLDER ── */
.placeholder-box {
  border: 2px dashed #e0e0e0;
  border-radius: 8px;
  padding: 32px;
  text-align: center;
  color: #bbb;
  font-size: 13px;
}

/* ── PROFIL ROWS ── */
.profil-row {
  display: grid;
  grid-template-columns: 20px 1fr 2fr 28px;
  gap: 8px;
  align-items: center;
}

/* ── DRAG HANDLE ── */
.drag-handle {
  cursor: grab;
  color: #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  flex-shrink: 0;
}
.drag-handle:hover circle { fill: #999; }
.drag-handle:active { cursor: grabbing; }
.sc-row { border-radius: 7px; transition: background .1s; }
.sc-row.drag-over { background: rgba(225,23,9,.06); }
.profil-row input {
  padding: 8px 10px;
  border: 1.5px solid #ddd;
  border-radius: 7px;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s;
}
.profil-row input:focus { border-color: var(--red); }
.profil-row-del {
  background: none; border: none; cursor: pointer;
  color: #ccc; display: flex; align-items: center;
  padding: 4px; border-radius: 5px;
  transition: color .15s, background .15s;
}
.profil-row-del:hover { color: var(--red); background: rgba(208,27,10,.07); }

/* ── RECAP BLOCS ── */
.recap-bloc {
  border: 1.5px solid #eee;
  border-radius: 10px;
  padding: 14px 16px;
  position: relative;
}
.recap-bloc-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--gray-light);
  margin-bottom: 8px;
}
.recap-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--dark);
  padding: 3px 0;
  border-bottom: 1px solid #f5f5f5;
}
.recap-row:last-child { border-bottom: none; }
.recap-key { color: var(--gray); flex-shrink: 0; margin-right: 12px; }
.recap-val { font-weight: 600; text-align: right; }
.recap-edit {
  position: absolute; top: 12px; right: 12px;
  font-size: 11px; color: var(--red);
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 700; padding: 2px 6px;
  border-radius: 5px;
  transition: background .15s;
}
.recap-edit:hover { background: rgba(208,27,10,.07); }

.btn-download {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 22px;
  border-radius: 9px;
  font-size: 14px; font-family: inherit; font-weight: 700;
  cursor: pointer; border: none;
  transition: opacity .15s, transform .1s;
  width: 100%;
}
.btn-download:active { transform: scale(.98); }
.btn-dl-primary   { background: var(--red); color: #fff; }
.btn-dl-primary:hover { opacity: .88; }
.btn-dl-secondary { background: #f0f0f0; color: var(--dark); }
.btn-dl-secondary:hover { background: #e4e4e4; }
.btn-dl-save { background: #1a1a1a; color: #fff; }
.btn-dl-save:hover { background: #333; }
.btn-dl-save:disabled { background: #999; cursor: default; }

/* ── SECTION SEPARATOR ── */
.section-sep {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-light);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 18px 0 10px;
}
