/* Au fil des marches — thème indépendant sur Elastic. */
:root{--afdm-ink:#27342f;--afdm-wood:#76533c;--afdm-wood-dark:#573b2a;--afdm-cream:#f7f5f0;--afdm-line:#e5e5df;--afdm-muted:#728077}
body.afdm-brand{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--afdm-ink)}
html:not(.dark-mode) #layout{background:var(--afdm-cream)}
html:not(.dark-mode) #layout-menu{background:#283a33}
html:not(.dark-mode) #taskmenu a{color:#e2e8e2}
html:not(.dark-mode) #taskmenu a.selected,html:not(.dark-mode) #taskmenu a:hover{background:#3c5045;color:#fff}
html:not(.dark-mode) #layout-sidebar{background:#f7f6f1;border-right:1px solid var(--afdm-line)}
html:not(.dark-mode) .listing li.selected>div,html:not(.dark-mode) .listing li.selected>a,html:not(.dark-mode) .listing tr.selected td{background:#eae5dc;color:#332f28}
html:not(.dark-mode) .listing li.selected>div a,html:not(.dark-mode) .listing tr.selected a{color:#573b2a}
html:not(.dark-mode) #messagelist tbody tr td{border-bottom-color:#eeeee9}
#messagelist .subject{font-size:14px;line-height:1.55}#messagelist td{padding-top:9px;padding-bottom:9px}
html:not(.dark-mode) .btn-primary{background:var(--afdm-wood);border-color:var(--afdm-wood)}
html:not(.dark-mode) .btn-primary:hover{background:var(--afdm-wood-dark);border-color:var(--afdm-wood-dark)}
html:not(.dark-mode) .btn:focus,html:not(.dark-mode) .form-control:focus{box-shadow:0 0 0 .18rem #b9977033;border-color:#b99770}
html:not(.dark-mode) a,html:not(.dark-mode) .toolbar a{color:#65472f}
.afdm-conversation:before{content:"\f086"!important}.afdm-conversation:not(.disabled){color:var(--afdm-wood)!important}
#layout-menu #logo{max-width:45px;max-height:45px;margin:18px auto}
/* Connexion avec identité propre et formulaire Roundcube conservé. */
.afdm-login{background:#f7f5f0!important}.afdm-login #layout-content{position:relative;display:grid!important;grid-template-columns:minmax(300px,1fr) minmax(340px,440px);column-gap:90px;align-content:center;max-width:1180px!important;margin:0 auto!important;padding:80px 55px!important;min-height:100vh;overflow:auto;background:transparent!important}
.afdm-login #logo{position:absolute;left:55px;top:35px;max-width:200px;max-height:88px;width:auto;height:auto;margin:0!important}
.afdm-login #login-form{width:100%!important;max-width:none!important;padding:36px;background:#fff;border:1px solid #e6e1d6;border-radius:20px;box-shadow:0 20px 65px #59432a0d;margin:25px 0 0!important}
.afdm-login-intro{padding:35px 0;align-self:center;position:relative}
.afdm-kicker{letter-spacing:.15em;font-size:10px;font-weight:800;color:#876446;line-height:1.8}
.afdm-login-intro h1{font-size:clamp(36px,4vw,56px);line-height:1.13;white-space:pre-line;letter-spacing:-.045em;font-weight:650;color:#293d32;margin:22px 0}
.afdm-intro-text{color:#6d786f;font-size:17px;line-height:1.8;max-width:370px}.afdm-login-note{font-size:10px;letter-spacing:.12em;margin-top:60px;color:#8b7b65}
.afdm-welcome h2{font-size:24px;font-weight:650;line-height:1.3;margin-bottom:12px;color:#293d32}.afdm-welcome p{font-size:13px;line-height:1.7;color:#778079;margin-bottom:28px}
.afdm-login .form-control{border-radius:8px;min-height:48px;background:#fcfcf9;color:#27342f;border-color:#dfdfd5}.afdm-login .input-group-text{background:#f2f1ea;color:#82674f;border-color:#dfdfd5}
.afdm-login button[type=submit]{min-height:48px;font-weight:650;border-radius:8px;background:#76533c;border-color:#76533c;color:white}.afdm-login-security{font-size:11px;color:#7a8279;text-align:center;line-height:1.8;margin:23px 0 0}.afdm-login #login-footer{font-size:11px;color:#8c928a}
/* Lecture chronologique, expéditeurs sûrs en texte et corps rendu par Roundcube. */
.afdm-thread{border:0;border-radius:18px;padding:0;width:min(1100px,94vw);max-width:94vw;height:90vh;max-height:90vh;overflow:hidden;color:#27342f;background:#f5f5f0;box-shadow:0 30px 120px #12291d66}
.afdm-thread::backdrop{background:#13281f99;backdrop-filter:blur(3px)}
.afdm-thread-head{padding:23px 30px;border-bottom:1px solid #e1e4db;display:flex;gap:20px;justify-content:space-between;align-items:center;background:#fff;min-height:120px}
.afdm-thread-head h2{font-size:21px;line-height:1.35;margin:6px 0;overflow-wrap:anywhere}.afdm-thread-head .afdm-kicker{margin:0}.afdm-scope{font-size:12px;color:#6d786e;margin:8px 0 0}.afdm-close{background:#eff0e9;border:0;border-radius:8px;padding:11px 15px;white-space:nowrap;color:#293d32;font-weight:600}
.afdm-thread-body{padding:24px 30px;overflow:auto;height:calc(100% - 135px)}
.afdm-message{border:1px solid #dde2d9;border-radius:12px;margin-bottom:13px;overflow:hidden;background:#fff}
.afdm-message-head{list-style:none;display:flex;align-items:center;gap:13px;padding:17px;cursor:pointer}.afdm-message-head::-webkit-details-marker{display:none}
.afdm-avatar{background:#e9eee5;color:#3d5a43;width:38px;height:38px;display:grid;place-items:center;border-radius:12px;font-size:12px;font-weight:800;flex:none}
.afdm-sent .afdm-avatar{background:#eee3d7;color:#7c532f}.afdm-sent{border-left:3px solid #bda080}
.afdm-who{flex:1;min-width:0}.afdm-who strong{display:block;font-size:13px;overflow-wrap:anywhere}.afdm-who small{display:block;font-size:11px;color:#7e887c;margin-top:4px}.afdm-message-head time{font-size:11px;color:#7e887c;flex:none}
.afdm-message-content{border-top:1px solid #edf0e9}.afdm-message-actions{display:flex;gap:20px;justify-content:flex-end;align-items:center;padding:12px 18px}.afdm-message-actions a{font-size:12px;color:#76533c}.afdm-reply{padding:8px 16px;background:#f1e8dc;border-radius:7px;font-weight:650}
.afdm-mail-frame{display:block;width:100%;height:360px;min-height:300px;border:0;background:#fff}.afdm-limit{color:#75694d;background:#f5eedf;border-radius:8px;padding:12px;font-size:12px;line-height:1.6}
@media(min-width:1200px){#layout-sidebar{min-width:220px;width:230px!important}#layout-list{min-width:360px}}
@media(max-width:800px){.afdm-login #layout-content{display:block!important;padding:125px 22px 30px!important;max-width:500px!important}.afdm-login #logo{left:26px;top:28px;max-width:170px}.afdm-login-intro{padding:0}.afdm-login-intro h1{font-size:34px;margin:12px 0}.afdm-intro-text{font-size:14px;line-height:1.6}.afdm-login-note{display:none}.afdm-login #login-form{padding:25px;margin:22px 0 0!important}.afdm-thread-head{padding:16px;min-height:130px}.afdm-thread-head h2{font-size:17px}.afdm-thread-body{padding:12px;height:calc(100% - 150px)}.afdm-message-head{gap:8px;padding:12px}.afdm-message-head time{font-size:10px;max-width:74px;white-space:normal}.afdm-close{padding:9px;font-size:12px}.afdm-avatar{width:30px;height:30px;font-size:10px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

.afdm-login #login-form{top:auto!important;transform:none!important;align-self:center;position:relative;text-align:left}.afdm-login-intro{text-align:left}.afdm-login #layout-content{align-items:center}.afdm-login .afdm-welcome{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}

/* Organisation : suivi privé, rappels visuels et réponses prédéfinies. */
.afdm-dashboard:before{content:"\f0ae"!important}
.afdm-thread[open]{display:flex;flex-direction:column}.afdm-thread-head{flex:none;min-height:0}.afdm-thread-body{height:auto!important;flex:1;min-height:0}
.afdm-followup{border:1px solid #d5dfd0;border-radius:12px;padding:16px 18px;margin-bottom:20px;background:#fafcf7}
.afdm-followup-top,.afdm-followup-fields,.afdm-followup-footer,.afdm-card-head,.afdm-card-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.afdm-followup-top{justify-content:space-between;font-size:13px}.afdm-followup-details>summary{cursor:pointer;padding:12px 0 3px;font-size:12px;color:#5b684f}.afdm-followup-form{padding-top:14px}.afdm-followup-fields{align-items:flex-end}
.afdm-field{display:flex;flex-direction:column;gap:7px;flex:1;margin-bottom:12px;font-size:12px;font-weight:600;min-width:150px}
.afdm-input,.afdm-select,.afdm-note{border:1px solid #ccd4c8;border-radius:7px;background:#fff;color:#293d32;font:inherit;padding:9px 11px;min-width:0;max-width:100%;line-height:1.45}
.afdm-note{width:100%;resize:vertical;font-weight:400}.afdm-hint{font-size:11px;line-height:1.65;color:#65705d;margin-bottom:12px}.afdm-feedback{font-size:12px;color:#546644}
.afdm-btn{padding:9px 13px;border:1px solid #d3d9cd;background:#fff;color:#354b37;border-radius:7px;font-size:12px;font-weight:600;cursor:pointer}
.afdm-btn:hover{background:#edf1e7}.afdm-btn:disabled{opacity:.55;cursor:default}.afdm-primary{background:#536b45;color:#fff;border-color:#536b45}.afdm-primary:hover{background:#415a35}.afdm-subtle{border:0;background:transparent;color:#79736a}
.afdm-status{border-radius:20px;padding:5px 10px;font-size:11px;font-weight:650;background:#e7e9e4;color:#59604f;white-space:nowrap}
.afdm-status-todo{background:#f9e8cd;color:#805e17}.afdm-status-waiting{background:#e1edf4;color:#365d78}.afdm-status-done{background:#e1ecd9;color:#3b642f}
.afdm-board-controls{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:16px}.afdm-board-controls input{flex:1;min-width:220px}.afdm-board-stats{font-size:12px;color:#627059;margin-bottom:16px}
.afdm-followup-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.afdm-followup-card{border:1px solid #dbe1d4;border-radius:12px;padding:18px;background:#fff;min-width:0}
.afdm-card-head{justify-content:space-between;margin-bottom:12px}.afdm-followup-card h3{font-size:15px;line-height:1.45;margin:0 0 7px;overflow-wrap:anywhere}
.afdm-sender{font-size:11px;color:#72806c;overflow-wrap:anywhere}.afdm-note-preview{font-size:12px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f7f1;padding:11px;border-radius:7px}
.afdm-date,.afdm-overdue{font-size:11px}.afdm-overdue{color:#a55720;font-weight:bold}.afdm-empty{grid-column:1/-1;padding:28px;text-align:center;color:#718066;font-size:14px;line-height:1.8}
.afdm-error{color:#9d3d2f}.afdm-template-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:12px 14px;background:#f3f5ec;border:1px solid #dfe5d5;border-radius:9px;margin-bottom:14px}
.afdm-template-bar select{flex:1;min-width:180px}.afdm-template-bar small{width:100%;font-size:11px;color:#67745f}.afdm-template-bar a{font-size:12px}
.afdm-thread :focus-visible,.afdm-template-bar :focus-visible{outline:2px solid #8d693f;outline-offset:3px}
html.dark-mode .afdm-thread,html.dark-mode .afdm-thread-head{background:#23312b;color:#e4eadf}
html.dark-mode .afdm-followup,html.dark-mode .afdm-followup-card,html.dark-mode .afdm-message,html.dark-mode .afdm-template-bar{background:#2b3a30;color:#e4eadf;border-color:#465540}
html.dark-mode .afdm-input,html.dark-mode .afdm-note,html.dark-mode .afdm-select{background:#1f2b23;color:#e8eddf;border-color:#65715a}
html.dark-mode .afdm-note-preview{background:#223027}html.dark-mode .afdm-hint,html.dark-mode .afdm-sender,html.dark-mode .afdm-scope,html.dark-mode .afdm-followup-details>summary,html.dark-mode .afdm-board-stats,html.dark-mode .afdm-template-bar small{color:#b8c3ad}
@media(max-width:700px){.afdm-followup-list{grid-template-columns:1fr}.afdm-board-controls>*{width:100%}.afdm-followup{padding:13px}.afdm-followup-top{align-items:flex-start}.afdm-followup-fields{display:block}.afdm-template-bar select{width:100%}.afdm-thread{width:96vw;max-width:96vw}}

/* Tableau de bord : priorités, progression et relances. */
.afdm-board{width:min(1420px,96vw);max-width:96vw;height:94vh;max-height:94vh}
.afdm-board>.afdm-thread-head{padding:17px 28px}.afdm-board>.afdm-thread-head .afdm-scope{display:none}
.afdm-dashboard-body{padding:24px 28px;background:#f5f6f2}
.afdm-board-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;background:#294536;color:#f6f6e9;border-radius:16px;padding:26px 30px;margin-bottom:20px;position:relative;overflow:hidden}
.afdm-board-hero:after{content:"";position:absolute;border:1px solid #e2d6b925;border-radius:50%;width:250px;height:250px;right:18%;top:-170px;pointer-events:none}
.afdm-board-hero .afdm-kicker{color:#dac5a0;margin:0 0 10px}.afdm-board-hero h2{font-size:28px;font-weight:650;letter-spacing:-.04em;margin:0 0 8px}.afdm-board-hero p{color:#c3d1bc;font-size:13px;margin:0;line-height:1.6}
.afdm-hero-compose{display:block;background:#e7d4b1;color:#2d422d!important;padding:12px 18px;border-radius:9px;font-size:13px;font-weight:650;white-space:nowrap;text-decoration:none}
.afdm-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin-bottom:25px}
.afdm-metric{background:#fff;border:1px solid #e0e5d9;border-radius:12px;padding:17px 19px;text-align:left;display:grid;grid-template-columns:1fr 34px;gap:5px;cursor:pointer;color:#2d4230;box-shadow:0 3px 10px #2b422a03}
.afdm-metric:hover,.afdm-metric[aria-pressed=true]{border-color:#6b8456;box-shadow:0 0 0 2px #6b84551a}
.afdm-metric-label{grid-column:1;grid-row:1;font-size:12px;font-weight:650}.afdm-metric-value{font-size:32px;line-height:1.3;font-weight:650;grid-column:1}.afdm-metric small{grid-column:1/-1;font-size:11px;color:#7c8774}
.afdm-metric-icon{grid-column:2;grid-row:1/3;align-self:start;border-radius:9px;width:34px;height:34px;display:grid;place-items:center;background:#f6e8cc;color:#8a6624;font-size:21px}
.afdm-metric-waiting .afdm-metric-icon{background:#e6edf8;color:#536c90}.afdm-metric-due .afdm-metric-icon{background:#f7e4dd;color:#a65938}.afdm-metric-done .afdm-metric-icon{background:#e3eddc;color:#527641}
.afdm-board-layout{display:grid;grid-template-columns:minmax(0,1fr) 270px;gap:24px;align-items:start}
.afdm-board-main{min-width:0}.afdm-board-section-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.afdm-board-section-head h3,.afdm-board-aside h3{font-size:16px;font-weight:650;letter-spacing:-.02em;margin:0 0 7px}
.afdm-board-section-head p{font-size:11px;color:#7a8673;margin:0}.afdm-board-controls input{min-width:160px}.afdm-board-controls select{max-width:230px}
.afdm-board .afdm-followup-list{grid-template-columns:repeat(2,minmax(0,1fr))}
.afdm-board .afdm-followup-card{border-top:3px solid #e4d2a7;padding:17px}
.afdm-board .afdm-card-waiting{border-top-color:#acc3dc}.afdm-board .afdm-card-done{border-top-color:#a7bd98}.afdm-board .afdm-card-none{border-top-color:#cbd2c5}
.afdm-card-actions{margin-top:17px;gap:6px}.afdm-board .afdm-card-actions .afdm-btn{font-size:11px}
.afdm-progress-panel,.afdm-reminders-panel{background:#fff;border:1px solid #e0e5d9;border-radius:12px;padding:19px;margin-bottom:15px}
.afdm-progress-ring{width:130px;height:130px;margin:20px auto;border-radius:50%;background:conic-gradient(#668452 var(--afdm-progress),#edf0e8 0);padding:11px;display:grid}
.afdm-progress-ring>div{background:#fff;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center}
.afdm-progress-ring strong{font-size:26px;line-height:1.4;font-weight:650}.afdm-progress-ring span{font-size:11px;color:#829077}
.afdm-progress-legend{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font-size:12px}
.afdm-reminder-item{display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;border:0;border-bottom:1px solid #e8ecdf;border-radius:0;background:transparent;text-align:left;padding:13px 0}
.afdm-reminder-item:last-child{border:0;padding-bottom:0}.afdm-reminder-item strong{font-size:12px;font-weight:550;line-height:1.5;overflow-wrap:anywhere}
.afdm-board-help{padding:16px 19px;background:#eeeadd;border-radius:12px;font-size:12px;color:#79684d}.afdm-board-help p{font-size:11px;line-height:1.7;margin:8px 0 0}
.afdm-empty{border:1px dashed #cbd5c0;border-radius:12px;margin:0;background:#fafbf7}.afdm-empty-icon{font-size:30px;color:#839472}.afdm-empty h4{font-size:16px;margin:10px 0}
.afdm-empty p{font-size:12px;max-width:420px;margin:0 auto 12px}
.afdm-thread-head-actions{display:flex;align-items:center;gap:10px}.afdm-conversation-tools{display:flex;gap:9px;align-items:center;flex-wrap:wrap;margin-bottom:15px;position:sticky;top:-24px;background:#f5f5f0;padding:10px 0;z-index:2}
.afdm-order{font-size:11px;color:#78816f;margin-right:auto}.afdm-messages{margin-top:16px}.afdm-followup-host:empty{display:none}
.afdm-inline-reply{background:#fff;border:1px solid #9fae90;border-radius:12px;overflow:hidden;margin-bottom:18px;box-shadow:0 7px 24px #314c2210}
.afdm-inline-reply[hidden]{display:none}.afdm-inline-reply-head{display:flex;align-items:center;justify-content:space-between;padding:9px 15px;background:#eaf0e1;color:#3e5936;font-size:13px}
.afdm-compose-frame{display:block;width:100%;height:clamp(460px,calc(90vh - 280px),720px);border:0;background:#fff}
.afdm-inline-compose #layout-menu{display:none!important}.afdm-inline-compose #layout{padding:0!important}
.afdm-inline-compose #layout-content{margin:0!important}.afdm-inline-compose #messagetoolbar{overflow:visible}.afdm-inline-compose #layout-sidebar{max-width:230px}
.afdm-inline-compose #layout-content>.header>a.button.icon.cancel,.afdm-inline-compose #layout-content>.header>a.button.icon.task-menu-button{display:none}
html.dark-mode .afdm-dashboard-body,html.dark-mode .afdm-conversation-tools{background:#23312b}
html.dark-mode .afdm-metric,html.dark-mode .afdm-progress-panel,html.dark-mode .afdm-reminders-panel,html.dark-mode .afdm-progress-ring>div,html.dark-mode .afdm-empty{background:#2b3a30;color:#e4eadf;border-color:#465540}
html.dark-mode .afdm-board-help{background:#403e2e;color:#ded3b7}html.dark-mode .afdm-metric small,html.dark-mode .afdm-board-section-head p,html.dark-mode .afdm-order{color:#b8c3ad}
@media(max-width:1100px){.afdm-board-layout{grid-template-columns:minmax(0,1fr) 230px;gap:16px}.afdm-board .afdm-followup-list{grid-template-columns:1fr}}
@media(max-width:800px){.afdm-dashboard-body{padding:16px}.afdm-board-hero{padding:21px;gap:18px;align-items:flex-start}.afdm-board-hero h2{font-size:23px}.afdm-board-layout{display:block}.afdm-board-aside{display:grid;grid-template-columns:1fr 1fr;gap:15px;margin-top:20px}.afdm-board-help{grid-column:1/-1}.afdm-metrics{gap:9px}.afdm-metric{padding:14px}.afdm-metric small{line-height:1.5}}
@media(max-width:540px){.afdm-board>.afdm-thread-head{padding:14px}.afdm-board-hero{display:block}.afdm-hero-compose{display:inline-block;margin-top:16px}.afdm-metrics{grid-template-columns:1fr 1fr}.afdm-board-section-head{align-items:flex-start}.afdm-board-section-head p{line-height:1.6}.afdm-board-section-head>.afdm-btn{max-width:110px}.afdm-board-aside{display:block}.afdm-board-help{margin-top:15px}.afdm-board-controls select{max-width:none}.afdm-conversation-tools{top:-12px;gap:6px}.afdm-order{width:100%}.afdm-conversation-tools>.afdm-btn{font-size:11px;padding:8px 10px}.afdm-compose-frame{height:760px}.afdm-inline-reply-head{padding:9px;gap:8px}.afdm-inline-compose #layout-sidebar{max-width:none}.afdm-inline-compose .afdm-template-bar{padding:8px}.afdm-inline-compose .afdm-template-bar small{display:none}}

/* Citations : un historique consultable, sans bordures et couleurs imbriquées. */
.afdm-readable-mail .afdm-quote-history{margin:18px 0;border:1px solid #dce4d8;border-radius:12px;background:#fafbf8;clear:both;color:#425147;white-space:normal;font:14px/1.6 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.afdm-quote-summary{display:flex;align-items:center;gap:12px;padding:12px 16px;cursor:pointer;list-style:none;color:#40543f;background:#f2f5ef;border-radius:12px;font:13px/1.5 system-ui,sans-serif}
.afdm-quote-summary::-webkit-details-marker{display:none}.afdm-quote-summary:focus-visible{outline:2px solid #526c43;outline-offset:2px}
.afdm-quote-icon{display:inline-flex;align-items:center;justify-content:center;width:30px;height:25px;border:1px solid #d7dfd1;border-radius:7px;background:white;font-size:22px;line-height:1;font-weight:700;letter-spacing:1px}
.afdm-quote-state{margin-left:auto;font-size:12px;color:#596e54}.afdm-quote-history[open]>.afdm-quote-summary{border-bottom:1px solid #dce4d8;border-radius:12px 12px 0 0}
.afdm-quote-content{padding:14px 18px;overflow-wrap:anywhere;min-width:0}
.afdm-readable-mail .afdm-quote-content blockquote{display:block!important;min-width:0!important;width:auto!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;color:inherit!important;overflow:visible!important;white-space:normal!important;text-overflow:clip!important}
.afdm-readable-mail .afdm-quote-content blockquote blockquote{margin:16px 0!important;padding:14px 0 0!important;border-top:1px solid #e2e7dd!important}
.afdm-readable-mail .afdm-quote-content blockquote *:not(a){color:inherit!important}
.afdm-readable-mail .message-part div.pre{font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:14px;line-height:1.65}
.afdm-readable-mail .message-part .afdm-quote-content blockquote{white-space:pre-wrap!important}
.afdm-compose-history-bar{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;margin:8px 0 12px;background:#f5f7f1;border:1px solid #dce4d8;border-radius:10px;color:#30472f}
.afdm-compose-history-bar[hidden]{display:none}.afdm-compose-history-bar strong,.afdm-compose-history-bar small{display:block}.afdm-compose-history-bar small{margin-top:3px;font-size:12px;color:#65735c;line-height:1.45}
.afdm-history-toggle{flex-shrink:0;border:1px solid #cdd8c3;border-radius:7px;padding:8px 12px;background:#fff;color:#40543f;font-size:12px;font-weight:600;cursor:pointer}.afdm-history-toggle:hover{background:#eaf0e3}.afdm-history-toggle:focus-visible{outline:2px solid #526c43;outline-offset:2px}
@media(max-width:540px){.afdm-compose-history-bar{align-items:flex-start;flex-direction:column;gap:8px;padding:10px}.afdm-history-toggle{width:100%}.afdm-quote-summary{padding:10px;gap:8px}.afdm-quote-content{padding:12px}}
html.dark-mode .afdm-quote-history,html.dark-mode .afdm-compose-history-bar{background:#26352d;border-color:#45564a;color:#e5ede1}html.dark-mode .afdm-quote-summary{background:#304236;color:#e5ede1}html.dark-mode .afdm-quote-state,html.dark-mode .afdm-compose-history-bar small{color:#c0cdb8}html.dark-mode .afdm-quote-icon,html.dark-mode .afdm-history-toggle{background:#344738;border-color:#586e50;color:#e5ede1}

/* Marque officielle et anciens chevrons masqués sans perte du texte original. */
.afdm-readable-mail .afdm-quote-prefix{display:none!important}
#layout-menu #logo{border-radius:9px;object-fit:contain;background:#fff}
.afdm-login #logo{max-width:260px;max-height:110px;padding:10px 15px;background:#fff;border-radius:12px;box-sizing:content-box;object-fit:contain}
@media(max-width:800px){.afdm-login #logo{max-width:190px;max-height:84px;padding:7px 12px;top:16px}.afdm-login #layout-content{padding-top:137px!important}}

/* Grille stable : les hauteurs d’images différentes ne décalent plus les rangées. */
.afdm-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;clear:both;margin:18px 0}
.afdm-image-grid>p.image-attachment{float:none!important;min-width:0!important;width:auto!important;margin:0!important;min-height:315px;box-sizing:border-box;align-self:stretch}
.afdm-image-grid>p.image-attachment .image-link{max-width:100%;margin:42px 12px 35px}.afdm-image-grid>p.image-attachment img{max-width:100%!important;max-height:230px!important;width:auto;height:auto;object-fit:contain}
.afdm-image-grid>p.image-attachment span.image-filename{white-space:normal;overflow-wrap:anywhere}
#taskmenu .afdm-nav-board .inner{white-space:normal!important;overflow:visible!important;text-overflow:clip!important;line-height:1.3;max-width:88px;margin:0 auto;font-size:11px}
@media(max-width:600px){.afdm-image-grid{grid-template-columns:1fr}.afdm-image-grid>p.image-attachment{min-height:280px}}

@media(min-width:1025px){#taskmenu a.afdm-nav-board{height:auto!important;min-height:72px;padding-bottom:10px!important;overflow:visible}#taskmenu a.afdm-nav-board .inner{display:block!important;height:auto!important;max-height:none!important;width:66px;line-height:14px!important}}

/* Accueil autonome du webmail : une page, distincte du tableau Artiflow. */
.afdm-native-home .scroller{padding:0;background:#f5f6f1}.afdm-native-home #afdm-home-page{padding:28px;max-width:1500px;margin:auto}.afdm-native-home .afdm-dashboard-body{padding:0;overflow:visible}.afdm-home-loading{padding:40px}.afdm-mailbox-overview{background:#fff;border:1px solid var(--afdm-line);border-radius:15px;padding:24px;margin:22px 0}.afdm-mailbox-overview h3{font-size:18px;margin:0}.afdm-inbox-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0 0 24px}.afdm-inbox-metrics>div{padding:18px;border-radius:12px;background:#f0f4e8;display:flex;align-items:center;justify-content:space-between;gap:10px}.afdm-inbox-metrics span{font-size:12px;color:#5c7052}.afdm-inbox-metrics strong{font-size:28px;color:#344d36}.afdm-unread-row{display:flex;align-items:center;gap:16px;padding:17px 0;border-top:1px solid #ecefe5;color:#304735;text-decoration:none}.afdm-unread-row>div{display:flex;flex:1;min-width:0;flex-direction:column;gap:5px}.afdm-unread-row strong{font-size:14px;overflow-wrap:anywhere}.afdm-unread-row span:not(.afdm-unread-dot){color:#7d8d73;font-size:12px;overflow-wrap:anywhere}.afdm-unread-dot{font-size:9px;color:#8aa361}.afdm-unread-row time{font-size:11px;color:#819276;white-space:nowrap}html.dark-mode .afdm-native-home .scroller{background:#1f2e26}html.dark-mode .afdm-mailbox-overview{background:#2b3d31;border-color:#435440}html.dark-mode .afdm-unread-row{color:#dce7d4}html.dark-mode .afdm-inbox-metrics>div{background:#344838}html.dark-mode .afdm-inbox-metrics strong,html.dark-mode .afdm-inbox-metrics span{color:#dbe7cf}
@media(max-width:700px){.afdm-native-home #afdm-home-page{padding:14px}.afdm-inbox-metrics{gap:8px}.afdm-inbox-metrics>div{padding:12px;flex-direction:column;align-items:flex-start}.afdm-inbox-metrics span{font-size:10px}.afdm-mailbox-overview{padding:16px}.afdm-unread-row{gap:9px}.afdm-unread-row time{font-size:10px}}
