#module-automatismes .auto-rules{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#module-automatismes .auto-rules button{text-align:left;min-height:48px;white-space:normal}
#module-automatismes [aria-pressed=true]{border-color:#16964c;background:#eef8f0;color:#083f7a}
#module-automatismes .auto-content{white-space:pre-wrap;overflow-wrap:anywhere}
#module-automatismes dl{display:grid;grid-template-columns:1fr 1fr;gap:8px}
#module-automatismes dd{margin:0;font-weight:bold}
#module-automatismes .grid-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
#module-automatismes .module-head{background:linear-gradient(115deg,#083f7a,#16964c);color:white;border-radius:16px;padding:22px;gap:12px}
#module-automatismes .module-head h1{color:white}
@media(max-width:700px){#module-automatismes .auto-rules{grid-template-columns:1fr}#module-automatismes .grid-4{grid-template-columns:repeat(2,minmax(0,1fr))}#module-automatismes .module-head{display:block}#module-automatismes button{min-height:44px}}
/* V24 — cockpit Assistant VECC autonome */
.auto-pilot{border:1px solid #dce8f5;background:linear-gradient(135deg,#f8fbff,#f3fff6);border-radius:16px;padding:18px;margin-bottom:16px}.auto-pilot-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;flex-wrap:wrap}.pilot-message{display:flex;gap:12px;align-items:flex-start}.pilot-bot{font-size:32px;line-height:1}.pilot-message strong{font-size:19px;color:#063c84}.pilot-message p{margin:5px 0 0;line-height:1.5}.pilot-error{color:#a11}.pilot-grid{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(280px,.8fr);gap:16px;margin-top:16px}.pilot-card{background:#fff;border:1px solid #dce5ec;border-radius:12px;padding:14px;display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:10px;box-shadow:0 1px 2px rgba(0,0,0,.03)}.pilot-card strong{display:block;margin:4px 0}.pilot-card small{display:block;color:#5a6d7e}.pilot-card p{margin:8px 0 0;line-height:1.45}.pilot-tag{display:inline-block;padding:3px 8px;border-radius:999px;background:#edf4ff;color:#063c84;font-size:12px;font-weight:700}.pilot-actions{display:flex;gap:7px;flex-wrap:wrap;justify-content:flex-end}.pilot-done{display:flex;gap:9px;align-items:flex-start;padding:9px 0;border-bottom:1px solid #e8edf2}.pilot-done>span{color:#16833a;font-weight:800}.pilot-done small{display:block;color:#657789}.pilot-empty{padding:18px;border:1px dashed #b8c8d6;border-radius:12px;background:#fff}.pilot-section-title{margin:0 0 10px;color:#203346}@media(max-width:850px){.pilot-grid{grid-template-columns:1fr}.pilot-card{display:block}.pilot-actions{justify-content:flex-start;margin-top:12px}.auto-pilot{padding:14px}}
/* Centre des erreurs */
.pilot-error-link{appearance:none;border:0;background:transparent;padding:0;margin:0;color:#a11;font:inherit;font-weight:700;text-decoration:underline;text-underline-offset:2px;cursor:pointer}.auto-error-centre{border:1px solid #efcaca;background:#fffafa;border-radius:16px;padding:16px;margin:0 0 16px}.auto-error-head{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.auto-error-head h3{margin:6px 0 2px;color:#8b1f1f}.pilot-tag.error{background:#fff0f0;color:#9e2424}.auto-error-toolbar{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.auto-error-toolbar .active{border-color:#9e2424;background:#fff0f0;color:#8b1f1f}.auto-error-card{background:#fff;border:1px solid #efd7d7;border-radius:12px;padding:14px;margin-bottom:10px}.auto-error-card.is-acked{opacity:.72;background:#fbfbfb}.auto-error-title{display:flex;justify-content:space-between;gap:12px;align-items:flex-start}.auto-error-title strong{display:block;color:#5b1616}.auto-error-title small{display:block;color:#7a6a6a;margin-top:3px}.auto-error-state{display:inline-grid;place-items:center;width:28px;height:28px;border-radius:50%;background:#a11;color:#fff;font-weight:800;flex:0 0 auto}.auto-error-card.is-acked .auto-error-state{background:#16833a}.auto-error-card p{line-height:1.45}.auto-error-card pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#f7f7f7;border:1px solid #e5e5e5;border-radius:8px;padding:10px;max-height:220px;overflow:auto;font-size:12px}.auto-error-card .form-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}@media(max-width:700px){.auto-error-head{display:block}.auto-error-head>button{margin-top:10px;width:100%}.auto-error-toolbar{display:grid;grid-template-columns:1fr 1fr}.auto-error-toolbar [data-auto-retry-all]{grid-column:1/-1}.auto-error-card .form-actions{display:grid;grid-template-columns:1fr}.auto-error-card .form-actions button{width:100%}}
/* V54.9 — Autopilote compact sur mobile */
@media(max-width:780px){
.auto-pilot{padding:10px!important;margin:0 0 10px!important;border-radius:10px!important}
.auto-pilot-head{gap:7px!important}
.pilot-message{gap:7px!important}
.pilot-bot{font-size:22px!important}
.pilot-message strong{font-size:.86rem!important;line-height:1.2!important}
.pilot-message p{margin:3px 0 0!important;font-size:.68rem!important;line-height:1.35!important}
.pilot-grid{gap:8px!important;margin-top:8px!important}
.pilot-card{padding:9px!important;margin-bottom:6px!important;border-radius:8px!important}
.pilot-actions{margin-top:7px!important;gap:5px!important}
.pilot-actions .btn{min-height:36px!important;padding:6px 8px!important;font-size:.65rem!important}
.pilot-empty{padding:10px!important;border-radius:8px!important}
}
