:root{font-family:Arial,Helvetica,sans-serif;color:#202925;background:#f4f5f3;--green:#087f83;--gold:#147e83;--line:#d9dfda;--muted:#56635c;--surface:#fff;font-synthesis:none}*{box-sizing:border-box}body{margin:0;font-size:16px;line-height:1.5}a{color:var(--green);text-underline-offset:4px}button,input,select,textarea{font:inherit}button,a,input,select,textarea{touch-action:manipulation}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #118f94;outline-offset:3px}button{cursor:pointer;border:1px solid var(--line);border-radius:5px;background:white;color:var(--green);min-height:44px;padding:9px 17px;font-weight:600}button.primary{background:var(--green);color:white;border-color:var(--green)}button:hover{filter:brightness(.96)}button:disabled{opacity:.55;cursor:wait}header{background:#fff;border-bottom:1px solid var(--line);min-height:94px;display:flex;align-items:center;padding:20px 4vw;gap:46px}.brand{font-size:25px;letter-spacing:2px;text-decoration:none;font-weight:700;line-height:1.15}.brand span{display:block;font-size:11px;letter-spacing:3px;color:#16767b;margin-top:7px}nav{display:flex;gap:30px}nav a{text-decoration:none;font-size:14px;font-weight:600;padding:11px 0;border-bottom:2px solid transparent}nav a[aria-current=page]{border-color:var(--green)}.environment{margin-left:auto;border:1px solid #ded6c7;background:#faf8f1;color:#725416;padding:6px 10px;font-size:12px;border-radius:4px}.skip{position:absolute;top:-80px;background:#fff;padding:12px;z-index:5}.skip:focus{top:0}main{max-width:1460px;margin:auto;padding:36px 4vw 56px;min-height:76vh}h1,h2,h3,p{margin-top:0}h1{font-size:34px;line-height:1.2;letter-spacing:-1px;margin-bottom:12px}h2{font-size:23px;line-height:1.25;margin-bottom:18px}h3{font-size:16px;margin-bottom:10px}.eyebrow{font-size:12px;color:var(--muted);letter-spacing:1.5px;font-weight:600;margin-bottom:9px}.muted{color:var(--muted)}.topline{display:flex;justify-content:space-between;align-items:center;gap:20px;margin-bottom:28px}.topline p{margin-bottom:0}.actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.subnav{display:flex;border-bottom:1px solid var(--line);gap:28px;margin-bottom:25px}.subnav button{border:0;border-radius:0;background:transparent;padding:10px 0 14px;border-bottom:3px solid transparent;color:var(--muted)}.subnav button.active{border-color:var(--green);color:var(--green)}.stats{display:flex;gap:40px;border-bottom:1px solid var(--line);padding:0 0 23px;margin-bottom:23px}.stat strong{display:block;font-size:27px;font-weight:500;line-height:1.25}.stat span{font-size:13px;color:var(--muted)}.filters{display:grid;grid-template-columns:minmax(180px,1fr) 210px 185px auto;gap:12px;align-items:end;margin-bottom:18px}label{display:block;font-size:14px;font-weight:600}input,select,textarea{display:block;width:100%;padding:11px 12px;border:1px solid #acb9af;border-radius:4px;background:white;color:#202925;min-height:46px;margin-top:6px}textarea{resize:vertical;min-height:130px}input[type=checkbox]{width:20px;height:20px;min-height:20px;margin:3px 0 0;flex-shrink:0}.check{display:flex;gap:12px;align-items:flex-start;font-weight:400}.workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(350px,1.2fr);gap:24px;align-items:start}.panel{background:var(--surface);border:1px solid var(--line);border-radius:7px;overflow:hidden}.panel-pad{padding:26px}.list-header{display:flex;justify-content:space-between;padding:14px 20px;font-size:13px;color:var(--muted);border-bottom:1px solid var(--line)}.inquiry{width:100%;display:block;text-align:left;border:0;border-radius:0;border-bottom:1px solid var(--line);padding:19px 20px;background:white;font-weight:400}.inquiry:last-child{border-bottom:0}.inquiry.active{background:#eef3ef;box-shadow:inset 3px 0 var(--green)}.row{display:flex;justify-content:space-between;gap:12px;align-items:center}.inquiry strong{font-weight:600;font-size:16px}.inquiry p{font-size:14px;color:var(--muted);margin:7px 0 10px;overflow-wrap:anywhere}.meta{font-size:12px;color:var(--muted)}.badge{display:inline-block;font-size:12px;font-weight:500;padding:3px 8px;border-radius:3px;background:#edf1ee;color:#2e5945;white-space:nowrap}.badge.pending{background:#f8f0de;color:#775017}.badge.done{background:#eceeee;color:#455b54}.detail-head{padding-bottom:20px;border-bottom:1px solid var(--line);margin-bottom:23px}.detail-head h2{margin:9px 0}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:25px}.detail-grid dt{font-size:12px;color:var(--muted);margin-bottom:3px}.detail-grid dd{margin:0;overflow-wrap:anywhere;font-size:14px}.message{white-space:pre-wrap;overflow-wrap:anywhere;border-left:2px solid #b09864;padding-left:17px;margin:0 0 27px;font-size:16px}.status-form{display:flex;align-items:end;gap:12px}.status-form label{flex:1}.section{border-top:1px solid var(--line);margin-top:26px;padding-top:23px}.notification{background:#f8f7f1;border:1px solid #e5dfcd;border-radius:5px;padding:17px;font-size:14px}.notification p:last-child{margin-bottom:0}details summary{cursor:pointer;padding:10px 0;min-height:44px;font-weight:600}pre{white-space:pre-wrap;font:13px/1.6 Arial;overflow-wrap:anywhere}.timeline{list-style:none;padding:0;margin:12px 0 0}.timeline li{border-left:1px solid var(--line);padding:0 0 18px 15px;font-size:14px;overflow-wrap:anywhere}.timeline time{display:block;font-size:12px;color:var(--muted);margin-bottom:3px}.note-form textarea{min-height:90px}.note-form button{margin-top:12px}.empty{padding:45px 28px;text-align:center}.empty h2{font-size:20px}.empty p{font-size:14px;color:var(--muted)}.login{max-width:480px;margin:35px auto}.login button{width:100%;margin-top:20px}.local-note{border-left:3px solid #b89853;padding:10px 16px;background:#faf7ed;font-size:14px;margin-bottom:24px}.contact-layout{display:grid;grid-template-columns:.8fr 1.2fr;gap:65px;max-width:1100px;margin:20px auto}.contact-intro h1{font-size:43px;margin-bottom:20px}.contact-intro p{color:var(--muted)}.project-list{margin-top:35px;border-top:1px solid var(--line)}.project-list div{padding:18px 0;border-bottom:1px solid var(--line)}.project-list strong{font-size:16px}.project-list p{font-size:14px;margin:4px 0 0}.contact-form{display:grid;gap:19px}.pair{display:grid;grid-template-columns:1fr 1fr;gap:16px}.error{color:#912b22;font-size:14px;padding:10px 0}.success{background:#eef4ef;border:1px solid #bfcebf;padding:23px;border-radius:5px}.success h2{font-size:23px}.honeypot{position:absolute;left:-9999px}.workflow{padding:22px 24px;border-bottom:1px solid var(--line);display:grid;grid-template-columns:1fr 1fr 1fr;gap:24px}.workflow:last-child{border-bottom:0}.workflow p{font-size:14px;margin-bottom:5px}.workflow span{font-size:12px;color:var(--muted)}.table-scroll{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px}td,th{padding:16px 20px;border-bottom:1px solid var(--line);text-align:left}th{font-size:12px;color:var(--muted);background:#f7f8f6;font-weight:500}td{overflow-wrap:anywhere}.pagination{display:flex;justify-content:center;align-items:center;gap:18px;padding:20px}.loading{padding:50px;color:var(--muted)}footer{display:flex;justify-content:space-between;padding:20px 4vw;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}#notice{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);background:var(--green);color:white;border-radius:5px;padding:12px 20px;max-width:90vw;box-shadow:0 3px 20px #0002;display:none}#notice.visible{display:block}@media(max-width:1000px){.filters{grid-template-columns:1fr 1fr}.workspace{grid-template-columns:1fr 1.2fr;gap:16px}.panel-pad{padding:20px}.contact-layout{gap:32px}.topline{align-items:flex-start}.actions{justify-content:flex-end}}@media(max-width:740px){header{gap:20px;padding:18px 20px;flex-wrap:wrap}.brand{font-size:22px}.environment{order:3;margin-left:0;width:100%;text-align:center}nav{margin-left:auto;gap:20px}main{padding:28px 20px 40px}h1{font-size:29px}.topline{display:block}.topline .actions{justify-content:flex-start;margin-top:20px}.stats{gap:26px;flex-wrap:wrap}.stat strong{font-size:24px}.filters{grid-template-columns:1fr 1fr}.filters label:first-child{grid-column:1/-1}.filters button{grid-column:1/-1}.workspace,.contact-layout{grid-template-columns:1fr}.contact-intro h1{font-size:35px}.project-list{display:none}.pair{grid-template-columns:1fr}.workflow{grid-template-columns:1fr;gap:12px}.subnav{gap:24px}.subnav button{font-size:14px}.detail-grid{grid-template-columns:1fr}.contact-layout{margin:0;gap:25px}footer{gap:20px}.status-form{align-items:stretch;flex-direction:column}.status-form button{width:100%}}

@media(max-width:740px){.stats{gap:14px;flex-wrap:nowrap}.stat{flex:1;min-width:0}.stat span{font-size:12px}.topline{margin-bottom:20px}}

/* Contact management shares the CRM's typography, spacing and keyboard controls. */
.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.text-button{background:transparent;border:0;padding-left:0;text-decoration:underline;text-underline-offset:4px}.detail-head .text-button{display:block;margin-bottom:8px}
.block,.contact-email{display:block}.contact-email{margin:3px 0;overflow-wrap:anywhere}.contacts-table td{vertical-align:middle}.contacts-table .badge{display:table;margin-top:6px}.contacts-table td:last-child{width:95px}.contacts-table time{white-space:nowrap}
.contact-tools{display:grid;grid-template-columns:minmax(220px,1fr) 240px auto;gap:14px;align-items:end;margin-bottom:16px}
.contact-workspace{display:grid;grid-template-columns:minmax(280px,.85fr) minmax(340px,1.25fr);gap:24px;align-items:start}.edit-contact{display:grid;gap:16px}.edit-contact p{margin:0}.error:empty{display:none}.danger{color:#912b22;border-color:#d9bbb4}.confirmation{margin-top:16px;background:#faf8f1;border:1px solid #dfd5bc;border-radius:5px;padding:18px;overflow-wrap:anywhere}.confirmation p{font-size:14px}.confirmation p:last-of-type{margin-bottom:14px}
.contact-history{list-style:none;padding:0;margin:0}.contact-history li{display:flex;justify-content:space-between;gap:18px;padding:18px 0;border-bottom:1px solid var(--line)}.contact-history li:first-child{padding-top:0}.contact-history li:last-child{border-bottom:0}.contact-history time{display:block;font-size:13px;color:var(--muted);margin:6px 0}.contact-history li>div:last-child{display:flex;flex-direction:column;gap:10px;align-items:end}.empty.compact{padding:20px 0 0;text-align:left}.empty.compact p{margin-bottom:0}
.stat.latest{margin-left:auto;max-width:250px}.stat.latest strong{font-size:19px;line-height:1.65}.filter-context{display:flex;gap:20px;align-items:center;margin-bottom:18px;font-size:14px}.filter-context button{font-size:13px}.routing-summary{border-left:3px solid var(--gold);padding:2px 20px;margin-bottom:25px;color:var(--muted);font-size:14px}.routing-summary p:last-child{margin-bottom:0}.routing-list{display:grid;gap:18px}.routing-card{padding:24px;display:grid;grid-template-columns:minmax(170px,.6fr) minmax(360px,1.4fr);gap:30px}.routing-heading h3{font-size:19px}.routing-heading .meta{margin:18px 0 0}.routing-form{display:grid;gap:16px}.routing-fields{display:grid;grid-template-columns:.8fr 1.2fr;gap:16px}.routing-form>button{justify-self:start}.routing-form .error{margin:0;padding:0}.routing-confirm:empty{display:none}.routing-footnote{margin:22px 0 0}
@media(max-width:1000px){.stat.latest{max-width:200px}.stat.latest strong{font-size:16px}.routing-card{grid-template-columns:1fr;gap:20px}.routing-heading{display:flex;justify-content:space-between;gap:20px}.routing-heading .meta{margin:0}}
@media(max-width:740px){.contact-tools,.contact-workspace,.routing-fields{grid-template-columns:1fr}.contact-tools{gap:12px}.routing-card{padding:20px}.routing-heading{display:block}.routing-heading .meta{margin-top:10px}.stats{flex-wrap:wrap;gap:20px}.stats .stat{flex:1 1 calc(50% - 20px)}.stat.latest{margin:0;max-width:none}.contacts-table thead{display:none}.contacts-table,.contacts-table tbody,.contacts-table tr,.contacts-table td{display:block;width:100%}.contacts-table tr{position:relative;padding:18px 20px;border-bottom:1px solid var(--line)}.contacts-table td{padding:0;border:0;margin-bottom:12px}.contacts-table td:last-child{width:auto;margin-bottom:0}.contacts-table td:nth-child(3)::before{content:'Dernière demande : ';font-size:12px;color:var(--muted);display:block}.contacts-table td:nth-child(2){display:flex;gap:12px;align-items:center}.contacts-table .badge{margin:0}.contacts-table td:last-child button{width:100%}.contact-workspace .panel-pad{padding:20px}.contact-history li{gap:12px}.contact-history li>div{min-width:0}.contact-history button{padding:9px 12px}.filter-context{align-items:start;flex-direction:column;gap:8px}.routing-form>button{justify-self:stretch}}

/* CRM workspace: scoped so public contact assets keep their own presentation. */
.crm-surface{font-family:Arial,Helvetica,sans-serif;font-size:14px;line-height:1.45;background:#f6f7f5;color:#202925;--line:#e1e5e1;--muted:#58635c}
.crm-surface .app-header{min-height:60px;height:60px;padding:0 28px;gap:40px;flex-wrap:nowrap}
.crm-surface .brand{font-size:18px;letter-spacing:1.3px;flex-shrink:0}
.crm-surface .brand span{font-size:8px;letter-spacing:2.3px;margin-top:4px}
.crm-surface #app-nav{align-self:stretch;align-items:stretch;gap:6px}
.crm-surface #app-nav button{border:0;border-radius:0;position:relative;background:transparent;color:var(--muted);padding:0 15px;font-size:14px;font-weight:600}
.crm-surface #app-nav button.active{color:var(--green);box-shadow:inset 0 -3px var(--green)}
.crm-surface #app-nav button:hover{background:#f1f4f1;filter:none}
.crm-surface .session-actions{display:flex;align-items:center;gap:18px;margin-left:auto;font-size:13px;white-space:nowrap}
.crm-surface .session-actions a{text-decoration:none;color:var(--muted)}
.crm-surface .environment{margin:0;border:0;border-radius:0;padding:4px 28px;text-align:right;font-size:11px;line-height:16px;background:#f1eee5;color:#66532b}
.crm-surface [hidden]{display:none!important}
.crm-surface main{max-width:1640px;min-height:0;padding:20px 28px 40px}
.crm-surface h1{font-size:24px;letter-spacing:-.6px;line-height:1.25;margin:0;font-weight:600}
.crm-surface h2{font-size:20px;letter-spacing:-.3px;font-weight:600;line-height:1.3}
.crm-surface h3{font-size:14px;font-weight:600}
.crm-surface .view-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:18px;min-height:36px}
.crm-surface .view-heading h1{display:flex;align-items:center;gap:12px}
.crm-surface .view-count{font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted)}
.crm-surface button,.crm-surface .button{min-height:36px;padding:7px 12px;border-radius:5px;font-size:13px;line-height:20px;font-weight:600;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.crm-surface .quiet{background:transparent;border-color:transparent;color:var(--muted)}
.crm-surface .quiet:hover{background:#e9ede8;filter:none}
.crm-surface button:active{background:#e3ebe4}
.crm-surface button.primary:active{background:#065d61}
.crm-surface button:disabled{opacity:.5;cursor:not-allowed}
.crm-surface button:focus-visible,.crm-surface a:focus-visible,.crm-surface input:focus-visible,.crm-surface select:focus-visible,.crm-surface textarea:focus-visible,.crm-surface summary:focus-visible{outline:2px solid #118f94;outline-offset:3px}
.crm-surface label{font-size:12px;font-weight:600;color:#46534b}
.crm-surface input,.crm-surface select,.crm-surface textarea{font-size:14px;min-height:38px;padding:8px 10px;margin-top:6px;border-color:#b9c3bb;border-radius:5px;line-height:20px}
.crm-surface input::placeholder,.crm-surface textarea::placeholder{color:#667169;opacity:1}
.crm-surface textarea{min-height:104px}
.crm-surface .contact-tools{grid-template-columns:minmax(240px,420px) 210px auto;justify-content:start;gap:12px;margin:0 0 18px}
.crm-surface .contact-tools button{min-height:38px}
.crm-surface .context-note{font-size:13px;color:var(--muted);margin:-6px 0 18px}
.crm-surface .contact-register{background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.crm-surface .contacts-table{font-size:14px;table-layout:fixed}
.crm-surface .contacts-table th{font-size:12px;font-weight:500;padding:11px 16px;background:#f0f3ef;color:#4c5951;vertical-align:middle}
.crm-surface .contacts-table th:first-child{width:34%}
.crm-surface .contacts-table th:nth-child(2){width:14%}
.crm-surface .contacts-table th:nth-child(3){width:22%}
.crm-surface .contacts-table th:nth-child(4){width:23%}
.crm-surface .contacts-table th:last-child{width:7%}
.crm-surface .contacts-table td{padding:12px 16px;line-height:20px;vertical-align:middle}
.crm-surface .contacts-table tr:last-child td{border-bottom:0}
.crm-surface .contacts-table tbody tr:hover,.crm-surface .contacts-table tbody tr:focus-within{background:#f7f9f6}
.crm-surface .contacts-table strong{display:block;font-weight:600}
.crm-surface .contact-email{margin:2px 0 0;font-size:13px;color:var(--muted)}
.crm-surface .contacts-table .contact-source{font-size:12px;color:var(--muted)}
.crm-surface .contact-activity{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.crm-surface .demand-count{font-size:13px;font-variant-numeric:tabular-nums;white-space:nowrap}
.crm-surface .contacts-table .badge{margin:0;display:inline-block}
.crm-surface .badge{font-size:11px;padding:2px 7px;line-height:18px;border-radius:4px;font-weight:500;white-space:nowrap}
.crm-surface .contacts-table time{font-size:13px;font-variant-numeric:tabular-nums;white-space:normal}
.crm-surface .contacts-table td:last-child{width:auto;text-align:right;padding-left:0}
.crm-surface .row-action{min-width:60px;min-height:36px;background:transparent;border-color:transparent;color:var(--green);white-space:nowrap}
.crm-surface .row-action:hover{text-decoration:underline;background:#e9efe9;filter:none}
.crm-surface .column-note{font-size:11px;font-weight:400;white-space:nowrap}
.crm-surface .import-help{font-size:12px;color:var(--muted);margin-top:8px;max-width:720px}
.crm-surface .import-help summary{font-size:12px;font-weight:400;min-height:36px;padding:8px 0}
.crm-surface .import-help p{margin:0 0 12px;line-height:1.6}
.crm-surface .empty{padding:42px 24px}
.crm-surface .empty h2{font-size:16px;margin:0 0 8px}
.crm-surface .empty p{margin:0;color:var(--muted);font-size:13px}
.crm-surface .panel{border-color:var(--line)}
.crm-surface .panel-pad{padding:24px}
.crm-surface .topline{margin-bottom:20px}
.crm-surface .actions{gap:8px;flex-wrap:wrap}
.crm-surface .eyebrow{font-size:11px;letter-spacing:.7px}
.crm-surface .text-button{background:transparent;border-color:transparent;padding-left:0;justify-content:flex-start;text-decoration:none}
.crm-surface .text-button:hover{text-decoration:underline;filter:none}
.crm-surface .contact-workspace{grid-template-columns:minmax(280px,380px) minmax(0,1fr);gap:24px}
.crm-surface .contact-workspace h3{font-size:15px}
.crm-surface .edit-contact{gap:16px}
.crm-surface .edit-contact .primary{justify-self:start}
.crm-surface .contact-history li{padding:16px 0}
.crm-surface .contact-history button{min-height:36px}
.crm-surface .detail-head{padding-bottom:16px;margin-bottom:20px}
.crm-surface .contact-workspace .detail-head{border:0;padding:0}
.crm-surface .contact-workspace .detail-head p{margin:8px 0 0}
.crm-surface .section{padding-top:20px;margin-top:20px}
.crm-surface .timeline li{font-size:13px;line-height:1.6}
.crm-surface .confirmation{padding:16px;border-radius:5px}
.crm-surface .confirmation p{font-size:13px}
.crm-surface .login{margin:10vh auto;max-width:420px;padding:30px}
.crm-surface .login h1{margin-bottom:24px}
.crm-surface .login button{margin-top:14px}
.crm-surface .local-note{font-size:13px;margin-bottom:22px}
.crm-surface .error{font-size:13px;margin:6px 0;padding:0}
.crm-surface #notice{font-size:13px;z-index:10;bottom:20px;padding:12px 18px}
@media(max-width:1100px){
 .crm-surface .app-header{gap:22px;padding:0 20px}
 .crm-surface main{padding:20px}
 .crm-surface .contacts-table th:first-child{width:33%}
 .crm-surface .contacts-table th:nth-child(2){width:10%}
 .crm-surface .contacts-table th:nth-child(3){width:17%}
 .crm-surface .contacts-table th:nth-child(4){width:22%}
 .crm-surface .contacts-table th:last-child{width:9%}
 .crm-surface .contact-activity{gap:4px 8px}
 .crm-surface .contacts-table td,.crm-surface .contacts-table th{padding-left:12px;padding-right:12px}
}
@media(max-width:740px){
 .crm-surface .app-header{height:auto;min-height:100px;padding:0 16px;gap:0;display:grid;grid-template-columns:auto 1fr}
 .crm-surface .brand{font-size:17px;line-height:20px;padding:12px 0}
 .crm-surface .brand span{display:none}
 .crm-surface .session-actions{grid-row:1;grid-column:2;gap:4px;font-size:12px}
 .crm-surface .session-actions a{padding:12px 8px;min-height:44px}
 .crm-surface #app-nav{grid-column:1/-1;grid-row:2;display:flex;gap:4px;margin:0;height:46px}
 .crm-surface #app-nav button{font-size:14px;min-height:46px;padding:0 18px}
 .crm-surface .environment{padding:4px 16px;text-align:left;width:auto;font-size:10px}
 .crm-surface main{padding:18px 16px 28px}
 .crm-surface h1{font-size:22px}
 .crm-surface .view-heading{gap:8px;margin-bottom:16px;min-height:44px}
 .crm-surface .view-heading .actions{gap:0;flex-wrap:nowrap;justify-content:flex-end}
 .crm-surface .view-heading .actions button,.crm-surface .view-heading .actions .button{padding:8px;min-height:44px;font-size:12px}
 .crm-surface .view-heading h1{gap:8px}
 .crm-surface .view-count{font-size:13px}
 .crm-surface button,.crm-surface .button{min-height:44px}
 .crm-surface input,.crm-surface select,.crm-surface textarea{min-height:44px;font-size:16px}
 .crm-surface .contact-tools{grid-template-columns:minmax(0,1fr) auto;gap:10px;margin-bottom:16px}
 .crm-surface .contact-tools label:first-child{grid-column:1/-1}
 .crm-surface .contact-tools button{min-height:44px}
 .crm-surface .contacts-table,.crm-surface .contacts-table tbody{display:block;width:100%}
 .crm-surface .contacts-table thead{display:none}
 .crm-surface .contacts-table tr{display:grid;grid-template-columns:minmax(0,1fr) 62px;gap:4px 10px;position:static;padding:14px 16px;border-bottom:1px solid var(--line)}
 .crm-surface .contacts-table tr:last-child{border-bottom:0}
 .crm-surface .contacts-table td{padding:0;margin:0;border:0;width:auto;display:block;min-width:0}
 .crm-surface .contacts-table td:first-child{grid-column:1;grid-row:1}
 .crm-surface .contacts-table td:nth-child(2){grid-column:1;grid-row:2;font-size:11px;display:block}
 .crm-surface .contacts-table td:nth-child(3){grid-column:1/-1;grid-row:3;margin-top:4px}
 .crm-surface .contacts-table td:nth-child(3)::before{content:none}
 .crm-surface .contacts-table td:nth-child(4){grid-column:1/-1;grid-row:4;font-size:12px}
 .crm-surface .contacts-table td:nth-child(4)::before{content:'Dernière demande · ';color:var(--muted);font-size:11px}
 .crm-surface .contacts-table td:last-child{grid-column:2;grid-row:1/3;padding:0;text-align:right;align-self:start}
 .crm-surface .contacts-table td:last-child button{min-width:0;min-height:44px;width:auto;padding:8px}
 .crm-surface .contacts-table strong{font-size:14px}
 .crm-surface .contact-email{font-size:12px}
 .crm-surface .contacts-table time{font-size:12px}
 .crm-surface .contact-activity{gap:10px}
 .crm-surface .import-help summary{min-height:44px;padding:12px 0}
 .crm-surface .contact-workspace{grid-template-columns:1fr;gap:16px}
 .crm-surface .panel-pad,.crm-surface .contact-workspace .panel-pad{padding:20px}
 .crm-surface .topline{display:flex;align-items:start;gap:12px;margin-bottom:16px}
 .crm-surface .topline h2{overflow-wrap:anywhere}
 .crm-surface .contact-workspace .detail-head p{font-size:13px}
 .crm-surface .contact-history li{gap:10px;font-size:13px}
 .crm-surface .contact-history button{min-height:44px;white-space:nowrap;padding:8px}
 .crm-surface .edit-contact .primary{justify-self:stretch}
 .crm-surface .login{margin:32px auto;padding:24px}
}
@media(prefers-reduced-motion:reduce){.crm-surface *{scroll-behavior:auto;transition:none;animation:none}}
.crm-surface .app-header{height:56px;min-height:56px}
.crm-surface main{padding-top:16px}
.crm-surface .view-heading{margin-bottom:12px}
.crm-surface .contact-tools{margin-bottom:12px}
.crm-surface .contact-origin{margin-top:8px!important}
.crm-surface #contact-title{overflow-wrap:anywhere}
.crm-surface #contact-title:focus{outline:none}
.crm-surface .contact-activity-panel{padding:20px 0 0 4px;min-width:0}
.crm-surface .contact-activity-panel h2{font-size:18px;margin:0;display:flex;gap:12px;align-items:center}
.crm-surface .no-history{font-size:14px;margin:20px 0 32px}
@media(max-width:740px){.crm-surface .app-header{height:auto;min-height:100px}.crm-surface .contact-tools{margin-bottom:16px}.crm-surface .contact-activity-panel{padding:8px 0}.crm-surface .view-heading{margin-bottom:16px}}
/* Requests are a working inbox: list and conversation share one workspace. */
.crm-surface input,.crm-surface select,.crm-surface textarea{font-weight:400}
.crm-surface .section-title{font-size:15px;margin-bottom:18px}
.crm-surface .inquiry-heading{margin-bottom:4px}
.crm-surface .latest-received{font-size:12px;color:var(--muted);margin:0}
.crm-surface .latest-received time{margin-left:8px;color:#303e35;font-variant-numeric:tabular-nums}
.crm-surface .queue-summary{display:flex;gap:20px;font-size:13px;color:var(--muted);margin-bottom:18px}
.crm-surface .queue-summary strong{font-weight:600;color:var(--green);margin-right:3px}
.crm-surface .filters{grid-template-columns:minmax(220px,1fr) 210px 170px auto;gap:12px;margin-bottom:16px}
.crm-surface .filters button{min-height:38px}
.crm-surface .workspace{grid-template-columns:minmax(280px,370px) minmax(0,1fr);gap:0;align-items:stretch;border:1px solid var(--line);border-radius:7px;overflow:hidden;background:white;height:calc(100dvh - 296px);min-height:440px}
.crm-surface .workspace>.panel{border:0;border-radius:0;min-width:0}
.crm-surface .workspace>.panel:first-child{display:flex;flex-direction:column;border-right:1px solid var(--line);background:#fafbf9}
.crm-surface .list-header{padding:12px 16px;background:#f0f3ef;font-size:12px;gap:12px;flex-shrink:0}
.crm-surface #inquiry-list{overflow:auto;flex:1;min-height:0}
.crm-surface .inquiry{display:block;padding:16px;width:100%;font-weight:400;background:transparent;border-radius:0;border-bottom:1px solid var(--line);color:#26362c}
.crm-surface .inquiry.active{background:#eaf0e9;box-shadow:inset 3px 0 var(--green)}
.crm-surface .inquiry:hover{background:#f0f4ee;filter:none}
.crm-surface .inquiry:focus-visible{outline-offset:-4px}
.crm-surface .inquiry strong{font-size:14px;line-height:20px;min-width:0;overflow-wrap:anywhere}
.crm-surface .inquiry p{font-size:12px;margin:7px 0 9px;line-height:18px}
.crm-surface .inquiry .row:first-child{align-items:start;gap:8px}
.crm-surface .inquiry .meta{font-size:11px;align-items:start;gap:8px;line-height:17px}
.crm-surface .inquiry .meta time{white-space:nowrap;font-variant-numeric:tabular-nums}
.crm-surface .inquiry .meta span{text-align:right}
.crm-surface .pagination{padding:8px 12px;gap:14px;border-top:1px solid var(--line);flex-shrink:0;justify-content:space-between}
.crm-surface .pagination button{border:0;background:transparent;padding:6px;font-size:12px}
.crm-surface #detail{overflow:auto;padding:24px 28px}
.crm-surface #detail .detail-head{border:0;margin-bottom:18px;padding:0}
.crm-surface #detail .detail-head h2{margin:10px 0 0;font-size:23px;overflow-wrap:anywhere;line-height:1.25}
.crm-surface #inquiry-title:focus{outline:none}
.crm-surface #detail .text-button{font-size:12px;min-height:32px;margin:0;padding:4px 0;color:var(--green)}
.crm-surface .received-at{display:block;font-size:11px}
.crm-surface .detail-grid{gap:12px 24px;margin:0 0 24px;max-width:840px}
.crm-surface .detail-grid dt{font-size:11px;margin-bottom:3px}
.crm-surface .detail-grid dd{font-size:13px}
.crm-surface .message{font-size:15px;line-height:1.6;max-width:75ch;border:0;padding:0;margin-bottom:20px}
.crm-surface .status-form{justify-content:start;max-width:430px;flex-wrap:wrap}
.crm-surface .status-form label{flex:1}
.crm-surface .status-form button{min-height:38px}
.crm-surface .status-form .error{flex-basis:100%}
.crm-surface .notification{background:#f7f5ee;border-color:transparent;padding:14px;font-size:13px}
.crm-surface .notification p{margin:8px 0}
.crm-surface .notification details summary{font-size:12px;padding:8px 0;min-height:36px}
.crm-surface .notification .row{align-items:start;flex-wrap:wrap}
.crm-surface .note-form textarea{min-height:80px;font-weight:400}
.crm-surface .note-form button{margin-top:10px}
.crm-surface .mobile-back{display:none!important}
.crm-surface .workspace.is-empty{height:auto;min-height:220px;display:block}
.crm-surface .workspace.is-empty>.panel:first-child{border:0}
.crm-surface .workspace.is-empty #detail{display:none}
.crm-surface .filter-context{margin-bottom:12px;font-size:13px;gap:12px}
@media(min-width:1500px){.crm-surface .workspace{grid-template-columns:400px minmax(0,1fr)}}
@media(max-width:1000px){.crm-surface .filters{grid-template-columns:minmax(180px,1fr) 170px 150px auto}.crm-surface .workspace{grid-template-columns:320px minmax(0,1fr)}.crm-surface #detail{padding:22px}.crm-surface .detail-grid{grid-template-columns:1fr}}
@media(max-width:740px){
 .crm-surface .inquiry-heading{display:block;margin-bottom:8px;min-height:0}
 .crm-surface .latest-received{font-size:11px;margin-top:8px}
 .crm-surface .latest-received time{margin-left:4px}
 .crm-surface .latest-received>span{display:none}
 .crm-surface .queue-summary{margin-bottom:14px;font-size:12px}
 .crm-surface .filters{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin-bottom:16px}
 .crm-surface .filters label:first-child{grid-column:1/-1}
 .crm-surface .filters button{grid-column:1/-1;min-height:44px}
 .crm-surface .workspace{display:block;height:auto;min-height:0}
 .crm-surface .workspace>.panel:first-child{border:0}
 .crm-surface .workspace:not(.detail-open) #detail{display:none}
 .crm-surface .workspace.detail-open>.panel:first-child{display:none}
 .crm-surface .workspace.detail-open #detail{display:block}
 .crm-surface .mobile-back{display:inline-flex!important;min-height:44px!important;margin-bottom:12px!important}
 .crm-surface .inquiry .meta{font-size:11px}
 .crm-surface #detail{padding:20px}
 .crm-surface #detail .detail-head h2{font-size:22px}
 .crm-surface #detail .text-button{min-height:44px}
 .crm-surface .status-form{flex-direction:row;align-items:end;gap:8px}
 .crm-surface .status-form button{width:auto;min-height:44px}
 .crm-surface .detail-grid{grid-template-columns:1fr 1fr;gap:16px}
 .crm-surface .detail-grid dd{font-size:12px}
 .crm-surface .message{font-size:14px}
 .crm-surface .notification .row{display:block}
 .crm-surface .notification .badge{margin-top:6px}
}
/* Routing is scanned as a list; only the rule being edited expands. */
.crm-surface .routing-sender{margin:0;font-size:12px;color:var(--muted)}
.crm-surface .routing-sender strong{margin-left:10px;color:#303d35;font-weight:400}
.crm-surface .routing-intro{font-size:13px;color:var(--muted);margin:0 0 20px;max-width:75ch}
.crm-surface .transport-note{font-size:12px;color:#72511e;border-left:2px solid #ab874c;padding:4px 12px;margin-bottom:20px}
.crm-surface .routing-list{display:block;background:white;border:1px solid var(--line);border-radius:7px;overflow:hidden}
.crm-surface .routing-rule{border-bottom:1px solid var(--line)}
.crm-surface .routing-rule:last-child{border-bottom:0}
.crm-surface .routing-rule summary{list-style:none;padding:18px 20px;min-height:76px;font-weight:400}
.crm-surface .routing-rule summary::-webkit-details-marker{display:none}
.crm-surface .routing-rule summary:hover{background:#f5f8f3}
.crm-surface .routing-rule summary:focus-visible{outline-offset:-4px}
.crm-surface .routing-overview{display:grid;grid-template-columns:minmax(180px,1fr) minmax(210px,1fr) 205px 64px;gap:24px;align-items:center}
.crm-surface .routing-project strong{display:block;font-size:15px;font-weight:600}
.crm-surface .routing-project>span{display:block;font-size:12px;color:var(--muted);margin-top:3px}
.crm-surface .routing-recipient{font-size:13px;overflow-wrap:anywhere;color:var(--muted)}
.crm-surface .routing-overview>.badge{justify-self:start}
.crm-surface .routing-disclosure{font-size:13px;font-weight:600;color:var(--green);text-align:right}
.crm-surface .when-open{display:none}
.crm-surface .routing-rule[open] .when-open{display:inline}
.crm-surface .routing-rule[open] .when-closed{display:none}
.crm-surface .routing-rule[open] summary{background:#f0f4ed}
.crm-surface .routing-form{padding:24px;gap:16px;max-width:960px}
.crm-surface .routing-fields{grid-template-columns:minmax(200px,.8fr) minmax(260px,1.2fr)}
.crm-surface .routing-form .check{font-size:13px;line-height:22px;align-items:center}
.crm-surface input[type=checkbox]{width:18px;height:18px;min-height:18px;margin:0;accent-color:var(--green)}
.crm-surface .routing-form>.meta{margin:0}
.crm-surface .routing-form>.check{min-height:32px}
.crm-surface .routing-form>.confirmation{margin-top:0}
.crm-surface .routing-footnote{font-size:12px;margin-top:14px}
@media(max-width:1000px){.crm-surface .routing-overview{grid-template-columns:minmax(150px,1fr) minmax(180px,1fr) 180px 58px;gap:16px}}
@media(max-width:740px){
 .crm-surface .view-heading:has(.routing-sender){display:block}
 .crm-surface .routing-sender{margin-top:10px;font-size:12px}
 .crm-surface .routing-sender strong{margin-left:6px}
 .crm-surface .routing-intro{font-size:12px;line-height:1.6}
 .crm-surface .transport-note{font-size:11px;line-height:1.6}
 .crm-surface .routing-rule summary{padding:16px}
 .crm-surface .routing-overview{grid-template-columns:minmax(0,1fr) 62px;gap:8px 12px}
 .crm-surface .routing-project{grid-column:1;grid-row:1}
 .crm-surface .routing-recipient{grid-column:1/-1;grid-row:2;font-size:12px}
 .crm-surface .routing-overview>.badge{grid-column:1/-1;grid-row:3}
 .crm-surface .routing-disclosure{grid-column:2;grid-row:1;align-self:center}
 .crm-surface .routing-form{padding:18px 16px;max-width:none}
 .crm-surface .routing-fields{grid-template-columns:1fr}
 .crm-surface .routing-form>.check{min-height:44px}
 .crm-surface .routing-form input[type=checkbox]{width:20px;height:20px;min-height:20px}
}
@media(max-width:740px){
 .crm-surface #view:has(.workspace.detail-open)>.inquiry-heading,
 .crm-surface #view:has(.workspace.detail-open)>.queue-summary,
 .crm-surface #view:has(.workspace.detail-open)>.filters,
 .crm-surface #view:has(.workspace.detail-open)>.filter-context{display:none}
}
.crm-surface #app-nav:empty{display:none}
.crm-surface .app-header:has(#app-nav:empty){min-height:56px}

/* Super-loop: private workspace composition. */
.crm-surface{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;background:#fff;color:#26352e;-webkit-font-smoothing:antialiased;--muted:#5b6470;--line:#dfe3e8}
.crm-surface .app-header{position:fixed;inset:0 auto 0 0;width:196px;height:100dvh;min-height:0;background:#183a30;border:0;display:flex;flex-direction:column;align-items:stretch;padding:32px 18px 92px;gap:0;z-index:4}
.crm-surface .brand{color:#fff;font-size:21px;letter-spacing:1.2px;padding:0 12px;margin:0 0 48px;line-height:1.1}
.crm-surface .brand span{color:#c5d0c7;font-size:9px;letter-spacing:2.7px;margin-top:9px}
.crm-surface #app-nav{flex-direction:column;align-self:auto;gap:6px;margin:0}
.crm-surface #app-nav button{padding:12px 14px;justify-content:flex-start;border-radius:6px;min-height:44px;font-size:14px;font-weight:500;line-height:20px;color:#c2d1c7;background:transparent;box-shadow:none}
.crm-surface #app-nav button.active{background:#ffffff;color:#183a30;box-shadow:none;font-weight:600}
.crm-surface #app-nav button:hover{background:#284b3e;color:#fff}
.crm-surface #app-nav button.active:hover{background:#fff;color:#183a30}
.crm-surface .session-actions{margin: auto 0 0;display:flex;align-items:stretch;flex-direction:column;gap:4px;white-space:normal;font-size:12px}
.crm-surface .session-actions a,.crm-surface .session-actions button{color:#c2d1c7;justify-content:flex-start;text-align:left;font-size:12px;font-weight:400;padding:10px 14px;line-height:20px;min-height:40px}
.crm-surface .session-actions button:hover,.crm-surface .session-actions a:hover{background:#284b3e;color:white}
.crm-surface .environment{position:fixed;bottom:22px;left:24px;right:auto;width:148px;z-index:5;background:transparent;color:#b8ccc4;padding:0;line-height:17px;text-align:left;font-size:10px;border:0}
.crm-surface main{max-width:none;margin:0 0 0 196px;padding:32px 36px 36px;min-height:100dvh}
.crm-surface h1{font-size:28px;font-weight:600;letter-spacing:-.9px;color:#1f2933}
.crm-surface h2{font-weight:600;letter-spacing:-.4px}
.crm-surface .view-heading{margin-bottom:28px;min-height:40px;align-items:center}
.crm-surface .view-heading h1{gap:10px}
.crm-surface .view-count{font-size:13px;background:#eef1f5;border:1px solid #dbe0e7;min-width:26px;text-align:center;padding:2px 7px;border-radius:5px;color:#4c5664;font-weight:500;letter-spacing:0}
.crm-surface button,.crm-surface .button{font-family:inherit;font-weight:500;border-radius:6px}
.crm-surface .view-heading .actions{gap:8px}
.crm-surface .view-heading .actions .button,.crm-surface .view-heading .actions button{padding:7px 13px;font-size:12px;color:#4c584f;border:1px solid #d6dce4;background:#fff;min-height:34px}
.crm-surface .view-heading .actions .button:hover,.crm-surface .view-heading .actions button:hover{background:#eef1f5}
.crm-surface .contact-tools{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:0 0 20px;margin:0;grid-template-columns:none}
.crm-surface .search-control{display:flex;align-items:center;gap:10px;width:min(440px,48%);font-weight:400;color:#53606d;font-size:12px}
.crm-surface .search-control>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.crm-surface .search-control input{margin:0;height:38px;min-height:38px;padding:8px 12px;background:#f1f3f6;border-color:#dbe0e7;font-size:13px}
.crm-surface .contact-segments{display:flex;align-items:center;padding:3px;gap:2px;background:#eef1f5;border-radius:7px;flex-shrink:0}
.crm-surface .contact-segments button{font-size:12px;font-weight:500;min-height:30px;border:1px solid transparent;color:#505d69;background:transparent;padding:4px 12px;border-radius:5px}
.crm-surface .contact-segments button[aria-pressed=true]{background:#fff;border-color:#cbd3de;color:#223d2b;box-shadow:0 1px 2px #142e1510}
.crm-surface .contact-register{border:0;border-radius:0;background:#fff;overflow:visible}
.crm-surface .contacts-table{table-layout:fixed;font-size:13px}
.crm-surface .contacts-table th{background:#f1f3f6;color:#556170;font-size:11px;font-weight:500;padding:11px 12px;border-top:1px solid #dce2e9;border-bottom:1px solid #dce2e9;letter-spacing:.15px}
.crm-surface .contacts-table th:first-child{width:29%;border-radius:5px 0 0 5px}
.crm-surface .contacts-table th:nth-child(2){width:10%}
.crm-surface .contacts-table th:nth-child(3){width:17%}
.crm-surface .contacts-table th:nth-child(4){width:17%}
.crm-surface .contacts-table th:nth-child(5){width:19%}
.crm-surface .contacts-table th:last-child{width:8%;border-radius:0 5px 5px 0}
.crm-surface .contacts-table td{padding:13px 12px;border-bottom:1px solid #e3e7ec;line-height:20px}
.crm-surface .contacts-table tr:last-child td{border-bottom:1px solid #e3e7ec}
.crm-surface .contacts-table td:last-child{padding-right:8px}
.crm-surface .contact-identity{display:flex;align-items:center;gap:12px;min-width:0}
.crm-surface .contact-identity>span:last-child{min-width:0}
.crm-surface .contact-avatar{display:flex;align-items:center;justify-content:center;width:34px;height:34px;flex:0 0 34px;border-radius:50%;background:#e4eaf0;color:#435769;font-size:11px;font-weight:500;letter-spacing:.3px}
.crm-surface .contacts-table strong{font-size:13px;font-weight:550;letter-spacing:-.15px;color:#26343e}
.crm-surface .contact-email{font-size:12px;line-height:18px;margin-top:3px;color:#536171}
.crm-surface .contacts-table .contact-source{color:#536171;font-size:12px}
.crm-surface .contact-activity{align-items:start;flex-direction:column;gap:3px}
.crm-surface .demand-count{font-size:12px;color:#526171;font-weight:400}
.crm-surface .badge{font-size:11px;line-height:16px;border-radius:4px;padding:1px 6px;font-weight:500;background:#e8edf2;color:#465969}
.crm-surface .badge.status-nouveau{background:#dcf1e5;color:#17623c}
.crm-surface .badge.status-en-cours{background:#e3edff;color:#365b94}
.crm-surface .badge.pending{background:#fff0d2;color:#86520d}
.crm-surface .badge.done{background:#e9edf2;color:#506071}
.crm-surface .split-date{font-size:12px!important;color:#34495c;display:block;line-height:19px}
.crm-surface .split-date>span{display:block;color:#536171;font-size:11px;line-height:17px}
.crm-surface .column-note{font-size:10px;color:#536171}
.crm-surface .row-action{font-size:12px;min-width:54px;font-weight:500;color:#225947;padding:6px 8px}
.crm-surface .import-help{margin-top:10px;color:#536171}
.crm-surface .import-help summary{font-size:11px}
.crm-surface .inquiry-heading{margin-bottom:10px}
.crm-surface .latest-received{font-size:11px}
.crm-surface .queue-summary{margin-bottom:22px;font-size:12px;gap:18px}
.crm-surface .queue-summary strong{font-weight:600}
.crm-surface .filters{grid-template-columns:minmax(150px,1fr) 180px 150px auto}
.crm-surface .workspace{height:calc(100dvh - 240px);grid-template-columns:320px minmax(0,1fr);border-color:#dce2e9;border-radius:8px}
.crm-surface .workspace>.panel:first-child{background:#f4f6f8}
.crm-surface .list-header{font-size:11px;background:#e9edf2}
.crm-surface .inquiry{padding:16px 18px}
.crm-surface .inquiry.active{background:#e1f1eb;box-shadow:none}
.crm-surface .inquiry strong{font-size:13px;font-weight:550}
.crm-surface .inquiry .meta{font-size:10px}
.crm-surface .inquiry p{font-size:11px}
.crm-surface #detail{padding:26px 28px}
.crm-surface #detail .detail-head h2{font-weight:550;letter-spacing:-.7px;font-size:23px}
.crm-surface #detail .eyebrow{font-size:10px;letter-spacing:1px}
.crm-surface .message{font-size:15px;line-height:1.7;color:#34424c}
.crm-surface .notification{background:#f0f3f7}
.crm-surface .contact-workspace{grid-template-columns:340px minmax(0,1fr);gap:36px}
.crm-surface .contact-workspace>.panel{background:#f7f9fb;border:1px solid #dce3eb}
.crm-surface .topline{margin-top:10px;margin-bottom:26px}
.crm-surface .routing-list{border:1px solid #dce3eb;border-radius:8px}
.crm-surface .routing-overview{grid-template-columns:minmax(150px,1fr) minmax(150px,1fr) 180px 60px;gap:18px}
.crm-surface .routing-project strong{font-size:14px;font-weight:550}
.crm-surface .routing-rule summary{padding:20px}
.crm-surface .routing-intro{font-size:12px}
.crm-surface .routing-sender{font-size:11px}
.crm-surface .login{margin:14vh auto;background:#fff;border:1px solid #dce3eb}
@media(max-width:1100px) and (min-width:741px){
 .crm-surface .app-header{width:160px;padding:28px 12px 80px}
 .crm-surface main{margin-left:160px;padding:28px 24px}
 .crm-surface .environment{left:24px;width:116px}
 .crm-surface .brand{font-size:18px}
 .crm-surface .filters{grid-template-columns:1fr 1fr}
 .crm-surface .workspace{grid-template-columns:280px minmax(0,1fr)}
 .crm-surface .contacts-table th:first-child{width:28%}.crm-surface .contacts-table th:nth-child(2){width:10%}.crm-surface .contacts-table th:nth-child(3){width:17%}.crm-surface .contacts-table th:nth-child(4){width:17%}.crm-surface .contacts-table th:nth-child(5){width:19%}.crm-surface .contacts-table th:last-child{width:9%}
 .crm-surface .contact-avatar{display:none}
 .crm-surface .contact-segments button{padding:4px 8px}
 .crm-surface .contact-tools{gap:10px}
 .crm-surface .contact-workspace{grid-template-columns:1fr}
 .crm-surface .routing-overview{grid-template-columns:minmax(120px,1fr) 1fr 62px;gap:12px}.crm-surface .routing-overview>.badge{grid-column:2;grid-row:2}.crm-surface .routing-disclosure{grid-column:3;grid-row:1/3}
}
@media(max-width:740px){
 .crm-surface .app-header{position:static;width:auto;height:auto;min-height:0;display:grid;grid-template-columns:1fr auto;padding:16px 16px 0;gap:12px 0;background:#183a30}
 .crm-surface .brand{font-size:17px;letter-spacing:.8px;padding:0;margin:0;align-self:center}.crm-surface .brand span{display:none}
 .crm-surface #app-nav{grid-row:2;grid-column:1/-1;flex-direction:row;gap:4px;height:44px;justify-content:space-between}
 .crm-surface #app-nav button{flex:1;justify-content:center;padding:8px;min-height:44px;border-radius:6px 6px 0 0;font-size:13px}
 .crm-surface #app-nav button.active{background:#fff;color:#183a30}
 .crm-surface .session-actions{grid-row:1;grid-column:2;flex-direction:row;margin:0;gap:0;align-items:center}
 .crm-surface .session-actions a{padding:0 8px;font-size:11px;min-height:32px;display:flex;align-items:center}
 .crm-surface .session-actions button{padding:0 4px;min-height:32px;font-size:11px}
 .crm-surface .environment{position:static;background:#edf1f5;width:auto;padding:5px 16px;color:#526172;font-size:9px;line-height:15px;margin:0}
 .crm-surface main{margin:0;padding:24px 16px 28px;min-height:0}
 .crm-surface h1{font-size:26px;letter-spacing:-.8px}
 .crm-surface .view-heading{margin-bottom:20px;min-height:36px;gap:10px}
 .crm-surface .view-heading .actions .button,.crm-surface .view-heading .actions button{padding:8px;min-height:36px;font-size:11px}
 .crm-surface .view-heading .actions{gap:5px}
 .crm-surface .contact-tools{display:flex;flex-direction:column;align-items:stretch;gap:12px;padding-bottom:16px}
 .crm-surface .search-control{width:100%}
 .crm-surface .search-control input{min-height:44px;height:44px;font-size:14px;padding:10px 12px}
 .crm-surface .contact-segments{justify-content:stretch;gap:4px;padding:3px}
 .crm-surface .contact-segments button{min-height:38px;flex:1;font-size:12px;padding:6px}
 .crm-surface .contacts-table tr{padding:16px 0;column-gap:8px;border-bottom:1px solid #dfe5eb;grid-template-columns:minmax(0,1fr) 62px}
 .crm-surface .contacts-table td{padding:0;border:0}
 .crm-surface .contact-identity{gap:10px;align-items:start}
 .crm-surface .contact-avatar{width:30px;height:30px;flex-basis:30px;font-size:10px;margin-top:3px}
 .crm-surface .contacts-table strong{font-size:13px;line-height:20px}
 .crm-surface .contact-email{font-size:11px;margin-top:2px}
 .crm-surface .contacts-table td:nth-child(2){grid-column:1;grid-row:2;padding-left:40px;font-size:10px}
 .crm-surface .contacts-table td:nth-child(3){grid-column:1/-1;grid-row:3;padding-left:40px;display:flex;gap:8px;align-items:baseline}
 .crm-surface .contacts-table td:nth-child(3)::before{content:"Date d’ajout";font-size:10px;color:#536171}
 .crm-surface .contacts-table td:nth-child(4){grid-column:1;grid-row:4;padding-left:40px;margin-top:4px}
 .crm-surface .contacts-table td:nth-child(4)::before{content:none}
 .crm-surface .contacts-table td:nth-child(5){grid-column:1/-1;grid-row:5;padding-left:40px;display:flex;gap:8px;align-items:baseline}
 .crm-surface .contacts-table td:nth-child(5)::before{content:'Dernière demande';font-size:10px;color:#536171}
 .crm-surface .contacts-table td:last-child{grid-column:2;grid-row:1/3;padding:0}
 .crm-surface .contact-activity{flex-direction:row;align-items:center;gap:8px}
 .crm-surface .demand-count{font-size:11px}
 .crm-surface .split-date{display:inline;font-size:11px!important}.crm-surface .split-date>span{display:inline;font-size:10px;margin-left:6px}
 .crm-surface .contacts-table tr:last-child td{border:0}
 .crm-surface .contact-workspace{grid-template-columns:1fr;gap:16px}
 .crm-surface .workspace{height:auto;min-height:0;display:block}
 .crm-surface #detail{padding:20px}
 .crm-surface .inquiry-heading{margin-bottom:8px}
 .crm-surface .filters{grid-template-columns:1fr 1fr}
 .crm-surface .latest-received{font-size:10px}
 .crm-surface .routing-overview{grid-template-columns:1fr 62px}
 .crm-surface .routing-rule summary{padding:16px}
 .crm-surface .routing-sender{font-size:11px}
 .crm-surface .login{margin:24px auto}
}

@media(max-width:740px){.crm-surface .session-actions a,.crm-surface .session-actions button,.crm-surface .contact-segments button,.crm-surface .view-heading .actions .button,.crm-surface .view-heading .actions button,.crm-surface .row-action{min-height:44px}}

/* Neutral surfaces; semantic colors remain reserved for status. */
.crm-surface .inquiry.active{box-shadow:inset 3px 0 var(--green)}
.crm-surface .notification{border-color:#dce3eb}
.crm-surface .message{border-left-color:#386c59}
.crm-surface .contacts-table tbody tr:hover,.crm-surface .contacts-table tbody tr:focus-within{background:#f3f6f9}
.crm-surface .row-action:hover{background:#e4ecef}
.crm-surface :is(button,a,input,select,textarea):focus-visible{outline-color:#286e61}

/* AU12 identity, retaining the shared CRM structure. */
.crm-surface{--green:#087f83;--gold:#147e83;--line:#dbe6e5;background:#f4f8f7}.crm-surface .brand{color:#07686d}.crm-surface .brand span{color:#46767a}.crm-surface #app-nav button.active{background:#edf8f7}.crm-surface .contact-avatar{background:#e2f2f1;color:#07686d}.crm-surface .inquiry.active{background:#edf8f7}.crm-surface input:focus-visible{outline-color:#087f83}
.crm-surface .app-header{background:#123b3d}.crm-surface .brand{color:#8ae2df}.crm-surface .brand span{color:#b7d6d3}.crm-surface #app-nav button.active{color:#075d62}.crm-surface .session-actions a,.crm-surface .session-actions button{color:#d3e7e4}

.crm-surface .editorial-nav-link{color:#d3e7e4;font-size:13px;white-space:nowrap;text-decoration:none;min-height:44px;display:flex;align-items:center;padding:10px 14px;margin-top:16px;border-radius:6px}.crm-surface .editorial-nav-link:hover{background:#245358;color:#fff}.crm-surface .editorial-nav-link:focus-visible{outline-color:#8ae2df}@media(max-width:740px){.crm-surface .editorial-nav-link{grid-row:3;grid-column:1/-1;margin:0;padding:10px 0}}

#editorial-nav{display:contents}
/* Historical Shopify purchases share the private CRM's register and typography. */
.orders-table{min-width:800px;width:100%;border-collapse:collapse}.orders-table th,.orders-table td,.receipt table th,.receipt table td{padding:16px 20px;text-align:left;border-bottom:1px solid var(--line,#dce4e1);vertical-align:top}.orders-table th,.receipt table th{font-size:.78rem;letter-spacing:.04em;color:#54665f}.orders-table td:first-child{min-width:180px}.orders-table .badge{display:inline-block;margin-bottom:4px}.money{font-variant-numeric:tabular-nums;white-space:nowrap}.order-search{grid-template-columns:minmax(200px,1fr) auto;max-width:740px}.order-actions{display:flex;justify-content:space-between;gap:16px;margin-bottom:24px}.receipt{background:white;border:1px solid #dce4e1;border-radius:12px;padding:40px;max-width:1100px;margin:0 auto}.receipt-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:24px;border-bottom:2px solid #087f82;padding-bottom:22px}.receipt-heading h1{margin:8px 0}.receipt-parties{display:grid;grid-template-columns:1.5fr 1fr;gap:32px;padding:24px 0}.receipt h2{font-size:1rem}.receipt-parties p{line-height:1.6}.receipt table{width:100%;border-collapse:collapse;min-width:560px}.receipt table th:first-child,.receipt table td:first-child{padding-left:0}.receipt-totals{max-width:380px;margin:24px 0 24px auto}.receipt-totals>div{display:flex;justify-content:space-between;gap:24px;padding:8px 0}.receipt-totals dd{margin:0;font-variant-numeric:tabular-nums}.receipt-totals .grand-total{border-top:1px solid #baccc2;margin-top:8px;padding-top:14px;font-weight:700;font-size:1.1rem}.receipt-footnote{margin-top:28px;border-top:1px solid #dce4e1;padding-top:18px;font-size:.8rem;line-height:1.55;color:#52665b}.refund-list{background:#f2f7f4;border-radius:8px;padding:4px 18px;margin-top:16px}@media(max-width:740px){.receipt{padding:20px}.receipt-heading{display:block}.receipt-parties{grid-template-columns:1fr;gap:8px}.receipt-heading .badge{margin-top:12px}.order-actions{flex-wrap:wrap}.receipt-totals{max-width:none}.orders-table th,.orders-table td{padding:14px}.order-search{grid-template-columns:1fr auto}}@media print{body{background:white!important}.app-header,.environment,.order-actions,#notice,.skip,.receipt button{display:none!important}main,#main{margin:0!important;padding:0!important;max-width:none!important}.receipt{border:0;padding:0;max-width:none;font-size:10pt}.receipt-heading h1{font-size:22pt}.table-scroll{overflow:visible}.receipt table{min-width:0}.receipt table th,.receipt table td{padding:8px 4px}.receipt-parties{grid-template-columns:1.5fr 1fr}.receipt-heading{display:flex}.receipt-totals{max-width:340px}tr,.receipt-totals>div{break-inside:avoid}.receipt-footnote{font-size:8pt}}
