@font-face {
  font-family: "Overused Grotesk Medium";
  src: url("/fonts/overused-grotesk-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/fonts/inter-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("/fonts/playfair-display-bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root{
  --ink:#111820;
  --night:#161512;
  --paper:#f7f7f7;
  --white:#fff;
  --positive:#1f7a52;
  --negative:#b3261e;
  --text:rgba(0,0,0,.90);
  --text-soft:rgba(0,0,0,.70);
  --text-muted:rgba(0,0,0,.50);
  --line:rgba(0,0,0,.10);
  --display:"Overused Grotesk Medium",sans-serif;
  --serif:"Playfair Display",Georgia,serif;
  --body:"Inter",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-family:var(--body);
  color:var(--text);
  font-size:14px;
  background:var(--paper);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font:inherit}
button,a,input,select,textarea{outline-offset:4px}
button{cursor:pointer}
a{color:var(--ink)}

button{border:1px solid var(--line);background:var(--white);color:var(--ink);border-radius:6px;padding:11px 16px;font-weight:500;font-size:13px;transition:background .15s,border-color .15s,transform .15s}
button:hover{background:rgba(0,0,0,.04)}
button:disabled{opacity:.5;cursor:wait}
button.primary{background:var(--night);color:var(--paper);border-color:var(--night)}
button.primary:hover{background:var(--ink)}
button.quiet{background:transparent;border-color:transparent;color:var(--text-soft)}
button.quiet:hover{background:rgba(0,0,0,.05)}
button.danger{color:var(--negative)}

.icon{width:19px;height:19px;flex-shrink:0;display:inline-block;vertical-align:middle}

.shell{display:grid;grid-template-columns:224px minmax(0,1fr);min-height:100vh}

.sidebar{background:var(--white);border-right:1px solid var(--line);padding:32px 20px;display:flex;flex-direction:column;position:sticky;top:0;height:100vh}
.brand{display:flex;gap:12px;align-items:center;padding:0 4px 38px}
.monogram{position:relative;background:#000;width:36px;height:36px;flex-shrink:0;overflow:hidden;border-radius:6px}
.monogram img{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);display:block;width:68px;height:auto;max-width:none}
.brand strong{font-family:var(--display);font-weight:500;font-size:17px;letter-spacing:-.02em}
.brand small{display:block;font-size:10px;letter-spacing:.14em;text-transform:uppercase;color:var(--text-muted);margin-top:4px}
.nav{display:grid;gap:4px}
.nav button{text-align:left;border:0;background:none;color:var(--text-muted);display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:6px;font-size:13px;font-weight:500}
.nav button:hover{background:rgba(0,0,0,.04);color:var(--text)}
.nav button.active{background:var(--ink);color:var(--paper)}
.sidebar-bottom{margin-top:auto}
.local{font-size:12px;color:var(--text-muted);padding:18px 10px 0;border-top:1px solid var(--line);line-height:1.6}
.local b{font-weight:500;color:var(--ink)}
.user{padding:18px 8px 0;display:flex;gap:10px;align-items:center}
.avatar{width:32px;height:32px;flex:0 0 32px;border-radius:50%;background:var(--paper);border:1px solid var(--line);display:grid;place-items:center;font-size:11px;font-weight:500;color:var(--ink)}
.user small{display:block;color:var(--text-muted);margin-top:2px}
.user>button{margin-left:auto;padding:8px;border-color:transparent}

.main{padding:0 40px 40px;min-width:0}
.demo-strip{background:var(--night);color:var(--paper);margin:0 0 24px;padding:10px 14px;border-radius:6px;font-size:12px}

.eyebrow{font-size:11px;font-weight:500;letter-spacing:.08em;color:var(--text-muted);text-transform:uppercase;margin-bottom:10px}
h1{font-family:var(--display);font-weight:500;font-size:32px;letter-spacing:-.03em;line-height:1.08;margin:0 0 8px}
h2{font-family:var(--display);font-weight:500;font-size:18px;letter-spacing:-.01em;margin:0}
h3{font-size:14px;font-weight:500;margin:0}
p{line-height:1.6}
.muted,.subtitle{color:var(--text-soft)}
.subtitle{margin:0;font-size:13px}

.mt-relay-main,.mt-bureau-main{padding:0!important}
.mt-hero{position:relative;margin:0 0 0 0;padding:26px 44px 40px;background:#000;color:#f5f1e8;display:flex;flex-direction:column;gap:36px}
.mt-hero-top{display:flex;justify-content:space-between;align-items:center;font-size:12px;color:rgba(245,241,232,.65)}
.mt-hero-who{display:flex;align-items:center;gap:10px}
.mt-hero-top .quiet{color:inherit;border:1px solid rgba(245,241,232,.3);border-radius:999px;padding:6px 12px;font-size:11px}
.mt-hero-top .quiet:hover{background:rgba(245,241,232,.12)}
.mt-hamburger{display:none;border:0;background:transparent;color:#f5f1e8;padding:4px}
.mt-backdrop{display:none}
.mt-hero-body{display:flex;justify-content:space-between;align-items:flex-end;gap:32px}
.mt-hero-eyebrow{font-size:11px;font-weight:500;letter-spacing:.14em;text-transform:uppercase;color:rgba(245,241,232,.7);margin-bottom:16px}
.mt-hero h1{font-family:var(--serif);font-weight:700;font-size:46px;letter-spacing:-.01em;line-height:1.06;margin:0 0 14px;color:#f5f1e8}
.mt-hero-subtitle{color:rgba(245,241,232,.75);font-size:14px;max-width:420px;line-height:1.6}
.mt-hero-body .primary{background:rgba(245,241,232,.14);border-color:rgba(245,241,232,.35);color:#f5f1e8;white-space:nowrap}
.mt-hero-body .primary:hover{background:rgba(245,241,232,.22)}

.mt-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));border-bottom:1px solid var(--line)}
.mt-body>.mt-stats{margin:0 -44px 32px}
.mt-stat{padding:28px 44px;border-left:1px solid var(--line)}
.mt-stat:first-child{border-left:0}
.mt-stat-icon{width:32px;height:32px;border-radius:50%;background:var(--paper);display:grid;place-items:center;margin-bottom:14px;color:var(--ink)}
.mt-stat .label{color:var(--text-muted);font-size:12px}
.mt-stat strong{display:block;font-family:var(--display);font-weight:500;font-size:26px;letter-spacing:-.02em;margin:10px 0 6px}
.mt-stat small{font-size:11px;color:var(--text-muted);line-height:1.5}
.mt-stat.featured{background:var(--night);color:var(--paper)}
.mt-stat.featured .mt-stat-icon{background:rgba(247,247,247,.12);color:var(--paper)}
.mt-stat.featured .label,.mt-stat.featured small{color:rgba(247,247,247,.6)}

.mt-body{padding:40px 44px}
.mt-section-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;border-bottom:1px solid var(--line);padding-bottom:18px;margin-bottom:0}
.mt-section-head h2{font-family:var(--display);font-weight:500;font-size:20px}

.mt-empty{padding:48px 0;text-align:center;color:var(--text-muted)}
.mt-empty-icon{width:40px;height:40px;border-radius:50%;background:var(--paper);display:grid;place-items:center;margin:0 auto 14px;color:var(--text-muted)}
.mt-empty p{margin:4px 0 0;font-size:12px}

.toolbar{display:flex;justify-content:space-between;gap:12px;margin:24px 0;align-items:center}
.search{width:260px;background:var(--white);display:flex;align-items:center;gap:9px;border:1px solid var(--line);border-radius:6px;padding:0 12px}
.search input{border:0;background:none;padding:11px 0;min-width:0;width:100%;color:var(--text)}
.tabs{display:flex;gap:4px;background:rgba(0,0,0,.05);padding:4px;border-radius:999px}
.tabs button{font-size:12px;padding:8px 14px;border:0;background:none;color:var(--text-muted);border-radius:999px}
.tabs button.active{background:var(--white);color:var(--ink);font-weight:500}

.board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));gap:16px;overflow-x:auto;padding-bottom:16px;align-items:start}
.column{background:rgba(0,0,0,.03);border:1px solid var(--line);border-radius:13px;padding:12px;min-height:340px}
.column.dragover{background:rgba(0,0,0,.06);outline:2px dashed var(--ink)}
.column-head{display:flex;justify-content:space-between;align-items:center;margin:3px 2px 7px;font-size:12px;font-weight:500}
.column-head span{display:flex;align-items:center;gap:7px}
.dot{width:7px;height:7px;border-radius:50%;background:rgba(0,0,0,.32)}
.dot.discovery{background:rgba(0,0,0,.5)}
.dot.proposal{background:rgba(0,0,0,.66)}
.dot.nurture{background:rgba(0,0,0,.82)}
.column-total{font-size:11px;color:var(--text-muted);margin:0 2px 18px}
.count{font-weight:500;color:var(--text-muted);font-size:11px}

.card{width:100%;text-align:left;border-radius:9px;padding:15px;margin-bottom:10px;border:1px solid var(--line);background:var(--white);display:block;overflow-wrap:anywhere}
.card:hover{border-color:rgba(0,0,0,.24)}
.card-top{display:flex;justify-content:space-between;gap:8px;align-items:center}
.card-title{font-size:13px;font-weight:500}
.card-contact{color:var(--text-muted);font-size:11px;margin:7px 0 16px}
.card-amount{font-size:16px;font-weight:500}
.card-amount small{font-size:10px;color:var(--text-muted);font-weight:400}
.pill{display:inline-block;border-radius:5px;padding:4px 8px;background:rgba(0,0,0,.05);color:var(--text-soft);font-size:10px;font-weight:500}
.pill.purple{background:rgba(0,0,0,.05);color:var(--text-soft)}
.pill.orange{background:rgba(179,38,30,.08);color:var(--negative)}
.card-footer{border-top:1px solid var(--line);margin-top:13px;padding-top:10px;display:flex;gap:5px;align-items:center;font-size:10px;color:var(--text-muted)}
.card-footer.late{color:var(--negative)}
.column-add{width:100%;padding:8px;border:0;color:var(--text-muted);background:transparent;font-size:12px}
.empty-card{font-size:12px;line-height:1.8;color:var(--text-muted);text-align:center;padding:30px 12px}

.card-simple{padding:18px;min-height:62px;display:flex;flex-direction:column;align-items:flex-start;gap:10px}
.card-simple .card-title{font-size:14px;line-height:1.45;font-weight:500}
.card-cue{display:flex;align-items:center;gap:5px;font-size:11px;color:var(--text-muted);line-height:1.4}
.card-cue .icon{width:12px;height:12px}
.card-cue.late{color:var(--negative)}

.panel{background:var(--white);border:1px solid var(--line);border-radius:13px;padding:24px;min-width:0}
.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;gap:12px}
.two-cols{display:grid;grid-template-columns:1.4fr 1fr;gap:20px;margin-top:20px}
.two-cols-section{margin-top:20px}
.action-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-top:1px solid var(--line)}
.action-row button{border:0;padding:0;text-align:left;background:none}
.action-row small{display:block;color:var(--text-muted);font-size:11px;margin-top:5px}
.date-chip{font-size:11px;color:var(--negative);white-space:nowrap}
.empty{padding:36px 16px;text-align:center;color:var(--text-muted);line-height:1.8}
.empty strong{display:block;color:var(--text);font-family:var(--display);font-weight:500;font-size:16px}
.empty button{margin-top:14px}

.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:12px}
th{text-align:left;font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted);font-weight:500;padding:12px;border-bottom:1px solid var(--line)}
td{padding:15px 12px;border-bottom:1px solid var(--line)}
td button{border:0;padding:0;background:none;font-weight:500;text-align:left;color:var(--ink)}
td small{display:block;margin-top:5px;color:var(--text-muted)}

.sequence-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.seq-icon{background:rgba(0,0,0,.05);color:var(--ink);width:42px;height:42px;border-radius:9px;display:grid;place-items:center;margin-bottom:22px}
.seq-icon .icon{width:21px;height:21px}
.seq-timeline{border-left:1px solid var(--line);margin:25px 0 24px 8px;padding-left:16px;display:grid;gap:20px}
.seq-step{position:relative;font-size:12px;line-height:1.6}
.seq-step:before{content:'';width:7px;height:7px;border-radius:50%;background:rgba(0,0,0,.32);position:absolute;left:-20px;top:6px}
.seq-step small{display:block;color:var(--text-muted);font-size:10px;letter-spacing:.04em}

.notice{background:rgba(0,0,0,.04);color:var(--text-soft);padding:16px 18px;border-radius:9px;font-size:12px;line-height:1.7;margin:20px 0}

.bar-row{margin:20px 0}
.bar-label{display:flex;justify-content:space-between;font-size:12px;margin-bottom:9px;gap:8px}
.track{height:8px;background:rgba(0,0,0,.06);border-radius:8px;overflow:hidden}
.fill{height:100%;background:var(--ink);border-radius:8px;min-width:0}
.legend{font-size:11px;color:var(--text-muted);line-height:1.7}

.chart{display:flex;gap:16px;height:200px;align-items:end;margin:25px 0}
.chart-col{flex:1;display:flex;flex-direction:column;justify-content:end;height:100%;text-align:center;gap:8px;min-width:0}
.chart-bar{background:var(--positive);border-radius:5px 5px 0 0;min-height:2px}
.chart-col span{font-size:10px;color:var(--text-muted)}
.chart-col b{font-size:10px;font-weight:500}

.settings-links{display:flex;flex-wrap:wrap;gap:12px}
.settings-links a{border:1px solid var(--line);border-radius:6px;padding:10px 14px;text-decoration:none;font-size:12px;color:var(--ink)}
.settings-links a:hover{background:rgba(0,0,0,.04)}

.loading{padding:70px;text-align:center;color:var(--text-muted)}

dialog{color:var(--text);border:0;box-shadow:-10px 0 70px rgba(17,24,32,.14)}
dialog::backdrop{background:rgba(17,24,32,.35);backdrop-filter:blur(2px)}
#drawer{margin:0 0 0 auto;width:620px;max-width:100%;height:100dvh;max-height:100dvh;border-radius:16px 0 0 16px;padding:0;overflow-y:auto;background:var(--white)}
#confirm{width:440px;max-width:calc(100% - 30px);border-radius:13px;padding:28px;background:var(--white)}
.drawer-head{padding:24px 28px;display:flex;justify-content:space-between;align-items:start;border-bottom:1px solid var(--line);gap:14px;background:var(--white);position:sticky;top:0;z-index:2}
.drawer-head h2{font-family:var(--display);font-weight:500;font-size:22px;overflow-wrap:anywhere}
.drawer-body{padding:26px 28px}
#receipt-form{margin-top:18px}
.close{font-size:20px;border:0;padding:0 5px;background:transparent;color:var(--text-muted)}

.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}
.field{display:flex;flex-direction:column;gap:7px;font-size:12px}
.field.full{grid-column:1/-1}
.field input,.field select,.field textarea{border:1px solid rgba(0,0,0,.14);border-radius:6px;padding:11px 12px;background:var(--white);color:var(--text);width:100%;min-width:0;font-family:var(--body)}
.field input:focus,.field select:focus,.field textarea:focus{outline:none;border-color:rgba(0,0,0,.4);box-shadow:0 0 0 3px rgba(0,0,0,.06)}
.field textarea{resize:vertical;min-height:85px;line-height:1.6}
.field small{color:var(--text-muted);font-size:10px;line-height:1.6}

.section-title{margin:28px 0 16px;padding-top:22px;border-top:1px solid var(--line);font-size:11px;font-weight:500;letter-spacing:.08em;text-transform:uppercase;color:var(--text-muted)}
.form-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.error{color:var(--negative);font-size:12px;line-height:1.6;margin:12px 0}
.success{color:var(--positive);font-size:12px;line-height:1.6;margin:12px 0}
.checkbox{display:flex;align-items:center;gap:9px;font-size:12px;margin:18px 0;line-height:1.6}
.checkbox input{width:16px;height:16px}

.activity{border-left:1px solid var(--line);padding-left:17px;margin:18px 0;display:grid;gap:20px}
.activity-item{font-size:12px;line-height:1.6;position:relative;overflow-wrap:anywhere}
.activity-item:before{content:'';position:absolute;left:-21px;top:6px;background:rgba(0,0,0,.32);border:2px solid var(--white);width:7px;height:7px;border-radius:50%}
.activity-item small{display:block;font-size:10px;color:var(--text-muted)}

.job{border:1px solid var(--line);border-radius:6px;padding:13px;margin:10px 0;font-size:12px}
.job summary{cursor:pointer;line-height:1.7;font-weight:500}
.job pre{white-space:pre-wrap;font-family:inherit;line-height:1.7;color:var(--text-soft);overflow-wrap:anywhere}

.inline-actions{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}
.inline-actions button{font-size:11px;padding:8px 11px}

.step-editor{border:1px solid var(--line);padding:16px;border-radius:9px;margin:14px 0}
.step-editor .field{margin-top:12px}

.receipt-line{font-size:12px;padding:12px 0;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;gap:10px}
.receipt-line small{display:block;color:var(--text-muted);margin-top:4px}

#toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);background:var(--ink);color:var(--paper);padding:13px 20px;border-radius:9px;box-shadow:0 8px 30px rgba(17,24,32,.25);z-index:10;max-width:90%;font-size:13px;display:none}
#toast.show{display:block}

.closed-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.endnote{margin-top:18px;font-size:10px;color:var(--text-muted);display:flex;align-items:center;gap:6px}
.endnote .icon{width:13px;height:13px}
.card-footer .icon{width:12px;height:12px}
.money-hint{font-size:11px;color:var(--positive);line-height:1.6;margin-top:12px}
.seq-toolbar{display:flex;justify-content:space-between;align-items:center;gap:15px}
.row-actions{display:flex;justify-content:space-between;align-items:center;gap:10px}
.row-actions>small{font-size:10px;margin-top:6px}

.onboarding{border:1px dashed rgba(0,0,0,.18);background:rgba(0,0,0,.02);border-radius:13px;padding:28px;margin-bottom:22px;display:flex;justify-content:space-between;align-items:center;gap:20px}
.onboarding p{margin:8px 0 0;color:var(--text-muted);font-size:12px}
.onboarding button{white-space:nowrap}

.auth-page,.gate,.auth-shell{background:#000}
.gate{position:fixed;inset:0;z-index:10;display:grid;place-items:center}
.gate-logo{display:block;width:min(680px,92vw,92svh);height:auto;pointer-events:none;user-select:none}
.trap-input{position:absolute;inset:0;width:100%;height:100%;border:0;background:transparent;color:transparent;caret-color:transparent;outline:none;font-size:16px;padding:0}
.auth-shell{min-height:100vh;min-height:100svh;display:grid;place-items:center;padding:24px}
.auth-card{width:100%;max-width:340px;padding:0}
.auth-logo{display:block;width:200px;max-width:100%;height:auto;margin:0 auto 28px;user-select:none}
.auth-fields{display:grid;gap:28px;margin:0 0 8px}
.auth-card .field{color:rgba(245,241,232,.75);font-size:13px;letter-spacing:.02em}
.auth-card .field.line input{background:transparent;border:0;border-bottom:1px solid rgba(245,241,232,.35);border-radius:0;padding:8px 0;color:#f5f1e8}
.auth-card .field.line input:focus{outline:none;border-bottom-color:rgba(245,241,232,.85);box-shadow:none}
.auth-card .muted{color:rgba(245,241,232,.55);font-size:12px;margin:14px 0 0}
.auth-card .error{color:#ff8a80}
.auth-card .success{color:#7fd6a4}
.auth-submit{width:100%;margin-top:22px}
.auth-card button.primary{background:#f5f1e8;color:#000;border-color:#f5f1e8}
.auth-card button.primary:hover{background:#e4dfd5}
.auth-card button.quiet{color:rgba(245,241,232,.65)}
.auth-card button.quiet:hover{background:rgba(245,241,232,.1)}

@media(min-width:1600px){
  .main{padding-left:55px;padding-right:55px}
  .board{gap:20px}
  .column{padding:16px}
}
@media(max-width:1100px){
  .shell{grid-template-columns:170px minmax(0,1fr)}
  .sidebar{padding:25px 12px}
  .main{padding:0 22px 30px}
  .sequence-grid{grid-template-columns:1fr}
  .two-cols{grid-template-columns:1fr}
  .board{grid-template-columns:repeat(4,235px)}
  .closed-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:700px){
  .shell{display:block}
  .sidebar{position:static;height:auto;display:block;padding:14px 16px;border-right:0;border-bottom:1px solid var(--line)}
  .brand{padding:0 0 14px}
  .brand small{display:none}
  .monogram{width:30px;height:30px;font-size:16px}
  .brand strong{font-size:16px}
  .nav{display:flex;gap:3px;justify-content:space-between}
  .nav button{font-size:11px;padding:9px 7px;gap:5px}
  .nav .icon{width:15px;height:15px}
  .sidebar-bottom{display:none}
  .main{padding:0 16px 24px}
  h1{font-size:24px}
  .subtitle{font-size:12px}
  .mt-hero{padding:18px 20px 28px;gap:20px}
  .mt-hero-top{flex-wrap:wrap;gap:8px}
  .mt-hero-body{flex-direction:column;align-items:flex-start;gap:16px}
  .mt-hero h1{font-size:30px}
  .mt-hero-body .primary{align-self:flex-start}
  .mt-stats{grid-template-columns:repeat(2,minmax(0,1fr))}
  .mt-stat{padding:18px 20px}
  .mt-stat:nth-child(2){border-left:1px solid var(--line)}
  .mt-stat:nth-child(3){border-left:0;border-top:1px solid var(--line)}
  .mt-stat:nth-child(4){border-top:1px solid var(--line)}
  .mt-stat strong{font-size:22px}
  .mt-body{padding:26px 20px}
  .mt-body>.mt-stats{margin:0 -20px 24px}
  .mt-section-head{flex-wrap:wrap}

  /* Relay et Bureau mobile : menu latéral en tiroir, contenu principal affiché en premier. */
  .mt-relay-shell,.mt-bureau-shell{position:relative}
  .mt-relay-main,.mt-bureau-main{display:flex;flex-direction:column}
  .mt-relay-main .mt-hero,.mt-bureau-main .mt-hero{order:1}
  .mt-relay-main .mt-body,.mt-bureau-main .mt-body{order:2}
  .mt-relay-main .mt-stats,.mt-bureau-main .mt-stats{order:3}
  .mt-hamburger{display:flex;position:fixed;top:14px;left:14px;z-index:15;width:36px;height:36px;border-radius:50%;background:var(--night);color:#f5f1e8;align-items:center;justify-content:center;box-shadow:0 2px 10px rgba(0,0,0,.3)}
  .mt-relay-shell .sidebar,.mt-bureau-shell .sidebar{position:fixed;inset:0 auto 0 0;width:240px;height:100vh;z-index:30;transform:translateX(-100%);transition:transform .2s ease;display:flex;flex-direction:column;padding:24px 18px;border-right:1px solid var(--line);border-bottom:0}
  .mt-relay-shell .sidebar.open,.mt-bureau-shell .sidebar.open{transform:translateX(0)}
  .mt-relay-shell .brand,.mt-bureau-shell .brand{padding:0 4px 30px}
  .mt-relay-shell .brand small,.mt-bureau-shell .brand small{display:block}
  .mt-relay-shell .nav,.mt-bureau-shell .nav{display:flex;flex-direction:column;gap:4px}
  .mt-relay-shell .nav button,.mt-bureau-shell .nav button{font-size:13px;padding:11px 12px;justify-content:flex-start}
  .mt-relay-shell .nav .icon,.mt-bureau-shell .nav .icon{width:17px;height:17px}
  .mt-relay-shell .sidebar-bottom,.mt-bureau-shell .sidebar-bottom{display:block}
  .mt-backdrop.open{display:block;position:fixed;inset:0;background:rgba(6,10,9,.45);z-index:20}
  .toolbar{flex-wrap:wrap}
  .search{width:100%;order:2}
  .tabs{max-width:100%}
  .tabs button{padding:7px 9px;font-size:11px}
  .board{grid-template-columns:repeat(4,260px);gap:12px}
  .panel{padding:19px}
  .two-cols{gap:14px}
  .closed-grid{grid-template-columns:1fr}
  .form-grid{gap:13px}
  .drawer-head{padding:21px}
  .drawer-body{padding:20px}
  .onboarding{display:block}
  .onboarding button{margin-top:18px}
  #drawer{border-radius:0}
  .chart{gap:10px}
  .field{font-size:11px}
  .settings-links{display:grid}
  .seq-toolbar{align-items:start}
  .demo-strip{font-size:11px}
}

.cibles-toolbar{flex-wrap:wrap;justify-content:flex-start}
.cibles-toolbar .search{flex:1 1 220px}
.cibles-toolbar select{flex:0 1 auto;min-width:0}
.cibles-list{display:grid;gap:8px}
.cible{display:grid;grid-template-columns:minmax(0,1fr) auto 150px;gap:14px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:10px 14px}
.cible-main{display:block;text-align:left;border:0;background:none;padding:4px 0;min-width:0}
.cible-name{display:block;font-weight:500;color:var(--ink);overflow-wrap:anywhere}
.cible-meta{display:block;font-size:12px;color:var(--text-muted);margin-top:3px}
.cible-call{display:inline-flex;align-items:center;gap:7px;padding:9px 14px;border-radius:6px;background:var(--ink);color:#fff;text-decoration:none;font-size:13px;white-space:nowrap}
.cible-call .icon{width:15px;height:15px}
.cible-call.empty-phone{background:none;color:var(--text-muted);border:1px dashed var(--line);font-size:12px}
@media (max-width:720px){
 .cible{grid-template-columns:1fr auto;grid-template-areas:"main call" "status status"}
 .cible-main{grid-area:main}.cible-call{grid-area:call}.cible-status{grid-area:status}
}
.cibles-toolbar select,.cible-status{appearance:none;-webkit-appearance:none;font:inherit;font-size:13px;color:var(--text);background:var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23777' stroke-width='1.5'%3E%3Cpath d='m1 1 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center;border:1px solid var(--line);border-radius:6px;padding:11px 32px 11px 12px}
.cible-status{padding:9px 32px 9px 12px}
@media (max-width:720px){.cibles-toolbar select{flex:1 1 calc(50% - 6px)}.cibles-toolbar .search{flex-basis:100%;order:-1}}
.taches-list{display:grid;gap:8px;margin-bottom:14px}
.taches-group{margin-bottom:18px}.taches-group h3{margin:0 0 8px;font-size:1em}.taches-group h3.late{color:#a1261b}
.tache{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:14px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:10px 14px}
.tache.done .tache-title{text-decoration:line-through;opacity:.6}
.tache-check{width:18px;height:18px;margin:0;cursor:pointer}
.tache-main{display:grid;gap:2px;text-align:left;background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit;min-width:0}
.tache-title{font-weight:600}
.tache-meta{font-size:.85em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tache-client{font-size:.85em;white-space:nowrap;border:1px solid var(--line);border-radius:999px;padding:2px 10px}
.taches-toggle{margin:4px 0 10px}
.taches-toolbar{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between;margin-bottom:18px}
.taches-group-head{display:flex;gap:10px;align-items:center;justify-content:space-between;margin-bottom:8px}.taches-group-head h3{margin:0}
.taches-count{font-weight:400;font-size:.85em;color:var(--text-muted)}
@media(max-width:700px){.tache{grid-template-columns:auto minmax(0,1fr)}.tache-client{grid-column:2;justify-self:start}}
.pros-stats{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:14px}
.pros-stat{background:var(--white);border:1px solid var(--line);border-radius:9px;padding:10px 16px;min-width:110px}
.pros-stat strong{display:block;font-size:1.4em}
.pros-list{display:grid;gap:8px}
.pros{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,200px) minmax(0,190px) auto 150px;gap:14px;align-items:center;background:var(--white);border:1px solid var(--line);border-radius:9px;padding:10px 14px}
.pros-main{display:grid;gap:2px;text-align:left;background:none;border:0;padding:0;cursor:pointer;font:inherit;color:inherit;min-width:0}
.pros-name{font-weight:600}
.pros-contact{font-size:.9em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.pros-status{appearance:none;-webkit-appearance:none;font:inherit;font-size:13px;background:var(--white);border:1px solid var(--line);border-radius:8px;padding:7px 10px}
@media(max-width:720px){.pros{grid-template-columns:1fr}}

/* Pipeline compact, limité à cet écran. */
.pipeline-shell{display:grid;grid-template-columns:64px minmax(0,1fr);height:100vh;height:100svh;background:#f4f5f6;color:#000}
.pipeline-rail{position:relative;z-index:10;display:flex;flex-direction:column;align-items:center;padding:16px 0 12px;background:#101314;color:#f5f1e8}
.pipeline-brand{display:grid;place-items:center;margin-bottom:26px;width:44px;height:36px}
.pipeline-brand .monogram{background:transparent}
.pipeline-rail nav,.pipeline-rail-bottom{display:flex;flex-direction:column;align-items:center;gap:8px}
.pipeline-rail-bottom{margin-top:auto;padding-top:24px}
.pipeline-rail-link{position:relative;display:grid;place-items:center;width:42px;height:42px;padding:0;border:0;border-radius:6px;background:transparent;color:#9caaaa}
.pipeline-rail-link .icon{width:21px;height:21px}
.pipeline-rail-link:hover,.pipeline-rail-link:focus-visible{background:#252c2d;color:#fff}
.pipeline-rail-link.active{background:#eee9dd;color:#101314}
.pipeline-tooltip{position:absolute;left:calc(100% + 12px);top:50%;transform:translateY(-50%);padding:6px 10px;border-radius:4px;background:#202728;color:#fff;white-space:nowrap;font-size:12px;font-weight:400;pointer-events:none;opacity:0;visibility:hidden}
.pipeline-rail-link:hover .pipeline-tooltip,.pipeline-rail-link:focus-visible .pipeline-tooltip{opacity:1;visibility:visible}
.pipeline-workspace{min-width:0;display:flex;flex-direction:column;overflow:hidden}
.pipeline-topbar{display:flex;align-items:center;gap:24px;flex-shrink:0;min-height:68px;padding:12px 24px;background:#fff;border-bottom:1px solid #e5e7e9}
.pipeline-topbar h1{font-family:var(--body);font-size:19px;font-weight:500;letter-spacing:-.03em;margin:0;min-width:130px}
.pipeline-search{display:flex;align-items:center;gap:9px;max-width:460px;width:100%;margin:0 auto;color:#000;background:#f7f8f9;border:1px solid #e3e6e8;border-radius:5px;padding:0 11px}
.pipeline-search .icon{width:17px;height:17px}
.pipeline-search:focus-within{border-color:#000;background:#fff}
.pipeline-search input{width:100%;min-width:0;border:0;background:transparent;padding:9px 0;outline:none;font-size:12px;color:#000}
.pipeline-search input::placeholder{color:#000}
.pipeline-create{display:flex;align-items:center;gap:6px;padding:9px 13px;border-radius:5px;font-size:12px;white-space:nowrap}
.pipeline-create .icon{width:16px;height:16px}
.pipeline-controls{display:flex;align-items:center;gap:20px;padding:12px 24px;min-height:60px;background:#fff;border-bottom:1px solid #e5e7e9;flex-shrink:0}
.pipeline-layout{display:flex;border:1px solid #e1e4e6;border-radius:4px;overflow:hidden;flex-shrink:0}
.pipeline-layout button{display:grid;place-items:center;width:34px;height:30px;padding:0;border:0;border-radius:0;background:#fff;color:#000}
.pipeline-layout button+button{border-left:1px solid #e1e4e6}
.pipeline-layout button.active{background:#edf0ee;color:#000}
.pipeline-layout .icon{width:16px;height:16px}
.pipeline-status{display:flex;gap:4px}
.pipeline-status button{padding:6px 10px;border:0;border-radius:4px;background:transparent;color:#000;font-size:12px}
.pipeline-status button:hover{background:#f6f7f8;color:#000}
.pipeline-status button.active{background:#f0f2f3;color:#000}
.pipeline-summary{display:flex;gap:10px;align-items:baseline;margin-left:auto;white-space:nowrap;font-size:12px;font-variant-numeric:tabular-nums}
.pipeline-summary strong{font-weight:500}
.pipeline-summary span{color:#000;font-size:11px}
.pipeline-demo{font-size:10px;color:#000;white-space:nowrap}
.pipeline-canvas{flex:1;min-height:0;min-width:0;overflow:auto;overscroll-behavior-x:contain}
.pipeline-board{display:grid;grid-template-columns:repeat(4,minmax(220px,1fr));min-height:100%;align-items:stretch}
.pipeline-board-closed{grid-template-columns:minmax(240px,360px)}
.pipeline-column{min-width:0;padding:0 12px 20px;border-right:1px solid #e1e5e8;background:#f4f5f6}
.pipeline-column:last-child{border-right:0}
.pipeline-column.dragover{background:#e8eeea;box-shadow:inset 0 0 0 2px #677f71}
.pipeline-stage-head{position:sticky;top:0;z-index:1;padding:16px 6px 14px;background:#f4f5f6}
.pipeline-stage-head>div{display:flex;align-items:center;gap:9px}
.pipeline-stage-head h2{font-family:var(--body);font-size:13px;font-weight:500;letter-spacing:-.015em}
.pipeline-stage-count{color:#000;font-size:11px}
.pipeline-stage-head p{font-size:11px;font-variant-numeric:tabular-nums;color:#000;margin:4px 0 0}
.pipeline-cards{display:grid;gap:8px}
.pipeline-card{display:flex;flex-direction:column;align-items:stretch;width:100%;text-align:left;padding:14px;border:1px solid #dfe3e5;border-radius:5px;background:#fff;box-shadow:0 1px 2px rgba(22,30,35,.035);font-weight:400}
.pipeline-card:hover{background:#fff;border-color:#000;box-shadow:0 2px 4px rgba(22,30,35,.06)}
.pipeline-card:active{cursor:grabbing}
.pipeline-card-company{font-size:13px;font-weight:500;color:#000;overflow-wrap:anywhere}
.pipeline-card-amount{font-size:13px;font-variant-numeric:tabular-nums;color:#000;margin-top:4px}
.pipeline-action{display:flex;align-items:flex-start;gap:6px;font-size:11px;color:#000;line-height:1.45;text-align:left}
.pipeline-card>.pipeline-action{margin-top:16px}
.pipeline-action>.icon{width:13px;height:13px;margin-top:1px}
.pipeline-action>span{min-width:0;overflow-wrap:anywhere}
.pipeline-action small{display:block;font-size:10px;color:#000;margin-top:3px}
.pipeline-action.late{color:#000}
.pipeline-action.late small{color:#000}
.pipeline-column-add{display:grid;place-items:center;width:100%;height:32px;margin-top:8px;padding:0;background:transparent;border:1px solid transparent;border-radius:4px;color:#000}
.pipeline-column-add:hover{border-color:#000;background:#e9edef;color:#000}
.pipeline-column-add .icon{width:15px;height:15px}
.pipeline-table-wrap{overflow:auto;background:#fff;min-height:100%}
.pipeline-table{width:100%;min-width:650px;border-collapse:collapse;font-size:12px}
.pipeline-table th{padding:13px 24px;background:#f7f8f9;font-size:11px;font-weight:400;color:#000;text-align:left;border-bottom:1px solid #e5e8ea;white-space:nowrap}
.pipeline-table td{padding:15px 24px;border-bottom:1px solid #eef0f1;vertical-align:middle}
.pipeline-table tbody tr{cursor:pointer}
.pipeline-table tbody tr:hover{background:#f9faf9}
.pipeline-table td:first-child{width:27%}
.pipeline-table td button{padding:0;border:0;border-radius:0;background:none;color:#000;font-size:12px;text-align:left}
.pipeline-table-amount{font-variant-numeric:tabular-nums;white-space:nowrap}
.pipeline-table td:last-child{white-space:nowrap;color:#000;font-size:11px}
.pipeline-stage-dot{display:inline-block;width:5px;height:5px;border-radius:50%;background:#8f9ba3;margin-right:8px;vertical-align:middle}
.pipeline-stage-dot.discovery{background:#c29f64}
.pipeline-stage-dot.proposal{background:#758ca0}
.pipeline-stage-dot.nurture{background:#a38aab}
.pipeline-stage-dot.won{background:#638c76}
.pipeline-stage-dot.lost{background:#b77c6b}
.pipeline-empty{margin:0;padding:40px 24px;color:#000;font-size:12px}
@media(max-width:900px){
 .pipeline-topbar{padding:12px 18px;gap:16px}
 .pipeline-topbar h1{min-width:90px}
 .pipeline-controls{padding:12px 18px;gap:12px}
 .pipeline-demo{display:none}
}
@media(max-width:600px){
 .pipeline-shell{grid-template-columns:52px minmax(0,1fr)}
 .pipeline-rail{padding-top:12px}
 .pipeline-brand{width:40px;margin-bottom:20px}
 .pipeline-rail-link{width:36px;height:38px}
 .pipeline-rail-link .icon{width:19px;height:19px}
 .pipeline-topbar{flex-wrap:wrap;gap:12px;padding:14px}
 .pipeline-topbar h1{font-size:17px;flex:1}
 .pipeline-search{order:3;max-width:none;flex-basis:100%}
 .pipeline-create{padding:7px 10px}
 .pipeline-controls{flex-wrap:wrap;padding:10px 14px;gap:10px}
 .pipeline-layout button{width:30px;height:28px}
 .pipeline-status{margin-left:auto}
 .pipeline-status button{font-size:11px;padding:5px 7px}
 .pipeline-summary{flex-basis:100%;margin:0;font-size:11px}
 .pipeline-board{grid-template-columns:repeat(4,240px)}
 .pipeline-board-closed{grid-template-columns:minmax(240px,1fr)}
 .pipeline-stage-head{padding-top:14px}
 .pipeline-column{padding-right:10px;padding-left:10px}
 .pipeline-tooltip{max-width:200px;font-size:11px}
}

/* Kanban compact retenu, fonds neutres et accents bleus discrets. */

.pipeline-shell,.pipeline-column,.pipeline-stage-head{background:#f7f8f9}
.pipeline-column{padding:0 12px 20px}
.pipeline-stage-head{background:#315d96;color:#fff;border:0;border-radius:4px;padding:12px;margin:14px 0 12px}
.pipeline-stage-head>div{justify-content:space-between;gap:8px}
.pipeline-stage-head h2{display:flex;align-items:baseline;gap:4px;font-size:13px;white-space:nowrap}
.pipeline-stage-amount{font-size:12px;font-weight:400;font-variant-numeric:tabular-nums}
.pipeline-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0;border:1px solid #d8e1ee;border-radius:6px;padding:0;overflow:hidden;background:#fafbfc;box-shadow:none;align-items:stretch}
.pipeline-card:hover{background:#fafbfc;border-color:#9cb5d6;box-shadow:none}
.pipeline-card-header{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:start;padding:14px;background:#e8f0fb;color:#000}
.pipeline-card-company{font-size:13px;line-height:1.4;color:#000}
.pipeline-card-amount{font-size:14px;font-weight:500;margin:0;line-height:1.4;color:#000}
.pipeline-card>.pipeline-action{grid-column:1/-1;margin:0;padding:11px 13px;border-top:1px solid #edf0f2;background:#fafbfc;border-radius:0;gap:7px}
.pipeline-action>span{display:block;width:100%}
.pipeline-action small{margin-top:5px;font-size:10px}
.pipeline-cards{gap:10px}
.pipeline-stage-count{display:block;width:auto;height:auto;min-width:10px;text-align:right;background:transparent;border-radius:0;color:inherit}

.pipeline-card-amount{white-space:nowrap}
.pipeline-topbar button.primary{background:#e4edf9;border-color:#d4dfef;color:#000}
.pipeline-topbar button.primary:hover{background:#d8e5f6}
.pipeline-layout button.active{background:#e8eff8}
.pipeline-status button.active{background:#eef0f2}
@media(min-width:601px){.pipeline-topbar h1{min-width:230px}.pipeline-search{max-width:420px}}
@media(max-width:600px){.pipeline-topbar h1{min-width:0;font-size:15px}}

/* Direction commune aux modules et aux comptes clients. */
.crm-topbar-spacer{flex:1}
.crm-content{flex:1;min-height:0;min-width:0;overflow:auto;padding:20px 24px;color:#000}
.crm-content,.crm-content button,.crm-content input,.crm-content select,.crm-content textarea{--text:#000;--text-soft:#000;--text-muted:#000;--line:#dbe2eb;--ink:#000;--night:#315d96;color:#000}
.crm-content p,.crm-content small,.crm-content .subtitle,.crm-content .legend,.crm-content th,.crm-content td small{color:#000}
.crm-content button,.crm-content select,.crm-content input,.crm-content .search{border-radius:4px;font-size:12px}
.crm-content button.primary{background:#e8f0fb;border-color:#d2dfef;color:#000}
.crm-content button.primary:hover{background:#dce9fa}
.crm-content button.quiet{color:#000}
.crm-content .tabs{background:transparent;border-radius:4px;padding:0;gap:4px}
.crm-content .tabs button{border-radius:4px;background:transparent;color:#000;padding:7px 11px;font-size:12px}
.crm-content .tabs button.active{background:#e8f0fb}
.crm-content .search{background:#fff;border-color:#dbe2eb;color:#000}
.crm-content .search input::placeholder{color:#000}
.crm-content .toolbar{margin:0 0 18px;gap:10px}
.crm-content .panel{border-radius:5px;border-color:#dbe2eb;box-shadow:none}
.crm-content .empty{color:#000}
.crm-context-note{font-size:11px;line-height:1.6;margin:12px 0 0;color:#000}
.crm-section{border:1px solid #d8e1ee;border-radius:5px;overflow:hidden;background:#fff;min-width:0;margin-bottom:20px}
.crm-section-head{background:#315d96;color:#fff;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px}
.crm-section-head h2{font:500 13px var(--body);margin:0;letter-spacing:0;color:#fff}
.crm-section-head>span{color:#fff;font-size:11px}
.crm-section-body{padding:18px}
.crm-section-body>button{margin-top:12px}
.crm-content .crm-section table{font-size:12px}
.crm-content .crm-section thead{background:#e8f0fb;color:#000}
.crm-content .crm-section th{font-size:11px;font-weight:400;text-transform:none;letter-spacing:0;padding:12px 14px;white-space:nowrap}
.crm-content .crm-section td{padding:14px;border-color:#e7edf4}
.crm-content .crm-section tbody tr:last-child td{border-bottom:0}
.crm-content .crm-section tbody tr:hover{background:#f6f9fd}
.crm-content .crm-section td button{color:#000}
.crm-content .crm-section .pill{background:#e8f0fb;color:#000}
.crm-summary-line{display:flex;align-items:center;flex-wrap:wrap;gap:12px 24px;font-size:12px;line-height:1.5;padding:0 0 18px;margin:0}
.crm-summary-line strong{font-weight:500}
.crm-summary-line>button{margin-left:auto;padding:7px 10px}
.crm-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px;font-size:12px;flex-wrap:wrap}
.crm-account{margin-left:auto;font-size:12px;color:#000;overflow-wrap:anywhere}
.crm-empty{padding:28px 14px;font-size:12px;margin:0}
/* Prospection : mêmes fonctions, liste alignée et compacte. */
.crm-view-prospection>.subtitle{font-size:11px;margin:0 0 16px}
.crm-content .pros-list-head,.crm-content .pros{display:grid;grid-template-columns:minmax(170px,1.4fr) minmax(130px,1fr) minmax(130px,.85fr) 120px 125px;gap:14px;align-items:center;padding:12px 14px}
.crm-content .pros-list-head{background:#315d96;color:#fff;font-size:11px}
.crm-content .pros-list{display:block}
.crm-content .pros{border:0;border-bottom:1px solid #e4ebf4;border-radius:0;margin:0;background:#fff;font-size:12px}
.crm-content .pros:last-child{border-bottom:0}
.crm-content .pros:hover{background:#f7faff}
.crm-content .pros-name{font-size:13px;font-weight:500}
.crm-content .pros .cible-meta{font-size:11px;line-height:1.5;color:#000}
.crm-content .pros-contact{color:#000;font-size:11px;min-width:0}
.crm-content .pros-contact a{color:#000;text-underline-offset:3px}
.crm-content .pros-status{width:100%;min-width:0;border:1px solid #d6e0ef;border-radius:4px;font-size:11px;background:#e8f0fb;padding:8px}
.crm-content .pros-send{padding:8px 10px;white-space:nowrap;font-size:11px}
.crm-content .pros-main{border:0;padding:0;background:none;color:#000}
/* Tâches : en-têtes par client ou par date, lignes de travail claires. */
.crm-content .taches-toolbar{margin-bottom:20px}
.crm-content .taches-group{border:1px solid #d8e1ee;border-radius:5px;overflow:hidden;background:#fff;margin-bottom:18px}
.crm-content .taches-group-head,.crm-content .taches-group>h3{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0;padding:10px 14px;background:#315d96;color:#fff;font:500 13px var(--body)}
.crm-content .taches-group-head h3,.crm-content .taches-group-head .taches-count,.crm-content .taches-group>h3.late{color:#fff;font-size:13px;font-weight:500;margin:0}
.crm-content .taches-group-head .taches-count{font-size:11px;margin-left:6px;font-weight:400}
.crm-content .taches-group-head button.quiet{color:#fff;padding:4px 6px;font-size:11px}
.crm-content .taches-group-head button.quiet:hover{background:#ffffff18}
.crm-content .taches-list{gap:0;margin:0}
.crm-content .tache{padding:14px;border:0;border-bottom:1px solid #dbe5f3;border-radius:0;background:#e8f0fb;gap:12px}
.crm-content .tache:last-child{border-bottom:0}
.crm-content .tache-title{font-size:13px;font-weight:500;color:#000}
.crm-content .tache-meta{font-size:11px;margin-top:3px;color:#000}
.crm-content .tache-main{padding:0;border:0;background:none}
.crm-content .tache-check{accent-color:#315d96;width:17px;height:17px}
.crm-content .tache-client{color:#000;background:#fff;font-size:11px;border-radius:4px;border-color:#cddbee}
.crm-content .taches-toggle{margin-top:4px}
/* Activité : chiffres utiles, graphique et répartition, sans tuiles répétées. */
.crm-activity-summary{display:flex;align-items:center;flex-wrap:wrap;gap:26px 60px;margin:0;padding:4px 0 24px}
.crm-activity-summary dt{font-size:12px;margin-bottom:6px}
.crm-activity-summary dd{font-size:22px;font-weight:500;margin:0;font-variant-numeric:tabular-nums}
.crm-activity-summary .crm-activity-main dd{font-size:32px}
.crm-activity-grid{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.crm-content .chart{margin:8px 0;height:210px}
.crm-content .chart-col span,.crm-content .chart-col b{font-size:11px;color:#000}
.crm-content .track{height:5px;background:#e8f0fb}
.crm-content .fill{background:#315d96;height:100%}
.crm-content .bar-label{font-size:12px}
.crm-content .bar-label b{font-weight:500;white-space:nowrap}
/* Séquences : lignes de suivi, modèles et modification restent accessibles. */
.crm-sequence-list{display:block}
.crm-sequence-row{display:grid;grid-template-columns:minmax(180px,.9fr) minmax(0,1.5fr) auto;gap:24px;align-items:center;padding:18px;border-bottom:1px solid #dce5f1}
.crm-sequence-row:last-child{border-bottom:0}
.crm-sequence-info h3{font-size:13px;font-weight:500;margin:0 0 7px}
.crm-sequence-info p{font-size:12px;margin:0 0 8px}
.crm-sequence-info>span{display:inline-block;font-size:11px;background:#e8f0fb;padding:3px 7px;border-radius:3px}
.crm-sequence-steps{display:grid;gap:10px;list-style:none;padding:0;margin:0;font-size:12px}
.crm-sequence-steps li{display:flex;gap:12px;align-items:baseline}
.crm-sequence-steps li>span{min-width:36px;padding:2px 5px;background:#e8f0fb;font-size:10px;border-radius:3px}
.crm-content .cible{border-radius:4px;background:#e8f0fb}
.crm-content .cible-main,.crm-content .cible-meta,.crm-content .cible-status{color:#000}
.crm-content .cible-call{background:#315d96;color:#fff;border-radius:4px}
.crm-content .settings-links a{color:#000;background:#e8f0fb;border-color:#d6e0ef;border-radius:4px;font-size:12px}
/* Les fiches ouvertes partagent également la direction validée. */
.crm-theme #drawer{border-radius:5px 0 0 5px;background:#fff;color:#000}
.crm-theme #drawer .drawer-head{background:#315d96;color:#fff;border-bottom:0}
.crm-theme #drawer .drawer-head h2,.crm-theme #drawer .drawer-head .eyebrow,.crm-theme #drawer .drawer-head .close{color:#fff}
.crm-theme #drawer .drawer-head .close:hover{background:#ffffff18}
.crm-theme #drawer .field,.crm-theme #drawer .subtitle,.crm-theme #drawer .legend,.crm-theme #drawer .section-title{color:#000}
.crm-theme #drawer .field input,.crm-theme #drawer .field select,.crm-theme #drawer .field textarea{border-color:#d4deeb;color:#000;border-radius:4px}
.crm-theme #drawer .primary{background:#e8f0fb;color:#000;border-color:#d2dfef}
@media(max-width:1100px){
 .crm-content .pros-list-head,.crm-content .pros{grid-template-columns:minmax(145px,1.2fr) minmax(100px,1fr) minmax(105px,1fr) 110px 110px;gap:10px}
 .crm-activity-summary{gap:24px 40px}
 .crm-sequence-row{gap:16px;grid-template-columns:minmax(160px,.9fr) minmax(0,1.4fr) auto}
}
@media(max-width:850px){
 .crm-content{padding:18px}
 .crm-content .pros-list-head{display:none}
 .crm-content .pros{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
 .crm-content .pros-main{grid-column:1/-1}
 .crm-content .pros-contact{grid-column:1/-1;white-space:normal;overflow-wrap:anywhere}
 .crm-content .pros-send{grid-column:2;grid-row:3}
 .crm-content .pros>.pros-status:last-child{grid-column:1/-1}
 .crm-activity-grid{grid-template-columns:1fr;gap:0}
 .crm-sequence-row{grid-template-columns:minmax(0,1fr) auto}
 .crm-sequence-steps{grid-column:1/-1;grid-row:2}
 .crm-account{font-size:11px}
}
@media(max-width:600px){
 .crm-content{padding:14px}
 .crm-content .toolbar .search{order:0}
 .crm-content .cibles-toolbar select{flex:1 1 100%;max-width:100%}
 .crm-content .cibles-toolbar .search{flex-basis:100%}
 .crm-summary-line{gap:10px 16px;font-size:11px}
 .crm-summary-line>button{margin-left:0}
 .crm-content .tabs button{font-size:11px;padding:7px 9px}
 .crm-content .taches-group-head{padding:10px 12px;flex-wrap:wrap}
 .crm-content .tache{padding:12px;gap:10px}
 .crm-content .taches-toolbar>.quiet{font-size:11px;padding:6px 0}
 .crm-activity-summary{gap:20px 28px;padding-bottom:20px}
 .crm-activity-summary dt{font-size:11px}
 .crm-activity-summary dd{font-size:18px}
 .crm-activity-summary .crm-activity-main{flex-basis:100%}
 .crm-activity-summary .crm-activity-main dd{font-size:28px}
 .crm-section-body{padding:14px}
 .crm-sequence-row{padding:14px;gap:14px}
 .crm-sequence-info p{font-size:11px}
 .crm-sequence-steps{font-size:11px}
 .crm-theme #drawer{border-radius:0}
 .crm-content .settings-links{display:grid}
 .crm-screen-relay .pipeline-topbar{align-items:center;gap:10px}
 .crm-screen-relay .pipeline-topbar h1{flex-basis:100%}
 .crm-account{margin:0;flex:1}
 .crm-screen-relay .pipeline-create{font-size:11px;padding:7px 8px}
}
.crm-content .pros-name>.cible-meta{display:inline;font-weight:400}
.crm-content input[type=checkbox]{accent-color:#315d96}

/* Accueil après connexion, commun aux espaces autorisés du compte. */
.temple-home-page{background:#000;color:#fff}
.temple-home{min-height:100vh;min-height:100svh;background:#000;color:#fff;display:grid;place-items:center;padding:60px 32px}
.temple-home-content{width:100%;max-width:880px}
.temple-home-heading{text-align:center;margin-bottom:54px}
.temple-home-logo{width:82px;height:66px;overflow:hidden;position:relative;margin:0 auto 34px}
.temple-home-logo img{position:absolute;width:170px;height:auto;max-width:none;left:50%;top:50%;transform:translate(-50%,-50%)}
.temple-home h1{font:500 clamp(25px,3vw,36px)/1.25 var(--body);letter-spacing:-1.1px;color:#fff;margin:0 0 16px}
.temple-home-heading p{font-size:15px;line-height:1.6;color:#fff;margin:0}
.temple-home-sections{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.temple-home-link{display:flex;align-items:center;gap:18px;min-height:94px;padding:20px 22px;text-decoration:none;background:#0b0b0b;border:1px solid #292929;border-radius:8px;color:#fff;font-size:16px;font-weight:500;transition:background .16s,border-color .16s}
.temple-home-link:hover{background:#171717;border-color:#626262}
.temple-home-link:focus-visible{outline:2px solid #fff;outline-offset:4px}
.temple-home-symbol{display:flex;align-items:center;justify-content:center;flex-shrink:0}
.temple-home-symbol svg{width:24px;height:24px}
.temple-home-arrow{display:flex;margin-left:auto;flex-shrink:0}
.temple-home-arrow svg{width:19px;height:19px}
.temple-home-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:36px;font-size:11px;color:#fff}
.temple-home-footer>span{letter-spacing:.08em}
.temple-home-footer button{display:flex;align-items:center;gap:8px;background:transparent;border:0;padding:8px 0;color:#fff;font-size:11px}
.temple-home-footer button:hover{background:transparent;text-decoration:underline;text-underline-offset:4px}
.temple-home-footer svg{width:16px;height:16px}
@media(max-width:600px){
 .temple-home{padding:36px 22px}
 .temple-home-heading{margin-bottom:32px}
 .temple-home-logo{margin-bottom:26px;width:70px;height:58px}
 .temple-home-logo img{width:145px}
 .temple-home h1{font-size:25px;letter-spacing:-.6px;max-width:320px;margin-left:auto;margin-right:auto}
 .temple-home-heading p{font-size:13px}
 .temple-home-sections{grid-template-columns:1fr;gap:10px}
 .temple-home-link{min-height:76px;padding:18px;font-size:15px;gap:16px}
 .temple-home-symbol svg{width:22px;height:22px}
 .temple-home-footer{margin-top:26px;gap:12px}
}
