.ld-smart-panel{position:fixed;z-index:1380;box-sizing:border-box;max-height:min(530px,70dvh);overflow:auto;overscroll-behavior:contain;border:1px solid #e2e5e8;border-radius:14px;background:#fff;box-shadow:0 20px 42px rgba(18,28,40,.19);padding:10px;color:#26313e;font-family:inherit}
.ld-smart-panel[hidden],.ld-smart-backdrop[hidden],.ld-smart-close[hidden]{display:none!important}
.ld-smart-heading{display:flex;align-items:center;gap:8px;margin:8px 4px 7px;font-size:12px;font-weight:800}.ld-smart-heading small{margin-left:auto;font-size:10px;font-weight:500;color:#88909b}
/* Kafelki uzupełnień: pięć mniejszych kwadratów na desktopie, cztery na mobile. */
.ld-smart-chip-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));justify-items:stretch;gap:5px;min-width:0;width:100%;box-sizing:border-box;padding:1px 0 5px;overflow:visible}
.ld-smart-chip{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-width:0;width:100%;height:88px;aspect-ratio:auto;box-sizing:border-box;border:1px solid #ffd6c5;border-radius:6px;background:linear-gradient(145deg,#fff6f0,#fff);padding:3px 2px;cursor:pointer;color:#394451;font-family:inherit;font-size:10px;font-weight:700;text-align:center;transition:border-color .16s,background .16s,transform .16s}
.ld-smart-chip-ico{display:block;flex:0 0 auto;font-size:19px;line-height:1.1}
.ld-smart-chip-label{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden;min-width:0;max-width:100%;line-height:1.35;overflow-wrap:anywhere;white-space:normal;text-overflow:ellipsis}
.ld-smart-chip:hover,.ld-smart-chip:focus-visible{outline:2px solid #ff986d;outline-offset:1px;background:#fff0e9}
.ld-smart-chip:active{transform:scale(.98)}
.ld-smart-recent,.ld-smart-result-list{display:grid;gap:2px}.ld-smart-row{display:flex;align-items:center;gap:10px;width:100%;border:0;border-radius:10px;background:transparent;color:#26313e;padding:10px 9px;text-align:left;cursor:pointer;font-family:inherit}
.ld-smart-row:hover,.ld-smart-row:focus-visible,.ld-smart-row.is-current{background:#fff2eb;outline:none}.ld-smart-row-ico{display:grid;place-items:center;width:35px;height:35px;flex:0 0 35px;border-radius:10px;background:#fff0e7;color:#e95a22;font-size:17px}
.ld-smart-row-copy{display:flex;flex-direction:column;gap:3px;min-width:0;flex:1}.ld-smart-row-copy strong{font-size:12px;font-weight:750;line-height:1.4;overflow-wrap:anywhere}.ld-smart-row-copy small{font-size:10px;color:#7c8795;line-height:1.4;overflow-wrap:anywhere}
.ld-smart-right{color:#98a3af;margin-left:auto}.ld-smart-clear{padding:3px 4px;border:0;background:transparent;color:#e85d27;font-size:10px;font-weight:750;cursor:pointer}
@media(max-width:650px){.ld-smart-panel{padding:8px;max-height:65dvh}.ld-smart-heading small{display:none}
 body.ld-smart-mobile-open{overflow:hidden}
 .ld-smart-backdrop{position:fixed;inset:0;z-index:1770;background:rgba(19,30,44,.38);backdrop-filter:blur(2px)}
 .ld-smart-close{position:fixed;top:12px;right:12px;z-index:1815;width:42px;height:42px;border:1px solid #f2c4b5;border-radius:11px;background:#fff;color:#e65724;font-size:28px;cursor:pointer}
 body.ld-smart-mobile-open .ld-header .ld-search{display:flex!important;position:fixed!important;z-index:1800;top:12px;left:12px;right:64px;width:auto;max-width:none!important;height:42px;min-width:0;box-sizing:border-box;box-shadow:0 8px 22px rgba(0,0,0,.16)}
 body.ld-smart-mobile-open .ld-smart-panel{z-index:1810;max-height:calc(100dvh - 83px)}
}
/* Podnieś kontekst układania nagłówka ponad półprzezroczyste tło nakładki. */
@media(max-width:650px){body.ld-smart-mobile-open .ld-header{z-index:1800!important}body.ld-smart-mobile-open .ld-header-inner > :not(.ld-search){visibility:hidden!important}}

/* Na telefonie cztery mniejsze kafelki w jednym rzędzie (bez przewijania poziomego). */
@media(max-width:650px){.ld-smart-chip-row{grid-template-columns:repeat(4,minmax(0,1fr));gap:4px}.ld-smart-chip-row>.ld-smart-chip:nth-child(n+5){display:none}.ld-smart-chip{width:100%;height:74px;padding:2px 2px;gap:2px;font-size:9px;border-radius:6px}.ld-smart-chip-ico{font-size:17px}}
@media(prefers-reduced-motion:reduce){.ld-smart-chip{transition:none}}
