.ai-model-picker {
  --model-picker-border: rgba(100, 116, 139, 0.24);
  --model-picker-panel: rgba(255, 255, 255, 0.92);
  display: grid;
  min-width: min(100%, 360px);
  gap: 10px;
  color: inherit;
}

.ai-model-picker[hidden] {
  display: none !important;
}

.ai-model-picker__selectors,
.ai-model-picker__reasoning {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.ai-model-picker__field {
  display: grid;
  gap: 4px;
  min-width: 0;
  margin: 0;
}

.ai-model-picker__field > span {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ai-model-picker__field select {
  width: 100%;
  min-width: 0;
}

.ai-model-picker__reasoning {
  padding: 9px;
  border: 1px solid rgba(76, 110, 245, 0.18);
  border-radius: 12px;
  background: rgba(76, 110, 245, 0.06);
}

.ai-model-picker__reasoning > small {
  grid-column: 1 / -1;
  color: #755318;
  line-height: 1.45;
}

.ai-model-picker__card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--model-picker-border);
  border-radius: 14px;
  background: var(--model-picker-panel);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.ai-model-picker__card-head,
.ai-model-picker__card footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-model-picker__card-head > div:first-child {
  display: grid;
  gap: 2px;
}

.ai-model-picker__card-head strong {
  color: #0f172a;
  font-size: 14px;
}

.ai-model-picker__card-head [data-ai-model-positioning] {
  color: #475569;
  font-size: 12px;
}

.ai-model-picker__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 5px;
}

.ai-model-picker__badges span {
  padding: 2px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #4338ca;
  font-size: 10px;
  white-space: nowrap;
}

.ai-model-picker__card p {
  margin: 0;
  color: #334155;
  font-size: 12px;
  line-height: 1.55;
}

.ai-model-picker__tradeoff {
  color: #64748b !important;
}

.ai-model-picker__facts,
.ai-model-picker__benchmarks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
}

.ai-model-picker__facts > div,
.ai-model-picker__benchmarks > div {
  display: grid;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(241, 245, 249, 0.88);
}

.ai-model-picker__facts dt,
.ai-model-picker__benchmarks span {
  color: #64748b;
  font-size: 10px;
}

.ai-model-picker__facts dd,
.ai-model-picker__benchmarks strong {
  margin: 0;
  color: #0f172a;
  font-size: 12px;
}

.ai-model-picker__benchmarks {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-model-picker__no-benchmark {
  color: #64748b;
  font-size: 11px;
}

.ai-model-picker__card footer {
  align-items: center;
  color: #64748b;
  font-size: 11px;
}

.ai-model-picker__card footer a {
  color: #3157d5;
  font-weight: 700;
  text-decoration: none;
}

.ai-model-picker--compact {
  min-width: 0;
}

.ai-model-picker--compact .ai-model-picker__card {
  padding: 9px;
}

.ai-model-picker--compact .ai-model-picker__benchmarks,
.ai-model-picker--compact .ai-model-picker__facts {
  grid-template-columns: 1fr;
}

.ai-hero-composer .ai-model-picker,
.ai-composer-tools .ai-model-picker {
  flex: 1 1 430px;
  max-width: 620px;
}

.festival-inline-form .ai-model-picker,
.festival-image-controls .ai-model-picker,
.festival-ai-toolbar .ai-model-picker {
  width: 100%;
}

html[data-ai-theme="dark"] .ai-model-picker {
  --model-picker-border: rgba(148, 163, 184, 0.26);
  --model-picker-panel: rgba(21, 28, 45, 0.94);
}

html[data-ai-theme="dark"] .ai-model-picker__card-head strong,
html[data-ai-theme="dark"] .ai-model-picker__facts dd,
html[data-ai-theme="dark"] .ai-model-picker__benchmarks strong {
  color: #f8fafc;
}

html[data-ai-theme="dark"] .ai-model-picker__card p,
html[data-ai-theme="dark"] .ai-model-picker__card-head [data-ai-model-positioning] {
  color: #cbd5e1;
}

html[data-ai-theme="dark"] .ai-model-picker__field > span,
html[data-ai-theme="dark"] .ai-model-picker__facts dt,
html[data-ai-theme="dark"] .ai-model-picker__benchmarks span,
html[data-ai-theme="dark"] .ai-model-picker__no-benchmark,
html[data-ai-theme="dark"] .ai-model-picker__card footer {
  color: #cbd5e1;
}

html[data-ai-theme="dark"] .ai-model-picker__tradeoff {
  color: #94a3b8 !important;
}

html[data-ai-theme="dark"] .ai-model-picker__reasoning > small {
  color: #fde68a;
}

html[data-ai-theme="dark"] .ai-model-picker__facts > div,
html[data-ai-theme="dark"] .ai-model-picker__benchmarks > div {
  background: rgba(51, 65, 85, 0.64);
}

@media (max-width: 720px) {
  .ai-model-picker,
  .ai-hero-composer .ai-model-picker,
  .ai-composer-tools .ai-model-picker {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .ai-model-picker__selectors,
  .ai-model-picker__reasoning,
  .ai-model-picker__benchmarks {
    grid-template-columns: 1fr;
  }
}

/* 品牌优先模型选择器 v3：紧凑触发器 + 双栏弹层。 */
.ai-visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.ai-ui-icon {
  width: var(--ai-icon-size, 18px);
  height: var(--ai-icon-size, 18px);
  flex: 0 0 var(--ai-icon-size, 18px);
  display: inline-block;
  background: currentColor;
  -webkit-mask: var(--ai-icon-mask) center / contain no-repeat;
  mask: var(--ai-icon-mask) center / contain no-repeat;
}

.ai-model-picker {
  position: relative;
  display: inline-flex;
  width: min(100%, 340px);
  min-width: 210px;
  gap: 0;
  isolation: auto;
}

.ai-model-picker[hidden] {
  display: none !important;
}

.ai-model-picker.is-open {
  z-index: 1300;
}

.ai-model-picker__native-label {
  display: block;
  width: 100%;
}

.ai-model-picker.is-ready .ai-model-picker__native-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.ai-model-picker__family-native {
  position: absolute;
  inset: auto;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.ai-model-picker.is-ready .ai-model-picker__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.ai-model-picker__trigger {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) 16px;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border: 1px solid #cbd8f7;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #23406f;
  text-align: left;
  box-shadow: 0 4px 14px rgba(39, 84, 176, 0.06);
  cursor: pointer;
}

.ai-model-picker__trigger:hover,
.ai-model-picker__trigger:focus-visible,
.ai-model-picker.is-open .ai-model-picker__trigger {
  border-color: #3370ff;
  color: #155eef;
  box-shadow: 0 0 0 3px rgba(51, 112, 255, 0.10), 0 8px 20px rgba(39, 84, 176, 0.10);
  outline: none;
}

.ai-model-picker__trigger:disabled {
  cursor: not-allowed;
  opacity: 0.52;
}

.ai-model-picker__trigger-copy {
  min-width: 0;
  display: block;
  overflow: hidden;
  line-height: 1.15;
  white-space: nowrap;
}

.ai-model-picker__trigger-copy strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  color: currentColor;
  font-size: 13px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ai-model-picker__trigger-chevron {
  transition: transform 160ms ease;
}

.ai-model-picker.is-open .ai-model-picker__trigger-chevron {
  transform: rotate(180deg);
}

.ai-model-picker__popover {
  position: fixed;
  z-index: 1300;
  width: min(780px, calc(100vw - 28px));
  max-height: min(480px, calc(100vh - 28px));
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  overflow: hidden;
  border: 1px solid #d7e0f1;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.985);
  color: #14213d;
  box-shadow: 0 24px 70px rgba(22, 45, 84, 0.18), 0 4px 16px rgba(22, 45, 84, 0.08);
  backdrop-filter: blur(18px);
}

.ai-model-picker__popover[hidden] {
  display: none !important;
}

.ai-model-picker__mobile-close {
  display: none;
}

.ai-model-picker__menu {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(210px, 0.72fr) minmax(360px, 1.35fr);
  overflow: hidden;
}

.ai-model-picker__brands,
.ai-model-picker__models {
  min-width: 0;
  min-height: 0;
  padding: 18px 16px 14px;
  overflow-x: hidden;
  overflow-y: auto;
}

.ai-model-picker__brands {
  border-right: 1px solid #e1e7f0;
  background: #fbfcff;
}

.ai-model-picker__brands h3,
.ai-model-picker__models h3 {
  margin: 0 0 12px;
  color: #5e6c84;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
}

.ai-model-picker__brand-list,
.ai-model-picker__option-list {
  display: grid;
  gap: 6px;
}

.ai-model-picker__brand-option,
.ai-model-picker__model-option {
  position: relative;
  width: 100%;
  min-width: 0;
  border: 1px solid transparent;
  border-radius: 11px;
  background: transparent;
  color: #263b5c;
  cursor: pointer;
}

.ai-model-picker__brand-option {
  min-height: 46px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  text-align: left;
  font-size: 14px;
  font-weight: 780;
}

.ai-model-picker__model-option {
  min-height: 66px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) 18px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  text-align: left;
  white-space: normal;
}

.ai-model-picker__brand-option:hover,
.ai-model-picker__brand-option:focus-visible,
.ai-model-picker__model-option:hover,
.ai-model-picker__model-option:focus-visible {
  border-color: #d8e4ff;
  background: #f5f8ff;
  outline: none;
}

.ai-model-picker__brand-option[aria-selected="true"],
.ai-model-picker__model-option[aria-selected="true"] {
  border-color: #d7e4ff;
  background: linear-gradient(135deg, #f2f6ff, #edf3ff);
  color: #155eef;
}

.ai-model-picker__option-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
  overflow-wrap: anywhere;
}

.ai-model-picker__option-copy strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ai-model-picker__option-copy small {
  display: -webkit-box;
  overflow: hidden;
  color: #697995;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  white-space: normal;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.ai-model-picker__option-check {
  width: 17px;
  height: 17px;
  display: inline-block;
  background: currentColor;
  -webkit-mask: url("assets/ai/ui-icons/check.svg") center / contain no-repeat;
  mask: url("assets/ai/ui-icons/check.svg") center / contain no-repeat;
  color: #1565f5;
}

.ai-model-picker__option-check[hidden] {
  visibility: hidden;
  display: inline-block !important;
}

.ai-model-picker__option-tip {
  position: absolute;
  right: 12px;
  bottom: -30px;
  z-index: 4;
  max-width: 320px;
  padding: 7px 10px;
  border: 1px solid #dce4f1;
  border-radius: 9px;
  background: #ffffff;
  color: #52627e;
  box-shadow: 0 8px 24px rgba(31, 55, 91, 0.14);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.35;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-2px);
  transition: opacity 120ms ease, transform 120ms ease;
}

.ai-model-picker__model-option:hover .ai-model-picker__option-tip,
.ai-model-picker__model-option:focus-visible .ai-model-picker__option-tip {
  opacity: 1;
  transform: translateY(0);
}

.ai-model-picker__advanced,
.ai-model-picker__details {
  border-top: 1px solid #e1e7f0;
  background: #ffffff;
}

.ai-model-picker__advanced[hidden] {
  display: none !important;
}

.ai-model-picker__advanced summary,
.ai-model-picker__details summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  color: #52627e;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.ai-model-picker__advanced summary::-webkit-details-marker,
.ai-model-picker__details summary::-webkit-details-marker {
  display: none;
}

.ai-model-picker__advanced summary .ai-model-picker__summary-chevron {
  margin-left: auto;
  transition: transform 140ms ease;
}

.ai-model-picker__advanced[open] summary .ai-model-picker__summary-chevron {
  transform: rotate(180deg);
}

.ai-model-picker__details summary {
  justify-content: flex-end;
  color: #155eef;
}

.ai-model-picker__reasoning {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 0 18px 16px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
}

.ai-model-picker__reasoning > small {
  color: #8a5c13;
}

.ai-model-picker__field > span {
  color: #697995;
  font-size: 11px;
}

.ai-model-picker__field select {
  min-height: 38px;
  border-radius: 9px;
}

.ai-model-picker__card {
  max-height: 300px;
  gap: 9px;
  overflow-y: auto;
  padding: 0 18px 18px;
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
}

.ai-model-picker__benchmarks > div,
.ai-model-picker__facts > div {
  background: #f5f7fb;
}

.ai-model-picker--compact {
  width: min(100%, 300px);
  min-width: 180px;
}

.ai-model-brand-logo {
  --ai-brand-color: #4f6b99;
  --ai-brand-mask: url("assets/ai/ui-icons/sparkles.svg");
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-block;
  background: var(--ai-brand-color);
  -webkit-mask: var(--ai-brand-mask) center / contain no-repeat;
  mask: var(--ai-brand-mask) center / contain no-repeat;
}

.ai-model-brand-logo.has-image {
  display: inline-grid;
  place-items: center;
  background: transparent;
  -webkit-mask: none;
  mask: none;
}

.ai-model-brand-logo.has-image > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.ai-model-brand-logo.has-image[data-brand-key="kimi"],
.ai-model-brand-logo.has-image[data-brand-key="moonshot"] {
  padding: 2px;
  border-radius: 6px;
  background: #05070b;
}

.ai-model-brand-logo[data-brand-key="auto"] {
  --ai-brand-color: #5474e8;
  --ai-brand-mask: url("assets/ai/ui-icons/sparkles.svg");
}

.ai-model-brand-logo[data-brand-key="gpt"],
.ai-model-brand-logo[data-brand-key="openai"] {
  --ai-brand-color: #111827;
  --ai-brand-mask: url("assets/ai/model-brands/openai.svg");
}

.ai-model-brand-logo[data-brand-key="claude"],
.ai-model-brand-logo[data-brand-key="anthropic"] {
  --ai-brand-color: #d97757;
  --ai-brand-mask: url("assets/ai/model-brands/claude.svg");
}

.ai-model-brand-logo[data-brand-key="gemini"] {
  --ai-brand-color: #4d72f3;
  --ai-brand-mask: url("assets/ai/model-brands/googlegemini.svg");
}

.ai-model-brand-logo[data-brand-key="veo"],
.ai-model-brand-logo[data-brand-key="lyria"],
.ai-model-brand-logo[data-brand-key="gemma"],
.ai-model-brand-logo[data-brand-key="google"] {
  --ai-brand-color: #4285f4;
  --ai-brand-mask: url("assets/ai/model-brands/google.svg");
}

.ai-model-brand-logo[data-brand-key="deepseek"] {
  --ai-brand-color: #4d6bfe;
  --ai-brand-mask: url("assets/ai/model-brands/deepseek.svg");
}

.ai-model-brand-logo[data-brand-key="minimax"] {
  --ai-brand-color: #ec1c24;
  --ai-brand-mask: url("assets/ai/model-brands/minimax.svg");
}

.ai-model-brand-logo[data-brand-key="qwen"] {
  --ai-brand-color: #615ced;
  --ai-brand-mask: url("assets/ai/model-brands/qwen.svg");
}

.ai-model-brand-logo[data-brand-key="kimi"],
.ai-model-brand-logo[data-brand-key="moonshot"] {
  --ai-brand-color: #1783ff;
  --ai-brand-mask: url("assets/ai/model-brands/moonshotai.svg");
}

.ai-model-brand-logo[data-brand-key="llama"],
.ai-model-brand-logo[data-brand-key="meta"] {
  --ai-brand-color: #0467df;
  --ai-brand-mask: url("assets/ai/model-brands/meta.svg");
}

.ai-model-brand-logo[data-brand-key="suno"] {
  --ai-brand-color: #111827;
  --ai-brand-mask: url("assets/ai/model-brands/suno.svg");
}

.ai-model-brand-logo[data-brand-key="runway"] {
  background: transparent url("assets/ai/model-brands/runway.png") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

.ai-model-brand-logo[data-brand-key="kling"] {
  --ai-brand-color: #ff4906;
  --ai-brand-mask: url("assets/ai/model-brands/kuaishou.svg");
}

.ai-model-brand-logo[data-brand-key="seedance"] {
  background: transparent url("assets/ai/model-brands/jimeng.png") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

.ai-model-brand-logo[data-brand-key="doubao"] {
  background: transparent url("assets/ai/model-brands/doubao.png") center / contain no-repeat;
  -webkit-mask: none;
  mask: none;
}

.ai-model-brand-logo[data-brand-key="bytedance"] {
  --ai-brand-color: #325ee6;
  --ai-brand-mask: url("assets/ai/model-brands/bytedance.svg");
}

.ai-model-brand-logo[data-brand-key="other"] {
  --ai-brand-color: #7b879c;
  --ai-brand-mask: url("assets/ai/ui-icons/sparkles.svg");
}

.ai-model-brand-logo[data-brand-key="grok"] {
  --ai-brand-color: #111827;
  --ai-brand-mask: url("assets/ai/model-brands/x.svg");
}

.ai-model-brand-logo[data-brand-key="wan"],
.ai-model-brand-logo[data-brand-key="happyhorse"],
.ai-model-brand-logo[data-brand-key="alibaba"] {
  --ai-brand-color: #ff6a00;
  --ai-brand-mask: url("assets/ai/model-brands/alibabacloud.svg");
}

.ai-model-brand-logo[data-brand-key="voxtral"],
.ai-model-brand-logo[data-brand-key="mistral"] {
  --ai-brand-color: #fa520f;
  --ai-brand-mask: url("assets/ai/model-brands/mistralai.svg");
}

.ai-model-brand-logo[data-brand-key="mai"],
.ai-model-brand-logo[data-brand-key="microsoft"] {
  --ai-brand-color: #2563eb;
  --ai-brand-mask: url("assets/ai/model-brands/microsoft.svg");
}

/* 后台和旧表单中的原生模型选择框也带品牌标识。 */
.ai-native-model-shell {
  position: relative;
  min-width: 0;
  display: inline-block;
  width: 100%;
}

.ai-native-model-shell > select {
  width: 100%;
  padding-left: 39px !important;
}

.ai-native-model-shell > .ai-model-brand-logo {
  position: absolute;
  left: 11px;
  top: 50%;
  z-index: 2;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  pointer-events: none;
}

.ai-native-model-choice > .ai-native-model-choice__logo {
  width: 18px;
  height: 18px;
  display: inline-block;
  flex: 0 0 18px;
  margin: 0 4px;
  vertical-align: middle;
}

html[data-ai-theme="dark"] .ai-model-picker__trigger,
html[data-ai-theme="dark"] .ai-model-picker__popover,
html[data-ai-theme="dark"] .ai-model-picker__advanced,
html[data-ai-theme="dark"] .ai-model-picker__details,
html[data-ai-theme="dark"] .ai-model-picker__reasoning,
html[data-ai-theme="dark"] .ai-model-picker__card {
  border-color: rgba(148, 163, 184, 0.24);
  background: rgba(15, 27, 45, 0.985);
  color: #eef4ff;
}

html[data-ai-theme="dark"] .ai-model-picker__brands {
  border-color: rgba(148, 163, 184, 0.20);
  background: #0c1728;
}

html[data-ai-theme="dark"] .ai-model-picker__brand-option,
html[data-ai-theme="dark"] .ai-model-picker__model-option,
html[data-ai-theme="dark"] .ai-model-picker__trigger-copy > span,
html[data-ai-theme="dark"] .ai-model-picker__advanced summary {
  color: #c8d4e8;
}

html[data-ai-theme="dark"] .ai-model-picker__brand-option:hover,
html[data-ai-theme="dark"] .ai-model-picker__brand-option[aria-selected="true"],
html[data-ai-theme="dark"] .ai-model-picker__model-option:hover,
html[data-ai-theme="dark"] .ai-model-picker__model-option[aria-selected="true"] {
  border-color: rgba(91, 140, 255, 0.32);
  background: rgba(37, 99, 235, 0.16);
  color: #9dbbff;
}

html[data-ai-theme="dark"] .ai-model-picker__option-copy small,
html[data-ai-theme="dark"] .ai-model-picker__brands h3,
html[data-ai-theme="dark"] .ai-model-picker__models h3 {
  color: #96a3b8;
}

html[data-ai-theme="dark"] .ai-model-picker__facts > div,
html[data-ai-theme="dark"] .ai-model-picker__benchmarks > div,
html[data-ai-theme="dark"] .ai-model-picker__option-tip {
  border-color: rgba(148, 163, 184, 0.22);
  background: #152238;
  color: #c8d4e8;
}

@media (max-width: 720px) {
  .ai-model-picker,
  .ai-model-picker--compact,
  .ai-hero-composer .ai-model-picker,
  .ai-composer-tools .ai-model-picker {
    width: 100%;
    min-width: 0;
    max-width: none;
  }

  .ai-model-picker__popover {
    left: 12px !important;
    right: 12px !important;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    width: auto;
    max-height: min(76vh, 620px);
    border-radius: 18px;
  }

  .ai-model-picker__mobile-close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 3;
    min-width: 42px;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 10px;
    border: 1px solid #dce4f1;
    border-radius: 10px;
    background: #ffffff;
    color: #52627e;
    font-size: 12px;
    font-weight: 760;
  }

  .ai-model-picker__menu {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .ai-model-picker__brands {
    overflow-x: auto;
    overflow-y: hidden;
    border-right: 0;
    border-bottom: 1px solid #e1e7f0;
    padding: 14px 62px 10px 14px;
  }

  .ai-model-picker__brand-list {
    display: flex;
    gap: 6px;
  }

  .ai-model-picker__brand-option {
    width: auto;
    min-width: max-content;
    grid-template-columns: 20px auto 16px;
    min-height: 40px;
  }

  .ai-model-picker__models {
    padding: 14px;
  }

  .ai-model-picker__option-tip {
    display: none;
  }

  .ai-model-picker__reasoning,
  .ai-model-picker__facts,
  .ai-model-picker__benchmarks {
    grid-template-columns: 1fr;
  }
}
