.ra-overlay { position:fixed; inset:0; z-index:1100; display:flex; align-items:center; justify-content:center; padding:20px; background:rgba(15,35,27,.42); }
.ra-overlay[hidden], .ra-dialog [hidden] { display:none !important; }
.ra-dialog { width:min(680px,100%); max-height:calc(100dvh - 40px); display:flex; flex-direction:column; overflow:hidden; border:1px solid #dbe6df; border-radius:16px; background:#fff; box-shadow:0 20px 70px rgba(15,35,27,.18); color:#21372c; }
.ra-header, .ra-footer { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:20px 24px; }
.ra-header { border-bottom:1px solid #edf1ee; }
.ra-header h3 { margin:0; font-size:19px; }
.ra-header p { margin:5px 0 0; font-size:13px; color:#66776d; }
.ra-close { border:0; padding:4px 8px; background:transparent; color:#66776d; cursor:pointer; font-size:24px; }
.ra-body { overflow-y:auto; padding:22px 24px; overscroll-behavior:contain; }
.ra-footer { border-top:1px solid #edf1ee; background:#fafcfb; justify-content:flex-end; flex-shrink:0; }
.ra-note { margin:0 0 20px; padding:13px 15px; border-left:3px solid #397759; border-radius:6px; background:#f0f6f2; color:#395b48; font-size:13px; line-height:1.55; }
.ra-check { display:flex; align-items:flex-start; gap:10px; font-size:14px; line-height:1.5; cursor:pointer; }
.ra-check input { flex-shrink:0; width:17px; height:17px; margin-top:2px; accent-color:#26744e; }
.ra-check strong { display:block; }
.ra-help { display:block; color:#69796f; font-size:12px; line-height:1.55; margin-top:5px; }
.ra-block { border:1px solid #e0e8e2; border-radius:10px; padding:16px; margin:16px 0; }
.ra-block h4 { font-size:14px; margin:0 0 12px; }
.ra-delais { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
.ra-dialog label:not(.ra-check) { display:block; color:#495d50; font-size:12px; font-weight:600; margin-bottom:6px; }
.ra-dialog input:not([type=checkbox]), .ra-dialog textarea { box-sizing:border-box; width:100%; border:1px solid #cfdbd2; border-radius:7px; padding:10px 11px; background:#fff; color:#21372c; font:inherit; font-size:14px; }
.ra-dialog textarea { min-height:104px; resize:vertical; line-height:1.5; }
.ra-dialog input:focus, .ra-dialog textarea:focus, .ra-dialog button:focus-visible, .ra-dialog summary:focus-visible { outline:2px solid #40865b; outline-offset:2px; }
.ra-field { margin:15px 0; }
.ra-dialog details summary { font-size:14px; cursor:pointer; color:#2d6141; padding:8px 0; }
.ra-state { margin:0 0 14px; padding:10px 12px; border-radius:7px; background:#f5f7f5; font-size:13px; line-height:1.5; }
.ra-error { padding:12px; margin:0 0 15px; border-radius:7px; background:#fff1f0; color:#93372d; font-size:13px; line-height:1.5; }
.ra-history { padding:0; margin:0; list-style:none; }
.ra-history li { padding:10px 0; border-top:1px solid #edf1ee; font-size:13px; overflow-wrap:anywhere; }
.ra-history li:first-child { border-top:0; }
.ra-history strong { display:block; margin-bottom:4px; }
.ra-history span { display:block; color:#69796f; line-height:1.5; }
.ra-global-link { border:0; background:none; padding:4px 0; text-decoration:underline; color:#2d6141; cursor:pointer; font:inherit; font-size:13px; }
@media(max-width:520px) { .ra-overlay { padding:10px; } .ra-dialog { max-height:calc(100dvh - 20px); border-radius:12px; } .ra-header,.ra-body,.ra-footer { padding:16px; } .ra-header h3 { font-size:17px; } .ra-delais { gap:8px; } .ra-block { padding:12px; } .ra-dialog label:not(.ra-check) { font-size:11px; } }
