/* Aide à la rédaction */
.ar-wrap { margin: 6px 0 10px; font: 14px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #1b1b1b; text-align: left; }
.ar-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.ar-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 34px; padding: 4px 12px; border: 1px solid #b9b2a6; border-radius: 99px; background: #fff; color: #1b1b1b; font: inherit; font-size: 13px; font-weight: 600; line-height: 1; cursor: pointer; }
.ar-btn:hover { border-color: #1b1b1b; }
.ar-btn:focus-visible, .ar-fix:focus-visible, .ar-ignore:focus-visible, .ar-ctx:focus-visible, .ar-close:focus-visible { outline: 3px solid #e9b44c; outline-offset: 2px; }
.ar-btn:disabled { opacity: .55; cursor: progress; }
.ar-mic.is-on { background: #c8102e; border-color: #c8102e; color: #fff; animation: ar-pulse 1.4s ease-in-out infinite; }
@keyframes ar-pulse { 50% { box-shadow: 0 0 0 5px rgba(200, 16, 46, .18); } }
@media (prefers-reduced-motion: reduce) { .ar-mic.is-on { animation: none; } }
.ar-status { font-size: 13px; color: #5d574e; min-width: 0; overflow-wrap: anywhere; }

.ar-panel { margin-top: 8px; border: 1px solid #ddd5c7; border-radius: 8px; background: #fffdf8; max-height: 420px; overflow: auto; }
.ar-panel[hidden] { display: none; }
.ar-panel-head { position: sticky; top: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 8px 40px 8px 12px; background: #f4efe6; border-bottom: 1px solid #ddd5c7; }
.ar-panel-head small { color: #6b665e; font-size: 12px; }
.ar-close { position: absolute; top: 4px; right: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; color: inherit; font-size: 22px; line-height: 1; cursor: pointer; }
.ar-list { list-style: none; margin: 0; padding: 0; }
.ar-item { padding: 10px 12px; border-bottom: 1px solid #ece5d8; }
.ar-item:last-child { border-bottom: 0; }
.ar-ctx { display: block; width: 100%; padding: 0; border: 0; background: none; color: #444; font: inherit; font-family: Georgia, "Times New Roman", serif; font-size: 15px; text-align: left; cursor: pointer; }
.ar-mark { padding: 0 2px; border-radius: 2px; color: inherit; }
.ar-mark.ar-gram { background: #dbeafe; box-shadow: inset 0 -2px #2563eb; }
.ar-mark.ar-spell { background: #fde2e2; box-shadow: inset 0 -2px #c8102e; }
.ar-msg { margin: 4px 0 6px; font-size: 13px; color: #1b1b1b; }
.ar-sugg { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ar-fix { min-height: 32px; padding: 3px 10px; border: 1px solid #2f6b3a; border-radius: 6px; background: #eef6ef; color: #1e4d27; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ar-fix:hover { background: #2f6b3a; color: #fff; }
.ar-ignore { min-height: 32px; padding: 3px 8px; border: 0; background: none; color: #6b665e; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.ar-wait, .ar-more { font-size: 12px; color: #6b665e; }
.ar-more { margin: 0; padding: 8px 12px; }
