/* The Collection field: a combobox with a list that opens under it, and an inline Create collection form. */
.cf { position: relative; }
.cf__box { position: relative; }
.cf__input { width: 100%; padding-right: 40px; }
.cf__clear { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius); background: transparent; color: var(--text-quiet); cursor: pointer; }
.cf__clear:hover { background: var(--tone-1); color: var(--text); }
.cf__clear svg { stroke: currentColor; }
.cf__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; margin: 0; padding: 4px; list-style: none; max-height: 264px; overflow: auto; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: 0 18px 40px -20px rgba(26, 26, 26, .45); }
.cf__opt { display: flex; align-items: baseline; gap: 10px; padding: 9px 10px; border-radius: var(--radius); cursor: pointer; font-size: 15px; color: var(--text); }
.cf__opt.is-active { background: var(--tone-1); }
.cf__opt[aria-selected="true"] .cf__name { font-weight: 600; }
.cf__name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cf__code { font-size: 12px; letter-spacing: .04em; color: var(--text-quiet); }
.cf__count { font-size: 12px; color: var(--text-quiet); min-width: 2ch; text-align: right; }
.cf__opt--create .cf__name { color: var(--red-text); font-weight: 600; }
.cf__empty { padding: 10px; font-size: 14px; color: var(--text-quiet); }
.cf__create { margin-top: 8px; padding: 16px; background: var(--tone-1); border-radius: var(--radius); }
.cf__form { display: flex; flex-direction: column; gap: 12px; }
.cf__row { display: flex; flex-direction: column; gap: 6px; }
.cf__row .ed-input { width: 100%; }
.ed-opt { font-weight: 400; color: var(--text-quiet); }
.cf__note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--text-quiet); }
.cf__acts { display: flex; justify-content: flex-end; gap: 8px; }
.cf__cancel, .cf__go { height: 40px; padding: 0 16px; border: 0; border-radius: var(--radius); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.cf__cancel { background: var(--tone-2); color: var(--text); }
.cf__go { color: var(--on-red); }
.cf__go:disabled { opacity: .6; cursor: default; }
