.crm-dropdown { --crm-dd-ink: #30402e; --crm-dd-muted: #7c8974; --crm-dd-line: #e3e9da; --crm-dd-accent: #5e7746; --crm-dd-selected: #eef3e5; position: relative; color: var(--crm-dd-ink); font: 14px/1.5 system-ui, sans-serif; }
.crm-dropdown *, .crm-dropdown *::before, .crm-dropdown *::after { box-sizing: border-box; }
.crm-dropdown-trigger { display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%; min-height: 48px; padding: 9px 13px; border: 1px solid var(--crm-dd-line); border-radius: 12px; background: #fff; color: var(--crm-dd-ink); cursor: pointer; font: inherit; text-align: left; box-shadow: 0 2px 3px #20301403; transition: border-color 160ms, box-shadow 160ms; }
.crm-dropdown-trigger:hover { border-color: #c4d2b4; }
.crm-dropdown-trigger[aria-expanded=true] { border-color: var(--crm-dd-accent); box-shadow: 0 0 0 3px #dae6cd55; }
.crm-dropdown-trigger:disabled { opacity: .5; cursor: default; }
.crm-dropdown-value { display: flex; align-items: center; gap: 7px; flex: 1; min-width: 0; flex-wrap: wrap; }
.crm-dropdown-selected-label { overflow-wrap: anywhere; font-size: 13px; }
.crm-dropdown-placeholder { color: var(--crm-dd-muted); font-size: 13px; }
.crm-dropdown-caret { color: #7f916e; font-size: 20px; line-height: 1; transition: transform 180ms; }
.is-open > .crm-dropdown-trigger .crm-dropdown-caret { transform: rotate(180deg); }
.crm-dropdown-chip { display: inline-flex; align-items: center; max-width: 100%; background: #eef3e4; color: #6b8254; border: 1px solid #e0e8d3; padding: 3px 7px; border-radius: 6px; font-size: 10px; overflow-wrap: anywhere; }
.crm-dropdown-more { font-size: 11px; color: #879972; }
.crm-dropdown-panel { position: fixed; inset: auto; margin: 0; padding: 0; border: 1px solid #e1e8d7; border-radius: 15px; background: #fff; color: var(--crm-dd-ink); box-shadow: 0 18px 50px #26381c1a, 0 4px 9px #26381c06; overflow: auto; overscroll-behavior: contain; font: 13px/1.5 system-ui, sans-serif; transform-origin: top center; }
.crm-dropdown-panel[data-side=top] { transform-origin: bottom center; }
.crm-dropdown-panel:popover-open { display: flex; flex-direction: column; }
.crm-dropdown-panel::backdrop { background: transparent; }
.crm-dropdown-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px 15px 11px; font-size: 10px; font-weight: 600; color: #6d805a; flex-shrink: 0; }
.crm-dropdown-heading-hint { font-size: 9px; color: #99a78b; font-weight: 400; }
.crm-dropdown-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; margin: 0 9px 9px; border: 1px solid #e6ebdd; background: #f7f9f2; border-radius: 8px; flex-shrink: 0; }
.crm-dropdown-search > span { color: #99a88b; font-size: 22px; }
.crm-dropdown-search input { width: 100%; min-width: 0; border: 0; background: none; color: #536a41; font: inherit; font-size: 12px; padding: 10px 0; }
.crm-dropdown-search input::placeholder { color: #9aa98a; }
.crm-dropdown-list { overflow-y: auto; padding: 0 7px 8px; min-height: 48px; flex: 1 1 auto; scrollbar-width: thin; overscroll-behavior: contain; }
.crm-dropdown-group-title { font-size: 8px; letter-spacing: 1.2px; text-transform: uppercase; color: #97a68a; padding: 10px 9px 6px; }
.crm-dropdown-option { display: flex; align-items: center; gap: 11px; padding: 9px; min-height: 44px; border-radius: 8px; cursor: pointer; margin: 2px 0; }
.crm-dropdown-option.is-active { background: var(--crm-dd-selected); }
.crm-dropdown-option[aria-selected=true] { color: var(--crm-dd-accent); }
.crm-dropdown-option[aria-disabled=true] { opacity: .4; cursor: default; }
.crm-dropdown-option-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.crm-dropdown-option-label { font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.crm-dropdown-description { font-size: 10px; color: #8d9b7f; overflow-wrap: anywhere; }
.crm-dropdown-avatar { display: grid; place-items: center; width: 29px; height: 29px; background: #eaf0dd; border: 1px solid #e0e8d2; color: #7c9064; border-radius: 50%; font-size: 10px; font-weight: 600; flex-shrink: 0; }
.crm-dropdown-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-inline: 3px; }
.crm-dropdown-check { width: 17px; height: 17px; display: grid; place-items: center; color: var(--crm-dd-accent); font-size: 13px; }
.crm-dropdown-list[aria-multiselectable=true] .crm-dropdown-check { border: 1px solid #e0e7d6; border-radius: 5px; font-size: 10px; }
.crm-dropdown-list[aria-multiselectable=true] [aria-selected=true] .crm-dropdown-check { background: var(--crm-dd-accent); border-color: var(--crm-dd-accent); color: #fff; }
.crm-dropdown-footer { display: flex; align-items: center; gap: 9px; padding: 10px 14px; border-top: 1px solid #edf0e6; background: #fcfdf9; font-size: 9px; color: #96a386; flex-shrink: 0; }
.crm-dropdown-footer > span:first-child { margin-right: auto; }
.crm-dropdown-keys { font-size: 8px; color: #a0ac92; }
.crm-dropdown-clear, .crm-dropdown-done { border: 0; font: inherit; font-size: 10px; padding: 6px 10px; border-radius: 6px; cursor: pointer; }
.crm-dropdown-clear { background: none; color: #81936e; }
.crm-dropdown-done { background: var(--crm-dd-accent); color: #f4f7ed; }
.crm-dropdown-empty { padding: 20px 15px; color: #95a186; font-size: 11px; margin: 0; }
.crm-dropdown [hidden] { display: none !important; }
.crm-dropdown :focus-visible { outline: 2px solid #9ab57a; outline-offset: 2px; }
.crm-dropdown-list:focus-visible { outline-offset: -3px; border-radius: 8px; }
.crm-dropdown-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }
@media (pointer: coarse) { .crm-dropdown-search input { font-size: 16px; } .crm-dropdown-clear, .crm-dropdown-done { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { .crm-dropdown *, .crm-dropdown-panel { transition: none !important; animation: none !important; } }
