.school-picker.category-picker{height:auto;overflow:visible}
.school-picker .category-picker-summary{white-space:nowrap;text-overflow:ellipsis}
.school-picker .category-picker-body[popover]{position:fixed;inset:auto;margin:0;box-sizing:border-box;min-height:0;overflow:hidden;}
.school-picker .category-picker-browser{min-height:0;flex:1 1 auto;grid-template-columns:repeat(var(--school-columns,1),minmax(145px,1fr))}
.school-picker .category-picker-column{min-height:0}
.school-picker .category-picker-selected{min-height:28px;max-height:36%}
.school-picker-field{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.school-picker-field>span{white-space:nowrap}
.school-picker-field>.school-picker{flex:none;min-width:0}
.book-rules .school-picker-field{display:grid;grid-template-columns:4em minmax(0,1fr);align-items:center;margin:8px 0}
.book-rules .school-picker.category-picker{border:0;background:transparent}
.school-picker [hidden]{display:none!important}

.school-picker .category-picker-head{display:flex;align-items:center;gap:4px}.school-picker .category-picker-head>strong,.school-picker .category-picker-head>button{flex:none}.school-picker .category-picker-head>.category-picker-clear{margin-inline:auto}

/* Match category rows; form input rules must not enlarge school checkboxes. */
.school-picker.public-category-picker .category-picker-node input[type=checkbox]{width:16px;height:16px;min-height:0;padding:0;margin:0;flex:none}

/* Use the same field width and select styling as the question-count control. */
.field-grid .school-picker-field>.school-picker{width:100%;max-width:none;border:0;background:transparent;border-radius:6px;font-size:inherit}
.field .school-picker .category-picker-summary{height:auto;line-height:normal;display:flex;align-items:center;justify-content:space-between;gap:8px}
.field .school-picker .category-picker-summary:after{content:'';width:6px;height:6px;flex:none;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(45deg);margin-right:2px}
