/* StatusLi kbsheet v1 - keyboard-safe bottom sheet (standalone). Namespace: kbs-. No existing selectors touched. */
.kbs-root{--kbs-bg:#fff;--kbs-fg:#1b1b1f;--kbs-mut:#5b5f6a;--kbs-line:#d9dbe2;--kbs-field:#f3f4f8;--kbs-acc:#1f5fd6;--kbs-acc-fg:#fff;--kbs-chip:#e8ebf5;--kbs-chip-fg:#1b1b1f;--kbs-scrim:rgba(0,0,0,.42);
 --kbs-kb:0px;--kbs-ta-max:120px;
 position:fixed;left:0;right:0;top:0;bottom:0;z-index:2147483000;display:none;font-family:system-ui,-apple-system,"Segoe UI",Arial,"Noto Sans Hebrew",sans-serif;color:var(--kbs-fg);overscroll-behavior:contain}
.kbs-root[data-kbs-theme=dark]{--kbs-bg:#1d1f27;--kbs-fg:#eef0f6;--kbs-mut:#b4b9c8;--kbs-line:#3a3e4c;--kbs-field:#2a2d38;--kbs-acc:#8ab4ff;--kbs-acc-fg:#10131c;--kbs-chip:#343848;--kbs-chip-fg:#eef0f6;--kbs-scrim:rgba(0,0,0,.6)}
.kbs-root.kbs-open{display:block}
.kbs-scrim{position:absolute;left:0;right:0;top:0;bottom:0;background:var(--kbs-scrim)}
.kbs-sheet{position:absolute;left:0;right:0;bottom:var(--kbs-kb);margin:0 auto;width:100%;max-width:640px;box-sizing:border-box;display:flex;flex-direction:column;background:var(--kbs-bg);color:var(--kbs-fg);border-radius:16px 16px 0 0;box-shadow:0 -4px 24px rgba(0,0,0,.25);overflow:hidden}
.kbs-head{flex:0 0 auto;display:flex;align-items:center;gap:8px;min-height:48px;padding:0 12px;border-bottom:1px solid var(--kbs-line);box-sizing:border-box}
.kbs-title{flex:1 1 auto;margin:0;font-size:17px;font-weight:700;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.kbs-close{flex:0 0 auto;width:44px;height:44px;border:0;border-radius:22px;background:transparent;color:var(--kbs-fg);font-size:24px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0}
.kbs-close:focus-visible,.kbs-btn:focus-visible,.kbs-chip:focus-visible{outline:2px solid var(--kbs-acc);outline-offset:2px}
.kbs-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:12px;box-sizing:border-box;scroll-padding:8px}
.kbs-foot{flex:0 0 auto;display:flex;gap:8px;align-items:center;justify-content:flex-start;padding:8px 12px;border-top:1px solid var(--kbs-line);box-sizing:border-box;background:var(--kbs-bg)}
.kbs-foot:empty{display:none}
.kbs-btn{min-height:44px;min-width:64px;padding:0 16px;border-radius:12px;border:1px solid var(--kbs-line);background:var(--kbs-field);color:var(--kbs-fg);font:inherit;font-weight:600;cursor:pointer}
.kbs-btn.kbs-primary{background:var(--kbs-acc);color:var(--kbs-acc-fg);border-color:var(--kbs-acc)}
/* content widgets used by the test page and offered as helpers */
.kbs-field{display:block;width:100%;box-sizing:border-box;border:1px solid var(--kbs-line);border-radius:12px;background:var(--kbs-field);color:var(--kbs-fg);font:inherit;font-size:16px;padding:10px 12px;line-height:1.4}
textarea.kbs-field{resize:none;min-height:44px;height:min(120px,var(--kbs-ta-max));max-height:var(--kbs-ta-max)}
.kbs-chips{display:flex;flex-wrap:wrap;gap:8px;margin:10px 0}
.kbs-chip{min-height:36px;padding:0 14px;border-radius:18px;border:0;background:var(--kbs-chip);color:var(--kbs-chip-fg);font:inherit;font-size:15px;cursor:pointer;white-space:nowrap}
.kbs-chip[aria-pressed=true]{background:var(--kbs-acc);color:var(--kbs-acc-fg)}
.kbs-lines{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.kbs-lines input{min-height:44px}
/* compact: visible height under 200px: header and action row share one row, chips scroll sideways */
.kbs-sheet.kbs-compact{border-radius:12px 12px 0 0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto minmax(0,1fr)}
.kbs-compact .kbs-head{grid-column:1;grid-row:1;min-height:40px;padding:0 8px;border-bottom:1px solid var(--kbs-line)}
.kbs-compact .kbs-foot{grid-column:2;grid-row:1;border-top:0;border-bottom:1px solid var(--kbs-line);padding:0 8px;min-height:40px}
.kbs-compact .kbs-foot .kbs-btn{min-height:32px;padding:0 10px}
.kbs-compact .kbs-body{grid-column:1/3;grid-row:2;padding:6px 10px}
.kbs-compact .kbs-close{width:40px;height:40px}
.kbs-compact .kbs-title{font-size:15px}
.kbs-compact .kbs-chips{flex-wrap:nowrap;overflow-x:auto;margin:6px 0;padding-bottom:2px}
.kbs-compact textarea.kbs-field{min-height:40px;padding:6px 10px}
.kbs-compact .kbs-lines{gap:6px}
.kbs-compact .kbs-lines input{min-height:40px}
.kbs-sheet.kbs-tiny .kbs-title{display:none}
@media (prefers-reduced-motion:no-preference){.kbs-root.kbs-open .kbs-sheet{animation:kbs-in .16s ease-out}@keyframes kbs-in{from{opacity:.4}to{opacity:1}}}

/* tiny: visible height under 100px: side rail with close on top and the primary action below; body gets the full height */
.kbs-sheet.kbs-tiny{grid-template-columns:minmax(0,1fr) 76px;grid-template-rows:1fr 1fr;border-radius:8px 8px 0 0}
.kbs-tiny .kbs-head{grid-column:2;grid-row:1;min-height:0;padding:0 4px;border-bottom:0;border-inline-start:1px solid var(--kbs-line)}
.kbs-tiny .kbs-foot{grid-column:2;grid-row:2;min-height:0;padding:0 4px;border:0;border-inline-start:1px solid var(--kbs-line)}
.kbs-tiny .kbs-body{grid-column:1;grid-row:1/3;padding:4px 8px}
.kbs-tiny .kbs-close{width:100%;height:100%;border-radius:6px}
.kbs-tiny .kbs-foot .kbs-btn:not(.kbs-primary){display:none}
.kbs-tiny .kbs-foot .kbs-btn{min-height:0;width:100%;height:calc(100% - 4px);min-width:0;padding:0 4px;font-size:13px}
.kbs-tiny .kbs-chips{margin:4px 0}
.kbs-tiny textarea.kbs-field{min-height:36px;padding:4px 8px}
