/* 美学影像馆局部收束：本文件在主题层之后加载，仅覆盖方案与结果区。 */

.prompt-head { gap: 8px; }
.prompt-head-actions { margin-left: auto; }

/* 顶部收藏夹入口采用实色底，避免浅色主题下与面板融在一起。 */
.fav-menu-btn {
  background: color-mix(in srgb, var(--ui-panel) 94%, #e6edf8 6%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-theme="dark"] .fav-menu-btn { background: #18304f; }

/* 与电商工坊的「方案生成」同为独立蓝色主操作，不纳入收藏 / 刷新 / 多选的玻璃控件组。 */
.prompt-head > .plan-generate-btn {
  flex: none;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, .38);
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(180deg, #2997ff, #0071e3);
  box-shadow: 0 8px 18px rgba(0, 113, 227, .24), inset 0 1px 0 rgba(255, 255, 255, .35);
  font-size: .82rem;
  font-weight: 750;
}
.prompt-head > .plan-generate-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #42a5ff, #0077ed);
  box-shadow: 0 11px 20px rgba(0, 113, 227, .28), inset 0 1px 0 rgba(255, 255, 255, .4);
}
.prompt-head > .plan-generate-btn:disabled { opacity: .46; cursor: not-allowed; box-shadow: none; }

/* 方案卡：保持信息完整，但压缩为紧凑、易扫读的卡片。 */
.plan-list { gap: 8px; }
.plan-pill {
  min-height: 0;
  padding: 5px 6px 6px;
  gap: 3px;
  align-items: stretch;
}
.plan-pill-head {
  min-height: 22px;
  padding: 2px 5px;
  border: 1px solid rgba(176, 145, 92, .46);
  border-radius: 6px;
  background: linear-gradient(135deg, #fff5df 0%, #ead8b3 52%, #cdb17b 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .78), 0 1px 2px rgba(104, 79, 40, .14);
  color: #594624;
}
.plan-pill.active .plan-pill-head,
.plan-pill.selected .plan-pill-head { color: #493a1e; }
.plan-pill-name { color: inherit !important; font-size: .82rem; font-weight: 800; }
.plan-pill-label {
  min-height: 0;
  font-size: .82rem;
  line-height: 1.3;
  text-align: left;
  -webkit-line-clamp: 1;
}
.plan-pill-tags { gap: 3px; margin-top: 2px; }
.plan-pill-tag { padding: 2px 5px; font-size: .72rem; line-height: 1.3; }
.plan-pill .fav-heart {
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: auto;
  min-width: 0;
  height: 18px;
  margin: 0;
  padding: 0 3px;
  border: 0;
  border-radius: 5px;
  color: #5a3504;
  background: rgba(255, 248, 214, .36);
  font-size: .62rem;
}
.plan-pill .fav-heart:hover,
.plan-pill .fav-heart.faved { color: #c81e3a; background: rgba(255, 247, 240, .72); }
.plan-pill .fav-heart-icon { width: 10px; height: 10px; }
.plan-pill--pending .plan-pill-head { background: var(--apple-control-bg); border-color: var(--apple-control-border); box-shadow: none; color: var(--ui-muted); }

/* 「当前结果 / 历史记录」保留切换按钮，移除外层包裹框。 */
.result-tabs-left { padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

/* 收藏夹：提高实体感、扩宽抽屉，并把方案重点标签压成最多两行。 */
.fav-menu {
  width: 410px;
  max-width: calc(100vw - 24px);
  background: #f8fbff;
  box-shadow: 0 14px 32px rgba(7, 18, 37, .26), inset 0 1px 0 rgba(255, 255, 255, .18);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root[data-theme="dark"] .fav-menu { background: #14263f; }
:root:not([data-theme="dark"]) .fav-menu-header,
:root:not([data-theme="dark"]) .fav-menu-toolbar,
:root:not([data-theme="dark"]) .fav-menu-footer { background: #eff5fd; }
.fav-menu-body { max-height: 360px; padding: 6px; }
.fav-entry { align-items: flex-start; gap: 9px; padding: 8px 9px; }
.fav-entry-info { gap: 4px; }
.fav-entry-title { font-size: .78rem; line-height: 1.2; }
.fav-entry-tags { display: flex; flex-wrap: wrap; gap: 3px 4px; max-height: 34px; overflow: hidden; }
.fav-entry-tag {
  max-width: 185px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 2px 5px;
  border: 1px solid color-mix(in srgb, var(--apple-control-border) 82%, transparent);
  border-radius: 999px;
  color: var(--ui-muted);
  background: var(--apple-control-bg);
  font-size: .62rem;
  line-height: 1.2;
}

/* 临时提示词仍由状态层维护，但不再作为前台编辑区展示。 */
.plan-prompt-test[hidden] { display: none !important; }

/* 进度状态比正文小一级；仅在进行中追加防重复提交提醒。 */
.progress-bar-text { font-size: .7rem; line-height: 1.35; }
