/* 快捷创作页模型选择器：状态与平均时长展示 */
.qx-model-picker { position: relative; display: inline-flex; min-width: 0; flex: 0 1 auto; }
.qx-model-picker > select {
  position: absolute; left: 0; bottom: 0; width: 1px; height: 1px;
  opacity: 0; pointer-events: none; border: 0; padding: 0; margin: 0;
}
.qx-mp-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  max-width: 236px; min-height: 32px; padding: 0 9px;
  border: 1px solid #4a4b53; border-radius: 8px; background: #1d1e22;
  color: #eceae7; font-size: 12px; cursor: pointer;
  transition: border-color .15s, background .15s;
}
.qx-mp-trigger:hover:not(:disabled),
.qx-mp-trigger[aria-expanded="true"] { border-color: #c59a82; background: #232429; }
.qx-mp-trigger:disabled { opacity: .6; cursor: default; }
.qx-mp-name { min-width: 0; max-width: 138px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-mp-meta { font-style: normal; color: #8f9aa6; font-size: 10px; white-space: nowrap; }
.qx-mp-caret { color: #8f9aa6; font-size: 9px; }
.qx-mp-dot { flex: none; width: 6px; height: 6px; border-radius: 50%; background: #55606c; }
.qx-mp-dot[data-state="ok"] { background: #5fc98a; box-shadow: 0 0 0 3px rgba(95, 201, 138, .12); }
.qx-mp-dot[data-state="warn"] { background: #e0a75c; box-shadow: 0 0 0 3px rgba(224, 167, 92, .12); }
.qx-mp-dot[data-state="bad"] { background: #e0736a; box-shadow: 0 0 0 3px rgba(224, 115, 106, .12); }
.qx-mp-dot[data-state="empty"] { background: #6b7683; }
.qx-mp-dot[data-state="unknown"] { background: #4c5560; }

.qx-mp-panel {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 70;
  width: min(430px, calc(100vw - 28px)); max-height: min(430px, 62vh);
  overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px; border: 1px solid #3a3f49; border-radius: 14px;
  background: #15171c; box-shadow: 0 22px 60px rgba(0, 0, 0, .62);
  backdrop-filter: blur(10px);
}
.qx-mp-panel[hidden] { display: none; }
.qx-mp-group { display: flex; flex-direction: column; gap: 2px; }
.qx-mp-group + .qx-mp-group { margin-top: 22px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .1); }
.qx-mp-label {
  margin: 0 8px 8px; padding-left: 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  color: #b7c1cd; border-left: 3px solid #6f8cff;
}
.qx-mp-group:first-child .qx-mp-label { margin-top: 16px; }
.qx-mp-item {
  display: flex; flex-direction: column; gap: 3px; width: 100%;
  padding: 8px 10px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; color: #dfe3e8; text-align: left; cursor: pointer;
}
.qx-mp-item:hover, .qx-mp-item:focus-visible { background: #20232a; border-color: #333a44; outline: 0; }
.qx-mp-item.is-active { background: #262a33; border-color: #c98f72; }
.qx-mp-item:disabled { opacity: .45; cursor: not-allowed; }
.qx-mp-row { display: flex; align-items: baseline; gap: 8px; width: 100%; min-width: 0; }
.qx-mp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.qx-mp-price { flex: none; font-style: normal; font-size: 11px; color: #e0b184; }
.qx-mp-sub { display: flex; align-items: center; gap: 6px; font-size: 10px; color: #8b95a0; }
.qx-mp-state { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qx-mp-time { margin-left: auto; font-style: normal; color: #93a1ad; }
.qx-mp-empty { padding: 12px; color: #77828e; font-size: 11px; text-align: center; }
.qx-mp-refresh {
  margin: 0 0 4px; padding: 7px 9px; width: 100%;
  border: 1px solid #5a4a35; border-radius: 9px; background: #2a2118;
  color: #e6b98a; font-size: 11px; text-align: left; cursor: pointer;
}
.qx-mp-refresh:hover { background: #332818; border-color: #7a6440; }
@media (max-width: 600px) {
  .qx-mp-trigger { max-width: 168px; }
  .qx-mp-name { max-width: 88px; }
  .qx-mp-meta { display: none; }
}
