/* 视频生成：提示词 @ 引用 */
.mention-source { display: none !important; }
.mention-wrap { position: relative; }
.mention-editor {
  width: 100%; min-height: 150px; max-height: 420px; overflow: auto; padding: 15px;
  border: 1px solid var(--work-line-strong, var(--line)); border-radius: 12px;
  background: var(--work-input, rgba(8,8,10,.64)); color: var(--work-text, var(--text));
  font: 13px/1.75 var(--sans); white-space: pre-wrap; word-break: break-word; caret-color: currentColor;
  outline: none; transition: border-color .2s, box-shadow .2s;
}
.mention-editor:focus { border-color: rgba(255,255,255,.7); box-shadow: 0 0 0 3px rgba(var(--blue-rgb, 37,78,255), .12); }
.mention-editor:empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.mention-chip {
  display: inline-flex; align-items: center; gap: 4px; height: 22px; margin: 0 2px; padding: 0 7px 0 3px;
  border-radius: 6px; background: rgba(var(--blue-rgb, 37,78,255), .22); color: #dfe6ff;
  font-size: 12px; line-height: 22px; vertical-align: middle; white-space: nowrap; user-select: all; cursor: default;
}
.mention-chip img { width: 18px; height: 18px; border-radius: 4px; object-fit: cover; }
.mention-chip b { font-weight: 700; }
.mention-chip span { opacity: .78; }
.mention-chip.kind-video:not(.invalid) { background: rgba(89, 201, 212, .2); color: #c9f4f8; padding-left: 7px; }
.mention-chip.kind-audio:not(.invalid) { background: rgba(232, 193, 92, .2); color: #f7e7bd; padding-left: 7px; }
.mention-chip.invalid { background: rgba(255, 92, 96, .18); color: #ff9a9d; padding-left: 7px; }
/* 2026-11-19: floats on <body> beside the caret (studio-mentions.js placePanel); the wheel scrolls only the list */
.mention-panel {
  position: fixed; z-index: 1200; top: 0; left: 0; max-height: 320px; overflow-y: auto; overscroll-behavior: contain; padding: 6px;
  border: 1px solid var(--work-line-strong, rgba(255,255,255,.16)); border-radius: 12px; background: #18181b; color: var(--work-text, #f0f0f4);
  box-shadow: 0 18px 48px -14px rgba(0,0,0,.92); scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.22) transparent;
}
.mention-panel.hidden { display: none; }
.mention-option {
  width: 100%; display: grid; grid-template-columns: 36px 46px minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 10px;
  padding: 6px 8px; border: 0; border-radius: 8px; background: none; color: inherit; text-align: left; cursor: pointer;
}
.mention-option:hover, .mention-option.active { background: rgba(255,255,255,.07); }
.mention-option img, .mention-option i {
  width: 36px; height: 36px; border-radius: 6px; object-fit: cover; background: #0d0d0f;
  display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--muted);
}
.mention-option b { font-size: 13px; }
.mention-option span { font-size: 13px; color: var(--work-text, var(--text)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-option small { font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-empty { padding: 10px; color: var(--muted); font-size: 12px; }
.mention-mapping { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--muted); }
.mention-map { display: inline-flex; gap: 4px; max-width: 220px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--work-line, rgba(255,255,255,.1)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mention-map b { color: var(--work-text, var(--text)); }
.mention-map.used { border-color: rgba(var(--blue-rgb, 37,78,255), .7); color: var(--work-text, var(--text)); }
.mention-hint kbd { padding: 0 4px; border: 1px solid var(--work-line-strong, var(--line)); border-radius: 4px; font: inherit; }
.mention-problem { flex-basis: 100%; color: #ffb36b; font-size: 12px; }
#consoleView .reference-file { grid-template-columns: 88px minmax(0, 1fr) auto; }
.reference-file-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.reference-file-name > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 11px; }
#consoleView .reference-file .reference-alias, .reference-file .reference-alias {
  display: inline-block; width: auto; min-width: 0; height: auto; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; line-height: 1.4; text-align: left;
}
.reference-alias { align-self: flex-start; max-width: 100%; padding: 0; border: 0; background: none; color: var(--work-text, var(--text)); font-size: 12px; font-weight: 600; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.reference-alias.empty { color: var(--muted); font-weight: 400; }
.reference-alias:hover { text-decoration: underline; }
.reference-alias-input { width: 100%; max-width: 220px; height: 26px; padding: 0 8px !important; font-size: 12px; }
html[data-theme="light"] .mention-panel { background: #fff; color: #202b38; border-color: rgba(28,42,59,.18); box-shadow: 0 18px 44px -16px rgba(28,42,59,.35); scrollbar-color: rgba(28,42,59,.25) transparent; }
html[data-theme="light"] .mention-option:hover, html[data-theme="light"] .mention-option.active { background: rgba(28,42,59,.07); }
html[data-theme="light"] .mention-option img, html[data-theme="light"] .mention-option i { background: #eef1f5; }
html[data-theme="light"] .mention-chip { color: #1d3a9a; }
html[data-theme="light"] .mention-chip.kind-video:not(.invalid) { color: #0f5f67; }
html[data-theme="light"] .mention-chip.kind-audio:not(.invalid) { color: #7a5a10; }
html[data-theme="light"] .mention-chip.invalid { color: #b7353b; }

/* 放大 (2026-11-19): the same editor in a large window, adjustable font; the 提示词 card opens read-only */
.prompt-head-tools { display: inline-flex; align-items: center; gap: 10px; margin-left: auto; }
.prompt-zoom-open {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border: 1px solid var(--work-line-strong, rgba(255,255,255,.17));
  border-radius: 999px; background: transparent; color: var(--work-text, #f4f3f0); font-size: 12px; cursor: pointer; transition: background .15s, border-color .15s;
}
.prompt-zoom-open:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.prompt-zoom-open svg, #studioPromptZoom svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.prompt-zoom-active { overflow: hidden; }
.prompt-zoom {
  position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: 4vh 4vw;
  background: rgba(0,0,0,.62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.prompt-zoom.hidden { display: none; }
.prompt-zoom-card {
  width: min(1120px, 100%); height: min(88vh, 940px); display: flex; flex-direction: column; padding: 18px 22px 20px;
  border: 1px solid rgba(255,255,255,.12); border-radius: 18px; background: #151517; color: #f4f3f0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9);
}
.prompt-zoom-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.prompt-zoom-head strong { font-size: 16px; }
.prompt-zoom-count { font-size: 12px; color: var(--muted); }
.prompt-zoom-tools { display: flex; gap: 8px; margin-left: auto; }
.prompt-zoom-tools button {
  min-width: 40px; height: 32px; padding: 0 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px;
  background: transparent; color: inherit; font-size: 13px; cursor: pointer;
}
.prompt-zoom-tools button:hover:not(:disabled) { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.26); }
.prompt-zoom-tools button:disabled { opacity: .35; cursor: default; }
.prompt-zoom-tools .prompt-zoom-done { background: #f4f3f0; color: #111; border-color: transparent; font-weight: 600; }
.prompt-zoom-tools .prompt-zoom-done:hover { background: #fff; }
.prompt-zoom-body { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.prompt-zoom-body .mention-wrap { flex: 1; min-height: 0; display: flex; }
.mention-editor.zoomed { flex: 1; height: 100%; min-height: 0; max-height: none; padding: 20px 24px; font-size: var(--zoom-size, 17px); line-height: 1.85; }
.mention-editor.zoomed .mention-chip { height: auto; min-height: 1.5em; font-size: .82em; line-height: 1.5; }
.mention-editor.zoomed .mention-chip img { width: 1.4em; height: 1.4em; }
.prompt-zoom-body .mention-mapping { margin-top: 12px; font-size: 12px; }
.prompt-zoom-text {
  flex: 1; min-height: 0; overflow: auto; padding: 20px 24px; border: 1px solid rgba(255,255,255,.1); border-radius: 12px; background: #0d0d0f;
  font-size: var(--zoom-size, 17px); line-height: 1.85; white-space: pre-wrap; word-break: break-word; user-select: text;
}
html[data-theme="light"] .prompt-zoom { background: rgba(20,30,45,.35); }
html[data-theme="light"] .prompt-zoom-card { background: #fff; color: #202b38; border-color: rgba(28,42,59,.12); box-shadow: 0 30px 80px -24px rgba(28,42,59,.45); }
html[data-theme="light"] .prompt-zoom-tools button { border-color: rgba(28,42,59,.16); }
html[data-theme="light"] .prompt-zoom-tools button:hover:not(:disabled) { background: rgba(28,42,59,.06); }
html[data-theme="light"] .prompt-zoom-tools .prompt-zoom-done { background: #202b38; color: #fff; }
html[data-theme="light"] .prompt-zoom-text { background: #f6f8fb; border-color: rgba(28,42,59,.12); }
html[data-theme="light"] .mention-editor.zoomed { background: #f6f8fb; color: #202b38; border-color: rgba(28,42,59,.16); }
html[data-theme="light"] .prompt-zoom-open { color: #202b38; border-color: rgba(28,42,59,.18); }
