/* AIda - AI poradkyne (js/aida.js, aida.php). Plovouci tlacitko vlevo dole a okno chatu. Barvy a tmavy rezim: --hm-* z home-modern.css. */
.aida-fab { position: fixed; left: 18px; bottom: 18px; z-index: 9000; display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border: 1px solid #c4006b; border-radius: 999px; background: linear-gradient(#f0268f, #e5007d); box-shadow: 0 6px 18px rgba(229, 0, 125, .45); color: #fff; font: 800 14px/1 inherit; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.aida-fab:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(229, 0, 125, .55); }
.aida-fab:focus-visible, .aida-x:focus-visible, .aida-chip:focus-visible, .aida-send:focus-visible { outline: 3px solid rgba(229, 0, 125, .35); outline-offset: 2px; }
body.aida-open .aida-fab { display: none; }
.aida-panel { position: fixed; left: 18px; bottom: 18px; z-index: 9001; display: flex; flex-direction: column; width: 380px; max-width: calc(100vw - 36px); height: 540px; max-height: calc(100vh - 36px); overflow: hidden; border: 1px solid var(--hm-line, #e9d3e0); border-radius: 18px; background: var(--hm-card, #fff); box-shadow: 0 18px 50px rgba(23, 36, 58, .35); color: var(--hm-text, #344054); font-size: 14px; line-height: 1.5; }
.aida-panel[hidden] { display: none; }
.aida-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; padding: 14px 16px; background: linear-gradient(135deg, #f0268f, #c4006b); color: #fff; }
.aida-title { font-size: 16px; font-weight: 800; }
.aida-sub { margin-top: 2px; font-size: 12px; opacity: .9; }
.aida-x { flex: 0 0 auto; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }
.aida-x:hover { background: rgba(255, 255, 255, .35); }
.aida-log { flex: 1 1 auto; overflow-y: auto; padding: 14px; }
.aida-msg { max-width: 88%; margin: 0 0 10px 0; padding: 9px 13px; border-radius: 14px; overflow-wrap: anywhere; }
.aida-msg a.aida-link { color: var(--hm-pink, #e5007d); font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.aida-bot { border-top-left-radius: 4px; background: rgba(229, 0, 125, .08); }
.aida-me { margin-left: auto; border-top-right-radius: 4px; background: linear-gradient(#f0268f, #e5007d); color: #fff; }
.aida-wait { opacity: .7; font-style: italic; }
.aida-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 10px 14px; }
.aida-chip { padding: 6px 12px; border: 1px solid rgba(229, 0, 125, .4); border-radius: 999px; background: none; color: var(--hm-pink, #e5007d); font: 700 12px/1.3 inherit; text-align: left; cursor: pointer; }
.aida-chip:hover { background: rgba(229, 0, 125, .1); }
.aida-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--hm-line, #e9d3e0); }
.aida-in { flex: 1 1 auto; min-width: 0; padding: 9px 14px; border: 1px solid var(--hm-line, #e9d3e0); border-radius: 999px; background: var(--hm-card, #fff); color: var(--hm-text, #344054); font: inherit; }
.aida-in:focus { outline: none; border-color: var(--hm-pink, #e5007d); box-shadow: 0 0 0 3px rgba(229, 0, 125, .18); }
.aida-send { padding: 9px 16px; border: 1px solid #c4006b; border-radius: 999px; background: linear-gradient(#f0268f, #e5007d); color: #fff; font: 800 13px/1 inherit; cursor: pointer; }
.aida-note { padding: 0 14px 10px 14px; font-size: 11px; opacity: .7; }
@media (max-width: 560px) {
    .aida-fab { left: 12px; bottom: 12px; padding: 10px 14px; }
    .aida-panel { left: 0; right: 0; bottom: 0; width: 100%; max-width: 100%; height: 78vh; border-radius: 18px 18px 0 0; }
}
@media print { .aida-fab, .aida-panel { display: none !important; } }
