/* Kole UI Select 样式 — 对齐 components.css 与 select.json 契约（触发器同 Input） */
.kole-select { position: relative; display: inline-block; min-width: 220px; }
.kole-select-trigger {
  display: flex; align-items: center; gap: 8px; min-height: 32px; height: auto;
  padding: 2px 28px 2px 12px; background: var(--kole-color-card-bg); border: 1px solid var(--kole-color-border);
  border-radius: 4px; box-sizing: border-box; cursor: pointer; transition: border-color .15s, box-shadow .15s;
  font-size: 14px; color: var(--kole-color-text-body); flex-wrap: wrap; position: relative;
}
.kole-select-trigger:hover { border-color: var(--kole-color-brand); }
.kole-select.is-open .kole-select-trigger { border-color: var(--kole-color-brand); box-shadow: 0 0 0 2px rgba(47,84,235,0.2); }
.kole-select.is-disabled .kole-select-trigger { background: var(--kole-color-disabled-bg); border-color: transparent; color: var(--kole-color-text-disabled); cursor: not-allowed; }
.kole-select-trigger .placeholder { color: var(--kole-color-text-placeholder); }
.kole-select-trigger .caret { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); transition: transform .15s; color: var(--kole-color-text-secondary); }
.kole-select.is-open .caret { transform: translateY(-50%) rotate(180deg); }
.kole-select-trigger .tag {
  display: inline-flex; align-items: center; gap: 4px; background: var(--kole-color-brand-bg); color: var(--kole-color-brand);
  border-radius: 2px; padding: 1px 6px; font-size: 12px; line-height: 20px;
}
.kole-select-trigger .tag .x { cursor: pointer; }
.kole-select-panel {
  position: absolute; z-index: 10; top: calc(100% + 4px); left: 0; right: 0;
  background: var(--kole-color-card-bg); border-radius: 4px; box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  max-height: 256px; overflow-y: auto; padding: 4px 0;
}
.kole-select-search { padding: 6px 8px; border-bottom: 1px solid var(--kole-color-border-strong); }
.kole-select-search input { width: 100%; box-sizing: border-box; border: 1px solid var(--kole-color-border); border-radius: 4px; padding: 4px 8px; font-size: 13px; outline: none; }
.kole-select-search input:focus { border-color: var(--kole-color-brand); }
.kole-select-group-label { padding: 6px 12px; font-size: 12px; color: var(--kole-color-text-secondary); }
.kole-select-option {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 32px; cursor: pointer;
  font-size: 14px; color: var(--kole-color-text-body); box-sizing: border-box;
}
.kole-select-option:hover { background: var(--kole-color-page-bg); }
.kole-select-option.is-selected { background: var(--kole-color-brand-bg); color: var(--kole-color-brand); }
.kole-select-option .check { visibility: hidden; margin-left: auto; }
.kole-select-option.is-selected .check { visibility: visible; }
.kole-select-option.is-disabled { color: var(--kole-color-text-disabled); cursor: not-allowed; }
.kole-select-empty { padding: 16px 12px; text-align: center; color: var(--kole-color-text-placeholder); font-size: 13px; }
