/* Refined controls for the isolated console preview. */
.composer {
  border-color: #363943;
  background: #09090b;
  box-shadow: 0 10px 34px #00000026;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.composer:focus-within { border-color: #717795; box-shadow: 0 0 0 1px #6e75962b, 0 10px 34px #00000026; }
.composer textarea { resize: vertical; padding: 19px 20px; font-size: 13px; line-height: 1.6; }
.composer-bottom { align-items: end; padding: 0 13px 13px; }
.composer-controls { gap: 6px; }
.select-wrap.enhanced-select { display: inline-flex; height: auto; max-width: min(230px, 100%); padding: 0; border: 0; border-radius: 0; background: none; }
.native-select { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
.choice-trigger {
  height: 36px; max-width: 230px; display: inline-flex; align-items: center; gap: 8px;
  padding: 0 11px; border: 1px solid #363943; border-radius: 8px;
  background: #17181d; color: #d4d6df; font-size: 12px; font-weight: 500;
  white-space: nowrap; transition: border-color .16s ease, background .16s ease, color .16s ease;
}
.choice-trigger:hover { color: #fff; background: #202127; border-color: #555a69; }
.choice-trigger[aria-expanded="true"] { color: #fff; background: #22232b; border-color: #858ba8; }
.choice-value { overflow: hidden; text-overflow: ellipsis; }
.choice-trigger .choice-chevron { width: 14px; height: 14px; color: #9298a9; transition: transform .16s ease; }
.choice-trigger[aria-expanded="true"] .choice-chevron { transform: rotate(180deg); }
.choice-model-mark { width: 20px; height: 20px; display: grid; place-items: center; flex: 0 0 20px; border-radius: 6px; color: #c9cbff; background: #39394d; }
.choice-model-mark svg { width: 12px; height: 12px; }
.choice-menu {
  position: fixed; z-index: 100; display: flex; flex-direction: column; overflow: hidden;
  padding: 7px; border: 1px solid #41434e; border-radius: 8px;
  background: #17181d; box-shadow: 0 18px 44px #000b, 0 2px 8px #0008;
  animation: choice-appear .14s ease-out;
}
@keyframes choice-appear { from { opacity: 0; transform: translateY(-3px); } to { opacity: 1; transform: translateY(0); } }
.choice-menu.opens-up { animation-name: choice-appear-up; }
@keyframes choice-appear-up { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
.choice-heading { padding: 7px 9px 9px; color: #9fa4b3; font-size: 11px; font-weight: 600; }
.choice-search { min-height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 10px; margin: 0 0 6px; border: 1px solid #393b46; border-radius: 6px; background: #0d0e11; color: #9299a9; }
.choice-search:focus-within { border-color: #858ba8; }
.choice-search svg { width: 15px; height: 15px; }
.choice-search input { min-width: 0; width: 100%; height: 34px; padding: 0; border: 0; outline: 0; background: transparent; color: #f4f4f7; font-size: 12px; }
.choice-search input::placeholder { color: #858b9a; }
.choice-search input::-webkit-search-cancel-button { cursor: pointer; }
.choice-list { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #545661 transparent; }
.choice-list::-webkit-scrollbar { width: 6px; }
.choice-list::-webkit-scrollbar-thumb { background: #545661; border-radius: 8px; }
.choice-option { width: 100%; min-height: 38px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border: 0; border-radius: 5px; background: transparent; color: #d5d7e0; text-align: left; }
.choice-option:hover, .choice-option:focus-visible { outline: none; background: #292b34; color: #fff; }
.choice-option[aria-selected="true"] { background: #30313e; color: #fff; }
.choice-option-text { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.choice-option-name { overflow-wrap: anywhere; font-size: 12px; line-height: 1.25; }
.choice-option-meta { color: #9ba0af; font-size: 10px; line-height: 1.2; }
.choice-check { display: none; color: #b6bafe; }
.choice-option[aria-selected="true"] .choice-check { display: inline-flex; }
.choice-check svg { width: 15px; height: 15px; }
.choice-empty { padding: 16px 10px; color: #a4a8b6; font-size: 12px; }
.more-control { min-height: 36px; border-radius: 8px; background: #101115; font-size: 12px; transition: background .16s ease, border-color .16s ease, color .16s ease; }
.more-control:hover, .more-control[aria-expanded="true"] { background: #202127; border-color: #555a69; color: #fff; }
.send-button { transition: background .16s ease, transform .16s ease, box-shadow .16s ease; }
.send-button:hover { box-shadow: 0 3px 14px #666edb4d; }
.send-button:active { transform: scale(.96); }
.extra-settings { background: #101115; border-radius: 0 0 11px 11px; line-height: 1.6; }
.extra-settings label { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.extra-settings input::file-selector-button { margin-right: 10px; padding: 7px 10px; border: 1px solid #454854; border-radius: 5px; background: #22232a; color: #ececf2; cursor: pointer; }
.template-tabs button, .prompt-chips button, .filter-chip { transition: background .15s ease, border-color .15s ease, color .15s ease; }
.example { transition: border-color .18s ease; }
.example img { transition: transform .25s ease; }
.example:hover img { transform: scale(1.025); }
.example-play span { transition: background .18s ease, transform .18s ease; }
.video-example:hover .example-play span { background: #1d1e26e8; transform: scale(1.08); }
@media (max-width: 700px) {
  .select-wrap.enhanced-select, .choice-trigger { max-width: 190px; }
  .choice-trigger, .more-control { min-height: 40px; }
  .choice-option { min-height: 44px; }
  .composer textarea { font-size: 16px; }
}
@media (max-width: 380px) { .select-wrap.enhanced-select, .choice-trigger { max-width: 165px; } }
@media (prefers-reduced-motion: reduce) {
  .choice-menu { animation: none; }
  .choice-trigger, .choice-chevron, .send-button, .example img, .example-play span { transition: none; }
}
