/* Référence de Daniel : navigation bleu nuit/vert et accueil chiffré clair. */
.sidebar-wordmark{display:none}
body.authenticated{background:#fff;color:#10192c}
body.authenticated .shell{grid-template-columns:245px minmax(0,1fr);min-height:90vh}
body.authenticated .shell > aside{background:linear-gradient(110deg,#07172f,#020c22);color:#fff;padding:14px 12px;border-right:1px solid #1a2a42}
body.authenticated .sidebar-wordmark{display:flex;align-items:center;gap:12px;padding:4px 16px 14px;border-bottom:1px solid #7b889d;font-size:29px;font-weight:750;color:#fff;letter-spacing:.025em}
body.authenticated .sidebar-wordmark img{display:block;border-radius:8px}
body.authenticated .identity{padding:15px 10px 23px;color:#fff}
body.authenticated .identity img,body.authenticated .identity small,body.authenticated .side-note{display:none}
body.authenticated nav{gap:3px}body.authenticated nav button{color:#fff;display:flex;align-items:center;gap:12px;padding:10px 16px;border-radius:7px;font-size:16px}
body.authenticated nav button span{font-size:22px;line-height:1;width:22px;text-align:center}
body.authenticated nav button[aria-current=page]{background:linear-gradient(#07d949,#09c939);color:#fff;font-weight:650}
body.authenticated nav button:disabled{opacity:.5;cursor:not-allowed}
body.authenticated .admin-menu{border:0;padding:0;background:transparent;margin:6px 0}
body.authenticated .admin-menu summary{color:#fff;padding:10px 16px;font-size:16px}
body.authenticated .admin-menu button{font-size:14px;padding-left:25px}
body.authenticated main{padding:0 24px 25px;background:linear-gradient(100deg,#fff,#f8faff)}
body.authenticated #app-header{padding:10px 0;margin:0 0 12px;border-bottom:1px solid #bac7db;background:transparent;min-height:48px;gap:12px;flex-wrap:wrap}
body.authenticated #app-header .brand{display:none}body.authenticated #access-view{background:linear-gradient(#dfedff,#bfdcff);padding:3px 13px;border-radius:6px;font-weight:750;color:#07172d;font-size:15px}
body.authenticated #user-label{font-size:12px;color:#526278}body.authenticated #logout{padding:6px 10px;font-size:12px}
body.authenticated .heading{margin-bottom:16px}body.authenticated h1{font-size:36px;letter-spacing:-.025em;line-height:1.15;font-weight:750;color:#101525;margin:0}
body.authenticated .eyebrow{display:none}body.home-screen .heading>.actions{display:none}
.home-filters{display:grid;grid-template-columns:1fr 1.12fr 1.2fr;gap:20px;align-items:end;margin:0 0 20px}.home-filters label{font-size:12px;color:#465773}.home-filters input,.home-filters select{height:43px;border:1px solid #8390a7;border-radius:4px;color:#10182b;background:#fff}
.home-person{background:#c1f0ca;border-radius:10px;padding:8px 14px;font-weight:650}
.home-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;margin-bottom:18px}
.home-stat{display:flex;align-items:center;gap:14px;background:linear-gradient(120deg,#fff,#f6f8fc);border:1px solid #ccd5e3;border-radius:6px;padding:17px 13px;min-width:0}
.home-stat-icon{display:grid;place-items:center;width:48px;height:53px;flex-shrink:0;border-radius:11px;background:linear-gradient(#e9f9e9,#d6f4d3);font-size:31px;color:#006500}
.home-stat>div{display:grid;gap:3px;min-width:0}.home-stat>div>span{font-size:13px;font-weight:550}.home-stat strong{font-size:30px;font-weight:750;line-height:1.15;letter-spacing:-.025em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.home-table{border:1px solid #b8c5d7;border-radius:6px;overflow:hidden;background:#fff}.home-table h2{background:linear-gradient(#eff3f8,#e7edf4);border-bottom:1px solid #bcc8da;padding:7px 16px;margin:0;font-size:20px;font-weight:700}
.home-table th{background:linear-gradient(#e7ebf2,#d8e0ec);color:#10192c;font-weight:650;font-size:14px;padding:7px 16px;border-bottom:1px solid #aebdd2}
.home-table td{padding:8px 16px;font-size:15px;border-bottom:1px solid #c3cddd}.home-table td:first-child{font-weight:650}.home-table tr:last-child td{border-bottom:0}
.home-open{background:linear-gradient(#087dff,#0056e7);color:#fff;border:0;border-radius:4px;padding:6px 16px;font-size:14px;font-weight:550;min-width:150px}.home-open:hover{background:#0058dd}.home-caption{margin:10px 4px 0;font-style:italic;font-size:12px}.home-detail{background:#fff}.home-secondary{display:grid;gap:16px;margin-top:16px}
@media(max-width:1150px){body.authenticated .shell{grid-template-columns:205px minmax(0,1fr)}.home-stats{gap:10px}.home-stat{padding:12px 10px;gap:9px}.home-stat strong{font-size:26px}.home-stat-icon{width:36px}.home-filters{gap:12px}}
@media(max-width:950px){.home-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.home-filters{grid-template-columns:1fr}body.authenticated h1{font-size:30px}}
@media(max-width:750px){body.authenticated .shell{grid-template-columns:1fr}body.authenticated .shell > aside{padding:12px}body.authenticated .sidebar-wordmark{border:0;font-size:24px;padding-bottom:8px}body.authenticated .identity{display:block;padding:5px 10px 10px}body.authenticated nav{display:flex;flex-wrap:wrap}body.authenticated nav button{font-size:14px;padding:8px 10px}body.authenticated main{padding:0 16px 20px}body.authenticated #app-header{align-items:flex-start}body.authenticated #app-header>div{display:flex;align-items:center;gap:10px}}
@media(max-width:450px){.home-stats{grid-template-columns:1fr}.home-stat strong{font-size:31px}body.authenticated h1{font-size:27px}}
.home-range{display:flex;gap:5px;align-items:center}.home-range input{min-width:0;width:100%;padding:8px 4px;font-size:13px}.home-range>span{color:#63748d}@media(max-width:450px){.home-range input{font-size:16px}}
body.authenticated nav button .inbox-count{width:auto;min-width:22px;padding:2px 6px;border-radius:12px;background:#fff;color:#093464;font-size:12px;font-weight:700;margin-left:auto}
.error:empty{display:none}
.inbox-layout{grid-template-columns:minmax(220px,.7fr) minmax(0,1.6fr);align-items:start}
.assistant-pinned{display:grid;width:100%;gap:5px;text-align:left;margin-bottom:16px;border:1px solid #aac4e9;background:#e6f0ff;color:#133d73}
.assistant-pinned[aria-pressed=true]{border-left:4px solid #0acb40;background:#dceaff}.assistant-pinned small{font-size:12px}
.assistant-panel{display:grid;gap:16px;min-width:0}.assistant-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.assistant-heading h2{margin-bottom:4px}
.assistant-heading p{font-size:12px;color:#52647c}.assistant-shortcuts{display:flex;flex-wrap:wrap;gap:8px}.assistant-response{display:grid;gap:12px}.assistant-response>h3,.assistant-response>p{margin:0}
.assistant-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.assistant-stats>div{border:1px solid #ccd5e3;background:#f5f8fd;border-radius:5px;padding:12px;display:grid;gap:6px}.assistant-stats span{font-size:12px}.assistant-stats strong{font-size:26px;font-variant-numeric:tabular-nums}
.assistant-priority{padding:12px 0;border-bottom:1px solid #d5ddeb}.assistant-priority p{margin:6px 0}.assistant-panel details{min-width:0}.assistant-panel .fields{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:1000px){.inbox-layout{grid-template-columns:1fr}.assistant-panel .fields{grid-template-columns:1fr}}
.mileage-report{margin:16px 0}.mileage-report td small{display:block;color:#53647c}
body.authenticated nav .nav-group{min-width:0}
body.authenticated nav .nav-children{display:grid;gap:2px;padding:3px 0 8px 18px}
body.authenticated nav .nav-children button{font-size:12px;padding:7px 9px;border-left:2px solid #324c70;border-radius:0;color:#d5e2f5}
body.authenticated nav .nav-children button[aria-current="page"]{border-left-color:#26df55;background:#173454;color:#fff}
body.authenticated nav .active-group>[data-nav-parent]{background:linear-gradient(#05d94a,#08c837);color:#fff;font-weight:650}
body.authenticated nav [hidden]{display:none!important}
@media(max-width:750px){body.authenticated nav .nav-group{flex:1 1 190px}body.authenticated nav .nav-children button{font-size:14px}}

/* Daily planning: settings live in their own page. */
.calendar-planning{overflow-x:auto}.calendar-toolbar,.calendar-navigation,.calendar-detail-heading,.calendar-footer{display:flex;align-items:center;gap:12px;justify-content:space-between;flex-wrap:wrap}.calendar-toolbar{margin-bottom:18px}.calendar-navigation h2{margin:0 8px;font-size:20px}.calendar-navigation button{min-width:34px}.calendar-modes{display:flex;gap:4px;background:#edf2f8;padding:4px;border-radius:9px}.calendar-modes button{border:0;background:transparent}.calendar-modes button[aria-pressed=true]{background:#0acb46;color:#fff;font-weight:700}.calendar-toolbar label{display:grid;gap:4px;font-size:12px}.calendar-toolbar input,.calendar-toolbar select{padding:8px;max-width:220px}.calendar-grid{display:grid;gap:0;border:1px solid #d9e2ee;border-radius:10px;overflow:hidden}.calendar-grid-week,.calendar-grid-month{grid-template-columns:repeat(7,minmax(110px,1fr));min-width:770px}.calendar-cell{min-width:0;border-right:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2;min-height:142px;padding:8px;background:#fff}.calendar-grid-week .calendar-cell{min-height:320px}.calendar-cell h3{margin:0 0 12px;font-size:13px}.calendar-cell h3 button{border:0;background:transparent;padding:3px;text-align:left;font-weight:650;color:#465875}.calendar-cell.is-today{background:#f2fff5}.calendar-cell.is-today h3 button{color:#007528}.calendar-cell.outside-month{background:#f6f8fb;color:#8c98a8}.calendar-event{display:flex!important;flex-direction:column;gap:4px;align-items:flex-start;width:100%;margin:6px 0;padding:10px!important;border:0!important;border-left:3px solid #0acb46!important;border-radius:6px!important;background:#eaf6ee!important;color:#172b3f!important;text-align:left;white-space:normal;overflow-wrap:anywhere;cursor:pointer}.calendar-event:hover{background:#dcf0e3!important}.calendar-event small{font-size:11px;color:#536775}.calendar-event.is-cancelled{opacity:.55;border-left-color:#9aa8b7!important;text-decoration:line-through}.calendar-grid-month .calendar-event{padding:6px!important;font-size:12px}.calendar-grid-month .calendar-event small{display:none}.calendar-grid-day .calendar-cell{min-height:230px}.calendar-grid-day .calendar-event{max-width:640px}.calendar-empty{font-size:12px;color:#8b96a5}.calendar-footer{margin-top:16px;font-size:12px;color:#6b7d8d}.calendar-footer .check{font-size:12px}.calendar-attention button{border-color:#d9a53e;background:#fff7df;color:#795111}.calendar-detail{border-left:4px solid #0acb46}.calendar-detail .calendar-edit{margin:12px 0;max-width:500px}.calendar-create-drawer{margin-top:20px}.heading .actions[hidden]{display:none!important}

/* Administration : priorités et accès aux dossiers. */
.admin-overview{display:grid;gap:16px}.admin-overview>.hint{margin:0}.admin-overview .toolbar{margin-bottom:0}.admin-filters>label{flex:1;min-width:170px}.admin-overview .row{overflow-wrap:anywhere}.admin-overview .row p{margin:6px 0}.admin-overview .admin-late{background:#ffe5e7;color:#a02130}.admin-overview .admin-soon{background:#fff0d8;color:#874600}#admin-documents{scroll-margin-top:20px}


/* Journal des arrivées : lecture sur petit écran. */
/* Pilotage acquisition : préparation uniquement, sans données publicitaires fictives. */
.acquisition-pilot{display:grid;gap:18px}.acquisition-heading{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap}.acquisition-heading p{margin-bottom:0}.acquisition-heading button[aria-pressed=true]{background:#dff6e7;color:#075e2b;border-color:#1a9f4b}.acquisition-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.acquisition-stats .panel{display:grid;gap:8px}.acquisition-stats small{color:#53617a}.acquisition-stats strong{font-size:1rem;overflow-wrap:anywhere}.acquisition-framework .row{border:0;padding:0}.acquisition-framework h2{margin-bottom:8px}.acquisition-campaign{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:15px;padding:18px 0;border-top:1px solid #e4eaf2}.acquisition-campaign h3{margin-bottom:6px}.acquisition-campaign>details{grid-column:1/-1;margin:0}.acquisition-campaign small{color:#53617a}.acquisition-journal>.panel{margin-top:14px}.acquisition-pilot .notice{margin:0}.acquisition-feedback p{overflow-wrap:anywhere}@media(max-width:900px){.acquisition-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.acquisition-campaign{grid-template-columns:1fr}.acquisition-stats .panel{padding:12px}}
#lead-review-dialog{width:min(650px,94vw)}#lead-review-dialog h2{font-size:1.2rem;overflow-wrap:anywhere}#lead-review-dialog .heading{align-items:start}#lead-review-dialog p{overflow-wrap:anywhere}#lead-review-dialog [data-arrival-create],#lead-review-dialog [data-arrival-link]{padding:12px;background:#f0f5fb;border-radius:8px}
.lead-arrival-journal{margin-bottom:18px}.lead-arrival-journal>.row h2{margin:0}.lead-arrival-journal td{overflow-wrap:anywhere}
@media(max-width:650px){.lead-arrival-journal .table-wrap{overflow:visible}.lead-arrival-journal table,.lead-arrival-journal tbody,.lead-arrival-journal tr,.lead-arrival-journal td{display:block;width:100%;min-width:0}.lead-arrival-journal thead{display:none}.lead-arrival-journal tbody tr{padding:12px 0;border-top:1px solid #dbe2ed}.lead-arrival-journal td{border:0;padding:7px 0}.lead-arrival-journal td:before{display:block;font-weight:600;margin-bottom:4px}.lead-arrival-journal td:nth-child(1):before{content:"Source / arrivée"}.lead-arrival-journal td:nth-child(2):before{content:"État"}.lead-arrival-journal td:nth-child(3):before{content:"Destination prévue"}.lead-arrival-journal td:nth-child(4):before{content:"Projet"}.lead-arrival-journal td:nth-child(5):before{content:"Reçue le"}}
/* Cartes de prospect : informations et actions sans fiche complète. */
.project-card .card-project-value{display:grid;gap:3px;margin:12px 0}.card-project-value small{color:#53617a}.card-project-value strong{color:#143c77;font-size:1.1rem}.project-card .card-appointment{font-size:.8rem;line-height:1.5;background:#f1f5fb;padding:9px;border-radius:6px;overflow-wrap:anywhere}.card-quick-actions{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;margin-top:12px}.card-quick-actions button{display:grid;justify-items:center;gap:3px;padding:8px 3px;min-height:44px}.card-quick-actions button>span{font-size:20px;line-height:1.2}.card-quick-actions small{font-size:11px}#card-action-dialog{width:min(620px,94vw)}#card-action-dialog .heading{align-items:start}#card-action-dialog h2{font-size:1.2rem;margin:0;overflow-wrap:anywhere}#card-action-dialog .quick-history{max-height:220px;overflow:auto}#card-action-dialog textarea{min-height:120px}

#acquisition-settings-dialog{width:min(680px,94vw)}#acquisition-settings-form{display:grid;gap:14px}#acquisition-settings-form label{display:grid;gap:6px}#acquisition-settings-form textarea{min-height:80px}#acquisition-settings-dialog .heading{align-items:start}#acquisition-settings-dialog h2{margin:0}
.acquisition-chat{display:grid;gap:18px}.acquisition-chat form{display:grid;gap:12px}.acquisition-chat textarea{min-height:100px}.acquisition-proposals{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.acquisition-proposals .panel{display:flex;flex-direction:column;gap:10px}.acquisition-proposals .panel>p{flex:1}.acquisition-name-form label{flex:1}.acquisition-name-form{gap:14px}@media(max-width:850px){.acquisition-proposals{grid-template-columns:1fr}}
/* Cartes compactes : même largeur, environ la moitié de la surface. */
.project-card{padding:10px;display:grid;gap:4px}.project-card .card-top{gap:6px;align-items:start}.project-card .card-project-value{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0}.project-card .card-project-value strong{font-size:1rem}.project-card .card-next-action{font-size:.8rem;line-height:1.3;margin:0}.project-card .card-followup{font-size:.75rem;line-height:1.3}.project-card .card-appointment{margin:0;padding:4px 5px;font-size:.75rem;line-height:1.3}.project-card .card-quick-actions{margin:0;gap:4px}.project-card .card-quick-actions button{min-height:32px;padding:4px;position:relative}.project-card .card-quick-actions button>span{font-size:18px}.project-card .card-quick-actions small{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.project-card .card-move{margin:0;padding:4px 0 0}.project-card .card-move summary{font-size:.75rem;line-height:1.3}.project-card .card-move>p{margin:8px 0}.project-card .board-move-form{padding-top:8px}.project-card .board-move-form label{font-size:.8rem}@media(pointer:coarse){.project-card .card-quick-actions button{min-height:44px}}

.campaign-preview-image{display:block;max-width:320px;width:100%;height:auto;border-radius:12px}
.campaign-ad-preview{margin:18px 0;padding:18px;border:1px solid #d8e2ef;border-radius:12px;background:#f7faff}
.campaign-ad-layout{display:grid;grid-template-columns:minmax(0,420px) minmax(180px,1fr);gap:24px;align-items:start}
.campaign-ad-card{background:white;border:1px solid #d5deea;border-radius:12px;overflow:hidden}
.campaign-ad-card header,.campaign-ad-card footer{padding:14px;display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap}
.campaign-ad-card header span{font-size:12px;color:#52627b}.campaign-ad-copy{padding:0 14px;white-space:pre-wrap;overflow-wrap:anywhere}
.campaign-ad-card .campaign-preview-image{max-width:100%;border-radius:0}.campaign-ad-cta{padding:7px 10px;border-radius:6px;background:#e8eef5;color:#13243e;font-weight:600}
.campaign-ad-summary p{overflow-wrap:anywhere}.campaign-ad-summary details{background:white;padding:12px;border-radius:8px}
@media(max-width:800px){.campaign-ad-layout{grid-template-columns:1fr}}

/* Home: selected pipeline results only; team comparison has its own view. */
.home-pipeline-title{font-size:20px;margin:6px 0 16px;color:#14233c}.home-pipeline-extra{grid-template-columns:repeat(2,minmax(0,1fr));max-width:640px}.home-pipeline-extra .home-stat{min-height:82px}
@media(max-width:450px){.home-pipeline-extra{grid-template-columns:1fr;max-width:none}}

.home-team-filters{grid-template-columns:minmax(320px,1fr) minmax(240px,1fr)}
@media(max-width:950px){.home-team-filters{grid-template-columns:1fr}}

/* Full 24-hour day/week display; booking availability settings stay separate. */
.calendar-time-scroll{max-height:640px;overflow:auto;border:1px solid #d9e2ee;border-radius:10px;background:#fff;overscroll-behavior:contain}
.calendar-time-scroll:focus-visible{outline:3px solid #0acb46;outline-offset:2px}
.calendar-hours-table{width:100%;table-layout:fixed;border-spacing:0;border-collapse:separate;margin:0}
.calendar-time-week .calendar-hours-table{min-width:900px}
.calendar-hours-table th,.calendar-hours-table td{padding:6px;border-right:1px solid #e4eaf2;border-bottom:1px solid #e4eaf2;vertical-align:top;font-size:12px}
.calendar-hours-table thead th{position:sticky;top:0;z-index:3;padding:10px 6px;background:#edf2f8;color:#465875;font-weight:650}
.calendar-hours-table thead th:first-child{left:0;z-index:4;width:62px}
.calendar-hours-table thead button{border:0;background:transparent;padding:3px;color:inherit;font-weight:650;text-align:left}
.calendar-hours-table tbody th,.calendar-hours-table tfoot th{position:sticky;left:0;z-index:2;width:62px;background:#f7f9fc;font-weight:500;color:#536775;white-space:nowrap}
.calendar-hours-table tbody td{height:44px;background:#fff}
.calendar-hours-table th.is-today,.calendar-hours-table td.is-today{background:#f2fff5}
.calendar-hours-table thead th.is-today{color:#007528}
.calendar-hours-table tfoot th,.calendar-hours-table tfoot td{height:28px;border-bottom:0}
.calendar-hours-table .calendar-event{margin:2px 0;padding:7px!important;font-size:12px}
.calendar-time-day .calendar-event{max-width:640px}
@media(max-width:650px){.calendar-time-scroll{max-height:65vh}.calendar-time-week .calendar-hours-table{min-width:900px}.calendar-hours-table thead th:first-child,.calendar-hours-table tbody th,.calendar-hours-table tfoot th{width:54px}.calendar-hours-table th,.calendar-hours-table td{padding:5px}}

.setter-booking-preview{padding:16px;border:1px solid #bdcddd;border-left:4px solid #00c74b;border-radius:8px;background:#f7fbff;margin:18px 0}.setter-booking-preview h3{margin-top:0}.setter-booking-preview .row{gap:12px;flex-wrap:wrap}
.calendar-toolbar-actions{display:flex;gap:10px;flex-wrap:wrap}.personal-availability fieldset{border:1px solid #d6dce5;border-radius:9px;padding:12px 16px}.personal-availability legend{font-weight:700;color:#12233d}.availability-window{display:flex;align-items:flex-end;gap:12px;flex-wrap:wrap;margin:0 0 12px}.availability-window label{max-width:155px;display:flex;flex-direction:column;gap:5px}.availability-window>span{padding-bottom:10px}.availability-closed{color:#62718a;margin:3px 0 10px}.personal-availability [data-availability-add]{font-size:.9rem}.availability-window input{width:140px}@media(max-width:650px){.availability-window{gap:8px}.availability-window label,.availability-window input{width:115px}.availability-window [data-availability-remove]{min-height:40px}.calendar-toolbar-actions{width:100%}}
.calendar-event.calendar-outlook-event{background:#edf4ff!important;border-left-color:#1671c5!important;cursor:default}.calendar-event.calendar-outlook-event:hover{background:#edf4ff!important}.calendar-outlook-badge{font-size:10px;font-weight:600;color:#155b94}.calendar-outlook-status{display:flex;align-items:center;gap:10px;justify-content:space-between;flex-wrap:wrap;margin:0 0 12px;color:#596d83;font-size:12px}.calendar-outlook-status button{font-size:12px;padding:5px 9px}.calendar-grid-month .calendar-outlook-badge{font-size:9px}

/* Méthode et formation privées par pipeline. */
.setter-pipeline-panel>label{max-width:700px}.setter-method-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.setter-method-choice{display:flex;align-items:flex-start;gap:10px;border:1px solid #c8d3e3;border-radius:9px;padding:16px;background:#fff;cursor:pointer}.setter-method-choice input{width:auto;min-width:18px;margin-top:3px;accent-color:#00bc42}.setter-method-choice span{display:grid;gap:8px}.setter-method-choice small{font-size:.82rem;line-height:1.5}.setter-method-choice.is-selected{border-color:#00ad39;background:#effbf2;box-shadow:0 0 0 1px #00ad39}.setter-pipeline-panel fieldset{border:0;margin:0;padding:0}.setter-pipeline-panel legend{font-weight:600;padding:0 0 12px}.setter-education details{margin:12px 0}.setter-education .event{margin:12px 0}.setter-pipeline-panel .error:empty{display:none}@media(max-width:850px){.setter-method-choices{grid-template-columns:1fr}}

.strategy-history {display:flex;flex-direction:column;gap:.75rem;max-height:32rem;overflow:auto;scrollbar-gutter:stable}
.strategy-history:not(:empty) {padding:.75rem 0}
.strategy-question,.strategy-answer {padding:.75rem 1rem;border-radius:10px;max-width:min(90%,48rem)}
.strategy-question {align-self:flex-end;background:#e9f4ee}
.strategy-answer {align-self:flex-start;background:#f4f7fa}
.strategy-history p {margin:.25rem 0 0;white-space:pre-wrap;overflow-wrap:anywhere}
.strategy-ad {display:flow-root}
.strategy-creative {width:min(100%,22rem);max-height:20rem;object-fit:contain;display:block;margin:0 0 .65rem;border-radius:8px;background:#f4f7fa}
.strategy-layout {display:grid;grid-template-columns:minmax(0,3fr) minmax(16rem,2fr);gap:1.25rem;align-items:start}
.strategy-layout>.panel {margin:0;max-height:42rem;overflow:auto}
.strategy-filters {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.strategy-heading {display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:1rem}
.strategy-heading h2 {margin:0}
.buyer-idea-brief dt {font-weight:650;margin-top:.65rem}
.buyer-idea-brief dd {margin:.15rem 0 0;overflow-wrap:anywhere}
.meta-side-launch {display:inline-block;border-radius:6px;background:#08633c;color:white;padding:.65rem 1rem;text-decoration:none;font-weight:650}
.meta-side-launch:hover,.meta-side-launch:focus-visible {background:#034b2e;color:white;text-decoration:underline}
body.authenticated aside.strategy-sources {position:static;background:white;color:#10192c;min-width:0;border:1px solid #ccd5e3}
.strategy-sources:focus {outline:3px solid #14864a;outline-offset:2px}
.strategy-sources>h3 {margin-top:0}
.strategy-layout>.strategy-dialogue {display:flex;flex-direction:column;gap:.6rem;min-width:0;max-height:none;overflow:visible}
.strategy-dialogue .strategy-history {min-height:10rem;height:clamp(12rem,43vh,32rem)}
.strategy-history .strategy-answer h4 {margin:.75rem 0 .25rem}
.strategy-dialogue .strategy-composer {display:block;padding:.65rem;border:1px solid #acbacb;border-radius:1rem;background:white}
.strategy-composer:focus-within {outline:2px solid #14864a}
.strategy-composer textarea {width:100%;box-sizing:border-box;min-height:3rem;max-height:10rem;resize:vertical;border:0;background:transparent;box-shadow:none}
.strategy-composer textarea:focus {outline:none}
.composer-tools {display:flex;align-items:center;justify-content:flex-end;gap:.45rem}
.composer-tools small {margin-right:auto;color:#475569}
.composer-tools .composer-icon {width:2.6rem;height:2.6rem;padding:.55rem;border-radius:50%;display:grid;place-items:center}
.composer-icon svg {width:1.25rem;height:1.25rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.composer-icon[aria-pressed="true"] {background:#9e263e;color:white}
.strategy-dialogue p:empty {display:none}
.strategy-sources>.panel {border:0;box-shadow:none;margin:0;padding:.7rem 0 0}
.strategy-layout:has(>.strategy-dialogue:only-child) {grid-template-columns:1fr}
@media(max-width:740px){.strategy-layout,.strategy-filters {grid-template-columns:1fr}.strategy-layout>.panel {max-height:none}}
.strategy-ad-actions,.strategy-preview>header {display:flex;align-items:center;gap:.75rem;flex-wrap:wrap}
.strategy-ad-actions {margin-top:.5rem}
.strategy-preview {box-sizing:border-box;position:fixed;inset:0 0 0 auto;margin:auto 0;width:min(28rem,100%);max-height:90vh;overflow:auto;padding:1.25rem;background:white;color:#101b30;border:1px solid #bcc9d6;border-radius:.7rem;box-shadow:0 6px 32px #08182e44}
.strategy-preview::backdrop {background:#07182d40}
.strategy-preview>header {justify-content:space-between;margin-bottom:1rem}
.strategy-preview h3 {margin:0}
.strategy-preview .strategy-creative {display:block;width:100%;max-width:100%;height:auto;max-height:50vh;object-fit:contain}
.strategy-ad>strong {display:block;margin-bottom:.45rem}
.inbox-layout.thread-focused{display:block}
.inbox-prospect-search{max-width:42rem;margin-bottom:.65rem}
.inbox-prospect-search input{width:100%}
#prospect-search-results:not(:empty){display:grid;gap:.25rem;max-height:15rem;overflow-y:auto;padding:.3rem}
#prospect-search-results button{text-align:left}
.inbox-switch{margin:0 0 10px}.inbox-switch>summary,.prospect-workspace summary{cursor:pointer}
.thread-focused #thread-panel{padding:0;overflow:hidden}
.prospect-workspace{display:grid;grid-template-columns:minmax(170px,20%) minmax(0,1fr) minmax(210px,24%);align-items:stretch}
.prospect-workspace>*{min-width:0;padding:16px;overflow-wrap:anywhere}
.thread-panel-switch{display:none}
.thread-person,.thread-sidebar{background:#f5f8fb;color:#10192c;border:0}
.thread-person{border-inline-end:1px solid #dbe2e9}
.thread-sidebar{border-inline-start:1px solid #dbe2e9}
.thread-center{background:#d8efff;box-shadow:inset 0 0 0 1px #a6cde6}
.thread-tools h3,.thread-transaction h3{margin:0 0 10px}
.thread-transaction{border-top:1px solid #cbd5df;margin-top:16px;padding-top:14px}
.thread-transaction dt{font-size:.84rem;font-weight:600;color:#43546a}
.thread-transaction dd{margin:3px 0 10px}
.thread-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.thread-heading h2,.thread-identity h2{margin:3px 0 10px}
.thread-identity dl>div{margin:15px 0}.thread-identity dt,.thread-heading small{color:#455468;font-weight:600;font-size:.82rem}.thread-identity dd{margin:3px 0}
.thread-tools>button,.thread-tools>details,.thread-identity>details{display:block;width:100%;margin:10px 0;text-align:left}.thread-tools summary,.thread-identity summary{padding:8px 0;font-weight:600}
.thread-center .timeline{overflow:auto;max-height:clamp(230px,42vh,550px);margin:12px 0;border-block:1px solid #dbe2e9}.thread-center .event{margin:8px 0}.thread-center audio{max-width:100%}
.thread-center .event:has(.muted){background:#f7fafc}.thread-activity{padding:8px 12px;color:#46596c}.thread-activity p{margin:3px 0}
.thread-compose{padding:10px 0}.thread-compose label{display:grid;gap:4px}.thread-compose textarea{min-height:66px}.thread-compose select,.thread-tools input,.thread-tools select{max-width:100%;box-sizing:border-box}
@media(max-width:1150px){.prospect-workspace{grid-template-columns:minmax(155px,20%) minmax(0,1fr) minmax(175px,24%)}.prospect-workspace>*{padding:11px}}
@media(max-width:940px){
 .prospect-workspace{display:flex;flex-direction:column}
 .thread-panel-switch{display:flex;gap:8px;flex-wrap:wrap;order:-2}
 .thread-panel-switch [aria-expanded="true"]{background:#dcf4e7;color:#16492f}
 .thread-person,.thread-sidebar{order:-1;border-inline:0;border-block:1px solid #dbe2e9}
 .prospect-workspace:not([data-open-panel="thread-prospect-actions"]) .thread-sidebar,
 .prospect-workspace:not([data-open-panel="thread-prospect-details"]) .thread-person{display:none}
 .thread-identity dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .thread-identity dl>div{margin:0}
}

/* Carte d’opportunité dans les colonnes du pipeline. */
.board .opportunity-tile {
  display: block;
  position: relative;
  padding: 12px;
  border: 1px solid #d9dfe5;
  border-radius: 8px;
  background: white;
  box-shadow: 0 1px 3px #18263a12;
}
.opportunity-tile .card-top { min-height: 32px; padding-right: 34px; }
.opportunity-tile .card-top .name-button { color: #18212c; text-align: left; font-size: .94rem; font-weight: 600; padding: 1px 0; }
.opportunity-tile .name-button:hover { color: #215391; text-decoration: underline; }
.opportunity-tile .card-move { border: 0; padding: 0; margin: 0; }
.opportunity-tile .card-move summary {
  position: absolute; top: 9px; right: 9px; display: grid; place-items: center;
  width: 28px; height: 28px; padding: 0; border: 1px solid #d5dbe1; border-radius: 50%;
  color: #526171; background: #fff; cursor: pointer; list-style: none;
}
.opportunity-tile summary::-webkit-details-marker { display: none; }
.opportunity-tile .card-move[open] { border-bottom: 1px solid #e4e8ed; padding-bottom: 10px; font-size: .82rem; }
.opportunity-tile svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.opportunity-tile .tile-fields { display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 8px; margin: 12px 0 10px; font-size: .77rem; line-height: 1.35; color: #465569; }
.tile-fields dt { font-weight: 600; }
.tile-fields dd { text-align: right; margin: 0; overflow-wrap: anywhere; }
.opportunity-tile .card-quick-actions { display: flex; align-items: center; gap: 3px; }
.opportunity-tile .card-quick-actions button {
  display: grid; place-items: center; position: relative; width: 30px; min-height: 29px;
  border: 0; border-radius: 5px; padding: 3px; background: transparent; color: #546375;
}
.opportunity-tile .card-quick-actions button:hover, .opportunity-tile summary:hover { background: #eef3f8; color: #134486; }
.opportunity-tile .card-quick-actions b { position: absolute; top: -3px; right: -2px; min-width: 14px; padding: 1px 3px; border-radius: 12px; background: #2156b3; color: white; font-size: 10px; line-height: 1.2; }
@media(pointer:coarse) { .opportunity-tile .card-quick-actions button { flex: 1; min-height: 44px; } }

.thread-compose { border: 1px solid #ccd5df; border-radius: 10px; background: #fff; padding: 12px; }
.composer-tools { display: flex; align-items: start; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.composer-tools > label { font-weight: 600; }
.composer-setter { margin: 0 0 0 auto; border: 0; padding: 0; max-width: 100%; }
.composer-setter summary { color: #1b497e; padding: 7px 10px; border-radius: 7px; background: #edf4fb; cursor: pointer; }
.composer-setter[open] { flex-basis: 100%; }
.composer-setter[open] summary { width: fit-content; margin-left: auto; }
.thread-compose #thread-outbound { margin-top: 8px; }
.thread-compose .actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.thread-compose #thread-save-draft { order: -1; }
.thread-compose #thread-channel-status:empty { display: none; }
.thread-compose #thread-subject[hidden], .thread-compose [hidden] { display: none; }
.thread-compose[data-mode="note"] { background: #e7f6ef; border-color: #70a88f; }
.thread-compose[data-mode="note"] textarea { background: #f7fcf9; border-color: #65937f; color: #101e35; }
.thread-compose[data-mode="note"] button[type="submit"] { justify-self: start; background: #155841; color: white; }
.thread-mail-fields { display: grid; gap: 6px; border-bottom: 1px solid #ccd5df; padding-bottom: 8px; }
.thread-mail-fields p { margin: 0; overflow-wrap: anywhere; }
.thread-mail-fields strong { display: inline-block; min-width: 3em; }
#thread-setter { align-self: end; border-radius: 16px; }
#thread-setter[aria-pressed="true"]:enabled { background: #e8f6ee; color: #175132; }
#thread-setter[aria-pressed="false"]:enabled { background: #fff0d6; color: #674411; }
.thread-compose textarea { box-sizing: border-box; width: 100%; }

.thread-center .timeline { max-height: clamp(290px, 52vh, 680px); padding: 8px 10px; background: transparent; border-color: #a6cde6; }
.thread-center .history-day { display: table; margin: 14px auto; padding: 4px 11px; border-radius: 20px; color: #445569; background: #eef2f5; font-size: .76rem; font-weight: 600; }
.history-day::first-letter { text-transform: uppercase; }
.history-row { margin: 8px 0; }
.thread-center .history-row.message .event { width: fit-content; max-width: 86%; box-sizing: border-box; border-radius: 12px; padding: 9px 12px; }
.history-row.message header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.history-row header strong { font-size: .85rem; }
.history-row small { color: #4b5e72; }
.thread-center .history-row.sent .event { margin-left: auto; background: #eaf2ff; border: 1px solid #cddff8; }
.thread-center .history-row.received .event { margin-right: auto; background: #fff; border: 1px solid #dbe2e9; }
.thread-center .history-row.note .event { background: #e7f6ef; border: 1px solid #a8caba; border-inline-start: 3px solid #377b60; color: #101e35; }
.thread-center .history-row.call .event { background: #f2f6f8; border-left: 3px solid #6e8598; }
.thread-center .thread-heading { gap: 8px; flex-wrap: wrap; background: transparent; }
.history-filter select { font-size: .8rem; max-width: 100%; }
.thread-handoff { align-self: center; font-size: .8rem; color: #795000; }


/* The stage key stays stable when a team renames its column. */
#pipeline-board{display:flex;align-items:stretch}
#pipeline-board>.lane{
  --stage-ink:#465568; --stage-tint:#edf1f6;
  display:block;
  flex:0 0 326px;box-sizing:border-box;border-top:4px solid var(--stage-ink)
}
#pipeline-board>.lane.is-folded{flex-basis:48px}
#pipeline-board [data-drop-stage="Nouveau"]{--stage-ink:#aa2e35;--stage-tint:#fde9e9}
#pipeline-board [data-drop-stage="Contacts prioritaires du jour"],
#pipeline-board [data-drop-stage="Rappels du jour"]{--stage-ink:#9a303b;--stage-tint:#fce3e7}
#pipeline-board [data-drop-stage="second_attempt"],
#pipeline-board [data-drop-stage="Contact en cours"]{--stage-ink:#9c4c12;--stage-tint:#fff0dd}
#pipeline-board [data-drop-stage="third_attempt"]{--stage-ink:#924016;--stage-tint:#ffe7d6}
#pipeline-board [data-drop-stage="unreachable"],
#pipeline-board [data-drop-stage="Ne plus contacter"],
#pipeline-board [data-drop-stage="Perdu"]{--stage-ink:#4d5560;--stage-tint:#e7eaee}
#pipeline-board [data-drop-stage="no_project"]{--stage-ink:#625953;--stage-tint:#f1ede8}
#pipeline-board [data-drop-stage="project_unbooked"],
#pipeline-board [data-drop-stage="Qualifié"]{--stage-ink:#176675;--stage-tint:#dff3f5}
#pipeline-board [data-drop-stage="Rendez-vous fixé"],
#pipeline-board [data-drop-stage="Rendez-vous tenu"]{--stage-ink:#215a9b;--stage-tint:#e5effe}
#pipeline-board [data-drop-stage="prequalification_pending"],
#pipeline-board [data-drop-stage="En attente"]{--stage-ink:#805e0b;--stage-tint:#fff4cd}
#pipeline-board [data-drop-stage="accompaniment"]{--stage-ink:#674198;--stage-tint:#f0e9fa}
#pipeline-board [data-drop-stage="Mandat"],
#pipeline-board [data-drop-stage="Transaction"],
#pipeline-board [data-drop-stage="Après-vente"]{--stage-ink:#13663a;--stage-tint:#def4e6}
.lane h2.lane-heading{display:flex;margin:0;padding:0;border:0;border-radius:8px 8px 0 0;background:var(--stage-tint);font-size:.95rem}
.is-folded h2.lane-heading{border-radius:8px}
.lane .lane-toggle{width:100%;display:flex;align-items:center;gap:10px;padding:12px;border:0;border-radius:inherit;background:transparent;color:var(--stage-ink);font:inherit;cursor:pointer}
.is-folded .lane-toggle{flex-direction:column;padding:14px 3px}
.lane .lane-toggle:hover{box-shadow:inset 0 0 0 1px var(--stage-ink)}
.lane .lane-toggle:focus-visible{outline:2px solid var(--stage-ink);outline-offset:-3px}
.lane .lane-title{flex:1;overflow-wrap:anywhere;line-height:1.15;text-align:start}
.is-folded .lane-title{flex:none;writing-mode:vertical-rl;text-orientation:mixed;max-inline-size:24rem}
.lane .lane-count{color:var(--stage-ink);background:white}
.is-folded .lane-count{order:-1}
.lane-chevron{display:block;width:9px;height:9px;flex:none;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(135deg)}
.is-folded .lane-chevron{order:-2;transform:rotate(-45deg)}
.lane .opportunity-tile{border-inline-start:4px solid var(--stage-ink)}
@media(max-width:520px){#pipeline-board>.lane{flex-basis:max(270px,86vw)}}
