.hermes-card,.hermes-dialog,.hermes-launcher{box-sizing:border-box;color:#e8edf7;font:14px/1.55 system-ui,sans-serif}
.hermes-card{padding:20px;border:1px solid #7151a2;border-radius:18px;background:linear-gradient(125deg,#201d38,#101e2b)}
.hermes-card h3,.hermes-message h3{font-size:18px;line-height:1.35;margin:8px 0;font-weight:650}
.hermes-card p{margin:6px 0}.hermes-eyebrow{font-size:12px;color:#c5a5fc;font-weight:600}
.hermes-action-text{color:#d2d9e6}.hermes-facts{padding:0;list-style:none;margin:16px 0;display:grid;gap:12px}
.hermes-facts li{padding-left:13px;border-left:2px solid #625082}.hermes-facts small{display:block;font-size:11px;color:#9daac0;margin-top:3px}
.hermes-actions{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}
.hermes-button{appearance:none;cursor:pointer;font:inherit;color:#e8edf7;background:#19293c;border:1px solid #45536c;padding:9px 12px;border-radius:10px;min-height:42px}
.hermes-button:hover{background:#2a3651;border-color:#ab87ec}.hermes-button:focus-visible,.hermes-input:focus-visible{outline:3px solid #c4a4fb;outline-offset:3px}
.hermes-button:disabled{opacity:.5;cursor:default}.hermes-primary{background:#7850c1;border-color:#9c7ce0}
.hermes-subtle{background:transparent;color:#b8c3d6}.hermes-freshness{display:block;color:#99a7bd;font-size:11px}
.hermes-warning{color:#e9c98e;font-size:12px;margin-top:10px}.hermes-status{min-height:20px;color:#b9a4e3;font-size:12px;margin:4px 20px}
.hermes-launcher{position:fixed;z-index:41;right:20px;bottom:20px;display:flex;align-items:center;gap:10px;padding:11px 15px;border-radius:16px;border:1px solid #7855ac;background:#1a2035;box-shadow:0 6px 24px #0004}
.hermes-launcher[hidden]{display:none}.hermes-launcher-detail{font-size:11px;color:#c4b6e4;margin-left:10px}.hermes-spark{color:#c19afa;font-size:24px}
.hermes-above-nav{bottom:calc(80px + env(safe-area-inset-bottom))}
/* 29.09: po zakończeniu wizyty dolne menu wraca, a klasa above-nav liczyła się tylko przy odświeżeniu Hermesa → przycisk
   zasłaniał Panel/Klienci/Zamówienia. Teraz CSS: zawsze nad menu, gdy menu jest widoczne. */
body:has(#panel-bottomnav:not(.hidden)) .hermes-launcher{bottom:calc(80px + env(safe-area-inset-bottom))}
body:has(.hermes-launcher:not([hidden])) main{padding-bottom:160px}
.hermes-dialog{color-scheme:dark;scrollbar-color:#52617a #101a2a;position:fixed;inset:12px 12px 12px auto;margin:0;width:min(460px,calc(100vw - 24px));height:calc(100dvh - 24px);max-height:none;max-width:none;padding:0;border:1px solid #52617a;border-radius:20px;background:#101a2a;box-shadow:0 16px 60px #0008}
.hermes-dialog[open]{display:flex;flex-direction:column}.hermes-dialog::backdrop{background:#02071365}
.hermes-header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:17px 20px;border-bottom:1px solid #29374c}
.hermes-header h2{font-size:18px;margin:0;color:#c5a5fc}.hermes-close{font-size:12px}.hermes-context-label{margin:0;padding:12px 20px;border-bottom:1px solid #29374c;font-size:12px;color:#adbdd2}
.hermes-transcript{flex:1;overflow:auto;overscroll-behavior:contain;min-height:0;padding:18px 20px;overflow-wrap:anywhere}
.hermes-message{margin-bottom:14px;padding:14px;border:1px solid #314158;border-radius:13px;background:#172439}.hermes-message p{white-space:pre-wrap;margin:6px 0}
.hermes-message-user{margin-left:40px;background:#33295a;border-color:#4d3f7d;border-bottom-right-radius:4px}.hermes-message strong{display:block;font-size:11px;color:#bda0eb;margin-bottom:2px}
.hermes-message-intro{margin-right:24px;border-color:#3b4a66;border-bottom-left-radius:4px}.hermes-message-intro p{white-space:normal}
.hermes-message:not(.hermes-message-user){margin-right:24px;border-bottom-left-radius:4px}
.hermes-typing{color:#aab8ce;font-size:12px;margin:2px 0 10px 6px}.hermes-typing::after{content:'';display:inline-block;width:1.4em;text-align:left;animation:hermes-dots 1.2s steps(4,end) infinite}
@keyframes hermes-dots{0%{content:''}25%{content:'.'}50%{content:'..'}75%{content:'...'}}
/* Chipy = pigułki (jak w makiecie): niskie, zaokrąglone, bez „klocków" */
.hermes-chips{gap:6px;margin:12px 0 4px}.hermes-chips-subtle{margin-top:2px}
.hermes-chip{min-height:32px;padding:5px 12px;border-radius:999px;font-size:12px;line-height:1.3;background:#1c2c42;border-color:#3d4d68}
.hermes-chip:hover{background:#2a3a58;border-color:#ab87ec}.hermes-chip.hermes-primary{background:#7850c1;border-color:#9c7ce0}
.hermes-chip.hermes-subtle{background:transparent;border-color:#33425a;color:#aab6c9}.hermes-chip.hermes-subtle:hover{background:#1c2c42}
.hermes-talking-point{background:#28213c;border-left:3px solid #a67be6;padding:14px;border-radius:8px}.hermes-empty{color:#aab8ce}
.hermes-dialog>.hermes-actions{padding:0 20px;margin:4px 0}.hermes-dialog>.hermes-actions button{font-size:12px}
.hermes-dialog>.hermes-navigation{padding-top:8px}.hermes-day-item{margin-top:14px}.hermes-day-item button{margin-top:10px}
.hermes-dialog .hermes-actions[hidden],.hermes-dialog .hermes-form[hidden]{display:none}
.hermes-form{display:flex;align-items:flex-end;gap:8px;padding:12px 20px max(16px,env(safe-area-inset-bottom));border-top:1px solid #29374c;margin:0}
.hermes-input{min-width:0;flex:1;resize:vertical;max-height:140px;font:16px/1.5 system-ui;color:#e8edf7;border:1px solid #45536c;background:#18243a;border-radius:10px;padding:10px}
@media(max-width:600px){.hermes-dialog{inset:auto 0 0;width:100%;height:88dvh;border-radius:20px 20px 0 0}.hermes-card{padding:16px}.hermes-launcher{left:16px;right:16px;justify-content:flex-start}.hermes-launcher-detail{margin-left:auto}.hermes-header,.hermes-transcript{padding:14px}.hermes-form{padding-left:14px;padding-right:14px}.hermes-card .hermes-actions .hermes-button{flex:1 1 40%;font-size:12px}.hermes-card .hermes-chips .hermes-chip{flex:0 1 auto}.hermes-message-user{margin-left:24px}}
.hermes-rep-select{width:100%;font:14px/1.4 system-ui;color:#e8edf7;background:#18243a;border:1px solid #45536c;border-radius:10px;padding:10px;min-height:42px}
.hermes-rep-select:focus-visible{outline:3px solid #c4a4fb;outline-offset:3px}
.hermes-sales-section{margin:6px 0 16px}.hermes-sales-section h3{font-size:13px;text-transform:uppercase;letter-spacing:.04em;color:#c5a5fc;margin:0 0 8px}
.hermes-sales-section .hermes-facts{margin:0}.hermes-sales-section .hermes-facts strong{font-size:13px;color:#e8edf7}
.hermes-inline{min-height:auto;padding:2px 8px;font-size:11px;margin-left:6px}
.hermes-sell-block{margin:12px 0 4px}.hermes-sell-block .hermes-eyebrow{margin-bottom:6px}.hermes-sell-block .hermes-facts{margin:0}.hermes-sell-block .hermes-facts li{border-left-color:#4a5f7a;font-size:13px}
.hermes-brain-signals h3{color:#8fe0c0}.hermes-brain-signals .hermes-facts li{border-left-color:#3f8f77}
@media(prefers-reduced-motion:reduce){.hermes-dialog,.hermes-card,.hermes-launcher{scroll-behavior:auto}}
/* Jasny wygląd (drv-design, 29.09 — Kuba: „sprawdź, czy Hermes dobrze działa z nowym wyglądem”): ogólna reguła
   „body.drv-design header” (biały pasek 72 px z lewym marginesem 256 px na boczne menu) łapała też nagłówek okna Hermesa —
   tytuł blady na bieli, zepchnięty w prawo, w dwóch liniach. Okno zostaje ciemne, więc nagłówek też. W jasnej karcie klienta
   „Dane pobrane…”, „Śr. koszyk…” i „Niepełne dane…” były bladoszare / bladożółte — teraz czytelne; „Zapytaj Hermesa” wyróżniony. */
body.drv-design .hermes-dialog .hermes-header{min-height:0;padding:17px 20px;background:transparent;border-color:#29374c;backdrop-filter:none}
body.drv-design .hermes-card .hermes-freshness{color:#5f6f7a}
body.drv-design .hermes-card .hermes-warning{color:#8a5a00}
body.drv-design .hermes-card .hermes-chip.hermes-primary{background:#6d4bb0;border-color:#6d4bb0;color:#fff}
body.drv-design .hermes-card .hermes-chip.hermes-primary:hover{background:#5c3d99}
@media(max-width:600px){body.drv-design .hermes-dialog .hermes-header{padding:14px}}
