
.models-dialog{width:min(800px,calc(100vw - 28px));padding:22px;max-height:calc(100dvh - 32px)}
.models-dialog>.muted{margin-bottom:12px;font-size:12px}.models-dialog .model-search{padding:10px 12px;margin:10px 0 8px;min-height:38px;font-size:13px}.models-dialog .model-sort-chips{gap:5px}.models-dialog .model-sort-chip{padding:6px 10px;font-size:12px;min-height:30px}.models-dialog #model-status-note{font-size:11px;margin:6px 0 10px}
.models-dialog .model-list{display:flex;flex-direction:column;gap:0;overflow:visible;max-height:none;padding:0;border:1px solid var(--border,#e2e8df);border-radius:12px}
.model-option-wrapper{display:grid;grid-template-columns:minmax(0,1fr) 140px;align-items:center;border-bottom:1px solid var(--border,#e2e8df);padding:0 10px 0 0;margin:0;min-height:66px;background:var(--surface,#fff);gap:8px}.model-option-wrapper:first-child{border-radius:12px 12px 0 0}.model-option-wrapper:last-child{border-bottom:0;border-radius:0 0 12px 12px}.model-option-wrapper.is-selected{background:#edf5e8;box-shadow:inset 3px 0 #719760}
.models-dialog .model-option-wrapper .model-option{display:grid;grid-template-columns:28px minmax(0,1fr) 110px 14px;gap:10px;width:100%;min-height:64px;padding:10px 12px;border:0;border-radius:0;background:transparent;box-shadow:none;transform:none}.models-dialog .model-option-wrapper .model-option:hover{background:#edf3e980}.models-dialog .model-initial{width:28px;height:28px;background:transparent;border:0}.models-dialog .model-initial .model-logo{width:24px;height:24px}.models-dialog .model-info strong{font-size:13px}.models-dialog .model-header-line{gap:5px;flex-wrap:wrap}.models-dialog .model-meta-line{margin-top:4px;font-size:11px;gap:6px}.models-dialog .model-health{font-size:11px}.models-dialog .model-latency{font-size:10px;padding:2px 4px}.models-dialog .model-plus-tag,.models-dialog .model-default-tag,.models-dialog .model-fun-tag{font-size:9px;padding:2px 4px}
.model-token-prices{font-size:12px;line-height:1.4;text-align:right;white-space:nowrap;color:var(--muted,#65765e);font-variant-numeric:tabular-nums}.model-price-divider{opacity:.5}
.model-channel-controls{display:flex;gap:0;padding:2px;margin:0;border:1px solid var(--border,#dce5d5);border-radius:8px;background:var(--surface,#f5f7f2)}.model-channel-controls button{flex:1;border:0;border-radius:6px;background:transparent;color:inherit;padding:6px 4px;font-size:11px;line-height:1.3;cursor:pointer;min-height:28px}.model-channel-controls button[aria-pressed="true"]{background:#dcebcf;color:#294422;box-shadow:0 1px 2px #203c1510}.model-channel-controls button:disabled{opacity:.5;cursor:default}.model-channel-controls button:focus-visible{outline:2px solid #73995e;outline-offset:1px}
.model-list-labels{display:flex;justify-content:space-between;gap:10px;color:var(--muted,#71816b);font-size:10px;margin:8px 0;padding:0 10px}.model-cheap-warning{margin:8px 0;padding:9px 11px;border:1px solid #e7d7af;border-radius:8px;background:#fff9ed;color:#966b24;font-size:12px;line-height:1.4}.model-cheap-warning[hidden]{display:none}.models-dialog .model-pricing{margin-top:12px;padding-top:10px}
@media(max-width:600px){.models-dialog{padding:17px 13px}.model-option-wrapper{grid-template-columns:minmax(0,1fr);padding:0;gap:0;min-height:64px}.models-dialog .model-option-wrapper .model-option{grid-template-columns:24px minmax(0,1fr) 87px 12px;gap:7px;padding:10px 9px;min-height:64px}.models-dialog .model-info strong{font-size:12px}.models-dialog .model-meta-line{flex-wrap:wrap;gap:3px;font-size:10px}.models-dialog .model-health{font-size:10px}.model-token-prices{font-size:11px}.model-channel-controls{justify-self:end;width:140px;margin:0 9px 8px}.model-channel-controls button{min-height:28px}.model-channel-empty{display:none}.model-list-labels{font-size:9px;padding:0 5px;align-items:end}.model-list-labels span:last-child{max-width:120px;text-align:right}.models-dialog .model-sort-chip{font-size:11px;padding:6px 8px}.model-cheap-warning{font-size:11px}.models-dialog .model-default-tag{display:none}}
.models-dialog .model-sort-bar{margin:8px 0 2px}.models-dialog>.muted{margin-bottom:8px}.model-list-labels{padding-right:180px}.models-dialog .model-list{max-height:min(450px,calc(100dvh - 270px));overflow-y:auto;overscroll-behavior:contain;scrollbar-gutter:stable}.models-dialog:has(#model-cheap-warning:not([hidden])) .model-list{max-height:min(410px,calc(100dvh - 320px))}@media(max-width:600px){.model-list-labels{padding:0 5px}.models-dialog .model-list{max-height:calc(100dvh - 285px)}.models-dialog:has(#model-cheap-warning:not([hidden])) .model-list{max-height:calc(100dvh - 340px)}}
.model-option-wrapper{flex-shrink:0}@media(max-width:600px){.models-dialog>.muted,.models-dialog .model-sort-caption{display:none}.models-dialog .dialog-heading{margin-bottom:10px}.models-dialog .model-sort-bar{margin:5px 0 2px}.models-dialog .model-pricing{margin-top:8px;padding-top:8px}}
@media(max-width:600px){.models-dialog .model-list{max-height:calc(100dvh - 325px)}.models-dialog:has(#model-cheap-warning:not([hidden])) .model-list{max-height:calc(100dvh - 380px)}.model-option-wrapper.has-channel{position:relative}.models-dialog .has-channel .model-option{min-height:100px;grid-template-columns:24px minmax(0,1fr) 94px 12px;align-items:start}.models-dialog .has-channel .model-initial{margin-top:3px}.models-dialog .has-channel .model-token-prices{padding-top:3px}.models-dialog .has-channel .model-check{padding-top:3px}.models-dialog .has-channel .model-channel-controls{position:absolute;right:9px;bottom:7px;width:128px;margin:0}.models-dialog .model-channel-controls button{padding:5px 3px;font-size:10px}}
.models-dialog[open]{display:flex;flex-direction:column;height:min(720px,calc(100dvh - 32px));overflow:hidden}.models-dialog>:not(.model-list){flex-shrink:0}.models-dialog .model-list{flex:1 1 auto;min-height:100px;max-height:none!important;overflow-y:auto}.models-dialog .model-pricing[open]{max-height:180px;overflow:auto;flex-shrink:1}

.models-dialog.model-list-filtered{height:auto}.models-dialog.model-list-filtered .model-list{flex:0 1 auto;min-height:0;max-height:calc(100dvh - 350px)!important}

/* Highlight the entire row, including the channel column. */
.models-dialog .model-option-wrapper .model-option:hover{background:transparent}
.models-dialog .model-option-wrapper:has(.model-option:not(:disabled)):hover{background:#edf3e9}
.models-dialog .model-option-wrapper.is-selected:hover{background:#e4efdc}


/* Theme overrides for model list row and channels */
[data-theme="dark"] .model-option-wrapper,
[data-theme="oled"] .model-option-wrapper,
[data-theme="emerald"] .model-option-wrapper {
  background: var(--surface) !important;
  border-bottom: 1px solid var(--border) !important;
}
[data-theme="dark"] .model-option-wrapper:has(.model-option:not(:disabled)):hover,
[data-theme="oled"] .model-option-wrapper:has(.model-option:not(:disabled)):hover,
[data-theme="emerald"] .model-option-wrapper:has(.model-option:not(:disabled)):hover {
  background: var(--surface-2) !important;
}
[data-theme="dark"] .model-option-wrapper.is-selected,
[data-theme="oled"] .model-option-wrapper.is-selected,
[data-theme="emerald"] .model-option-wrapper.is-selected {
  background: var(--surface-2) !important;
  box-shadow: inset 3px 0 var(--accent) !important;
}
[data-theme="dark"] .model-option-wrapper.is-selected:hover,
[data-theme="oled"] .model-option-wrapper.is-selected:hover,
[data-theme="emerald"] .model-option-wrapper.is-selected:hover {
  background: var(--surface-3) !important;
}
[data-theme="dark"] .model-channel-controls,
[data-theme="oled"] .model-channel-controls,
[data-theme="emerald"] .model-channel-controls {
  background: var(--input-bg) !important;
  border-color: var(--border) !important;
}
[data-theme="dark"] .model-channel-controls button,
[data-theme="oled"] .model-channel-controls button,
[data-theme="emerald"] .model-channel-controls button {
  color: var(--muted) !important;
}
[data-theme="dark"] .model-channel-controls button[aria-pressed="true"],
[data-theme="oled"] .model-channel-controls button[aria-pressed="true"],
[data-theme="emerald"] .model-channel-controls button[aria-pressed="true"] {
  background: var(--surface-3) !important;
  color: var(--text) !important;
  box-shadow: 0 1px 3px rgba(0,0,0,0.4) !important;
}
