/* MOVE UP CRM — noir profond, bleu électrique, mobile d'abord (iPhone), barre d'onglets en bas.
   Thème unique et assumé : l'identité MOVE UP est noire. */
:root {
  --bg: #07080a;
  --surface: #111419;
  --surface-2: #191d24;
  --surface-3: #222730;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #f5f6f8;
  --muted: #adb2bd;
  --faint: #7f8591;
  --accent: #3d7bff;
  --accent-2: #6b9bff;
  --accent-soft: rgba(61, 123, 255, 0.14);
  --good: #34d98a;
  --call: #2fd27f;
  --call-ink: #04240f;
  --good-soft: rgba(60, 207, 134, 0.13);
  --warn: #f5b13d;
  --warn-soft: rgba(245, 177, 61, 0.13);
  --bad: #ff6262;
  --bad-soft: rgba(255, 98, 98, 0.12);
  --radius: 18px;
  --radius-sm: 12px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tabbar-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; touch-action: manipulation; }
body {
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sprite { display: none; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }

.ic { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ic-sm { width: 18px; height: 18px; }
.ic-xs { width: 15px; height: 15px; }

/* ---------- démarrage ---------- */
.boot { min-height: 100vh; display: grid; place-items: center; }
.boot-logo { width: 168px; opacity: 0.9; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: 0.45; } }

/* ---------- cadre ---------- */
.frame { min-height: 100vh; }
.main {
  padding: calc(var(--safe-t) + 8px) var(--gutter-r) calc(var(--tabbar-h) + var(--safe-b) + 96px) var(--gutter-l);
  max-width: 1120px;
  margin: 0 auto;
}
.topbar { display: flex; align-items: center; gap: 12px; min-height: 52px; }
.topbar .logo { height: 17px; width: auto; }
.topbar .spacer { flex: 1; }
.org-chip { font-size: 12.5px; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 999px; max-width: 52vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 14px 0 18px; }
.page-head h1 { font: 700 30px/1.08 var(--font-display); letter-spacing: -0.025em; margin: 0; text-wrap: balance; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-2); font-size: 15px; padding: 6px 0; background: none; border: 0; cursor: pointer; }

/* bandeau mode admin */
.acting {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(var(--safe-t) + 8px) var(--gutter-r) 8px var(--gutter-l);
  background: linear-gradient(90deg, #1b3ea8, #2e5fe6);
  font-size: 13.5px; font-weight: 600;
}
.acting .grow { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acting button { background: rgba(255,255,255,0.18); border: 0; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; font-size: 13px; cursor: pointer; }
.acting + .frame .main { padding-top: 8px; }

/* ---------- barre d'onglets (mobile) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px var(--gutter-r) calc(6px + var(--safe-b)) var(--gutter-l);
  background: rgba(10, 11, 14, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(20px); backdrop-filter: saturate(160%) blur(20px);
  border-top: 1px solid var(--line);
}
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 0; color: var(--faint); font-size: 10.5px; font-weight: 600; letter-spacing: 0.01em; }
.tab .ic { width: 24px; height: 24px; }
.tab.on { color: var(--text); }
.tab.on .ic { color: var(--accent-2); }

.fab {
  position: fixed; z-index: 41;
  right: max(18px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--tabbar-h) + var(--safe-b) + 16px);
  width: 56px; height: 56px; border-radius: 18px; border: 0;
  background: var(--accent); color: #fff; display: grid; place-items: center;
  box-shadow: 0 10px 30px rgba(61, 123, 255, 0.45), 0 2px 0 rgba(255,255,255,0.2) inset;
  cursor: pointer; transition: transform 0.15s;
}
.fab:active { transform: scale(0.94); }
.fab .ic { width: 26px; height: 26px; stroke-width: 2.2; }

/* ---------- barre latérale (ordinateur) ---------- */
.sidebar { display: none; }
@media (min-width: 900px) {
  .tabbar { display: none; }
  .frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh; padding: 26px 16px;
    border-right: 1px solid var(--line); background: #0a0b0e;
  }
  .sidebar .logo { height: 19px; width: auto; margin: 0 10px 26px; align-self: flex-start; }
  .side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 14.5px; }
  .side-link:hover { background: var(--surface); color: var(--text); }
  .side-link.on { background: var(--surface-2); color: var(--text); }
  .side-link.on .ic { color: var(--accent-2); }
  .side-org { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); }
  .side-org b { display: block; color: var(--text); font-size: 14px; }
  .main { padding: 28px 40px 80px; }
  .topbar { display: none; }
  .fab { bottom: 32px; right: 40px; }
  .acting { padding: 10px 40px; }
}

/* ---------- cartes et sections ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: 16px; }
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 0 2px 10px; }
.section-head h2 { font: 650 17px/1.2 var(--font-display); margin: 0; letter-spacing: -0.01em; }
.section-head a, .section-head button { color: var(--accent-2); font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; }
.grid-2 { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }

/* tuiles d'indicateurs */
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }
.kpi { padding: 14px 15px 15px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.kpi .label { font-size: 12.5px; color: var(--muted); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.kpi .value { font: 700 26px/1.15 var(--font-display); letter-spacing: -0.02em; margin-top: 8px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .hint { font-size: 12.5px; color: var(--faint); margin-top: 2px; }
.kpi.hero { background: linear-gradient(160deg, #1d3c97 0%, #2a5ae0 60%, #3d7bff 100%); border-color: transparent; }
.kpi.hero .label, .kpi.hero .hint { color: rgba(255,255,255,0.78); }

.alert { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border-radius: 14px; background: var(--warn-soft); color: #ffd28a; font-weight: 600; font-size: 14px; margin-top: 12px; }
.alert .ic { color: var(--warn); }

/* listes */
.list { display: flex; flex-direction: column; }
.row {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px;
  border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0;
  width: 100%; text-align: left; cursor: pointer;
}
.row:last-child { border-bottom: 0; }
.row:active { background: var(--surface-2); }
.row .grow { flex: 1; min-width: 0; }
.row .title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .meta { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.row .end { text-align: right; flex: none; }
.row .chev { color: var(--faint); width: 18px; height: 18px; }
@media (hover: hover) { .row:hover { background: var(--surface-2); } }
.card > .list > .row:first-child { border-top-left-radius: var(--radius); border-top-right-radius: var(--radius); }
.card > .list > .row:last-child { border-bottom-left-radius: var(--radius); border-bottom-right-radius: var(--radius); }

.avatar { width: 40px; height: 40px; border-radius: 13px; flex: none; display: grid; place-items: center; font-weight: 700; font-size: 14px; letter-spacing: 0.02em; background: var(--surface-3); color: var(--accent-2); }
.avatar.lg { width: 64px; height: 64px; border-radius: 20px; font-size: 22px; }
.avatar.client { background: var(--good-soft); color: var(--good); }

/* pastilles */
.pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: 0.02em; white-space: nowrap; }
.pill.lead { background: var(--accent-soft); color: var(--accent-2); }
.pill.client, .pill.active, .pill.won { background: var(--good-soft); color: var(--good); }
.pill.suspended, .pill.overdue { background: var(--warn-soft); color: var(--warn); }
.pill.cancelled, .pill.lost { background: var(--bad-soft); color: var(--bad); }
.pill.neutral { background: var(--surface-3); color: var(--muted); }

/* boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 18px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 650; font-size: 15px; cursor: pointer; white-space: nowrap; transition: transform 0.12s, background 0.15s;
}
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #4c86ff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-sm { height: 36px; padding: 0 13px; border-radius: 11px; font-size: 13.5px; }
.btn-block { width: 100%; }

.actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 16px; }
.action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--text); cursor: pointer; }
.action .ic { color: var(--accent-2); }
.action.off { opacity: 0.35; pointer-events: none; }

/* segments */
.segmented { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; padding: 3px; background: var(--surface-2); border-radius: 12px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.segmented::-webkit-scrollbar { display: none; }
.composer .segmented { display: flex; width: 100%; }
.composer .segmented button { flex: 1 0 auto; padding: 7px 11px; }
.section-head.section { margin-top: 26px; }
.segmented button, .segmented a { border: 0; background: none; color: var(--muted); font-weight: 650; font-size: 13.5px; padding: 7px 14px; border-radius: 9px; cursor: pointer; text-align: center; white-space: nowrap; }
.segmented button.on, .segmented a.on { background: var(--surface-3); color: var(--text); box-shadow: 0 1px 2px rgba(0,0,0,0.4); }
.page-title-inline { font: 700 24px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 2px; overflow-wrap: anywhere; }

.search { position: relative; flex: 1; min-width: 0; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--faint); width: 18px; height: 18px; }
.search input { width: 100%; height: 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--surface); padding: 0 14px 0 40px; font-size: 16px; }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }

/* ---------- pipeline ---------- */
.board {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(272px, 82vw); gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter-r) 16px var(--gutter-l);
  margin: 0 calc(-1 * var(--gutter-r)) 0 calc(-1 * var(--gutter-l));
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.board::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .board { grid-auto-columns: minmax(184px, 1fr); margin: 0; padding: 2px 0 16px; } .acting + .frame .sidebar { top: 50px; height: calc(100vh - 50px); } }
.col { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 9px; min-height: 140px; }
.col.drop { border-color: var(--accent); background: #10172a; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 2px 4px 6px; }
.col-head .name { font-weight: 700; font-size: 14.5px; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.col-head .count { font-size: 12px; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 1px 8px; font-weight: 700; }
.col-total { font-size: 13px; color: var(--muted); padding: 0 4px 4px; font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.dot.won { background: var(--good); }
.dot.lost { background: var(--bad); }
.deal { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 13px; cursor: pointer; text-align: left; width: 100%; }
.deal:active { transform: scale(0.99); }
.deal .t { font-weight: 650; line-height: 1.3; }
.deal .c { font-size: 13px; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal .v { font-weight: 700; margin-top: 8px; font-variant-numeric: tabular-nums; }
.deal[draggable="true"] { cursor: grab; }
.col-empty { color: var(--faint); font-size: 13px; text-align: center; padding: 18px 6px; border: 1px dashed var(--line-2); border-radius: 12px; }

.bars { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.bar-row .top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 6px; gap: 8px; }
.bar-row .top span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }
.bar { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 99px; background: linear-gradient(90deg, #2a5ae0, var(--accent-2)); transition: width 0.6s cubic-bezier(.2,.8,.2,1); }
.bar i.won { background: var(--good); }
.bar i.lost { background: var(--bad); opacity: 0.7; }

/* ---------- tâches ---------- */
.task { display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.task:last-child { border-bottom: 0; }
.check { width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-2); background: none; flex: none; display: grid; place-items: center; cursor: pointer; margin-top: 1px; color: transparent; padding: 0; }
.check .ic { width: 15px; height: 15px; stroke-width: 3; }
.check.done { background: var(--good); border-color: var(--good); color: #062612; }
.task .grow { flex: 1; min-width: 0; }
.task .body { white-space: pre-wrap; word-break: break-word; }
.task.done .body { color: var(--faint); text-decoration: line-through; }
.task .meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task .meta a { color: var(--accent-2); }
.when.late { color: var(--warn); font-weight: 650; }
.group-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); margin: 22px 4px 8px; }

/* ---------- fil d'activité ---------- */
.composer { padding: 12px; }
.composer textarea { width: 100%; min-height: 76px; resize: vertical; border: 1px solid var(--line); background: var(--surface-2); border-radius: 12px; padding: 11px 12px; font-size: 16px; margin-top: 10px; }
.composer .row-end { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 10px; flex-wrap: wrap; }
.composer input[type="datetime-local"] { height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); padding: 0 10px; font-size: 14px; }
.timeline { display: flex; flex-direction: column; }
.ev { display: flex; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); }
.ev:last-child { border-bottom: 0; }
.ev-ic { width: 32px; height: 32px; border-radius: 10px; background: var(--surface-3); display: grid; place-items: center; flex: none; color: var(--accent-2); }
.ev-ic .ic { width: 17px; height: 17px; }
.ev .grow { flex: 1; min-width: 0; }
.ev .body { white-space: pre-wrap; word-break: break-word; }
.ev .meta { font-size: 12.5px; color: var(--faint); margin-top: 3px; }

.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px 12px; padding: 14px 16px; font-size: 14.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }

/* ---------- console admin ---------- */
.mod { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mod:last-child { border-bottom: 0; }
.mod .grow { flex: 1; min-width: 0; }
.mod .name { font-weight: 650; }
.mod .meta { font-size: 13px; color: var(--muted); margin-top: 2px; }
.mod .price { font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; font-size: 14px; cursor: pointer; background: none; border: 0; color: var(--text); padding: 4px; }
.mod .price small { display: block; color: var(--faint); font-weight: 500; font-size: 11.5px; }
.switch { position: relative; width: 52px; height: 32px; flex: none; border-radius: 99px; border: 0; background: var(--surface-3); cursor: pointer; transition: background 0.2s; padding: 0; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.4); transition: transform 0.22s cubic-bezier(.3,.7,.3,1); }
.switch.on { background: var(--good); }
.switch.on::after { transform: translateX(20px); }
.switch.base { opacity: 0.5; cursor: default; }
.switch.busy { opacity: 0.6; pointer-events: none; }

.client-row .mods { display: flex; gap: 4px; margin-top: 5px; flex-wrap: wrap; }
.client-row .mods i { width: 8px; height: 8px; border-radius: 3px; background: var(--surface-3); }
.client-row .mods i.on { background: var(--accent); }
.mrr { font: 700 16px/1.2 var(--font-display); font-variant-numeric: tabular-nums; }
.mrr small { display: block; font: 500 11.5px var(--font); color: var(--faint); }

.linkbox { display: flex; gap: 8px; align-items: center; margin-top: 12px; }
.linkbox input { flex: 1; min-width: 0; height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 12px; font-size: 13.5px; color: var(--accent-2); }

/* ---------- formulaires et feuilles ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 13px; color: var(--muted); font-weight: 600; }
.field input, .field select, .field textarea {
  height: 48px; border-radius: 13px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 14px; font-size: 16px; width: 100%;
}
.field textarea { height: auto; min-height: 96px; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .composer textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.form-error { color: var(--bad); font-size: 14px; font-weight: 600; margin: -2px 0 12px; min-height: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { height: 38px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface-2); font-weight: 600; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; color: var(--text); }
.chip.on { border-color: var(--accent); background: var(--accent-soft); color: #cfe0ff; }

.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, 0.62); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); animation: fade 0.2s ease; }
.sheet {
  position: fixed; z-index: 61; left: 0; right: 0; bottom: 0;
  max-height: calc(100vh - var(--safe-t) - 24px); overflow-y: auto; overscroll-behavior: contain;
  background: #121419; border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0;
  padding: 10px var(--gutter-r) calc(24px + var(--safe-b)) var(--gutter-l);
  animation: up 0.28s cubic-bezier(.2,.9,.25,1);
}
.sheet .grab { width: 38px; height: 5px; border-radius: 9px; background: var(--line-2); margin: 0 auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.sheet-head h3 { font: 700 20px/1.2 var(--font-display); margin: 0; flex: 1; letter-spacing: -0.015em; }
.icon-btn { width: 36px; height: 36px; border-radius: 11px; border: 0; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.sheet-foot { display: flex; gap: 10px; margin-top: 8px; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 640px) {
  .sheet { left: 50%; right: auto; bottom: auto; top: 50%; width: min(520px, 92vw); transform: translate(-50%, -50%); border-radius: 22px; border: 1px solid var(--line-2); padding: 20px 24px 24px; animation: pop 0.22s ease; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40%); opacity: 0.4; } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%); } }

.menu-list .row { min-height: 54px; }
.menu-list .row .ic { color: var(--accent-2); }

/* toasts */
#toast-root { position: fixed; z-index: 80; left: 0; right: 0; top: calc(var(--safe-t) + 10px); display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast { background: #1d2028; border: 1px solid var(--line-2); padding: 11px 16px; border-radius: 14px; font-weight: 600; font-size: 14px; box-shadow: 0 12px 30px rgba(0,0,0,0.5); animation: toast 0.25s ease; max-width: 440px; }
.toast.err { border-color: rgba(255, 98, 98, 0.45); color: #ffb3b3; }
@keyframes toast { from { transform: translateY(-12px); opacity: 0; } }

/* ---------- connexion ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: calc(var(--safe-t) + 24px) var(--gutter-r) calc(var(--safe-b) + 24px) var(--gutter-l);
  background: radial-gradient(120% 60% at 50% -10%, rgba(61, 123, 255, 0.22), transparent 60%), var(--bg); }
.auth-card { width: 100%; max-width: 400px; }
.auth-logo { height: 26px; width: auto; display: block; margin: 0 auto 34px; }
.auth h1 { font: 700 28px/1.15 var(--font-display); letter-spacing: -0.02em; margin: 0 0 6px; text-align: center; }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 26px; }
.auth .foot { text-align: center; color: var(--faint); font-size: 13px; margin-top: 22px; }

/* états vides et chargement */
.empty { text-align: center; padding: 34px 20px; color: var(--muted); }
.empty .ic { width: 34px; height: 34px; color: var(--faint); margin-bottom: 10px; }
.empty b { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }
.empty .btn { margin-top: 16px; }
.skeleton { height: 64px; border-radius: var(--radius); background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; margin-bottom: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }

.profile { display: flex; align-items: center; gap: 14px; padding: 16px; }
.profile .grow { min-width: 0; }
.profile b { display: block; font-size: 17px; }
.profile span { color: var(--muted); font-size: 13.5px; }

.module-hero { text-align: center; padding: 34px 20px; }
.module-hero .badge { width: 64px; height: 64px; border-radius: 20px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-2); }
.module-hero .badge .ic { width: 30px; height: 30px; }
.module-hero h2 { font: 700 22px/1.2 var(--font-display); margin: 0 0 8px; }
.module-hero p { color: var(--muted); max-width: 420px; margin: 0 auto; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mt { margin-top: 14px; }
.right { text-align: right; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Machine à vendre : une action claire à la fois.
   Vert = appeler / argent gagné. Bleu = naviguer. Ambre = à risque. Rouge = en retard.
   ========================================================================== */
.page-head .sub b { color: var(--text); }
.btn-call { background: var(--call); color: var(--call-ink); font-weight: 700; box-shadow: 0 8px 24px rgba(47, 210, 127, 0.28); }
.btn-call:hover { background: #45dc8f; }
.btn-call.off { opacity: 0.35; pointer-events: none; box-shadow: none; }
.btn-lg { height: 56px; font-size: 17px; border-radius: 16px; margin-top: 14px; }
.btn-lg .ic { width: 22px; height: 22px; stroke-width: 2.2; }
.count-chip { font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface-3); border-radius: 999px; padding: 2px 9px; }

/* carte « Prochaine action » */
.focus { position: relative; overflow: hidden; padding: 18px 18px 18px; border-radius: 22px; border: 1px solid rgba(47, 210, 127, 0.35); background: radial-gradient(120% 140% at 0% 0%, rgba(47, 210, 127, 0.16), transparent 55%), var(--surface); }
.focus.late { border-color: rgba(255, 98, 98, 0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 98, 98, 0.14), transparent 55%), var(--surface); }
.focus.risk { border-color: rgba(245, 177, 61, 0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(245, 177, 61, 0.14), transparent 55%), var(--surface); }
.focus.meet, .focus.todo { border-color: rgba(107, 155, 255, 0.4); background: radial-gradient(120% 140% at 0% 0%, rgba(61, 123, 255, 0.18), transparent 55%), var(--surface); }
.focus-tag { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--call); }
.focus.late .focus-tag { color: var(--bad); }
.focus.risk .focus-tag { color: var(--warn); }
.focus.meet .focus-tag, .focus.todo .focus-tag { color: var(--accent-2); }
.focus-who { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 10px; }
.focus h2 { font: 700 27px/1.1 var(--font-display); letter-spacing: -0.025em; margin: 0; overflow-wrap: anywhere; }
.focus.clear h2 { margin-top: 10px; }
.focus-who span { font: 700 19px/1 var(--font-display); white-space: nowrap; }
.focus-sub { margin: 6px 0 0; color: var(--text); opacity: 0.86; }
.focus-why { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.focus-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 16px; }
.focus-cta .btn { height: 52px; font-size: 16px; }
.focus.clear .focus-cta { grid-template-columns: minmax(0, 1fr); }

/* file « Ensuite » */
.qlist { overflow: hidden; }
.q { display: flex; align-items: center; gap: 4px; border-bottom: 1px solid var(--line); padding-right: 10px; }
.q:last-child { border-bottom: 0; }
.q-main { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; padding: 12px 6px 12px 14px; }
.q-main .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.q-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--surface-3); color: var(--accent-2); }
.q-ic .ic { width: 18px; height: 18px; }
.q.hot .q-ic { background: var(--good-soft); color: var(--good); }
.q.late .q-ic { background: var(--bad-soft); color: var(--bad); }
.q.risk .q-ic { background: var(--warn-soft); color: var(--warn); }
.q-reason { font-size: 11.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.q.hot .q-reason { color: var(--good); }
.q.late .q-reason { color: var(--bad); }
.q.risk .q-reason { color: var(--warn); }
.q-name { font-weight: 650; font-size: 15.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-val { font-weight: 700; font-size: 14px; flex: none; }
.q-call { width: 44px; height: 44px; border-radius: 14px; border: 0; flex: none; display: grid; place-items: center; cursor: pointer; background: var(--call); color: var(--call-ink); }
.q-call .ic { width: 20px; height: 20px; stroke-width: 2.2; }
.q-call:active { transform: scale(0.94); }
.q-call.sm { width: 38px; height: 38px; border-radius: 12px; }
@media (hover: hover) { .q-main:hover { background: var(--surface-2); } }

/* objectif du mois */
.goal { padding: 16px; }
.goal-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 13px; font-weight: 600; color: var(--muted); }
.goal-top span::first-letter { text-transform: uppercase; }
.goal-top button { background: none; border: 0; color: var(--accent-2); font-weight: 600; font-size: 13.5px; cursor: pointer; padding: 0; }
.goal-val { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.goal-val b { font: 700 30px/1.1 var(--font-display); letter-spacing: -0.025em; color: var(--good); }
.goal-val span { color: var(--muted); font-size: 14px; }
.goal-val em { margin-left: auto; font-style: normal; font-weight: 700; font-size: 14px; color: var(--text); }
.bar.big { height: 12px; margin-top: 12px; }
.bar.big i.won { background: linear-gradient(90deg, #1fae69, var(--good)); }
.goal-hint { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.goal-hint b { color: var(--text); }
.goal.hit { border-color: rgba(52, 217, 138, 0.45); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.stat { padding: 12px 12px 13px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.stat span { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat b { font: 700 20px/1.15 var(--font-display); letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat small { font-size: 11.5px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat.warn { border-color: rgba(245, 177, 61, 0.35); }
.stat.warn b { color: var(--warn); }

/* fiche contact : prochaine étape */
.next { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; margin-top: 4px; border: 1px solid var(--line-2); background: var(--surface); }
.next .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.next b { font-size: 14px; }
.next span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.next > .ic { color: var(--accent-2); }
.next.ok { border-color: rgba(107, 155, 255, 0.3); }
.next.late { border-color: rgba(255, 98, 98, 0.4); background: var(--bad-soft); }
.next.late > .ic, .next.late b { color: #ff8f8f; }
.next.none { border-color: rgba(245, 177, 61, 0.4); background: var(--warn-soft); }
.next.none > .ic, .next.none b { color: #ffd28a; }
.actions { margin-top: 10px; }
.action { border-color: var(--line); }
button.action { font: inherit; font-size: 12px; font-weight: 600; }

/* pipeline : état du suivi sur chaque carte */
.deal .f { display: flex; align-items: center; gap: 5px; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.deal .f.ok { color: var(--accent-2); }
.deal .f.warn { color: var(--warn); }
.deal .f.bad { color: var(--bad); }
.deal .v { font-size: 16px; }
.alert { align-items: flex-start; line-height: 1.4; }
.alert b { color: #fff; }
.page-head + .alert, .alert + .board { margin-bottom: 14px; }
.alert + .board { margin-top: 14px; }
.deal-quick { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 16px; }

/* résultat d'appel */
.sheet-lead { margin: -6px 0 14px; }
.outcomes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.chip.outcome { height: 58px; justify-content: flex-start; gap: 10px; padding: 0 12px; border-radius: 14px; font-size: 14.5px; text-align: left; line-height: 1.2; min-width: 0; }
.chip.outcome span { min-width: 0; }
.chip.outcome .ic { width: 20px; height: 20px; color: var(--accent-2); }
.chip.outcome.won .ic, .chip.outcome.meeting .ic { color: var(--good); }
.chip.outcome.lost .ic { color: var(--bad); }
.chip.outcome.on { border-color: var(--accent); }
.chip.outcome.won.on, .chip.outcome.meeting.on { border-color: var(--good); background: var(--good-soft); color: #d5f8e6; }
.chip.outcome.lost.on { border-color: var(--bad); background: var(--bad-soft); color: #ffd3d3; }
#o-when { margin-top: 10px; }

/* vente gagnée */
.win { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; background: rgba(0, 0, 0, 0.6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: fade 0.2s ease; padding: 24px; }
.win-card { position: relative; text-align: center; padding: 28px 34px; border-radius: 26px; background: #0f1a14; border: 1px solid rgba(52, 217, 138, 0.5); box-shadow: 0 30px 80px rgba(47, 210, 127, 0.25); animation: winPop 0.5s cubic-bezier(.2, 1.5, .4, 1); display: flex; flex-direction: column; gap: 4px; align-items: center; }
.win-badge { width: 60px; height: 60px; border-radius: 50%; background: var(--good); color: var(--call-ink); display: grid; place-items: center; margin-bottom: 10px; }
.win-badge .ic { width: 30px; height: 30px; stroke-width: 3; }
.win-card b { font: 700 22px/1.2 var(--font-display); }
.win-card span { font: 700 34px/1.15 var(--font-display); letter-spacing: -0.03em; color: var(--good); }
.win-card small { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.win-burst { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.win-burst i { position: absolute; width: 9px; height: 14px; border-radius: 3px; background: var(--good); animation: burst 1.3s cubic-bezier(.1, .8, .3, 1) forwards; opacity: 0; }
.win-burst i:nth-child(3n) { background: #fff; }
.win-burst i:nth-child(3n+1) { background: var(--accent-2); }
.win-burst i:nth-child(1) { --x: -150px; --y: -170px; --r: 200deg; }
.win-burst i:nth-child(2) { --x: 140px; --y: -190px; --r: -160deg; }
.win-burst i:nth-child(3) { --x: -60px; --y: -230px; --r: 90deg; }
.win-burst i:nth-child(4) { --x: 70px; --y: -240px; --r: -240deg; }
.win-burst i:nth-child(5) { --x: -190px; --y: -60px; --r: 300deg; }
.win-burst i:nth-child(6) { --x: 195px; --y: -50px; --r: -120deg; }
.win-burst i:nth-child(7) { --x: -170px; --y: 90px; --r: 140deg; }
.win-burst i:nth-child(8) { --x: 165px; --y: 110px; --r: -300deg; }
.win-burst i:nth-child(9) { --x: -90px; --y: 190px; --r: 220deg; }
.win-burst i:nth-child(10) { --x: 95px; --y: 200px; --r: -80deg; }
.win-burst i:nth-child(11) { --x: 0px; --y: -260px; --r: 180deg; }
.win-burst i:nth-child(12) { --x: -120px; --y: -110px; --r: -200deg; }
.win-burst i:nth-child(13) { --x: 115px; --y: -120px; --r: 260deg; }
.win-burst i:nth-child(14) { --x: 10px; --y: 230px; --r: -140deg; }
@keyframes burst { 0% { transform: translate(0, 0) rotate(0); opacity: 1; } 100% { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }
@keyframes winPop { from { transform: scale(0.6); opacity: 0; } }

/* onglets plus lisibles */
.tab { color: #8a909c; }
.kpi .hint { color: var(--muted); }
.icon-btn.add { width: 42px; height: 42px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); }

/* ==========================================================================
   THÈME MOVE UP (même identité que le site getmoveup.ca)
   Noir pur, blanc, titres Inter Tight serrés, boutons pilule blancs.
   Vert = appeler et argent gagné · ambre = à risque · rouge = en retard.
   ========================================================================== */
:root {
  --bg: #000;
  --surface: #0d0d0f;
  --surface-2: #151517;
  --surface-3: #1e1e21;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --text: #fff;
  --muted: #b4b4bb;
  --faint: #7c7c84;
  --accent: #fff;
  --accent-2: #e6e6ea;
  --accent-soft: rgba(255, 255, 255, 0.1);
  --call: #2ee07f;
  --call-ink: #03210f;
  --good: #3ee08c;
  --radius: 20px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Inter Tight', 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
body { font-family: var(--font); background: #000; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid #fff; }

/* titres */
.page-head h1 { font: 600 34px/1.02 var(--font-display); letter-spacing: -0.045em; }
.page-head .sub { color: var(--muted); }
.section-head h2 { font: 600 17px/1.2 var(--font-display); letter-spacing: -0.02em; }
.section-head a, .section-head button { color: #fff; opacity: 0.75; }
.section-head a:hover, .section-head button:hover { opacity: 1; }
.page-title-inline { font: 600 28px/1.08 var(--font-display); letter-spacing: -0.04em; }
.back { color: var(--muted); }
.back:hover { color: #fff; }

/* boutons pilule */
.btn { border-radius: 999px; font-weight: 600; letter-spacing: -0.005em; height: 48px; padding: 0 22px; transition: transform .15s, background .2s, border-color .2s, opacity .2s; }
.btn-sm { height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13.5px; }
.btn-lg { height: 58px; border-radius: 999px; }
.btn-primary { background: #fff; color: #000; }
.btn-primary:hover { background: #e9e9ec; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: #fff; }
.btn-ghost.off { opacity: 0.35; pointer-events: none; }
.btn-call { box-shadow: 0 10px 30px rgba(46, 224, 127, 0.25); }
.btn-call:hover { background: #4ae891; }
.btn-danger { background: rgba(255, 98, 98, 0.14); color: #ff8a8a; border-color: rgba(255, 98, 98, 0.3); }
.danger-text { color: #ff8a8a; }
@media (hover: hover) { .btn:hover { transform: translateY(-1px); } }

/* cartes */
.card { background: var(--surface); border-color: var(--line); border-radius: 22px; }
.kpi { background: var(--surface); border-radius: 20px; }
.kpi .value { font: 600 28px/1.1 var(--font-display); letter-spacing: -0.035em; }
.kpi.hero { background: #fff; color: #000; border-color: #fff; }
.kpi.hero .label, .kpi.hero .hint { color: #55555c; }
.kpis.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.avatar { background: var(--surface-3); color: #fff; border-radius: 14px; }
.avatar.client { background: rgba(62, 224, 140, 0.14); color: var(--good); }
.avatar.doc { color: var(--muted); }
.pill.lead { background: rgba(255, 255, 255, 0.1); color: #fff; }
.pill.neutral { background: var(--surface-3); color: var(--muted); }
.ev-ic { color: #fff; }
.menu-list .row .ic, .row > .ic { color: #fff; }
.action .ic { color: #fff; }
.action { border-radius: 18px; background: var(--surface); }
.dot { background: #fff; }
.bar i { background: linear-gradient(90deg, #8a8a92, #fff); }
.col { border-radius: 22px; }
.col.drop { border-color: #fff; background: #111; }
.deal { background: var(--surface-2); border-radius: 16px; }
.task .meta a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255,255,255,.3); text-underline-offset: 3px; }
.goal-top button { color: #fff; opacity: .8; }
.focus.meet, .focus.todo { border-color: rgba(255, 255, 255, 0.28); background: radial-gradient(120% 140% at 0% 0%, rgba(255, 255, 255, 0.1), transparent 55%), var(--surface); }
.focus.meet .focus-tag, .focus.todo .focus-tag { color: #fff; }
.q-ic { color: #fff; }
.next > .ic { color: #fff; }
.next.ok { border-color: var(--line-2); }

/* segments, chips, champs */
.segmented { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; }
.segmented button, .segmented a { border-radius: 999px; padding: 8px 15px; color: var(--muted); }
.segmented button.on, .segmented a.on { background: #fff; color: #000; box-shadow: none; }
.seg-n { font-size: 11.5px; opacity: .6; margin-left: 2px; }
.chip { border-radius: 999px; background: transparent; border-color: rgba(255, 255, 255, 0.22); }
.chip.on { border-color: #fff; background: #fff; color: #000; }
.field input, .field select, .field textarea, .search input, .composer textarea, .linkbox input { background: var(--surface-2); border-color: var(--line-2); border-radius: 14px; }
.field input:focus, .field select:focus, .field textarea:focus, .search input:focus, .composer textarea:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.12); }
.search input { border-radius: 999px; }
.field input:disabled, .field textarea:disabled { opacity: .6; }
.switch.on { background: var(--good); }

/* cadre : barre latérale et onglets */
.tabbar { background: rgba(0, 0, 0, 0.82); border-top-color: var(--line); }
.tab { color: #77777f; }
.tab.on { color: #fff; }
.tab.on .ic { color: #fff; }
.fab { background: #fff; color: #000; border-radius: 999px; box-shadow: 0 12px 34px rgba(255, 255, 255, 0.18); }
@media (min-width: 900px) {
  .sidebar { background: #000; border-right-color: var(--line); gap: 2px; overflow-y: auto; }
  .side-link { border-radius: 999px; color: var(--muted); font-weight: 500; padding: 9px 14px; border: 0; background: none; cursor: pointer; font-size: 14.5px; text-align: left; }
  .side-link:hover { background: var(--surface-2); color: #fff; }
  .side-link.on { background: #fff; color: #000; }
  .side-link.on .ic { color: #000; }
  .side-console { margin-top: 10px; border: 1px solid var(--line) !important; }
  .side-org { margin-top: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
}
.org-chip { border-color: var(--line-2); }
.acting { background: #fff; color: #000; }
.acting button { background: #000; color: #fff; }

/* connexion */
.auth { background: radial-gradient(90% 55% at 50% -5%, rgba(255, 255, 255, 0.12), transparent 60%), #000; }
.auth h1 { font: 600 34px/1.05 var(--font-display); letter-spacing: -0.045em; }
.toast { background: #fff; color: #000; border-color: #fff; border-radius: 999px; padding: 11px 18px; }
.toast.err { background: #2a0e0e; color: #ffb3b3; border-color: rgba(255, 98, 98, 0.5); }
.sheet { background: #0e0e10; }
.icon-btn { background: var(--surface-3); color: #fff; border-radius: 999px; }
.module-hero .badge { background: rgba(255,255,255,.08); color: #fff; }
.empty-cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.empty-cta .btn { margin-top: 0; }

/* ---------- entrée du mode appels (accueil) ---------- */
.call-entry { display: flex; align-items: center; gap: 14px; padding: 16px 16px 16px 18px; margin-bottom: 14px; border-radius: 22px; background: #fff; color: #000; transition: transform .15s; }
.call-entry:active { transform: scale(.99); }
.call-entry .grow { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.call-entry b { font: 600 18px/1.2 var(--font-display); letter-spacing: -0.02em; }
.call-entry small { font-size: 13px; color: #55555c; }
.ce-ic { width: 44px; height: 44px; border-radius: 50%; background: var(--call); color: var(--call-ink); display: grid; place-items: center; flex: none; animation: ring 2.4s ease-out infinite; }
.ce-ic .ic { stroke-width: 2.2; }
.ce-go { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 14px; background: #000; color: #fff; padding: 9px 14px; border-radius: 999px; flex: none; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(46, 224, 127, .55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(46, 224, 127, 0); } }
@media (max-width: 380px) { .ce-go { padding: 9px 11px; font-size: 13px; } .call-entry small { font-size: 12px; } }

/* ---------- mode appels ---------- */
.call-stats { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 14px; }
.cs, .cs-goal { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.cs small, .cs-goal small { font-size: 12px; color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cs b, .cs-goal b { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.03em; }
.cs span { font-size: 11.5px; color: var(--faint); white-space: nowrap; }
.cs-goal { flex-direction: row; align-items: center; gap: 12px; cursor: pointer; color: #fff; text-align: left; font: inherit; }
.cs-goal > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.cs-goal > span:last-child b { font-size: 18px; }
.cs-ring { position: relative; width: 48px; height: 48px; flex: none; display: grid; place-items: center; }
.cs-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.cs-ring circle { fill: none; stroke: var(--surface-3); stroke-width: 3.5; }
.cs-ring circle.v { stroke: var(--call); stroke-linecap: round; transition: stroke-dasharray .9s cubic-bezier(.2,.8,.2,1); }
.cs-ring b { font-size: 14px !important; letter-spacing: -0.02em; }
.call-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1000px) { .call-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; } .call-side { position: sticky; top: 24px; } }
.dial { position: relative; padding: 22px 20px 20px; border-radius: 26px; background: radial-gradient(130% 90% at 0% 0%, rgba(255,255,255,.09), transparent 55%), var(--surface); border: 1px solid var(--line-2); animation: dialIn .35s cubic-bezier(.2,.9,.25,1); overflow: hidden; }
.dial.out { animation: dialOut .18s ease forwards; }
@keyframes dialIn { from { opacity: 0; transform: translateX(26px) scale(.985); } }
@keyframes dialOut { to { opacity: 0; transform: translateX(-26px) scale(.985); } }
.dial-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.dial-tag i { width: 8px; height: 8px; border-radius: 50%; background: #fff; }
.dial-tag.hot { color: var(--call); } .dial-tag.hot i { background: var(--call); box-shadow: 0 0 0 4px rgba(46,224,127,.18); }
.dial-tag.late { color: var(--warn); } .dial-tag.late i { background: var(--warn); }
.dial-co { display: block; margin-top: 12px; font: 600 clamp(28px, 7vw, 40px)/1.02 var(--font-display); letter-spacing: -0.045em; overflow-wrap: anywhere; }
.dial-sub { margin-top: 6px; color: var(--muted); font-size: 15px; }
.dial-phone { display: inline-block; margin-top: 14px; font: 600 22px/1 var(--font-display); letter-spacing: -0.02em; color: #fff; border-bottom: 1px dashed rgba(255,255,255,.35); padding-bottom: 3px; }
.dial-note { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.dial-note .ic { margin-top: 2px; color: var(--faint); }
.dial-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; margin-top: 20px; }
.dial-cta .btn-lg { margin-top: 0; }
.dial-cta .btn-call { font-size: 18px; }
.dial.dialed .dial-cta .btn-call { animation: none; opacity: .55; box-shadow: none; }
.dial.dialed .dial-q { color: #fff; }
.dial.dialed .dial-out { animation: nudge .6s ease 1; }
@keyframes nudge { 30% { transform: translateY(-3px); } }
.dial-q { margin: 22px 2px 10px; font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); transition: color .3s; }
.dial-out { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 560px) { .dial-out { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.dout { position: relative; display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 12px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: #fff; font: 600 14.5px/1.15 var(--font); text-align: left; cursor: pointer; min-width: 0; transition: background .15s, border-color .15s, transform .12s; }
.dout:active { transform: scale(.97); }
.dout span { min-width: 0; }
.dout .ic { width: 20px; height: 20px; color: var(--muted); }
.dout kbd { display: none; position: absolute; right: 9px; top: 7px; font: 600 10px var(--font); color: var(--faint); }
@media (hover: hover) and (pointer: fine) { .dout kbd { display: block; } .dout:hover { border-color: rgba(255,255,255,.45); } }
.dout.meeting .ic, .dout.won .ic { color: var(--call); }
.dout.lost .ic { color: #ff8a8a; }
.dout.on { background: #fff; color: #000; border-color: #fff; }
.dout.on .ic { color: #000; }
.dout.won.on, .dout.meeting.on { background: var(--call); border-color: var(--call); color: var(--call-ink); }
.dout.won.on .ic, .dout.meeting.on .ic { color: var(--call-ink); }
.dout.lost.on { background: #ff6b6b; border-color: #ff6b6b; color: #2a0505; }
.dout.lost.on .ic { color: #2a0505; }
.dial-next { margin-top: 14px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; animation: liveIn .25s ease; }
.dn-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.dial-next input { height: 46px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 14px; font-size: 16px; width: 100%; }
.dial-next input:focus { outline: none; border-color: #fff; }
@keyframes liveIn { from { opacity: 0; transform: translateY(6px); } }
.script summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 16px 18px; font: 600 16px/1.2 var(--font-display); letter-spacing: -0.01em; }
.script summary::-webkit-details-marker { display: none; }
.script summary::after { content: ""; margin-left: auto; width: 9px; height: 9px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg) translate(-3px, -3px); opacity: .6; transition: transform .2s; }
.script[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.script-body { padding: 0 18px 8px; white-space: pre-wrap; font-size: 14.5px; line-height: 1.6; color: #e4e4e8; max-height: 60vh; overflow-y: auto; }
.script-body mark { background: rgba(46,224,127,.18); color: #b8ffd6; border-radius: 5px; padding: 0 4px; }
.script-edit { display: block; padding: 4px 18px 16px; font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.call-side .qlist .q { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); color: inherit; font: inherit; text-align: left; cursor: pointer; padding: 0 10px 0 0; }
.call-side .qlist .q:last-child { border-bottom: 0; }
.call-empty .ic { color: var(--call); }
@media (max-width: 400px) {
  .call-stats { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .cs-goal { grid-column: 1 / -1; }
  .dial { padding: 18px 16px 16px; }
  .dout { height: 54px; font-size: 14px; padding: 0 10px; gap: 8px; }
}

/* ---------- import ---------- */
.file-btn { cursor: pointer; margin-bottom: 4px; }
#imp-text { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 120px; white-space: pre; }
.imp-cols { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-top: 14px; }
.imp-col { display: flex; flex-direction: column; gap: 5px; padding: 10px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.imp-col span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.imp-col select { height: 36px; border-radius: 10px; border: 1px solid var(--line-2); background: #000; color: #fff; padding: 0 8px; font-size: 14px; }
.imp-warn { margin: 10px 0 0; font-size: 13px; color: var(--warn); }
.imp-prev { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; }
.imp-prev > div { display: flex; flex-direction: column; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.04); }
.imp-prev span { color: var(--muted); font-size: 12.5px; }

/* ---------- soumissions et factures ---------- */
.doc-head { margin: 8px 0 14px; }
.doc-head .pill { margin-bottom: 8px; }
.doc-head .muted { font-size: 14px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.linked { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.linked a { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.paper { background: #fff; color: #0b0b0c; border-radius: 24px; padding: 26px 22px; box-shadow: 0 30px 80px rgba(255,255,255,.06); }
.paper-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-bottom: 18px; border-bottom: 1px solid #e4e4e8; }
.paper-top > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.paper-org { font: 600 22px/1.1 var(--font-display); letter-spacing: -0.03em; }
.paper-top span { font-size: 13px; color: #55555c; }
.paper-no { text-align: right; }
.paper-no b { font-size: 12px; letter-spacing: .2em; color: #55555c; }
.paper-no span:nth-child(2) { font: 600 22px/1.1 var(--font-display); color: #0b0b0c; }
.paper-to { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; font-size: 14px; }
.paper-to small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #77777e; margin-bottom: 4px; }
.paper-to span { color: #55555c; }
.paper-title { font: 600 24px/1.15 var(--font-display); letter-spacing: -0.035em; margin: 22px 0 12px; }
.paper-scroll { overflow-x: auto; margin: 0 -4px; }
.paper-lines { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 420px; }
.paper-lines th { text-align: left; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: #77777e; font-weight: 600; padding: 8px 4px; border-bottom: 1px solid #e4e4e8; }
.paper-lines td { padding: 12px 4px; border-bottom: 1px solid #f0f0f2; vertical-align: top; }
.paper-lines .num { text-align: right; white-space: nowrap; }
.paper-tot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 18px; margin: 16px 0 0 auto; max-width: 340px; font-size: 14px; }
.paper-tot dt { color: #55555c; } .paper-tot dd { margin: 0; text-align: right; }
.paper-tot .grand { font: 600 20px/1.2 var(--font-display); color: #0b0b0c; padding-top: 8px; border-top: 1px solid #e4e4e8; margin-top: 4px; }
.paper-notes { margin: 20px 0 0; padding: 14px; border-radius: 14px; background: #f4f4f6; font-size: 14px; white-space: pre-wrap; }
.paper-foot { margin: 18px 0 0; font-size: 12.5px; color: #77777e; }
.editor { padding: 16px; }
.li-head, .li { display: grid; grid-template-columns: minmax(0, 1fr) 64px 96px 92px 36px; gap: 8px; align-items: center; }
.li-head { font-size: 11.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .08em; padding: 0 2px 6px; }
.li { margin-bottom: 8px; }
.li input { height: 44px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-2); padding: 0 10px; font-size: 15px; width: 100%; min-width: 0; }
.li input:focus { outline: none; border-color: #fff; }
.li-q, .li-p { text-align: right; }
.li-t { text-align: right; font-size: 14px; color: var(--muted); white-space: nowrap; }
@media (max-width: 620px) {
  .li-head { display: none; }
  .li { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px; padding: 10px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid var(--line); }
  .li-d { grid-column: 1 / -1; }
  .li-t { grid-column: 1 / 3; text-align: left; }
  .li-x { grid-row: 3; grid-column: 3; }
}
.cat { margin: 14px 0 4px; }
.cat small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 8px; }
.cat .chip { height: 34px; font-size: 13px; }
.tax-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 14px; color: var(--muted); cursor: pointer; }
.tax-row input { width: 20px; height: 20px; accent-color: #fff; }
.ed-total { height: 48px; display: flex; align-items: center; font: 600 20px/1 var(--font-display); letter-spacing: -0.02em; }
.ed-foot { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
@media print {
  body, html { background: #fff !important; }
  .sidebar, .tabbar, .fab, .topbar, .doc-actions, .back, .acting, .linked, #toast-root, .doc-head { display: none !important; }
  .main { padding: 0 !important; max-width: none; }
  .frame { display: block !important; }
  .paper { box-shadow: none; border-radius: 0; padding: 0; }
}

/* ---------- rapports ---------- */
.chart-card { padding: 18px 16px 14px; }
.vbars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 5px; height: 170px; align-items: end; }
.vb { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 5px; min-width: 0; }
.vb i { display: flex; flex-direction: column; justify-content: flex-end; width: 100%; max-width: 26px; height: 0; min-height: 2px; border-radius: 7px 7px 3px 3px; background: rgba(255,255,255,.85); transition: height .7s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.vb em { display: block; width: 100%; height: 0; background: var(--call); transition: height .9s cubic-bezier(.2,.8,.2,1) .2s; }
.vb small { font-size: 10.5px; color: var(--faint); }
.vb-n { font-size: 10.5px; color: var(--muted); min-height: 13px; }
.legend { display: flex; gap: 16px; margin-top: 12px; font-size: 12.5px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.legend .l1 { background: #fff; } .legend .l2 { background: var(--call); }

/* ---------- paramètres ---------- */
.script-input { min-height: 380px !important; font-size: 14.5px !important; line-height: 1.55; }
.set-save .form-error { margin-bottom: 10px; }
.cs-goal { justify-content: flex-start; }
.li-m { display: none; }
@media (max-width: 560px) {
  .paper { padding: 22px 18px; }
  .paper-lines { min-width: 0; }
  .paper-lines th:nth-child(2), .paper-lines th:nth-child(3), .paper-lines td:nth-child(2), .paper-lines td:nth-child(3) { display: none; }
  .li-m { display: block; margin-top: 3px; font-size: 12.5px; color: #77777e; }
  .paper-no { text-align: left; }
}
.main { min-width: 0; }
.paper-lines .li-m { text-align: left; }
@media (min-width: 900px) { .main { width: 100%; } }
.auth-card.private { text-align: center; } .auth-card.private .sub { margin-bottom: 0; }

/* ---------- lien client : suivi, signature, envoi ---------- */
.doc-track { margin: 4px 0 14px; font-size: 13.5px; color: var(--muted); }
.paper-signed { display: flex; flex-direction: column; gap: 2px; margin-top: 18px; padding-top: 14px; border-top: 1px dashed #d4d4da; font-size: 13.5px; color: #55555c; }
.paper-signed small { font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: #77777e; }
.paper-signed img { display: block; max-width: 220px; height: auto; margin: 4px 0; }
.share-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.share-grid .btn { width: 100%; justify-content: center; }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--good); font-weight: 600; margin: 0 0 12px; }
.btn-primary.off { opacity: 0.35; pointer-events: none; }

/* Retour au CRM depuis la console */
.logo-btn { display: inline-flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: none; }
.sidebar .logo-btn { align-self: flex-start; }
.side-home { margin-bottom: 14px; border: 1px solid var(--line) !important; font-weight: 600; }

/* Confirmation de rendez-vous */
.msg-preview { background: var(--surface-2, #17171a); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.q-call.meet { background: var(--good, #2fdc7f); color: #04130a; }

/* Rapports : simple et visuel */
.rep-hero { padding: 20px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, #e9ebef); color: #0b0b0c; }
.rep-hero > span { font-size: 13px; font-weight: 600; color: #55585f; }
.rep-hero > b { display: block; font: 800 40px/1.1 var(--font-display); letter-spacing: -0.03em; margin: 6px 0 12px; }
.rep-sub { display: flex; flex-wrap: wrap; gap: 6px; }
.rep-sub span { font-size: 12.5px; color: #33353a; background: rgba(0,0,0,.06); border-radius: 999px; padding: 5px 10px; }
.funnel { display: flex; flex-direction: column; align-items: center; }
.fn-step { width: 0; min-width: 120px; display: flex; align-items: baseline; justify-content: center; gap: 8px; padding: 12px 10px; border-radius: 14px; transition: width .7s cubic-bezier(.2,.8,.2,1); }
.fn-step b { font: 800 22px/1 var(--font-display); }
.fn-step span { font-size: 13.5px; font-weight: 600; }
.fn-step.s0 { background: var(--surface-3); }
.fn-step.s1 { background: rgba(61,123,255,.28); }
.fn-step.s2 { background: rgba(61,123,255,.55); }
.fn-step.s3 { background: var(--call); color: var(--call-ink); }
.fn-conv { padding: 4px 0; }
.fn-conv span { font-size: 12px; font-weight: 700; color: var(--muted); }
.fn-conv span::before { content: "↓ "; }
.rep-money { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.rep-money.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.chart-empty { padding: 18px 16px; color: var(--faint); font-size: 14px; text-align: center; }
.rm-tile { padding: 12px 11px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); min-width: 0; }
.rm-tile span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; color: var(--muted); font-weight: 600; }
.rm-tile b { display: block; font: 700 19px/1.2 var(--font-display); margin-top: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-tile.good b { color: var(--good); }
.rm-tile.warn b { color: var(--warn); }

/* Accueil : liste « À faire aujourd'hui » */
.todo .q > .check { margin: 0 0 0 14px; }
.todo .q > .check:hover { border-color: var(--call); color: var(--call); }
.todo .q-main { padding-left: 10px; }
.todo .q.first { background: var(--surface-2); }
.todo .task { padding: 12px 14px; border-bottom: 1px solid var(--line); }
.stats.glance { margin-top: 0; }
.stat.good b { color: var(--good); }
.stat.warn b { color: var(--warn); }

/* Agenda : jour / semaine / mois */
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.cal-nav { display: flex; align-items: center; gap: 6px; }
.cal-nav .icon-btn { font-size: 22px; line-height: 1; color: var(--text); }
.cal-label { background: none; border: 0; color: var(--text); font-weight: 700; font-size: 15px; padding: 6px 4px; cursor: pointer; min-width: 0; }
.cal-grid { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-dh { display: grid; grid-template-columns: 38px repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-dh button { background: none; border: 0; color: var(--muted); padding: 8px 0; display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.cal-dh small { font-size: 10.5px; font-weight: 700; }
.cal-dh b { font-size: 15px; color: var(--text); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.cal-dh button.today b { background: #3d7bff; color: #fff; }
.cal-body { display: grid; grid-template-columns: 38px minmax(0, 1fr); max-height: 62vh; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.cal-times span { display: block; height: 56px; font-size: 10.5px; color: var(--faint); text-align: right; padding: 2px 6px 0 0; }
.cal-cols { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 56px; }
.cal-col.today { background-color: rgba(61,123,255,.08); }
.cal-ev { position: absolute; left: 2px; right: 2px; border-radius: 8px; background: #3d7bff; color: #fff; padding: 3px 6px; font-size: 11.5px; line-height: 1.2; overflow: hidden; cursor: grab; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; display: flex; flex-direction: column; z-index: 1; transition: box-shadow .15s, transform .15s; }
.cal-ev b { font-size: 11px; font-weight: 700; }
.cal-ev span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.done { background: var(--surface-3); color: var(--muted); }
.cal-ev.dragging { z-index: 5; transform: scale(1.04); box-shadow: 0 10px 26px rgba(0,0,0,.6); background: var(--call); color: var(--call-ink); cursor: grabbing; }
.cal-grid.week .cal-ev { padding: 3px 4px; font-size: 10.5px; }
.cal-tip { font-size: 12.5px; margin-top: 10px; text-align: center; }
.cal-month { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cal-wd { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); text-align: center; font-size: 11px; font-weight: 700; color: var(--faint); padding: 8px 0; border-bottom: 1px solid var(--line); }
.cal-cells { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-cell { min-height: 64px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: none; color: var(--text); padding: 4px 3px; display: flex; flex-direction: column; align-items: stretch; gap: 2px; text-align: left; cursor: pointer; min-width: 0; }
.cal-cell.out { color: var(--faint); opacity: .5; }
.cal-dn { font-size: 12px; font-weight: 700; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; }
.cal-cell.today .cal-dn { background: #3d7bff; color: #fff; }
.cal-chip { font-size: 9.5px; background: rgba(61,123,255,.22); color: #9dbcff; border-radius: 4px; padding: 1px 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip.done { opacity: .5; }
.cal-more { font-size: 9.5px; color: var(--muted); }
.move-what { font-size: 17px; margin: 0 0 6px; }
.move-from { color: var(--muted); text-decoration: line-through; margin: 0; }
.move-to { color: var(--call); font-weight: 700; font-size: 16px; margin: 4px 0 12px; }
input[type="datetime-local"], input[type="date"], input[type="time"] { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; width: 100%; display: block; }
.combo { position: relative; }
.combo-list { margin-top: 6px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface-2); max-height: 260px; overflow-y: auto; }
.combo-list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); font-size: 15px; padding: 12px 14px; cursor: pointer; }
.combo-list button:last-child { border-bottom: 0; }
.combo-list button:active { background: var(--surface-3); }
.combo-none { padding: 12px 14px; color: var(--faint); font-size: 14px; }
input[type="datetime-local"] { text-align: left; line-height: 1.2; }
input[type="datetime-local"]::-webkit-date-and-time-value { text-align: left; margin: 0; }
/* Rapports : graphique à lignes (style bourse) */
.lc-card { padding: 16px 14px 12px; }
.lc-legend { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; margin-bottom: 14px; }
.lc-k { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lc-k span { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lc-k i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lc-k { position: relative; }
.lc-k i { position: absolute; top: 4px; left: 0; }
.lc-k span { padding-left: 13px; }
.lc-k b { font: 800 20px/1.1 var(--font-display); }
.lc-k small { font-size: 11px; color: var(--faint); }
.lc-k.k0 i { background: #fff; } .lc-k.k1 i { background: #9cc3ff; } .lc-k.k2 i { background: #3d7bff; } .lc-k.k3 i { background: var(--call); }
.lc-plot { position: relative; height: 170px; }
.lc-plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.lc-max { position: absolute; top: -2px; right: 0; font-size: 10.5px; color: var(--faint); }
.lc-grid { stroke: rgba(255,255,255,.08); stroke-width: 1; stroke-dasharray: 3 4; }
.lc-area { fill: url(#lcFill); stroke: none; }
.lc-line { fill: none; stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.lc-line.l0 { stroke: #fff; } .lc-line.l1 { stroke: #9cc3ff; } .lc-line.l2 { stroke: #3d7bff; } .lc-line.l3 { stroke: var(--call); stroke-width: 2.6; }
.lc-x { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: var(--faint); }
