/* Couleurs autonomes pour une lecture identique dans chaque application. */
.crozet-help-enabled{--help-bg:#fff;--help-text:#203347;--help-muted:#53677d;--help-line:#cbd7e3;--help-accent:#235775;--help-soft:#edf4fa}
html[data-theme=dark] .crozet-help-enabled{--help-bg:#1c293a;--help-text:#edf3fa;--help-muted:#bdcddd;--help-line:#52677b;--help-accent:#a0d8f2;--help-soft:#2a4054}
.crozet-help-launcher,.crozet-help-panel,.crozet-help-tooltip{box-sizing:border-box;font:16px/1.55 system-ui,-apple-system,sans-serif;color:var(--help-text);background:var(--help-bg)}
.crozet-help-launcher{position:fixed;top:var(--help-launcher-top,25px);right:16px;z-index:1100;height:var(--help-launcher-height,50px);min-height:48px;padding:12px 20px;display:inline-flex;align-items:center;justify-content:center;border:1px solid var(--help-line);border-radius:12px;box-shadow:0 3px 12px #10283b1a;font:650 17px/1.4 system-ui,-apple-system,sans-serif;cursor:pointer}
.crozet-help-launcher:hover,.crozet-help-launcher[aria-expanded=true]{background:var(--help-soft);color:var(--help-text)}
.crozet-help-enabled>header,.crozet-help-enabled .app-header{padding-right:126px!important}
.crozet-help-panel{position:fixed;inset:0 0 0 auto;width:min(520px,94vw);height:100vh;height:100dvh;z-index:1200;overflow-y:auto;overscroll-behavior:contain;padding:22px;border-left:1px solid var(--help-line);box-shadow:-12px 0 40px #10283b30;text-align:left;overflow-wrap:anywhere}
.crozet-help-panel[hidden],.crozet-help-tooltip[hidden]{display:none!important}
.crozet-help-head{display:flex;align-items:start;gap:12px;justify-content:space-between;position:sticky;top:-22px;background:var(--help-bg);z-index:2;padding:12px 0}
.crozet-help-panel h2{font:750 22px/1.3 system-ui;margin:0;color:var(--help-text);letter-spacing:normal}
.crozet-help-panel button{font:650 14px/1.4 system-ui;padding:9px 12px;min-height:44px;border:1px solid var(--help-line);border-radius:9px;background:var(--help-bg);color:var(--help-text);cursor:pointer;white-space:normal}
.crozet-help-panel button:hover,.crozet-help-panel button[aria-pressed=true]{background:var(--help-soft);color:var(--help-text);border-color:var(--help-accent)}
.crozet-help-panel .crozet-help-close{flex:0 0 44px;font-size:26px;padding:0;line-height:1}
.crozet-help-panel label{display:block;font-size:14px;font-weight:650;color:var(--help-text);margin:14px 0 6px}
.crozet-help-panel input,.crozet-help-panel select{box-sizing:border-box;width:100%;max-width:100%;margin:0;min-height:44px;border:1px solid var(--help-line);border-radius:8px;background:var(--help-bg);color:var(--help-text);padding:10px;font:16px system-ui}
.crozet-help-panel nav{display:flex;gap:6px;flex-wrap:wrap;margin:16px 0 6px}
.crozet-help-panel p{font-size:15px;line-height:1.65;margin:12px 0;color:var(--help-text);white-space:pre-line}
.crozet-help-panel .crozet-help-count,.crozet-help-panel .crozet-help-location,.crozet-help-panel .crozet-help-source{font-size:13px;color:var(--help-muted)}
.crozet-help-article{border:1px solid var(--help-line);border-radius:10px;margin:10px 0;padding:0 14px;background:var(--help-bg)}
.crozet-help-article summary{cursor:pointer;min-height:48px;padding:12px 0;font-weight:700;line-height:1.5;color:var(--help-text)}
.crozet-help-enabled .crozet-help-context{display:inline-grid;place-items:center;vertical-align:middle;margin:0 5px;min-height:28px;min-width:28px;width:28px;height:28px;padding:0;border-radius:50%;border:1px solid var(--help-accent,#4e738b);background:var(--help-soft,#edf4fa);color:var(--help-accent,#235775);font:700 15px/1 system-ui;cursor:pointer;flex:0 0 auto}
.crozet-help-context:hover{background:var(--help-bg);color:var(--help-accent)}
.crozet-help-tooltip{position:fixed;z-index:1300;width:min(330px,calc(100vw - 16px));padding:12px;border:1px solid var(--help-line);border-radius:10px;font-size:14px;box-shadow:0 4px 20px #0003;pointer-events:none}
.crozet-help-panel :focus-visible,.crozet-help-launcher:focus-visible,.crozet-help-context:focus-visible{outline:3px solid #4795cf;outline-offset:3px}
@media(max-width:800px){.crozet-help-launcher{top:12px;height:44px;min-height:44px;padding:8px 12px;font-size:16px}}
@media(max-width:600px){.crozet-help-panel{padding:16px;width:min(480px,100%)}.crozet-help-head{top:-16px}.crozet-help-launcher{top:12px;right:12px;padding:8px 12px}.crozet-help-enabled .crozet-help-context{min-height:36px;min-width:36px;width:36px;height:36px}}
@media(prefers-reduced-motion:reduce){.crozet-help-panel *{scroll-behavior:auto!important}}
@media print{.crozet-help-panel,.crozet-help-launcher,.crozet-help-context,.crozet-help-tooltip{display:none!important}.crozet-help-enabled>header,.crozet-help-enabled .app-header{padding-right:28px!important}}
