.kraken-choice-search { position:relative; display:block; width:100%; min-width:0; grid-column:1/-1; margin:0 0 6px; }
.kraken-choice-search input[type=search],.people-search input[type=search] { box-sizing:border-box; display:block; width:100%; min-width:0; min-height:36px; padding:8px 11px; border:1px solid var(--border,#ccd8e7); border-radius:8px; color:var(--text,var(--ink,#17253b)); background:var(--surface,#fff); font:inherit; font-size:13px; }
.kraken-choice-results { max-height:220px; overflow:auto; margin-top:5px; border:1px solid var(--border,#ccd8e7); border-radius:8px; background:var(--surface,#fff); }
.kraken-choice-results[hidden],.kraken-choice-count[hidden],.person-chip[hidden] { display:none!important; }
.kraken-choice-results button { display:block; width:100%; padding:9px 11px; border:0; border-bottom:1px solid var(--border,#e5eaf2); background:transparent; color:var(--text,var(--ink,#17253b)); text-align:start; white-space:normal; overflow-wrap:anywhere; font:inherit; font-size:13px; cursor:pointer; }
.kraken-choice-results button:hover,.kraken-choice-results button[aria-selected=true],.lookup-search-result[aria-selected=true] { background:var(--tint,#e7f0ff); color:var(--accent,#0062e0); }
.kraken-choice-count { display:block; margin:5px 2px 0; font-size:12px; color:var(--muted,#526179); font-weight:400; }
.people-search { display:block; width:100%; grid-column:1/-1; flex-basis:100%; }
.people-search small { display:block; padding-top:4px; font-size:11px; color:var(--muted,#526179); }
.lookup-registry-search { border-top:1px solid var(--border,#ccd8e7); }
@media print { .kraken-choice-search,.people-search {display:none!important;} }

/* Compact controls keep the search in a top-layer panel, outside toolbar layout. */
.kraken-choice-search.kraken-choice-compact { display:inline-flex; width:auto; flex:0 0 auto; grid-column:auto; margin:0; align-self:center; }
.kraken-choice-trigger { display:inline-flex; align-items:center; justify-content:center; width:30px; height:36px; padding:0; border:1px solid var(--border,#ccd8e7); border-radius:8px; background:var(--surface,#fff); color:var(--muted,#526179); cursor:pointer; }
.kraken-choice-trigger:hover,.kraken-choice-trigger[aria-expanded=true] { color:var(--accent,#0062e0); background:var(--tint,#e7f0ff); }
.kraken-choice-trigger:focus-visible { outline:2px solid var(--accent,#0062e0); outline-offset:2px; }
.kraken-choice-trigger:disabled { opacity:.5; cursor:default; }
.kraken-choice-popup { position:fixed; inset:auto; z-index:12000; box-sizing:border-box; margin:0; padding:10px; overflow:auto; border:1px solid var(--border,#ccd8e7); border-radius:10px; background:var(--surface,#fff); color:var(--text,var(--ink,#17253b)); box-shadow:0 8px 28px #17253b26; }
.kraken-choice-popup[hidden] { display:none!important; }

.column-filter-select-shell .kraken-choice-trigger { width:22px; height:26px; border:0; background:transparent; }

/* A choice is one layout item: the search action must travel with its select. */
.kraken-choice-control { display:inline-flex; align-items:center; gap:4px; min-width:0; max-width:100%; vertical-align:middle; }
.kraken-choice-control > select { flex:1 1 auto; min-width:0; max-width:100%; margin:0; }
.kraken-choice-control > .kraken-choice-compact { flex:0 0 auto; }
.kraken-choice-control .kraken-choice-trigger { height:36px; }
.filters > .kraken-choice-control { flex:0 1 auto; }
.filters > .kraken-choice-control > select { width:auto; }
@media(max-width:700px) {
  .kraken-choice-control { width:100%; }
  .kraken-choice-control > select { width:100%; }
  .kraken-choice-control .kraken-choice-trigger { width:40px; min-height:44px; }
}
