/* The same fixed search shell, with a scrollable list below compact filters. */
html .modal-finder > .finder-modal {
  box-sizing:border-box; width:100%; max-width:none; margin:0;
  padding:76px 45px 45px; min-width:0; gap:0;
}
html .finder-modal > :is(.section-kicker,h2,p,.finder-fields) { flex-shrink:0; }
html .finder-modal > .section-kicker { margin:0 0 16px; }
html .finder-modal > h2 { margin:0 0 12px; font-size:clamp(26px,3vw,40px); line-height:1.15; letter-spacing:-.035em; }
html .finder-modal > p:not(.section-kicker):not(.konic-finder-note) { margin:0; font-size:15px; line-height:1.5; color:var(--muted,#77716a); }
html .finder-modal .finder-fields {
  grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; margin:24px 0 0;
}
html .finder-modal .finder-fields label {
  min-width:0; gap:8px; padding:12px 0; border:0;
  border-bottom:1px solid #d5d0ca; border-radius:0;
}
html .finder-modal .finder-fields label > span { color:var(--muted,#77716a); font-size:11px; line-height:1.4; }
html .finder-modal .finder-fields select { box-sizing:border-box; min-width:0; min-height:32px; width:100%; padding:0 18px 0 0; font:inherit; font-size:16px; color:inherit; }
html .modal-finder .finder-result.konic-finder-results {
  flex:1 1 0; min-height:0; min-width:0; width:100%; box-sizing:border-box;
  display:block; margin:20px 0 0; padding:0;
  border-radius:0; background:transparent; color:inherit;
  overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain;
  scrollbar-width:thin; scrollbar-color:rgba(36,33,30,.35) transparent;
}
.konic-finder-match {
  box-sizing:border-box; display:grid; grid-template-columns:minmax(0,1fr) auto;
  align-items:center; gap:6px 16px; width:100%; min-width:0;
  padding:16px 4px; border-bottom:1px solid rgba(128,124,117,.25);
  color:inherit; text-decoration:none; overflow-wrap:anywhere;
}
.konic-finder-copy { min-width:0; font-size:16px; font-weight:400; line-height:1.45; }
.konic-finder-copy small { display:block; font-size:.8em; line-height:1.5; color:var(--muted,#77716a); }
.konic-finder-match > strong { min-width:0; font-size:17px; line-height:1.3; }
.konic-finder-match > small { grid-column:1; font-size:12px; color:inherit; opacity:.8; }
.konic-finder-match > span:not(.konic-finder-copy):not(.arrow) { grid-column:2; grid-row:1/3; align-self:center; font-size:13px; }
.konic-finder-match > .arrow { flex:none; }
.konic-finder-match:hover { color:var(--red,#df181d); }
.konic-finder-match:focus-visible { outline:1px solid var(--konic-selection-ink,#8a8279); outline-offset:-1px; }
html .finder-modal .konic-finder-empty { margin:0; padding:20px 4px; color:var(--muted,#77716a); font-size:16px; }
html .finder-modal > .konic-finder-note { margin:12px 0 0; font-size:12px; line-height:1.5; color:var(--muted,#77716a); }
@media(max-width:960px) {
  html .modal-finder > .finder-modal { padding:28px 24px 12px; }
}
@media(max-width:600px) {
  html .finder-modal > .section-kicker { margin-bottom:12px; }
  html .finder-modal > h2 { font-size:26px; margin-bottom:8px; }
  html .finder-modal > p:not(.section-kicker):not(.konic-finder-note) { font-size:13px; }
  html .finder-modal .finder-fields { grid-template-columns:minmax(0,1fr); gap:0; margin-top:16px; }
  html .finder-modal .finder-fields label { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); align-items:center; gap:12px; padding:6px 0; }
  html .finder-modal .finder-fields select { min-height:32px; font-size:14px; }
  html .modal-finder .finder-result.konic-finder-results { margin-top:12px; }
  .konic-finder-copy { font-size:15px; }
}
@media(max-height:650px) {
  html .modal-finder > .finder-modal { padding-top:24px !important; padding-bottom:12px; }
  html .finder-modal > .section-kicker { margin-bottom:8px; }
  html .finder-modal > h2 { font-size:26px; margin-bottom:8px; padding-right:36px; }
  html .finder-modal > p:not(.section-kicker):not(.konic-finder-note) { display:none; }
  html .finder-modal .finder-fields { margin-top:4px; }
  html .finder-modal > .konic-finder-note { margin-top:6px; font-size:11px; }
}
/* Short landscape windows retain space for at least one readable result row. */
@media(max-height:480px) {
  html .modal-finder > .finder-modal { padding-top:16px !important; padding-bottom:8px !important; }
  html .finder-modal > .section-kicker { display:none; }
  html .finder-modal > h2 { font-size:24px; margin:0 0 8px; }
  html .finder-modal .finder-fields { margin-top:0; }
  html .finder-modal .finder-fields label { padding:4px 0; gap:4px; }
  html .finder-modal .finder-fields select { height:28px; min-height:28px; font-size:14px; }
  html .modal-finder .finder-result.konic-finder-results { margin-top:8px; }
}

/* The empty message occupies the available result area without resizing the shell. */
html .finder-modal .konic-finder-empty {
  box-sizing:border-box; display:grid; place-items:center; text-align:center;
  width:100%; height:100%; min-height:0; margin:0; padding:16px;
}
html #finderResult.is-empty { display:grid; place-items:center; text-align:center; min-height:120px; }
html .finder-fields select:disabled { opacity:.5; cursor:not-allowed; }
