/* The agent's button-based picker shares the canvas custom-select surface,
   spacing and colors from select-skill-v228.css. Scope every override to this
   picker so other menus and the compact trigger retain their behavior. */
html[data-theme] .agent-model-picker .agent-model-popover {
  box-sizing: border-box;
  padding: 5px;
  background: var(--oa-panel, #151515);
  color: var(--oa-text, #f4f4f5);
  border: 1px solid var(--oa-border-strong, #484848);
  border-radius: 9px;
  box-shadow: 0 10px 28px #0004;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.5;
}
/* Its dialog already has an accessible name, matching the untitled shared list. */
html[data-theme] .agent-model-picker .agent-model-popover > b { display: none; }
html[data-theme] .agent-model-picker .agent-model-options {
  max-height: min(300px, 40dvh);
  margin: 0;
  padding: 0;
}
html[data-theme] .agent-compose-toolbar .agent-model-picker .agent-model-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  box-sizing: border-box;
  gap: 9px;
  width: 100%;
  height: auto;
  min-height: 34px;
  margin: 0;
  /* 14px check column + 9px gap, the same as .ailink-select-option. */
  padding: 7px 10px 7px 33px;
  border: 0 !important;
  border-radius: 5px;
  outline: 0;
  box-shadow: none !important;
  background: transparent !important;
  color: var(--oa-text, #f4f4f5) !important;
  font: inherit;
  font-size: 12px;
  line-height: 1.5;
  text-align: start;
  cursor: pointer;
}
html[data-theme] .agent-model-picker .agent-model-option > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
  text-overflow: clip;
}
html[data-theme] .agent-model-picker .agent-model-option > span[aria-hidden="true"] {
  position: absolute;
  left: 10px;
  width: 14px;
  color: var(--oa-accent, #edfdb5);
  font-weight: 600;
}
html[data-theme] .agent-compose-toolbar .agent-model-picker .agent-model-option:is(:hover, :focus-visible) {
  background: var(--oa-hover, #242424) !important;
}
html[data-theme] .agent-compose-toolbar .agent-model-picker .agent-model-option[aria-pressed="true"] {
  color: var(--oa-accent, #edfdb5) !important;
}
/* Reuse the platform's shared violet NEW badge without giving it a check slot. */
html[data-theme] .agent-model-picker .agent-model-option .model-new-badge {
  flex: 0 0 auto;
  margin: 0;
  padding: 0 5px;
  border: 1px solid #cae470;
  border-radius: 4px;
  background: #b4d934;
  color: #fff;
  font-size: 10px;
  font-style: italic;
  font-weight: 700;
  line-height: 17px;
  letter-spacing: .02em;
  white-space: nowrap;
}
