.cb { position: relative; }
.cb input { scroll-margin-top: 12px; }
.cbpop { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); background: var(--surface-sunken); border-radius: var(--radius-md); box-shadow: 0 0 0 1px var(--line), var(--shadow-pop); }
.cbpop[hidden], .cbpop p[hidden] { display: none; }
.cbpop p { margin: 0; padding: 12px 14px 4px; font-size: 14px; color: var(--ink); }
.cbpop ul { list-style: none; margin: 0; padding: 4px; max-height: 290px; overflow-y: auto; overscroll-behavior: contain; scroll-padding-bottom: 64px; }
.cbpop li { display: grid; gap: 2px; min-height: 48px; padding: 8px 12px; border-radius: 8px; cursor: pointer; color: var(--ink); }
.cbpop li small { font-size: 12.5px; color: var(--ink-muted); }
.cbpop li:hover, .cbpop li[aria-selected=true] { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); }
.cbpop li.pin { position: sticky; bottom: -4px; margin-top: 4px; background: var(--surface-sunken); box-shadow: inset 0 1px 0 var(--line); border-radius: 0 0 8px 8px; }
.cbpop li.pin:hover, .cbpop li.pin[aria-selected=true] { background: var(--surface-raised); box-shadow: inset 0 0 0 1px var(--border); border-radius: 8px; }
body:has(.cb input:focus) .stotal { display: none; }
