
/* LudAO V3.5 */
.brand-meaning{margin:4px 0 2px;font-size:.98rem;letter-spacing:.02em}
.brand-signature{margin:0;opacity:.78;font-size:.88rem;font-style:italic}
.chatao-launcher{position:fixed;right:22px;bottom:22px;z-index:9000;border:0;border-radius:999px;padding:10px 16px;display:flex;align-items:center;gap:9px;box-shadow:0 8px 28px rgba(0,0,0,.22);background:#17365d;color:#fff;font-weight:700;cursor:pointer}
.chatao-dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;background:#20a66a;color:white;font-size:12px}
.chatao-panel{position:fixed;right:22px;bottom:22px;width:min(430px,calc(100vw - 24px));height:min(610px,calc(100vh - 40px));z-index:9001;background:#fff;border:1px solid #d8dee7;border-radius:16px;box-shadow:0 18px 55px rgba(0,0,0,.25);overflow:hidden}
.chatao-panel:not([hidden]){display:flex;flex-direction:column}
.chatao-head{background:#17365d;color:#fff;padding:13px 15px;display:flex;align-items:center;justify-content:space-between;cursor:move;user-select:none}
.chatao-head small{display:block;opacity:.8;margin-top:2px}.chatao-icon{border:0;background:transparent;color:#fff;font-size:22px;cursor:pointer}
.chatao-messages{flex:1;overflow:auto;padding:14px;background:#f5f7fa}
.chatao-welcome{font-size:13px;color:#53606f;padding:10px}
.chatao-msg{display:flex;margin:8px 0}.chatao-msg>div,.chatao-msg.thinking{max-width:86%;padding:9px 11px;border-radius:12px;line-height:1.35;font-size:14px}
.chatao-msg.user{justify-content:flex-end}.chatao-msg.user>div{background:#17365d;color:#fff;border-bottom-right-radius:3px}
.chatao-msg.assistant{justify-content:flex-start}.chatao-msg.assistant>div,.chatao-msg.assistant.thinking{background:#fff;border:1px solid #dce2e9;border-bottom-left-radius:3px}
.chatao-cost{font-size:11px;color:#6b7280;padding:5px 12px;border-top:1px solid #edf0f4}
.chatao-form{display:flex;gap:8px;padding:10px;border-top:1px solid #dfe4ea;background:#fff}
.chatao-form textarea{flex:1;resize:none;border:1px solid #cbd3dd;border-radius:9px;padding:9px;font:inherit}
@media(max-width:600px){.chatao-panel{left:8px!important;right:8px!important;bottom:8px!important;top:auto!important;width:auto;height:75vh}.chatao-head{cursor:default}}

.cost-history{width:100%;border-collapse:collapse;margin-top:10px}
.cost-history th,.cost-history td{padding:8px;border-bottom:1px solid #e5e7eb;text-align:left;font-size:13px}
.cost-history th{font-weight:700}
@media(max-width:700px){.cost-history{display:block;overflow-x:auto;white-space:nowrap}}

.lesson{white-space:pre-wrap;background:#f7f8fa;border:1px solid #e1e5ea;border-radius:8px;padding:12px;font-family:inherit;font-size:13px}
.mode-card{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:13px 16px;margin-bottom:16px;border:1px solid;border-radius:12px}.mode-test{background:#f0fdf4;border-color:#86efac}.mode-real{background:#fff7ed;border-color:#fdba74}@media(max-width:700px){.mode-card{align-items:flex-start;flex-direction:column}}

.index-card{border-left:4px solid #0f766e}

.refmem-card{border-left:4px solid #2563eb}
.coverage-box{white-space:pre-wrap;max-height:420px;overflow:auto;background:#f8fafc;border:1px solid #cbd5e1;border-radius:10px;padding:12px;font-size:.86rem}

.index-status{margin:8px 0 12px;padding:9px 12px;border-radius:9px;font-weight:600}
.index-status.ok{background:#ecfdf5;border:1px solid #a7f3d0}
.index-status.warn{background:#fffbeb;border:1px solid #fde68a}

/* V3.11 - mémoire professionnel */
#memoirePdfArea{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
