/*
Theme Name: Business Cockpit
Theme URI: https://cockpit.websly.fr
Description: Business Cockpit — dashboard commercial solo
Version: 1.0
Author: Websly
*/

:root {
  --ink: #172033;
  --muted: #687386;
  --line: #e5e8ee;
  --surface: #ffffff;
  --canvas: #f4f6f8;
  --nav: #111827;
  --primary: #5b5ce2;
  --primary-dark: #4445c7;
  --accent: #b9f46a;
  --success: #16865c;
  --warning: #b86a10;
  --danger: #c83f49;
  --radius: 18px;
  --shadow: 0 12px 34px rgba(31, 39, 55, .08);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(91, 92, 226, .28);
  outline-offset: 2px;
}

.app-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100dvh; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100dvh;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  background: var(--nav);
  color: white;
}
.brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 28px; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: var(--accent);
  color: var(--nav);
  font-weight: 900;
}
.brand strong, .brand span { display: block; }
.brand strong { font-size: 15px; }
.brand span { color: #98a2b3; font-size: 12px; margin-top: 3px; }
nav { display: grid; gap: 6px; }
.nav-item {
  min-height: 46px;
  padding: 0 14px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #aab2c0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background .2s ease, color .2s ease;
}
.nav-ico { width: 20px; height: 20px; flex: none; }
.nav-item:hover, .nav-item.active { background: #242c3b; color: white; }
.sidebar-footer { margin-top: auto; padding: 16px 10px 6px; color: #aab2c0; font-size: 12px; }
.sidebar-footer p { margin: 0 0 10px; }
.sidebar-footer strong { display: block; margin-top: 8px; color: white; font-size: 12px; }
.progress-track { height: 7px; overflow: hidden; background: #30394a; border-radius: 999px; }
.progress-track span { display: block; width: 0; height: 100%; background: var(--accent); transition: width .3s ease; }

main { min-width: 0; padding: 0 32px 48px; }
.topbar {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.04em; }
h2 { margin-bottom: 0; font-size: 20px; letter-spacing: -.025em; }
.eyebrow {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.muted { color: var(--muted); }
.topbar-actions, .section-actions, .filters, .form-row, .modal-actions { display: flex; align-items: center; gap: 12px; }
.section-actions { min-height: 64px; justify-content: space-between; margin-bottom: 16px; }
.section-actions p { margin: 0; color: var(--muted); }
.button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 750;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.button:active { transform: scale(.98); }
.button.primary { background: var(--primary); color: white; }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { border-color: var(--line); background: white; color: var(--ink); }
.button.light { background: white; color: var(--nav); }
.button.danger { border-color: #f2c9cc; background: #fff5f5; color: var(--danger); }
.text-button { min-height: 44px; border: 0; background: none; color: var(--primary); font-weight: 700; }

.view { display: none; }
.view.active { display: block; animation: appear .22s ease-out; }
@keyframes appear { from { opacity: 0; } }
.hero-card {
  min-height: 210px;
  padding: 34px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  border-radius: 24px;
  background: linear-gradient(125deg, #5b5ce2 0%, #383997 60%, #252665 100%);
  color: white;
  box-shadow: var(--shadow);
}
.hero-card h2 { max-width: 670px; margin: 12px 0 8px; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; }
.hero-card p { margin: 0; color: #d9dafd; }
.status-pill { display: inline-block; padding: 7px 10px; border-radius: 999px; background: rgba(255,255,255,.13); font-size: 12px; font-weight: 800; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 18px 0; }
.metric-grid.small { grid-template-columns: repeat(3, 1fr); }
.metric-card, .panel { border: 1px solid rgba(222, 226, 234, .85); background: var(--surface); box-shadow: 0 5px 20px rgba(31, 39, 55, .045); }
.metric-card { padding: 20px; border-radius: 16px; }
.metric-card span { display: block; color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin-top: 10px; font-size: 30px; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.metric-card strong.metric-fraction { display: flex; align-items: baseline; gap: 5px; white-space: nowrap; letter-spacing: -.02em; }
.metric-card strong.metric-fraction span { display: inline; margin: 0; font-size: 32px; font-weight: 850; line-height: 1.1; }
.metric-card strong.metric-fraction .mf-den { color: var(--muted); }
.metric-card small { display: block; min-height: 18px; margin-top: 6px; color: var(--success); }
.panel { padding: 22px; border-radius: var(--radius); }
.dashboard-grid, .settings-grid, .today-layout { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr); gap: 18px; margin: 18px 0; }
.settings-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.integration-panel { grid-column: 1 / -1; }
.integration-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.connection-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: #fff4dc;
  color: var(--warning);
  font-size: 12px;
  font-weight: 800;
}
.connection-status.connected { background: #e4f7ee; color: var(--success); }
.connection-status.disconnected { background: #fff0f1; color: var(--danger); }
.integration-meta { min-height: 22px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.connection-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto;
  align-items: end;
  gap: 12px;
  margin: 18px 0;
}
.connection-form label { display: grid; gap: 7px; color: #4d586b; font-size: 13px; font-weight: 700; }
.today-layout { grid-template-columns: minmax(0, 1.5fr) minmax(280px, .6fr); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }

.bar-chart { height: 220px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 12px; }
.bar-item { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; }
.bar { width: min(34px, 70%); min-height: 4px; border-radius: 8px 8px 4px 4px; background: var(--primary); transition: height .3s ease; }
.bar-item strong { font-size: 12px; font-variant-numeric: tabular-nums; }
.bar-item span { color: var(--muted); font-size: 11px; text-transform: capitalize; }
.compact-list, .activity-feed, .task-list { display: grid; gap: 10px; }
.compact-row, .activity-row, .task-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.compact-row .avatar {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: 10px;
  background: #eef0ff;
  color: var(--primary);
  font-weight: 850;
}
.compact-row div:nth-child(2), .activity-row div:nth-child(2), .task-row div:nth-child(2) { flex: 1; min-width: 0; }
.compact-row strong, .compact-row span, .activity-row strong, .activity-row span, .task-row strong, .task-row span { display: block; }
.compact-row span, .activity-row span, .task-row span { margin-top: 3px; color: var(--muted); font-size: 12px; }
.empty { padding: 32px 12px; color: var(--muted); text-align: center; }

.pipeline { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }
.pipeline-stage { padding: 16px; border-radius: 13px; background: var(--canvas); }
.pipeline-stage span { color: var(--muted); font-size: 12px; }
.pipeline-stage strong { display: block; margin-top: 8px; font-size: 24px; }

input, select, textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #d9dde6;
  border-radius: 11px;
  background: white;
  color: var(--ink);
}
textarea { resize: vertical; }
.filters label:first-child { width: min(360px, 55vw); }
.filters select { min-width: 180px; }
.view-switch { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.view-switch-button { min-height: 36px; padding: 0 12px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 750; }
.view-switch-button.active { background: var(--nav); color: white; }
.hidden { display: none !important; }
.pipeline-summary { display: flex; align-items: center; gap: 18px; margin: 2px 0 14px; color: var(--muted); font-size: 13px; }
.pipeline-summary strong { color: var(--ink); font-size: 15px; }
.crm-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 212px;
  align-items: stretch;
  gap: 6px;
  overflow-x: auto;
  min-height: calc(100dvh - 220px);
  padding: 0 2px 14px;
  scroll-snap-type: x proximity;
  scrollbar-color: #aeb4bd #eef0f2;
}
.crm-column {
  min-width: 0;
  max-width: 100%;
  min-height: calc(100dvh - 240px);
  padding: 6px;
  border: 0;
  border-radius: 4px;
  background: #f1f2f4;
  scroll-snap-align: start;
  transition: background .15s ease, border-color .15s ease;
}
.crm-column.drag-over { border-color: var(--primary); background: #e8e9ff; }
.crm-column-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 58px;
  padding: 7px 7px 10px;
  background: #f1f2f4;
}
.crm-column-header h2 {
  overflow: hidden;
  margin: 0;
  color: #1f2937;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-column-header p { margin: 6px 0 0; color: #5f6875; font-size: 12px; }
.crm-column-cards {
  display: grid;
  align-content: start;
  min-width: 0;
  max-width: 100%;
  gap: 4px;
  min-height: 80px;
  overflow: hidden;
}
.crm-card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 76px;
  padding: 10px 9px 8px;
  border: 1px solid #d9dde2;
  border-radius: 5px;
  background: white;
  box-shadow: 0 1px 2px rgba(31, 39, 55, .08);
  cursor: grab;
  overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.crm-card:hover { border-color: #b9c0c9; box-shadow: 0 3px 8px rgba(31, 39, 55, .12); }
.crm-card:active { cursor: grabbing; }
.crm-card.dragging { opacity: .45; }
.crm-card.slot-active { border: 2px solid #22c55e; }
.crm-card.slot-active h3 { color: #16a34a; }
.crm-card-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
  max-width: 100%;
  gap: 8px;
  overflow: hidden;
}
.crm-card-copy {
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 24px);
  overflow: hidden;
}
.crm-card h3 {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 0;
  color: #20262e;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-card-company {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  margin: 3px 0 0;
  color: #6b7280;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.crm-card-due { display: none; }
.crm-card-due.overdue { color: #c53c45; }
.crm-card-due.today { color: #9a610b; }
.crm-card-due.tomorrow, .crm-card-due.upcoming { color: #4b4cc0; }
.crm-card-due.added { color: #346650; }
.crm-card-due.none { color: #929baa; font-weight: 600; }
.crm-card-footer { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: #66707d; font-size: 12px; }
.crm-card-value { font-weight: 600; font-variant-numeric: tabular-nums; }
.crm-person-icon { position: relative; width: 14px; height: 14px; border-radius: 50%; background: #d7dbe0; }
.crm-person-icon::before { content: ""; position: absolute; top: 2px; left: 5px; width: 4px; height: 4px; border-radius: 50%; background: white; }
.crm-person-icon::after { content: ""; position: absolute; bottom: 2px; left: 3px; width: 8px; height: 4px; border-radius: 5px 5px 3px 3px; background: white; }
.crm-card-alert { flex: 0 0 18px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #c0c6d0; color: #fff; font-size: 13px; font-weight: 800; line-height: 1; cursor: pointer; }
.crm-card-alert.overdue { background: #e35d57; }
.crm-card-alert.today { background: #54b06e; }
.crm-card-alert.tomorrow, .crm-card-alert.upcoming { background: #b9c0cb; }
.crm-card-alert.added { background: #54b06e; }
.crm-card-alert.scheduled { background: #b9c0cb; }
.crm-card-alert.unscheduled { background: transparent; }
.crm-card-alert .crm-warn { display: block; width: 16px; height: 16px; }
.crm-empty { padding: 22px 8px; color: #929baa; font-size: 12px; text-align: center; }
.crm-add-float {
  position: fixed;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px;
  border: 1px solid #e0e3e8;
  border-radius: 6px;
  background: #ffffff;
  color: #6b7280;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(31, 39, 55, .14);
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.crm-add-float:hover { background: #f4f5ff; color: var(--primary); border-color: #c9ccf5; }
.crm-add-float[hidden] { display: none; }

/* ── Pipeline quick-nav (compteurs journaliers sticky) ── */
.pipeline-quicknav {
  display: none;
  position: fixed;
  right: 14px;
  top: auto;
  bottom: 24px;
  transform: none;
  z-index: 50;
  flex-direction: column;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 10px 12px;
  box-shadow: 0 6px 24px rgba(31,39,55,.12);
  min-width: 110px;
}
body.pipeline-mode .pipeline-quicknav { display: flex; }
.pqn-title {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .06em;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
}
.pqn-date-label { flex: 1; }
.pqn-date-past { color: var(--primary); }
.pqn-nav {
  border: none; background: none; color: var(--muted);
  font-size: 14px; line-height: 1; padding: 0 3px; cursor: pointer; border-radius: 4px;
}
.pqn-nav:hover { background: var(--line); color: var(--ink); }
.pqn-nav-ph { width: 18px; display: inline-block; }
.pqn-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
.pqn-label {
  font-size: 11px;
  color: var(--muted);
  flex: 1;
  white-space: nowrap;
}
.pqn-count {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  min-width: 18px;
  text-align: center;
}
.pqn-btn {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: none;
  background: var(--primary);
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity .15s;
  flex-shrink: 0;
}
.pqn-btn:hover { opacity: .8; }
.pqn-btn--minus { background: var(--line); color: var(--muted); font-size: 20px; }
.pqn-btn--minus:hover { background: #e0e3e8; opacity: 1; }
.pqn-row--rdv .pqn-btn:not(.pqn-btn--minus) { background: var(--success); }

.card-activity-pop {
  position: fixed;
  z-index: 60;
  width: 280px;
  max-width: calc(100vw - 24px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 44px rgba(13, 19, 31, .22);
  overflow: hidden;
}
.card-activity-pop[hidden] { display: none; }

.drag-actions { position: fixed; left: 0; right: 0; bottom: 0; z-index: 110; display: flex; gap: 10px; padding: 12px 16px; background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -6px 22px rgba(13, 19, 31, .1); }
.drag-actions[hidden] { display: none; }
.drag-zone { flex: 1; display: grid; place-items: center; min-height: 54px; border: 2px dashed #c4cad3; border-radius: 11px; color: var(--muted); font-size: 13px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; transition: background .12s ease, border-color .12s ease; }
.drag-zone.lost { color: var(--danger); }
.drag-zone.won { color: var(--success); }
.drag-zone.over { background: var(--canvas); }
.drag-zone.delete.over, .drag-zone.lost.over { border-color: var(--danger); background: #fff0f1; }
.drag-zone.won.over { border-color: var(--success); background: #e9f9f1; }
.drag-zone.move.over { border-color: var(--primary); background: #eef0ff; }
.cap-item { display: flex; align-items: flex-start; gap: 11px; padding: 13px 14px; border-bottom: 1px solid var(--line); transition: background .12s ease; }
.cap-item:hover { background: #f7f8fb; }
.cap-body[data-cap-edit] { cursor: pointer; }
.cap-check { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 2px; border: 2px solid #c9ced6; border-radius: 50%; background: #fff; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.cap-check:hover { border-color: var(--success); background: #e9f9f1; }
.cap-check:disabled { cursor: default; opacity: .5; }
.cap-body { flex: 1; min-width: 0; }
.cap-title { display: block; font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-icon { margin-right: 6px; }
.cap-line { display: block; margin-top: 3px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cap-due { font-weight: 700; }
.cap-due.overdue { color: var(--danger); }
.cap-due.today { color: #2e9e5b; }
.cap-due.upcoming { color: var(--primary); }
.cap-due.none, .cap-due.done { color: var(--muted); }
.cap-owner { color: var(--muted); font-weight: 600; }
.cap-empty { padding: 14px; color: var(--muted); font-size: 13px; }
.cap-add { display: flex; align-items: center; gap: 8px; width: 100%; padding: 13px 14px; border: 0; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; cursor: pointer; transition: background .12s ease; }
.cap-add:hover { background: #f5f6f8; }

/* ===== Animations d'apparition ===== */
@keyframes popIn { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: none; } }

.card-activity-pop { transform-origin: top left; }
.card-activity-pop:not([hidden]) { animation: popIn .16s cubic-bezier(.2,.7,.3,1); }
.crm-add-float:not([hidden]) { animation: scaleIn .14s ease-out; }
dialog[open] { animation: modalIn .22s cubic-bezier(.2,.7,.3,1); }
dialog::backdrop { animation: fadeIn .2s ease-out; }
.prospect-newtask-card:not(.hidden), .deal-edit-card:not(.hidden) { animation: slideDown .2s ease-out; }
.toast.show { animation: fadeInUp .25s cubic-bezier(.2,.7,.3,1); }

@media (min-width: 761px) {
  body.pipeline-mode .app-shell { grid-template-columns: 56px minmax(0, 1fr); }
  body.pipeline-mode .sidebar { padding: 14px 6px; }
  body.pipeline-mode .brand { justify-content: center; padding: 0 0 20px; }
  body.pipeline-mode .brand-mark { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
  body.pipeline-mode .brand > div:last-child,
  body.pipeline-mode .sidebar-footer { display: none; }
  body.pipeline-mode .nav-item {
    min-height: 44px;
    padding: 0;
    justify-content: center;
  }
  body.pipeline-mode .nav-label { display: none; }
  body.pipeline-mode main { padding: 0 12px 30px; }
  body.pipeline-mode .topbar { min-height: 86px; }
  body.pipeline-mode .topbar h1 { font-size: 30px; }
  body.pipeline-mode .section-actions { min-height: 58px; margin-bottom: 8px; }
  body.pipeline-mode .pipeline-summary { margin-bottom: 10px; }
  body.pipeline-mode .crm-board {
    grid-auto-columns: 212px;
    gap: 6px;
  }
  body.is-fullscreen.pipeline-mode .app-shell { grid-template-columns: 0 minmax(0, 1fr); }
  body.is-fullscreen.pipeline-mode .sidebar { visibility: hidden; overflow: hidden; padding: 0; }
  body.is-fullscreen.pipeline-mode main { padding: 0 12px 24px; }
  body.is-fullscreen.pipeline-mode .topbar { min-height: 68px; }
  body.is-fullscreen.pipeline-mode .topbar-actions { display: none; }
  body.is-fullscreen.pipeline-mode .crm-board {
    grid-auto-columns: minmax(198px, 1fr);
    overflow-x: auto;
  }
}

@media (min-width: 1640px) {
  body.pipeline-mode .crm-board,
  body.is-fullscreen.pipeline-mode .crm-board {
    grid-auto-flow: row;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    width: 100%;
    overflow-x: hidden;
    scroll-snap-type: none;
  }
}

.table-panel { padding: 0; overflow: hidden; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 850px; }
th, td { padding: 16px 18px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; }
td { font-size: 14px; }
tbody tr:last-child td { border-bottom: 0; }
.person strong, .person span { display: block; }
.person span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.badge { display: inline-flex; align-items: center; min-height: 28px; padding: 0 9px; border-radius: 999px; background: #eef0ff; color: #4b4cc0; font-size: 12px; font-weight: 800; }
.badge.client { background: #e4f7ee; color: var(--success); }
.badge.lost { background: #fff0f1; color: var(--danger); }
.delete-button { min-width: 44px; min-height: 44px; border: 0; border-radius: 10px; background: transparent; color: var(--danger); }
.delete-button:hover { background: #fff0f1; }
.table-actions { display: flex; align-items: center; gap: 5px; }
.open-prospect {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: white;
  color: var(--primary);
  font-weight: 750;
}

.task-check { width: 22px; height: 22px; accent-color: var(--primary); }
.task-row.done strong { color: var(--muted); text-decoration: line-through; }
.priority { padding: 5px 8px; border-radius: 999px; background: #fff4dc; color: var(--warning); font-size: 11px; font-weight: 800; }
.focus-panel { display: flex; flex-direction: column; justify-content: center; min-height: 290px; background: var(--nav); color: white; }
.focus-panel p:not(.eyebrow) { margin: 14px 0 28px; color: #aab2c0; line-height: 1.6; }
.focus-score strong { display: block; color: var(--accent); font-size: 52px; }
.focus-score span { color: #aab2c0; }

.activity-row time { color: var(--muted); font-size: 12px; white-space: nowrap; }
.activity-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 5px #eeefff; }
.funnel { display: grid; gap: 10px; }
.funnel-row { display: grid; grid-template-columns: 100px 1fr 40px; align-items: center; gap: 12px; }
.funnel-track { height: 28px; overflow: hidden; border-radius: 8px; background: var(--canvas); }
.funnel-fill { height: 100%; min-width: 4px; border-radius: 8px; background: linear-gradient(90deg, var(--primary), #9091f6); }
.channel-list { display: grid; gap: 15px; }
.channel-row { display: grid; grid-template-columns: 90px 1fr 32px; align-items: center; gap: 10px; font-size: 13px; }
.mini-track { height: 8px; overflow: hidden; border-radius: 999px; background: var(--canvas); }
.mini-track span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }

.stack-form, .button-stack { display: grid; gap: 14px; margin-top: 22px; }
.stack-form label, .modal-form label { display: grid; gap: 7px; color: #4d586b; font-size: 13px; font-weight: 700; }
.file-button { display: grid; place-items: center; }
.file-button input { display: none; }
dialog { width: min(580px, calc(100% - 28px)); padding: 0; border: 0; border-radius: 20px; box-shadow: 0 30px 90px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(13, 19, 31, .58); }
.modal-form { padding: 24px; display: grid; gap: 16px; }
.modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.icon-button { width: 44px; height: 44px; border: 0; border-radius: 11px; background: var(--canvas); color: var(--muted); font-size: 24px; }
.form-row > * { flex: 1; }
.modal-actions { justify-content: flex-end; margin-top: 4px; }
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 1000;
  max-width: min(360px, calc(100vw - 48px));
  padding: 14px 18px;
  border-radius: 12px;
  background: var(--nav);
  color: white;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity .2s ease, transform .2s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.detail-dialog { width: min(920px, calc(100% - 28px)); }
.prospect-detail { padding: 26px; display: grid; gap: 20px; }
.detail-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.detail-card { padding: 16px; border-radius: 13px; background: var(--canvas); }
.detail-card span, .detail-card strong { display: block; }
.detail-card span { color: var(--muted); font-size: 12px; }
.detail-card strong { margin-top: 7px; }
.detail-edit { display: block; width: 100%; margin-top: 6px; min-height: 38px; padding: 7px 10px; border: 1px solid transparent; border-radius: 9px; background: #fff; color: var(--ink); font-size: 15px; font-weight: 750; }
.detail-edit:hover { border-color: #d9dde6; }
.detail-edit:focus { outline: none; border-color: var(--primary); }
select.detail-edit { cursor: pointer; }
.detail-head-actions { display: flex; align-items: center; gap: 8px; }
.button.sm { min-height: 36px; padding: 0 13px; font-size: 13px; }
.editable-name { display: inline-block; cursor: pointer; padding: 1px 6px; margin-left: -6px; border-radius: 7px; }
.editable-name:hover { background: rgba(91, 92, 226, .09); }
.detail-name-input { width: 100%; font: inherit; border: 1px solid var(--primary); border-radius: 8px; padding: 2px 7px; color: var(--ink); }
.deal-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.button.win { border: 1px solid #bbe9d3; background: #e9f9f1; color: var(--success); font-weight: 800; }
.button.win:hover { background: #d7f3e6; }
.button.lose { border: 1px solid #f2c9cc; background: #fff5f5; color: var(--danger); font-weight: 800; }
.button.lose:hover { background: #ffe9e9; }
.deal-edit-card {
  padding: 20px;
  border: 1px solid #d8dbf6;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  background: #fafaff;
}
.deal-edit-card h3 { margin: 0; }
.deal-edit-card .panel-heading { margin-bottom: 14px; }
.deal-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.deal-form label { display: grid; gap: 6px; color: #4d586b; font-size: 13px; font-weight: 700; }
.deal-title-field { grid-column: 1 / -1; }
.deal-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
@media (max-width: 470px) { .deal-form { grid-template-columns: 1fr; } }
.note-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid #efe2a8; border-radius: 12px; background: #fdf7d6; }
.note-card.hidden { display: none; }
.note-icon { flex: 0 0 auto; font-size: 18px; line-height: 1.4; }
.note-content { flex: 1; min-width: 0; font-size: 13px; line-height: 1.6; color: #5a5326; white-space: pre-wrap; word-break: break-word; cursor: text; }
.note-placeholder { color: #9a925f; font-style: italic; }
.note-edit { width: 100%; min-height: 56px; border: 1px solid #e0cf86; border-radius: 8px; background: #fffdf2; padding: 8px 10px; font: inherit; font-size: 13px; line-height: 1.55; color: #5a5326; resize: vertical; }
.note-edit:focus { outline: none; border-color: #d4be5a; }
.note-content a { color: #2563eb; text-decoration: none; }
.note-content a:hover { text-decoration: underline; }

.prospect-tasks-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: white;
}
.prospect-tasks-card h3 { margin: 0; }
.prospect-newtask-card {
  padding: 20px;
  border: 1px solid #d8dbf6;
  border-left: 4px solid var(--primary);
  border-radius: 16px;
  background: #fafaff;
}
.prospect-newtask-card h3 { margin: 0; }
.prospect-newtask-card .panel-heading { margin-bottom: 14px; }
.task-count { color: var(--muted); font-size: 13px; font-weight: 700; }
.prospect-task-form {
  display: grid;
  grid-template-columns: minmax(180px, 2fr) repeat(4, minmax(120px, 1fr));
  gap: 12px;
  padding: 16px;
  border-radius: 13px;
  background: var(--canvas);
}
.prospect-task-form label { display: grid; gap: 6px; color: #4d586b; font-size: 12px; font-weight: 700; }
.task-notes-field { grid-column: 1 / -1; }
.task-note-input { width: 100%; min-height: 60px; padding: 10px 12px; border: 1px solid #efe2a8; border-radius: 10px; background: #fdf7d6; font: inherit; font-size: 13px; line-height: 1.55; color: #5a5326; resize: vertical; }
.task-note-input::placeholder { color: #a8995f; }
.task-note-input:focus { outline: none; border-color: #d4be5a; box-shadow: 0 0 0 3px rgba(212, 190, 90, .25); }
.task-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.prospect-tasks-list { display: grid; gap: 8px; margin-top: 14px; }
.prospect-task-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: white;
}
.prospect-task-row.completed { background: #f7f8f9; }
.prospect-task-row.is-pipedrive { background: #f5f7ff; border-color: #dfe3fb; }
.prospect-task-row.slot-active { border: 2px solid #22c55e; }
.prospect-task-row.slot-active .prospect-task-copy strong { color: #16a34a; }

.source-badge { align-self: center; padding: 4px 9px; border-radius: 999px; background: #eef0ff; color: #4b4cc0; font-size: 11px; font-weight: 800; white-space: nowrap; }
.pd-check { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 6px; border: 2px solid #c9ced6; color: white; font-size: 12px; font-weight: 800; }
.pd-check.done { background: var(--success); border-color: var(--success); }
.prospect-task-row.completed .prospect-task-copy strong { color: var(--muted); text-decoration: line-through; }
.prospect-task-check { width: 21px; height: 21px; min-height: 21px; accent-color: var(--success); }
.prospect-task-copy { min-width: 0; }
.prospect-task-copy strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prospect-task-copy span { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; }
.tasks-head-actions { display: flex; align-items: center; gap: 12px; }
.tasks-head-actions .button { min-height: 38px; padding: 0 14px; }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 6px; }
.task-type { padding: 3px 9px; border-radius: 999px; background: #eef0ff; color: #4b4cc0; font-size: 11px; font-weight: 800; }
.task-date { font-size: 12px; font-weight: 700; }
.task-date.overdue { color: var(--danger); }
.task-date.today { color: #2e9e5b; }
.task-date.upcoming { color: var(--primary); }
.task-date.none { color: var(--muted); }
.task-date.done { color: var(--success); }
.prospect-task-notes { margin-top: 8px; padding: 8px 11px; border-radius: 9px; background: var(--canvas); color: #4d586b; font-size: 12px; line-height: 1.5; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.prospect-task-notes.editable-note { background: #fdf7d6; border: 1px solid #efe2a8; color: #5a5326; cursor: text; transition: border-color .12s ease; padding-top: 13px; padding-bottom: 13px; }
.prospect-task-notes.editable-note:hover { border-color: #d4be5a; }
.prospect-task-notes.editable-note a { color: #2563eb; text-decoration: none; }
.prospect-task-notes.editable-note a:hover { text-decoration: underline; }
.prospect-task-notes.editing { display: block; -webkit-line-clamp: none; line-clamp: none; overflow: visible; padding: 0; border: 0; background: transparent; }
.prospect-task-notes.editing .note-edit { min-height: 110px; }
.prospect-task-form { margin-top: 14px; }
.pd-tag { background: #e8f0ff; color: #2563eb; }

/* --- Sélecteur de date façon Pipedrive --- */
input.has-dp { cursor: pointer; }
input.has-dp::-webkit-calendar-picker-indicator { display: none; }
.dp-popup {
  position: fixed;
  z-index: 1000;
  width: 286px;
  padding: 14px;
  background: #fff;
  border: 1px solid #e3e7ee;
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(23, 32, 51, 0.18);
  font-size: 13px;
  color: var(--ink);
  -webkit-user-select: none;
  user-select: none;
}
.dp-popup.hidden { display: none; }
.dp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.dp-title { font-weight: 750; color: var(--primary); text-transform: capitalize; font-size: 14px; }
.dp-nav {
  width: 32px; height: 32px;
  border: 1px solid #e3e7ee; border-radius: 9px;
  background: #fff; color: var(--primary);
  font-size: 18px; line-height: 1; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background .12s ease, border-color .12s ease;
}
.dp-nav:hover { background: #f1f2fd; border-color: var(--primary); }
.dp-weekdays { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; margin-bottom: 4px; }
.dp-weekdays span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-day {
  height: 34px; border: 0; border-radius: 9px;
  background: transparent; color: var(--ink);
  font-size: 13px; font-weight: 600; cursor: pointer;
  transition: background .1s ease, color .1s ease;
}
.dp-day:hover { background: #f1f2fd; }
.dp-day.muted { color: #c2c8d4; font-weight: 500; }
.dp-day.today { background: #e7eaf0; color: var(--ink); font-weight: 800; box-shadow: inset 0 0 0 2px #c2c8d4; }
.dp-day.today:hover { background: #dde1e9; }
.dp-day.selected { background: var(--primary); color: #fff; }
.dp-day.selected:hover { background: var(--primary-dark); }
.dp-shifts { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f4; }
.dp-shifts span { font-size: 12px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.dp-shift {
  min-height: 30px; padding: 0 10px;
  border: 1px solid #e3e7ee; border-radius: 8px; background: #fff;
  color: var(--ink); font-size: 12px; font-weight: 700; cursor: pointer;
  transition: background .1s ease, border-color .1s ease, color .1s ease;
}
.dp-shift:hover { background: #f1f2fd; border-color: var(--primary); color: var(--primary); }
.dp-time-row { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 12px; border-top: 1px solid #eef0f4; }
.dp-time-row label { font-weight: 700; color: var(--muted); font-size: 12px; }
.dp-time {
  flex: 1; min-height: 38px; padding: 0 10px;
  border: 1px solid #e3e7ee; border-radius: 9px; background: #fff;
  font: inherit; font-size: 13px; color: var(--ink);
}
.dp-time:focus { outline: none; border-color: var(--primary); }
.dp-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.dp-link { border: 0; background: none; color: var(--muted); font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.dp-link.strong { color: var(--primary); }
.dp-link:hover { text-decoration: underline; }
.quick-dates { grid-column: 1 / -1; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.quick-dates span { font-size: 12px; font-weight: 700; color: var(--muted); }
.quick-dates button { min-height: 32px; padding: 0 11px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 12px; font-weight: 700; }
.quick-dates button:hover { border-color: var(--primary); color: var(--primary); }
.prospect-task-actions { display: flex; align-items: center; gap: 4px; }
.task-action-button { min-width: 42px; min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: var(--primary); font-weight: 750; }
.task-action-button:hover { background: #eef0ff; }
.task-action-button.delete { color: var(--danger); }
.task-action-button.delete:hover { background: #fff0f1; }
.recorder-card {
  padding: 20px;
  border: 1px solid #dcdffd;
  border-radius: 16px;
  background: #f7f7ff;
}
.recorder-card h3, .recordings-section h3 { margin: 0; }
.recorder-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.button:disabled { cursor: not-allowed; opacity: .5; }

.recorder-stage {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px solid #e4e6fb;
  border-radius: 12px;
  background: white;
}
.record-toggle {
  position: relative;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--danger);
  box-shadow: 0 6px 15px rgba(200, 63, 73, .26);
  transition: transform .15s ease, background .2s ease;
}
.record-toggle:hover { transform: translateY(-1px); }
.record-toggle:active { transform: scale(.96); }
.record-toggle-icon { width: 17px; height: 17px; border-radius: 50%; background: white; transition: width .2s ease, height .2s ease, border-radius .2s ease; }
.recorder-card[data-state="recording"] .record-toggle { background: #a5232c; animation: recordPulse 1.6s infinite; }
.recorder-card[data-state="recording"] .record-toggle-icon { width: 15px; height: 15px; border-radius: 4px; }
@keyframes recordPulse {
  0% { box-shadow: 0 0 0 0 rgba(200, 63, 73, .4); }
  70% { box-shadow: 0 0 0 11px rgba(200, 63, 73, 0); }
  100% { box-shadow: 0 0 0 0 rgba(200, 63, 73, 0); }
}
.recorder-wave { display: none; align-items: flex-end; gap: 4px; height: 22px; }
.recorder-card[data-state="recording"] .recorder-wave { display: flex; }
.recorder-wave span { width: 4px; height: 6px; border-radius: 3px; background: var(--primary); animation: waveBar 1s ease-in-out infinite; }
.recorder-wave span:nth-child(2) { animation-delay: .12s; }
.recorder-wave span:nth-child(3) { animation-delay: .24s; }
.recorder-wave span:nth-child(4) { animation-delay: .36s; }
.recorder-wave span:nth-child(5) { animation-delay: .48s; }
.recorder-wave span:nth-child(6) { animation-delay: .6s; }
.recorder-wave span:nth-child(7) { animation-delay: .72s; }
@keyframes waveBar { 0%, 100% { height: 6px; } 50% { height: 20px; } }
.recorder-hint { flex: 1; margin: 0; text-align: left; font-size: 12px; line-height: 1.45; }
.recording-timer { font-size: 22px; font-variant-numeric: tabular-nums; color: var(--ink); }
.recorder-card[data-state="recording"] .recording-timer { color: var(--danger); }

.recording-name-field { display: grid; gap: 7px; margin-top: 16px; color: #4d586b; font-size: 13px; font-weight: 700; }
.recording-name-field input { font-weight: 500; }
.recording-review { display: grid; gap: 12px; margin-top: 16px; }
.recording-review.hidden { display: none; }
.recording-review-actions { display: flex; justify-content: flex-end; gap: 10px; }
.recording-preview { width: 100%; height: 42px; }

.recordings-list { display: grid; gap: 10px; }
.recording-row { display: flex; flex-direction: column; gap: 9px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.recording-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.recording-info { min-width: 0; }
.recording-row strong, .recording-row span { display: block; }
.recording-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recording-row span { margin-top: 4px; color: var(--muted); font-size: 12px; }
.audio-player { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.ap-play { flex: none; width: 32px; height: 32px; border: none; border-radius: 50%; background: var(--primary); color: #fff; font-size: 13px; cursor: pointer; display: grid; place-items: center; }
.ap-play:hover { background: var(--primary-dark); }
.ap-cur, .ap-total { flex: none; font-size: 12px; font-variant-numeric: tabular-nums; color: var(--muted); min-width: 34px; }
.ap-total { text-align: right; }
.ap-track { flex: 1; height: 4px; border-radius: 999px; background: var(--line); cursor: pointer; position: relative; }
.ap-track:hover { height: 6px; }
.ap-fill { height: 100%; border-radius: 999px; background: var(--primary); width: 0%; transition: width .1s linear; pointer-events: none; }
.recording-delete { flex: none; }
.recording-delete { min-width: 40px; min-height: 40px; border: 0; border-radius: 10px; background: transparent; color: var(--danger); font-size: 20px; }
.recording-delete:hover { background: #fff0f1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 1000px) {
  .app-shell { grid-template-columns: 86px 1fr; }
  .sidebar { padding-inline: 12px; }
  .brand { justify-content: center; padding-inline: 0; }
  .brand > div:last-child { font-size: 0; }
  .nav-item { padding: 0; justify-content: center; }
  .nav-label { display: none; }
  .sidebar-footer { display: none; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .app-shell { display: block; }
  .sidebar {
    position: fixed;
    inset: auto 0 0;
    z-index: 100;
    width: 100%;
    height: auto;
    padding: 8px;
  }
  .brand, .sidebar-footer { display: none; }
  nav { grid-template-columns: repeat(7, 1fr); gap: 3px; }
  .nav-item { min-height: 50px; padding: 4px; flex-direction: column; gap: 3px; justify-content: center; font-size: 10px; }
  .nav-item .nav-label { display: block; }
  .nav-ico { width: 18px; height: 18px; }
  main { padding: 0 16px 90px; }
  .topbar { min-height: 96px; }
  .topbar-actions .secondary { display: none; }
  .topbar-actions .sync-button { display: none; }
  .hero-card { min-height: 250px; padding: 24px; align-items: flex-start; flex-direction: column; }
  .metric-grid, .metric-grid.small, .dashboard-grid, .settings-grid, .today-layout { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: repeat(2, 1fr); }
  .section-actions { align-items: stretch; flex-direction: column; }
  .filters { align-items: stretch; flex-direction: column; }
  .filters label:first-child { width: auto; }
  .view-switch { align-self: flex-start; }
  .crm-board { min-height: 60dvh; grid-auto-columns: minmax(250px, 82vw); }
  .topbar-actions .button, .section-actions .button { white-space: nowrap; }
}
@media (max-width: 470px) {
  main { padding-inline: 12px; }
  .topbar { align-items: flex-end; padding: 16px 0; }
  .topbar .eyebrow { display: none; }
  .topbar-actions .button { padding-inline: 12px; }
  .metric-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .metric-card { padding: 15px; }
  .metric-card strong { font-size: 24px; }
  .panel { padding: 17px; }
  .form-row { align-items: stretch; flex-direction: column; }
  .connection-form { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .prospect-task-form { grid-template-columns: 1fr; }
  .task-notes-field, .task-form-actions { grid-column: auto; }
  .prospect-task-row { grid-template-columns: auto minmax(0, 1fr); }
  .prospect-task-actions { grid-column: 2; }
  .recording-timer { margin-left: 0; }
  .recording-row { grid-template-columns: 1fr; }
  nav { overflow-x: auto; grid-template-columns: repeat(7, minmax(70px, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ===== Contenu LinkedIn ===== */
.content-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 4px; }
.content-stat-card { text-align: center; }
.content-stat-card strong { font-size: 2rem; font-weight: 800; }

.content-list { display: flex; flex-direction: column; gap: 10px; }
.content-row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--canvas);
}
.content-badge {
  flex: 0 0 auto; padding: 4px 10px; border-radius: 99px;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
}
.content-badge--a-ecrire  { background: #f1f5f9; color: var(--muted); }
.content-badge--redige     { background: #ede9fe; color: #6d28d9; }
.content-badge--programme  { background: #fff7ed; color: #b45309; }
.content-badge--poste      { background: #dcfce7; color: #15803d; }

.content-main { flex: 1; min-width: 0; }
.content-title { font-weight: 600; font-size: .95rem; }
.content-notes { font-size: .8rem; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content-date { flex: 0 0 auto; font-size: .8rem; color: var(--muted); font-weight: 600; }
.content-actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }
.content-advance { font-size: .8rem; padding: 5px 10px; white-space: nowrap; }
.content-done { font-size: .82rem; color: var(--success); font-weight: 700; }
.content-del {
  border: none; background: none; color: var(--muted); font-size: 1.1rem;
  padding: 3px 6px; border-radius: 8px; line-height: 1;
}
.content-del:hover { color: var(--danger); background: #fee2e2; }

/* ===== Page Ma journée ===== */
.day-hero { display: flex; align-items: center; justify-content: space-between; gap: 24px; border: 0; color: white; background: linear-gradient(125deg, #5b5ce2 0%, #383997 60%, #252665 100%); }
.day-hero-main { min-width: 0; }
.day-hero .eyebrow { color: #c7c9fb; text-transform: capitalize; }
.day-hero h2 { margin: 6px 0 8px; font-size: clamp(24px, 3.4vw, 34px); }
.day-hero-summary { margin: 0; color: #e7e8ff; font-size: 15px; line-height: 1.5; }
.day-focus { flex: 0 0 auto; text-align: center; }
.day-timer { font-size: 40px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.day-focus-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.day-reset { background: rgba(255,255,255,.14); color: #fff; border: 0; }
.day-reset:hover { background: rgba(255,255,255,.24); }

.day-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 18px; }
.day-group-label { margin: 8px 2px 2px; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.day-group-label.overdue { color: var(--danger); }
.day-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 14px rgba(31,39,55,.05); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.day-item:hover { border-color: #c9cdf6; box-shadow: 0 8px 22px rgba(31,39,55,.09); transform: translateY(-1px); }
.day-check { flex: 0 0 auto; width: 26px; height: 26px; border: 2px solid #c9ced6; border-radius: 50%; background: #fff; cursor: pointer; display: grid; place-items: center; color: #fff; font-size: 14px; transition: border-color .15s ease, background .15s ease; }
.day-check:hover { border-color: var(--success); background: #e9f9f1; }
.day-icon { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #eef0ff; font-size: 19px; }
.day-body { flex: 1; min-width: 0; }
.day-body strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-body .day-prospect { display: block; margin-top: 2px; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.day-meta { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.day-time { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--canvas); color: #4d586b; font-size: 12px; font-weight: 800; white-space: nowrap; }
.day-due { font-size: 11px; font-weight: 800; }
.day-due.overdue { color: var(--danger); }
.day-due.today { color: var(--success); }
.day-done-banner { padding: 40px 20px; text-align: center; }
.day-done-banner .big { font-size: 40px; }
.day-done-banner h3 { margin: 10px 0 4px; }
.day-done-banner p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .day-hero { flex-direction: column; align-items: flex-start; }
  .day-focus { align-self: stretch; text-align: left; }
  .day-focus-actions { flex-direction: row; }
}

/* ===== Vue Objectif / Campagne ===== */
.campaign-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 0;
  color: white;
  background: linear-gradient(125deg, #5b5ce2 0%, #383997 60%, #252665 100%);
}
.campaign-hero .eyebrow { color: #c7c9fb; }
.campaign-hero h2 { margin: 8px 0 6px; font-size: clamp(22px, 3vw, 30px); }
.campaign-hero p.muted { margin: 0; color: #d9dafd; }
.campaign-countdown { flex: 0 0 auto; text-align: center; padding: 14px 22px; border-radius: 16px; background: rgba(255, 255, 255, .12); }
.campaign-countdown strong { display: block; font-size: 42px; line-height: 1; font-variant-numeric: tabular-nums; }
.campaign-countdown span { display: block; margin-top: 6px; font-size: 12px; color: #d9dafd; }

.goal-card .stepper, .stepper { display: flex; gap: 8px; margin-top: 12px; }
.stepper-btn { min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); font-weight: 750; }
.stepper-btn:hover { border-color: var(--primary); color: var(--primary); }
.kpi-card { border: 1px solid rgba(222, 226, 234, .85); color: var(--text); background: var(--surface); }
.kpi-card span, .kpi-card small { color: var(--muted); }
.kpi-card strong { color: var(--accent); }

.objective-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 18px 0; }
.daily-goals, .weekly-goals { display: grid; gap: 16px; }
.goal-row.highlight { padding: 12px; border: 1px solid #dcdffd; border-radius: 12px; background: #f7f7ff; }
.goal-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.goal-row-head strong { font-size: 14px; }
.goal-row-head .count { color: var(--muted); font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.goal-row.is-done .count { color: var(--success); }
.goal-row-controls { display: flex; align-items: center; gap: 12px; }
.goal-row-controls .progress-track { flex: 1; height: 8px; overflow: hidden; background: var(--canvas); border-radius: 999px; }
.goal-row-controls .progress-track span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .3s ease; }
.goal-row .hint { display: block; margin-top: 7px; color: var(--muted); font-size: 12px; }
.mini-stepper { display: flex; gap: 6px; }
.mini-stepper button { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: 18px; font-weight: 800; line-height: 1; }
.mini-stepper button:hover { border-color: var(--primary); color: var(--primary); }

.reminder-block { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.channel-split { display: flex; gap: 12px; margin-top: 8px; }
.channel-split span { flex: 1; padding: 10px; border-radius: 10px; background: var(--canvas); color: var(--muted); font-size: 12px; text-align: center; }
.channel-split strong { display: block; margin-bottom: 2px; font-size: 18px; color: var(--ink); }

.keep-stop { border-left: 4px solid var(--line); }
.keep-stop.keep { border-left-color: var(--success); }
.keep-stop.stop { border-left-color: var(--danger); }
.keep-stop ul { margin: 12px 0 0; padding-left: 18px; line-height: 1.9; }
.keep-stop.stop ul { color: #8a3b42; }

@media (max-width: 760px) {
  .campaign-hero { flex-direction: column; align-items: flex-start; }
  .objective-grid { grid-template-columns: 1fr; }
}

/* ===== Round 3 — finitions visuelles ===== */
.sync-status { display: inline-flex; align-items: center; gap: 5px; padding: 0 4px; font-size: 12px; font-weight: 750; color: var(--muted); white-space: nowrap; }
.sync-status.ok { color: var(--success); }
.sync-status.syncing { color: var(--primary); }
.sync-status.error { color: var(--danger); }

.metric-card { transition: transform .16s ease, box-shadow .16s ease; }
.metric-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(31, 39, 55, .1); }
.button.primary { box-shadow: 0 6px 16px rgba(91, 92, 226, .22); }
.button.primary:hover { box-shadow: 0 8px 20px rgba(91, 92, 226, .3); }
.pipeline-stage { transition: transform .15s ease, background .15s ease; }
.pipeline-stage:hover { transform: translateY(-2px); background: #eef0f6; }
.compact-row, .activity-row { transition: border-color .15s ease, background .15s ease; }
.compact-row:hover, .activity-row:hover { background: #fafbfd; border-color: #d3d8e4; }
.crm-card { will-change: transform; }

/* scrollbars discrets */
* { scrollbar-width: thin; scrollbar-color: #c7cdd8 transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: #cdd3de; border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-thumb:hover { background: #b3bbc9; background-clip: padding-box; }

@media (max-width: 760px) { .sync-status { display: none; } }

/* --- Barre d'appel persistante --- */
.call-bar { position: sticky; top: 0; z-index: 60; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 8px 0 4px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(90deg, #c83f49, #a8323b); color: #fff; font-size: 13px; font-weight: 750; box-shadow: 0 6px 20px rgba(168, 50, 59, .35); }
.call-bar-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.call-bar[hidden] { display: none; }
.call-bar[data-state="review"] { background: linear-gradient(90deg, #4445c7, #2f3093); box-shadow: 0 6px 20px rgba(47, 48, 147, .35); }
.call-dot { width: 11px; height: 11px; border-radius: 50%; background: #fff; flex: none; }
.call-bar[data-state="recording"] .call-dot { animation: callpulse 1s infinite; }
@keyframes callpulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.8); } }
.call-bar-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-bar-timer { font-variant-numeric: tabular-nums; opacity: .92; flex: none; }
.call-bar-actions { justify-self: center; display: flex; gap: 8px; flex: none; }
.call-btn { min-height: 30px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 12.5px; font-weight: 750; cursor: pointer; }
.call-btn:hover { background: rgba(255, 255, 255, .26); }

/* --- Filet anti-oubli (radar relances) --- */
.radar-panel { margin: 16px 0; border-color: #f0d9c2; background: linear-gradient(180deg, #fff8f1 0%, #fff 60%); }
.radar-panel .panel-heading { margin-bottom: 14px; }
.radar-list { display: grid; gap: 8px; }
.radar-item { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 12px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .12s ease, transform .12s ease; }
.radar-item:hover { border-color: var(--primary); transform: translateX(2px); }
.radar-dot { width: 10px; height: 10px; border-radius: 50%; background: #b9c0cb; }
.radar-item.heat-5 .radar-dot { background: #e35d57; }
.radar-item.heat-4 .radar-dot { background: #ed9b3e; }
.radar-item.heat-3 .radar-dot { background: #4f8ff7; }
.radar-item.heat-2 .radar-dot { background: #8c97a3; }
.radar-body { min-width: 0; }
.radar-body strong { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-body span { font-size: 12px; color: var(--muted); }
.radar-days { flex: none; font-size: 12px; font-weight: 750; color: #b86a10; white-space: nowrap; }
.radar-more { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* --- Module Niveau (gamification) --- */
.season-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; padding: 10px 16px; border-radius: 12px; background: linear-gradient(120deg, #2b2d6e 0%, #3a3c92 100%); color: #eceeff; font-size: 12.5px; }
.season-tag { padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.18); font-weight: 800; letter-spacing: .02em; }
.season-count { font-weight: 700; }
.season-goal { color: #c9ccf5; }
.season-prev { margin-left: auto; padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.12); font-weight: 700; }

.rank-hero {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 26px;
  margin-bottom: 18px; padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.07); border-radius: 20px;
  background:
    radial-gradient(150px 150px at 88px 50%, color-mix(in srgb, var(--tier) 50%, transparent) 0%, transparent 72%),
    linear-gradient(180deg, #1d2438 0%, #0e1320 100%);
  color: #eef1f7;
  box-shadow: 0 18px 44px rgba(10, 14, 25, 0.4);
}
.rank-hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 2px; background: rgba(255, 255, 255, 0.09); }
.rank-hero .eyebrow { color: #7d8aa3; }
.rank-badge { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 22px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.rank-badge .rank-svg { filter: drop-shadow(0 5px 16px color-mix(in srgb, var(--tier) 75%, transparent)); }
.rank-badge.badge-pulse { animation: badge-pulse .75s ease; }
@keyframes badge-pulse {
  0% { transform: scale(1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 0 color-mix(in srgb, var(--tier) 55%, transparent); }
  35% { transform: scale(1.13); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08), 0 0 0 10px color-mix(in srgb, var(--tier) 0%, transparent); }
  100% { transform: scale(1); }
}
.rank-svg { display: block; }
.ladder-icon { display: grid; place-items: center; }
.ladder-icon .rank-svg { display: block; }
.rank-main { min-width: 0; }
.rank-main h2 {
  font-size: 31px; margin-bottom: 12px; letter-spacing: -.02em;
  background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 32%, #fff) 0%, var(--tier) 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rank-bar { height: 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.rank-bar span { display: block; height: 100%; border-radius: 999px; position: relative; background: linear-gradient(90deg, color-mix(in srgb, var(--tier) 78%, #000) 0%, color-mix(in srgb, var(--tier) 35%, #fff) 100%); transition: width .5s ease; }
.rank-bar span::after { content: ""; position: absolute; inset: 2px 3px auto 3px; height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.4); }
.rank-progress { margin: 9px 0 0; font-size: 12.5px; color: #9aa6bd; font-variant-numeric: tabular-nums; }
.rank-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }
.rank-stat { padding: 9px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); }
.rank-stat strong { display: block; font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rank-stat span { font-size: 11px; color: #7d8aa3; }
.niveau-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.quest-list { display: grid; gap: 8px; }
.quest { display: grid; grid-template-columns: 26px 26px 1fr auto; align-items: center; gap: 10px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 12px; background: #fff; text-align: left; cursor: pointer; transition: border-color .12s ease, background .12s ease; }
.quest:hover { border-color: var(--primary); }
.quest-check { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; border: 2px solid #d4d8e0; color: #fff; font-size: 14px; font-weight: 800; }
.quest-icon { font-size: 18px; }
.quest-name { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.quest-pts { font-size: 12px; font-weight: 800; color: var(--muted); }
.quest.is-task { border-color: #d8def0; background: #f6f7ff; }
.quest.is-task:hover { border-color: var(--primary); }
.quest.is-task .quest-name { font-weight: 700; }
.quest.quest-plan { color: var(--primary); border-style: dashed; }
.quest.quest-plan .quest-check { border-color: var(--primary); color: var(--primary); }
.quest-weekly { margin-left: 8px; padding: 1px 7px; border-radius: 999px; background: #eef0f4; color: var(--muted); font-size: 10.5px; font-weight: 800; }
.quest-head-right { display: flex; align-items: center; gap: 10px; }
.quest-head-right .task-action-button { min-width: auto; min-height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 9px; }
.quest-head-right .task-action-button:hover { border-color: var(--primary); background: #eef0ff; }
.quest.done { background: #f1fbf5; border-color: #bfe6cf; }
.quest.done .quest-check { background: var(--success); border-color: var(--success); }
.quest.done .quest-name { color: var(--success); }
.quest.done .quest-pts { color: var(--success); }
.ladder { display: grid; gap: 4px; max-height: 460px; overflow-y: auto; }
.ladder-row { display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 8px 11px; border-radius: 10px; border: 1px solid transparent; opacity: .5; }
.ladder-row.reached { opacity: 1; background: color-mix(in srgb, var(--tier) 8%, #fff); }
.ladder-row.current { opacity: 1; border-color: var(--tier); background: color-mix(in srgb, var(--tier) 16%, #fff); box-shadow: 0 2px 10px color-mix(in srgb, var(--tier) 30%, transparent); }
.ladder-icon { font-size: 17px; text-align: center; }
.ladder-label { font-size: 13px; font-weight: 700; color: var(--ink); }
.ladder-rp { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.ladder-reward { grid-column: 2 / -1; margin-top: 4px; padding: 4px 9px; border: 1px dashed color-mix(in srgb, var(--tier) 45%, var(--line)); border-radius: 8px; background: transparent; font-size: 11.5px; color: color-mix(in srgb, var(--tier) 70%, #444); cursor: pointer; text-align: left; }
.ladder-reward:hover { background: color-mix(in srgb, var(--tier) 10%, #fff); }
.habit-manage { display: grid; gap: 8px; margin-bottom: 12px; }
.habit-row, .habit-add { display: grid; grid-template-columns: 24px 1fr 150px auto; align-items: center; gap: 10px; }
.habit-add { grid-template-columns: 1fr 150px auto; }
.habit-name { min-height: 38px; padding: 0 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 13px; }
.habit-name:focus { outline: none; border-color: var(--primary); }
.habit-diff { min-height: 38px; padding: 0 9px; border: 1px solid var(--line); border-radius: 9px; background: #fff; font-size: 12.5px; }
.habit-del { min-width: 38px; min-height: 38px; border: 0; border-radius: 9px; background: transparent; color: var(--danger); font-size: 18px; cursor: pointer; }
.habit-del:hover { background: #fff0f1; }
@media (max-width: 900px) {
  .rank-hero { grid-template-columns: 1fr; }
  .niveau-grid { grid-template-columns: 1fr; }
}

/* --- Célébration montée de rang --- */
.rankup-modal { --tier: #b06a33; width: min(420px, 92vw); padding: 0; border: 0; border-radius: 24px; overflow: hidden; background: transparent; }
.rankup-modal::backdrop { background: rgba(8, 11, 20, 0.72); }
.rankup-inner { padding: 36px 28px 28px; text-align: center; background: radial-gradient(240px 170px at 50% 26%, color-mix(in srgb, var(--tier) 42%, transparent) 0%, transparent 72%), linear-gradient(180deg, #1d2438 0%, #0e1320 100%); color: #eef1f7; }
.rankup-eyebrow { margin: 0 0 16px; font-size: 12px; font-weight: 800; letter-spacing: 2.5px; text-transform: uppercase; color: #7d8aa3; }
.rankup-badge { display: flex; justify-content: center; margin-bottom: 14px; }
.rankup-fx { position: relative; display: grid; place-items: center; width: 150px; height: 150px; }
.rankup-fx > * { grid-area: 1 / 1; }
.rankup-burst { width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tier) 65%, transparent) 0%, transparent 62%); animation: rankup-burst .8s ease-out forwards; }
.rankup-ring { width: 90px; height: 90px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--tier) 70%, #fff); opacity: 0; animation: rankup-ring .9s ease-out .05s forwards; }
.rankup-spark { width: 7px; height: 7px; border-radius: 50%; background: color-mix(in srgb, var(--tier) 45%, #fff); opacity: 0; animation: rankup-spark .85s ease-out forwards; }
.rankup-emblem { z-index: 1; animation: rankup-pop .6s cubic-bezier(.2, .9, .3, 1.45); }
.rankup-emblem .rank-svg { filter: drop-shadow(0 7px 26px color-mix(in srgb, var(--tier) 85%, transparent)); }
.rankup-modal h2 { font-size: 32px; margin: 0 0 10px; letter-spacing: -.02em; background: linear-gradient(180deg, color-mix(in srgb, var(--tier) 30%, #fff), var(--tier)); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rankup-rise .5s ease-out .15s both; }
.rankup-reward { margin: 0 0 24px; font-size: 14px; color: #cdd4e2; animation: rankup-rise .5s ease-out .25s both; }
.rankup-reward[hidden] { display: none; }
.rankup-inner .button { min-width: 170px; }
@keyframes rankup-pop { 0% { transform: scale(.3) rotate(-12deg); opacity: 0; } 55% { transform: scale(1.15) rotate(4deg); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
@keyframes rankup-burst { 0% { transform: scale(.2); opacity: .95; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes rankup-ring { 0% { transform: scale(.3); opacity: .9; } 100% { transform: scale(2.1); opacity: 0; } }
@keyframes rankup-spark { 0% { transform: translate(0, 0) scale(1.2); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(.2); opacity: 0; } }
@keyframes rankup-rise { 0% { transform: translateY(8px); opacity: 0; } 100% { transform: translateY(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .rankup-emblem, .rankup-burst, .rankup-ring, .rankup-spark, .rankup-modal h2, .rankup-reward { animation: none; } .rankup-spark, .rankup-burst, .rankup-ring { display: none; } }

/* --- Modale plan du soir --- */
.plan-modal { width: min(460px, 92vw); padding: 22px; border: 0; border-radius: 18px; }
.plan-modal::backdrop { background: rgba(17, 24, 39, .55); }
.plan-modal .modal-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 6px; }
.plan-fields { display: grid; gap: 10px; margin: 16px 0 20px; }
.plan-input { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 11px; background: #fff; font-size: 14px; }
.plan-input:focus { outline: none; border-color: var(--primary); }

/* --- Bibliothèque transcriptions & audios --- */
.library-modal { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; inset: 0; margin: 0; padding: 0; border: 0; border-radius: 0; overflow: hidden; }
.library-modal::backdrop { background: rgba(17, 24, 39, .5); }
.library-topbar { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 20px 32px; border-bottom: 1px solid var(--line); }
.library-topbar h2 { font-size: 22px; }
.library-layout { display: grid; grid-template-columns: 320px 1fr; height: calc(100dvh - 82px); }
.library-aside { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-right: 1px solid var(--line); background: #fafbfc; min-height: 0; }
.library-aside input[type="search"] { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.library-aside input[type="search"]:focus { outline: none; border-color: var(--primary); }
.library-prospect-list { display: flex; flex-direction: column; gap: 4px; overflow-y: auto; min-height: 0; }
.library-prospect { display: flex; flex-direction: column; gap: 2px; padding: 9px 11px; border: 1px solid transparent; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; transition: background .1s ease; }
.library-prospect:hover { background: #eef0ff; }
.library-prospect.active { background: #e7e8fb; border-color: var(--primary); }
.library-prospect strong { font-size: 13.5px; color: var(--ink); }
.library-prospect span { font-size: 11.5px; color: var(--muted); }
.library-main { padding: 28px 32px; overflow-y: auto; min-height: 0; }
.library-main > * { max-width: 860px; }
.library-placeholder { display: grid; place-items: center; height: 100%; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }
.library-empty-small { padding: 14px; color: var(--muted); font-size: 13px; }
.library-main-head { margin-bottom: 16px; }
.library-main-head h3 { font-size: 18px; }
.library-add { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; background: #fafbfc; margin-bottom: 18px; }
.library-tabs { display: inline-flex; gap: 4px; padding: 3px; background: #eef0f4; border-radius: 10px; width: fit-content; }
.library-tab { min-height: 32px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.library-tab.active { background: #fff; color: var(--primary); box-shadow: 0 1px 3px rgba(31,39,55,.12); }
.library-input { min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-size: 13px; }
.library-input:focus { outline: none; border-color: var(--primary); }
.library-textarea { width: 100%; min-height: 150px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font: inherit; font-size: 13px; line-height: 1.55; resize: vertical; }
.library-textarea:focus { outline: none; border-color: var(--primary); }
.library-file { font-size: 13px; }
.library-add .button.primary { justify-self: start; }
.library-items { display: grid; gap: 10px; }
.library-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; }
.library-item-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.library-item-title { display: flex; align-items: center; gap: 8px; min-width: 0; }
.library-item-title strong { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.library-item-meta { display: flex; align-items: center; gap: 8px; flex: none; }
.library-item-meta span { font-size: 11.5px; color: var(--muted); }
.library-badge { padding: 2px 8px; border-radius: 999px; background: #eef0f4; color: var(--muted); font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.library-badge.audio { background: #e8f0ff; color: #2563eb; }
.library-item-text { white-space: pre-wrap; font-size: 12.5px; line-height: 1.55; color: #44506a; max-height: 150px; overflow-y: auto; padding: 8px 10px; border-radius: 8px; background: #f7f8fa; }
.library-item audio { width: 100%; height: 38px; }
.library-mini { min-height: 30px; padding: 0 9px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12px; font-weight: 700; color: var(--primary); cursor: pointer; }
.library-mini:hover { background: #eef0ff; }
.library-mini.delete { color: var(--danger); font-size: 16px; min-width: 30px; padding: 0; }
.library-mini.delete:hover { background: #fff0f1; }
@media (max-width: 760px) {
  .library-layout { grid-template-columns: 1fr; }
  .library-aside { border-right: 0; border-bottom: 1px solid var(--line); max-height: 38%; }
}


/* ================================================================
   REFONTE MOBILE - navigation 8 items, bottom-sheets, tactile
================================================================== */
@media (max-width: 760px) {
  /* --- Barre de navigation basse : 2 rangees de 4, tout visible --- */
  .sidebar {
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(13, 19, 31, .28);
  }
  .sidebar nav {
    grid-template-columns: repeat(5, 1fr);
    gap: 4px;
    overflow: visible;
  }
  .sidebar .nav-item {
    min-height: 50px;
    padding: 5px 2px;
    flex-direction: column;
    gap: 3px;
    justify-content: center;
    font-size: 10.5px;
    border-radius: 10px;
  }
  .sidebar .nav-item .nav-label {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .sidebar .nav-item.active { background: rgba(255, 255, 255, .14); color: #fff; }
  .sidebar .nav-ico { width: 19px; height: 19px; }

  /* Le contenu ne passe jamais sous la nav (2 rangees ~= 120px) */
  main { padding: 0 14px calc(96px + env(safe-area-inset-bottom)); }
  .topbar { min-height: 80px; }

  /* --- Confort tactile + anti-zoom iOS au focus --- */
  input, select, textarea { font-size: 16px !important; }
  .button { min-height: 44px; }
  .icon-button { min-width: 40px; min-height: 40px; }

  /* --- Grilles : 2 colonnes compactes plutot qu'1 seule etiree --- */
  .metric-grid, .metric-grid.small { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }

  /* --- Elements flottants remontes au-dessus de la nav --- */
  .toast {
    left: 14px;
    right: 14px;
    bottom: calc(88px + env(safe-area-inset-bottom));
    max-width: none;
    text-align: center;
  }
  .crm-add-float { bottom: calc(88px + env(safe-area-inset-bottom)) !important; right: 14px !important; }
  .pipeline-quicknav {
    top: auto;
    transform: none;
    bottom: calc(88px + env(safe-area-inset-bottom));
    right: 10px;
    padding: 8px 8px 10px;
    min-width: 100px;
  }
  .pqn-btn { min-width: 32px; min-height: 32px; }

  /* --- Modales en bottom-sheet --- */
  dialog {
    width: 100%;
    max-width: 100%;
    margin: auto 0 0;
    border-radius: 18px 18px 0 0;
    max-height: 92dvh;
    overflow-y: auto;
  }
  .modal-form { padding: 18px 16px calc(20px + env(safe-area-inset-bottom)); }
  .prospect-detail { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .library-modal { height: 92dvh; }
  .rankup-modal { border-radius: 18px 18px 0 0; }
}

@media (max-width: 470px) {
  .sidebar nav { overflow: visible; grid-template-columns: repeat(5, 1fr); }
  .sidebar .nav-item { font-size: 10px; }
  .metric-grid { gap: 8px; }
  .metric-card { padding: 13px; }
  .metric-card strong { font-size: 22px; }
  main { padding-inline: 10px; }
  .panel { padding: 15px; }
}
.brand-mark svg { width: 24px; height: 24px; display: block; }

/* Logo epure (comme Cockpit.io de Zak) : marque brute sans badge */
.brand-mark {
  background: none;
  border-radius: 0;
  width: auto;
  height: auto;
  color: #fff;
}
.brand-mark svg { width: 30px; height: 30px; display: block; }
.brand span { display: none; }
.brand strong { font-size: 16.5px; letter-spacing: -.02em; }

/* Perf kanban */
.crm-card { contain: layout style paint; }
.crm-column { contain: layout style; }

/* Selecteur de cockpit (menu sous le logo) */
.brand { position: relative; cursor: pointer; user-select: none; }
.brand-caret { font-size: 10px; opacity: .55; }
.brand-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 180px; background: #fff; border: 1px solid #e2e8f0; border-radius: 12px; box-shadow: 0 14px 36px rgba(13, 19, 31, .22); padding: 6px; z-index: 300; }
.brand-menu[hidden] { display: none; }
.brand-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #1e293b; text-decoration: none; }
.brand-menu a:hover { background: #f1f5f9; }
.brand-menu a.active { background: #eef2ff; color: #4f46e5; }

/* pipeline-mode : logo seul (le menu avait pris la place du dernier enfant) */
@media (min-width: 761px) {
  body.pipeline-mode .brand > div:not(.brand-mark):not(.brand-menu) { display: none; }
}

/* Chiffres metric adaptes mobile : gros nombre, petite unite, pas de debordement */
@media (max-width: 760px) {
  .metric-card strong.metric-fraction { flex-wrap: wrap; white-space: normal; gap: 4px; }
  .metric-card strong.metric-fraction span { font-size: 21px; }
  .metric-card strong.metric-fraction .mf-den { font-size: 12px; }
  .metric-card > span:first-child { font-size: 12px; }
}
@media (max-width: 470px) {
  .metric-card strong.metric-fraction span { font-size: 19px; }
  .metric-card strong.metric-fraction .mf-den { font-size: 11px; }
}

/* Coach business modal */
.coach-modal { width: min(560px, calc(100% - 28px)); padding: 24px; }
.coach-answer { min-height: 60px; padding: 14px 16px; background: var(--bg-2, #f8fafc); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; line-height: 1.6; margin: 4px 0 14px; }
.coach-hint, .coach-loading { color: var(--muted); }
.coach-loading::after { content: ""; animation: coachDots 1.2s infinite; }
@keyframes coachDots { 0%{content:""} 33%{content:"."} 66%{content:".."} 100%{content:"..."} }
.coach-suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.coach-chip { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; font-size: 12.5px; font-weight: 600; color: var(--text); cursor: pointer; text-align: left; }
.coach-chip:hover { border-color: var(--primary, #6366f1); color: var(--primary, #6366f1); }
.coach-form { display: flex; gap: 8px; }
.coach-form input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: 15px; background: var(--surface); color: var(--text); }
@media (max-width: 760px) { .coach-modal { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 18px 18px 0 0; } .coach-form input { font-size: 16px; } }

/* Transcription des appels */
.rec-transcribe-btn { margin-top: 10px; font-size: 12.5px; padding: 7px 12px; }
.rec-transcript { margin-top: 10px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.rec-transcript summary { cursor: pointer; padding: 9px 12px; font-size: 13px; font-weight: 650; background: var(--bg-2, #f8fafc); user-select: none; }
.rec-transcript-text { padding: 12px 14px; font-size: 13.5px; line-height: 1.6; white-space: pre-wrap; color: var(--text); max-height: 320px; overflow-y: auto; }

/* Selecteur de cockpit dans le header (mobile) */
.cockpit-switch-wrap { display: none; position: relative; }
.cockpit-switch { display: flex; align-items: center; gap: 5px; background: var(--nav, #111827); color: #fff; border: none; border-radius: 12px; padding: 8px 12px; cursor: pointer; }
.cockpit-switch svg { width: 22px; height: 22px; display: block; }
.cs-caret { font-size: 10px; opacity: .7; }
.cockpit-switch-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 170px; background: #fff; border: 1px solid var(--line, #e2e8f0); border-radius: 12px; box-shadow: 0 14px 36px rgba(13,19,31,.22); padding: 6px; z-index: 400; }
.cockpit-switch-menu[hidden] { display: none; }
.cockpit-switch-menu a { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 8px; font-size: 15px; font-weight: 600; color: #1e293b; text-decoration: none; }
.cockpit-switch-menu a:hover, .cockpit-switch-menu a.active { background: #eef2ff; color: #4f46e5; }
@media (max-width: 760px) {
  .topbar { justify-content: space-between; }
  .cockpit-switch-wrap { display: block; }
}

/* Fix fiche prospect : header + boutons ne debordent plus sur mobile */
@media (max-width: 760px) {
  .prospect-detail .modal-heading { flex-wrap: wrap; gap: 12px; }
  .detail-head-actions { flex-wrap: wrap; gap: 6px; }
  .detail-head-actions .button.sm { min-height: 34px; padding: 0 10px; font-size: 12.5px; }
  .detail-grid { grid-template-columns: 1fr; }
  .prospect-detail { padding: 18px 14px calc(16px + env(safe-area-inset-bottom)); }
}

/* Bibliothèque : sections gros RDV / cold calls + copie globale */
.library-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 10px; }
.library-section-head h4 { margin: 0; font-size: 15px; }
.library-section-head .muted-inline { font-weight: 500; font-size: 12px; color: var(--muted); margin-left: 6px; }
.library-copyall { display: grid; gap: 6px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.library-copyall select { min-height: 36px; padding: 0 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 12.5px; }
.library-copyall .button { min-height: 38px; font-size: 12.5px; padding: 0 10px; }
/* Appel direct depuis le PC (tel: → Mobile connecté) */
.detail-grid { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .detail-grid { grid-template-columns: repeat(4, 1fr); } }
.detail-phone-row { display: flex; gap: 6px; align-items: center; }
.detail-phone-row input { flex: 1; min-width: 0; }
#detailCallBtn { display: grid; place-items: center; min-width: 40px; min-height: 38px; border-radius: 10px; background: var(--primary); color: #fff; text-decoration: none; font-size: 16px; }
#detailCallBtn:hover { background: var(--primary-dark); }
.crm-card-call { margin-left: auto; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #eef0ff; text-decoration: none; font-size: 14px; flex-shrink: 0; }
.crm-card-call:hover { background: #dfe1fb; }
/* Icone d'appel SVG */
.crm-card-call { color: var(--primary); }
.crm-card-call:hover { background: var(--primary); color: #fff; }
.crm-card-call svg, #detailCallBtn svg { display: block; }
/* ============ SPORT : chrono de seance ============ */
.sport-chrono-panel { text-align: center; padding: 26px 20px 22px; transition: background .25s ease; }
.sport-chrono-panel.travail { background: #eef6ef; border: 1px solid #bfe3c5; }
.sport-chrono-panel.repos { background: #eef2fb; border: 1px solid #c4d2f2; }
.sport-chrono-panel.prep { background: #fdf6e7; border: 1px solid #f0deb0; }
.sport-chrono-head { font-size: 20px; font-weight: 800; margin-bottom: 4px; }
.sport-chrono-time { font-size: 76px; font-weight: 850; font-variant-numeric: tabular-nums; line-height: 1.1; letter-spacing: 1px; }
.sport-chrono-bar { height: 10px; border-radius: 6px; background: rgba(23, 32, 51, .08); overflow: hidden; margin: 12px auto 8px; max-width: 460px; }
.sport-chrono-bar span { display: block; height: 100%; background: var(--primary); border-radius: 6px; transition: width .2s linear; }
.sport-chrono-panel.travail .sport-chrono-bar span { background: var(--success); }
.sport-chrono-next { color: var(--muted); font-size: 13.5px; min-height: 18px; margin-bottom: 14px; }
.sport-chrono-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.sport-big-btn { min-height: 52px; padding: 0 26px; font-size: 16px; }
.sport-steps { display: grid; gap: 6px; }
.sport-step { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); font-size: 13.5px; }
.sport-step.repos { background: #f6f8fd; color: var(--muted); }
.sport-step.active { border-color: var(--primary); background: #e7e8fb; font-weight: 700; }
.sport-step.done { opacity: .45; text-decoration: line-through; }
.sport-step-num { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--canvas); font-size: 11px; font-weight: 700; flex-shrink: 0; }
.sport-step-label { flex: 1; min-width: 0; }
.sport-step-time { font-variant-numeric: tabular-nums; font-weight: 700; }
@media (max-width: 700px) {
  .sport-chrono-time { font-size: 64px; }
  .sport-big-btn { flex: 1; }
}
/* Pastille chrono flottante */
#sportPill { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 900; border: 0; border-radius: 999px; padding: 10px 18px; font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: #fff; background: var(--primary); box-shadow: 0 8px 24px rgba(31,39,55,.28); cursor: pointer; white-space: nowrap; max-width: 92vw; overflow: hidden; text-overflow: ellipsis; }
#sportPill.travail { background: var(--success); }
#sportPill.repos { background: #3b6fd4; }
#sportPill.prep { background: #b8860b; }
#sportPill.paused { opacity: .75; }
@media (max-width: 700px) { #sportPill { bottom: 76px; } }
.sport-mix-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 14px; font-size: 13px; color: var(--ink); cursor: pointer; flex-wrap: wrap; }
.sport-mix-toggle input { width: 17px; height: 17px; accent-color: var(--primary); }
.sport-chrono-details { max-width: 560px; margin: 2px auto 6px; font-size: 14px; line-height: 1.45; color: #3c4658; font-weight: 600; }
.sport-step-label small { display: block; font-size: 11.5px; font-weight: 500; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.sport-mix-note { margin: 6px auto 0; max-width: 480px; font-size: 12px; color: var(--muted); text-align: center; line-height: 1.4; }
/* Mobile : ne garder que Niveau / Nutrition / Sport (le reste = usage PC) */
@media (max-width: 760px) {
  .nav-item[data-view="prospects"],
  .nav-item[data-view="objectif"],
  .nav-item[data-view="contenu"] { display: none !important; }
}
/* Mobile : 3 onglets → barre centrée, boutons plus grands et confortables */
@media (max-width: 760px) {
  .sidebar nav { grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; max-width: 400px; margin: 0 auto; }
  .sidebar .nav-item { min-height: 58px; font-size: 12.5px; gap: 4px; padding: 6px 4px; }
  .sidebar .nav-ico { width: 22px; height: 22px; }
  main { padding-bottom: calc(86px + env(safe-area-inset-bottom)); }
  .toast { bottom: calc(80px + env(safe-area-inset-bottom)); }
  #sportPill { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* Briefing flash pre-appel */
#callBrief { position: fixed; right: 18px; bottom: 18px; z-index: 950; width: 380px; max-width: calc(100vw - 28px); max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 18px 50px rgba(13, 19, 31, .25); animation: cbIn .18s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cb-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; border-radius: 16px 16px 0 0; }
.cb-head strong { font-size: 14.5px; }
.cb-head button { border: 0; background: var(--canvas); width: 28px; height: 28px; border-radius: 8px; font-size: 15px; cursor: pointer; }
.cb-body { padding: 12px 14px 14px; font-size: 13.5px; line-height: 1.5; }
.cb-situation { margin: 0 0 10px; font-weight: 650; }
.cb-block { margin-bottom: 10px; }
.cb-tag { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); margin-bottom: 3px; }
.cb-block ul { margin: 2px 0 0; padding-left: 18px; }
.cb-block li { margin-bottom: 2px; }
.cb-ouverture { background: #eef0ff; border-radius: 10px; padding: 8px 11px; }
.cb-ouverture p { margin: 2px 0 0; font-weight: 650; }
.cb-attention { background: #fdf3e2; border-radius: 10px; padding: 8px 11px; font-size: 12.5px; }
.cb-meta { color: var(--muted); font-size: 11.5px; margin-top: 4px; }
@media (max-width: 760px) { #callBrief { right: 10px; left: 10px; width: auto; bottom: calc(86px + env(safe-area-inset-bottom)); } }