select[data-search-ready][hidden] { display: none !important; }
.ms-trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; height: 48px; padding: 10px 14px; border: 1px solid #ccd8d3; border-radius: 6px; background: #fff; color: #243c35; font: inherit; text-align: start; cursor: pointer; letter-spacing: 0; }
.ms-trigger span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; min-width: 0; }
.ms-trigger svg { width: 18px; height: 18px; flex: none; }
.ms-trigger:disabled { opacity: .55; cursor: default; }
.ms-trigger:focus-visible,.ms-dialog :focus-visible { outline: 2px solid #23796a; outline-offset: 2px; }
.model-picker { width: 280px; max-width: calc(100vw - 110px); min-width: 0; }
.model-picker > svg { display: none; }
.calculator > label,.snippet-controls > label,.model-controls > label { min-width: 0; }
.ms-dialog { box-sizing: border-box; width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); height: min(620px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); padding: 20px; border: 1px solid #cbd9d3; border-radius: 8px; background: #fff; color: #243c35; margin: auto; box-shadow: 0 16px 60px #162d3226; letter-spacing: 0; }
.ms-dialog[open] { display: flex; flex-direction: column; gap: 16px; }
.ms-dialog::backdrop { background: #172c354d; }
.ms-head { display: flex; align-items: center; justify-content: space-between; padding: 0; gap: 16px; background: transparent; position: static; flex: none; }
.ms-head h2 { font-size: 20px; margin: 0; line-height: 1.4; }
.ms-close { width: 36px; height: 36px; padding: 8px; border: 0; border-radius: 4px; background: transparent; color: inherit; cursor: pointer; }
.ms-close svg { width: 20px; height: 20px; }
.ms-filters { display: grid; grid-template-columns: minmax(0,1fr) 155px; gap: 10px; flex: none; }
.ms-filters input,.ms-filters select { box-sizing: border-box; width: 100%; min-width: 0; height: 44px; padding: 8px 10px; font: inherit; font-size: 15px; color: inherit; border: 1px solid #cbd9d3; border-radius: 5px; background: #fff; }
.ms-status { margin: 0; font-size: 13px; color: #586b66; flex: none; }
.ms-results { overflow-y: auto; overscroll-behavior: contain; min-height: 0; flex: 1; }
.ms-option { display: grid; grid-template-columns: minmax(0,1fr) 22px; gap: 4px 12px; width: 100%; min-height: 62px; padding: 10px 12px; text-align: start; border: 0; border-bottom: 1px solid #edf0ee; border-radius: 4px; background: #fff; color: inherit; cursor: pointer; font: inherit; }
.ms-option strong { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ms-option small { grid-column: 1; font-size: 12px; color: #60736c; }
.ms-check { grid-column: 2; grid-row: 1 / 3; align-self: center; color: #176b54; }
.ms-option:hover,.ms-option[aria-pressed=true] { background: #eaf3ee; }
@media(max-width: 480px) { .ms-dialog { padding: 16px; } .ms-filters { grid-template-columns: minmax(0,1fr); } .model-picker { width: 235px; } }
