/* ==========================================================================
   📦 项目资产库 (Assets Library) - 侧边抽屉 / 卡片网格 / 弹窗 / 提示词联想
   ========================================================================== */

/* 抽屉主容器 */
#assets-drawer {
  position: fixed; right: 0; top: 48px; z-index: 65;
  width: 460px; max-width: calc(100vw - 20px);
  height: calc(100vh - 48px);
  display: flex; flex-direction: column;
  background: rgba(18, 20, 29, .98); backdrop-filter: blur(16px);
  border-left: 1px solid rgba(255, 255, 255, .1);
  box-shadow: -10px 0 35px rgba(0, 0, 0, .6);
  transform: translateX(100%); opacity: 0; pointer-events: none;
  transition: transform .22s cubic-bezier(0.16, 1, 0.3, 1), opacity .22s ease;
  box-sizing: border-box;
}
#assets-drawer.open {
  transform: translateX(0); opacity: 1; pointer-events: auto;
}

/* 顶部标题与操作栏 */
.ast-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
  gap: 8px;
}
.ast-title-wrap {
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap; flex-shrink: 0;
}
.ast-title { font-size: 13.5px; font-weight: 700; color: #f1f5f9; white-space: nowrap; }
.ast-badge {
  font-size: 10.5px; padding: 1px 6px; border-radius: 10px;
  background: rgba(56, 189, 248, .15); color: #38bdf8;
  font-weight: 600; border: 1px solid rgba(56, 189, 248, .3);
  white-space: nowrap;
}
.ast-header-actions { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
.ast-btn {
  padding: 4px 8px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05); color: #cbd5e1;
  font-size: 11px; font-weight: 600; cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.ast-btn:hover {
  background: rgba(255, 255, 255, .12); color: #ffffff;
  border-color: rgba(255, 255, 255, .25);
}
.ast-btn-primary {
  background: linear-gradient(135deg, #0284c7, #2563eb);
  border-color: #38bdf8; color: #ffffff;
}
.ast-btn-primary:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8);
  box-shadow: 0 0 12px rgba(56, 189, 248, .4);
}
.ast-btn-close {
  background: transparent; border: none; color: #94a3b8;
  font-size: 15px; cursor: pointer; padding: 3px 6px; border-radius: 6px;
}
.ast-btn-close:hover { background: rgba(255, 255, 255, .1); color: #fff; }

/* 🗂 画布作用域筛选栏 (方案1) */
.ast-scope-bar {
  padding: 8px 14px 6px;
  background: rgba(0, 0, 0, .28);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.ast-scope-btns {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.ast-scope-btns::-webkit-scrollbar { display: none; }
.ast-scope-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #94a3b8;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .16s ease;
}
.ast-scope-btn:hover {
  background: rgba(255, 255, 255, .09);
  color: #f1f5f9;
  border-color: rgba(255, 255, 255, .22);
}
.ast-scope-btn.active {
  background: linear-gradient(135deg, rgba(14, 165, 233, .25), rgba(59, 130, 246, .25));
  border-color: rgba(56, 189, 248, .75);
  color: #38bdf8;
  box-shadow: 0 0 10px rgba(56, 189, 248, .2);
}
.ast-scope-count {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .45);
  color: inherit;
  opacity: .9;
}
.ast-scope-select {
  padding: 4px 8px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(15, 23, 42, .88);
  color: #cbd5e1;
  font-size: 11.5px;
  font-weight: 500;
  outline: none;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color .15s ease;
}
.ast-scope-select:focus, .ast-scope-select:hover {
  border-color: rgba(56, 189, 248, .55);
  color: #f8fafc;
}

/* 搜索与分类 */
.ast-search-bar {
  padding: 10px 16px 6px; position: relative;
}
.ast-search-bar input {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .1);
  color: #f8fafc; font-size: 12.5px; outline: none; box-sizing: border-box;
}
.ast-search-bar input:focus {
  border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, .2);
}
#ast-search-clear {
  position: absolute; right: 24px; top: 17px;
  background: transparent; border: none; color: #94a3b8; cursor: pointer; font-size: 12px;
}

/* 分类 Tab 栏与管理操作按钮 */
.ast-tabs-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ast-tabs {
  flex: 1;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ast-tabs::-webkit-scrollbar { display: none; }
.ast-tabs-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.ast-tab-action-btn {
  padding: 3px 7px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all .15s ease;
}
.ast-tab-action-btn:hover {
  background: rgba(56, 189, 248, .15);
  color: #38bdf8;
  border-color: rgba(56, 189, 248, .4);
}

.ast-tab {
  padding: 4px 10px; border-radius: 7px; border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03); color: #94a3b8;
  font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  transition: all .15s ease;
}
.ast-tab:hover { background: rgba(255, 255, 255, .08); color: #e2e8f0; }
.ast-tab.active {
  background: rgba(56, 189, 248, .2); color: #38bdf8;
  border-color: rgba(56, 189, 248, .5);
}

/* 分类管理弹窗样式 */
.ast-cat-modal {
  width: 520px;
  max-width: 95vw;
  background: #131722;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8);
  display: flex;
  flex-direction: column;
  max-height: 88vh;
}
.ast-cm-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.ast-cm-intro {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.5;
  background: rgba(255, 255, 255, .02);
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .06);
}
.ast-cm-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
}
.ast-cm-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: border-color .15s ease;
}
.ast-cm-item:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .05);
}
.ast-cm-emoji-input {
  width: 36px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .4);
  color: #fff;
  font-size: 15px;
  text-align: center;
  outline: none;
}
.ast-cm-emoji-input:focus { border-color: #38bdf8; }
.ast-cm-item-name-wrap { flex: 1; min-width: 0; }
.ast-cm-name-input {
  width: 100%;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .3);
  color: #f1f5f9;
  font-size: 12.5px;
  outline: none;
  box-sizing: border-box;
}
.ast-cm-name-input:focus { border-color: #38bdf8; }
.ast-cm-color-input {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .15);
  background: transparent;
  cursor: pointer;
  outline: none;
}
.ast-cm-item-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}
.ast-cm-act-btn {
  width: 26px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04);
  color: #94a3b8;
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .12s ease;
}
.ast-cm-act-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.ast-cm-act-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.ast-cm-delete:hover:not(:disabled) {
  background: rgba(239, 68, 68, .2);
  color: #f87171;
  border-color: rgba(239, 68, 68, .4);
}

/* 新增分类表单区域 */
.ast-cm-add-box {
  padding: 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, .25);
  border: 1px dashed rgba(255, 255, 255, .12);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ast-cm-add-title {
  font-size: 12px;
  font-weight: 700;
  color: #cbd5e1;
}
.ast-cm-add-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ast-cm-new-name {
  flex: 1;
}
.ast-cm-presets {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-top: 4px;
}
.ast-cm-emoji-presets, .ast-cm-color-presets {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.ast-cm-em-dot {
  font-size: 14px;
  padding: 2px 4px;
  border-radius: 4px;
  cursor: pointer;
  background: rgba(255, 255, 255, .04);
  transition: transform .12s ease, background .12s ease;
  user-select: none;
}
.ast-cm-em-dot:hover {
  background: rgba(255, 255, 255, .15);
  transform: scale(1.15);
}
.ast-cm-col-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3);
  transition: transform .12s ease;
}
.ast-cm-col-dot:hover {
  transform: scale(1.25);
}
.ast-btn-cat-mini-manage {
  background: transparent;
  border: none;
  color: #38bdf8;
  font-size: 11px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, .3);
}
.ast-btn-cat-mini-manage:hover {
  color: #7dd3fc;
}

/* 资产网格列表 */
.ast-list {
  flex: 1; overflow-y: auto; padding: 12px 16px;
  display: flex; flex-direction: column; gap: 12px;
}
.ast-empty {
  text-align: center; padding: 60px 20px; color: #64748b;
}
.ast-empty-icon { font-size: 42px; margin-bottom: 10px; }
.ast-empty-text { font-size: 13px; line-height: 1.6; }

/* 资产卡片 */
.ast-card {
  display: flex; gap: 12px; padding: 10px; border-radius: 10px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  transition: all .18s ease;
}
.ast-card:hover {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(56, 189, 248, .3);
  transform: translateY(-1px);
}
.ast-card-media {
  width: 90px; height: 90px; border-radius: 8px; overflow: hidden;
  position: relative; flex-shrink: 0; background: #0f172a;
  display: flex; align-items: center; justify-content: center;
}
.ast-avatar { width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.ast-avatar-placeholder { font-size: 28px; }
.ast-cat-badge {
  position: absolute; top: 4px; left: 4px;
  font-size: 9.5px; font-weight: 700; padding: 1px 5px; border-radius: 4px;
  background: rgba(0, 0, 0, .75); backdrop-filter: blur(4px);
  border: 1px solid;
}
.ast-tag-badge {
  position: absolute; bottom: 4px; right: 4px;
  font-size: 9px; padding: 1px 4px; border-radius: 3px;
  background: rgba(15, 23, 42, .85); color: #cbd5e1;
}
.ast-mode-badge {
  position: absolute; top: 4px; right: 4px;
  font-size: 8.5px; font-weight: 700; padding: 1px 4px; border-radius: 3px;
  background: rgba(234, 179, 8, .2); color: #fef08a; border: 1px solid rgba(234, 179, 8, .4);
}

.ast-card-info {
  flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between;
}
.ast-name-row { display: flex; align-items: center; justify-content: space-between; }
.ast-prompt-preview {
  font-size: 11.5px; color: #94a3b8; line-height: 1.4;
  margin: 4px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden; cursor: pointer; transition: color .12s ease;
  user-select: none;
}
.ast-prompt-preview:hover {
  color: #e2e8f0; text-decoration: underline; text-decoration-color: rgba(56, 189, 248, .4);
}
.ast-card-actions {
  display: flex; align-items: center; gap: 6px; margin-top: auto;
}
.ast-act-btn {
  padding: 3px 8px; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .04); color: #cbd5e1;
  font-size: 11px; font-weight: 600; cursor: pointer; transition: all .12s ease;
}
.ast-act-btn:hover {
  background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .25);
}
.ast-act-insert {
  background: rgba(56, 189, 248, .12); color: #38bdf8; border-color: rgba(56, 189, 248, .3);
}
.ast-act-insert:hover {
  background: rgba(56, 189, 248, .25); color: #e0f2fe; border-color: #38bdf8;
}
.ast-act-connect {
  background: rgba(52, 211, 153, .12); color: #34d399; border-color: rgba(52, 211, 153, .3);
}
.ast-act-connect:hover {
  background: rgba(52, 211, 153, .25); color: #d1fae5; border-color: #34d399;
}
.ast-act-clone-cur {
  background: rgba(168, 85, 247, .12); color: #c084fc; border-color: rgba(168, 85, 247, .3);
}
.ast-act-clone-cur:hover {
  background: rgba(168, 85, 247, .25); color: #f3e8ff; border-color: #c084fc;
}

/* 🏷️ 画布归属胶囊徽章 */
.ast-canvas-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 6px;
  border-radius: 6px;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ast-canvas-badge.ast-canvas-current {
  background: rgba(16, 185, 129, .15);
  border: 1px solid rgba(16, 185, 129, .4);
  color: #34d399;
}
.ast-canvas-badge.ast-canvas-other {
  background: rgba(168, 85, 247, .15);
  border: 1px solid rgba(168, 85, 247, .4);
  color: #c084fc;
}
/* 自定义屏幕居中确认弹窗 (清空 / 彻底清空) */
.custom-confirm-mask {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, .72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: confirmFadeIn .15s ease-out;
}
.custom-confirm-mask.fade-out {
  animation: confirmFadeOut .14s ease-in forwards;
}

@keyframes confirmFadeIn {
  from { opacity: 0; transform: scale(.96); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes confirmFadeOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(.96); }
}

.custom-confirm-modal {
  width: 410px;
  max-width: 92vw;
  background: #141724;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.custom-confirm-modal.is-danger {
  border-color: rgba(239, 68, 68, .5);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .8), 0 0 25px rgba(239, 68, 68, .2);
}

.confirm-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.confirm-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #f8fafc;
}
.confirm-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  padding: 2px 4px;
}
.confirm-close:hover {
  color: #fff;
}

.confirm-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.confirm-msg {
  font-size: 13.5px;
  color: #e2e8f0;
  line-height: 1.5;
}
.confirm-detail {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
  background: rgba(255, 255, 255, .04);
  padding: 9px 12px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .06);
}

.confirm-foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, .25);
  border-top: 1px solid rgba(255, 255, 255, .06);
}

.confirm-btn {
  padding: 7px 18px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all .12s ease;
}
.confirm-cancel {
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .12);
  color: #cbd5e1;
}
.confirm-cancel:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.confirm-primary {
  background: #3b82f6;
  color: #fff;
  border-color: #2563eb;
}
.confirm-primary:hover {
  background: #2563eb;
}

.confirm-danger {
  background: #ef4444;
  color: #fff;
  border-color: #dc2626;
  box-shadow: 0 0 10px rgba(239, 68, 68, .35);
}
.confirm-danger:hover {
  background: #dc2626;
  box-shadow: 0 0 15px rgba(239, 68, 68, .55);
}

/* 资产编辑/新建弹窗 */
.ast-modal-mask {
  position: fixed; inset: 0; z-index: 100000; pointer-events: auto;
  background: rgba(0, 0, 0, .75); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; box-sizing: border-box;
}
.ast-modal {
  width: 520px; max-width: 100%; border-radius: 12px;
  background: #151824; border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .7);
  display: flex; flex-direction: column; overflow: hidden;
}
.ast-modal-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.ast-modal-title { font-size: 15px; font-weight: 700; color: #f8fafc; }
.ast-modal-close {
  background: transparent; border: none; color: #94a3b8; font-size: 16px; cursor: pointer;
}
.ast-modal-close:hover { color: #fff; }

.ast-modal-body {
  padding: 16px 18px; display: flex; flex-direction: column; gap: 14px;
  max-height: calc(85vh - 120px); overflow-y: auto;
}
.ast-form-row { display: flex; flex-direction: column; gap: 6px; }
.ast-label { font-size: 12px; font-weight: 600; color: #94a3b8; }
.ast-type-radios { display: flex; gap: 8px; flex-wrap: wrap; }
.ast-type-radio {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 5px 12px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .03); color: #cbd5e1;
  font-size: 12px; font-weight: 600; cursor: pointer;
}
.ast-type-radio input { display: none; }
.ast-type-radio.checked {
  background: rgba(56, 189, 248, .2); color: #38bdf8; border-color: #38bdf8;
}

.ast-form-grid { display: flex; gap: 16px; }
.ast-form-col { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.ast-form-col-media { width: 120px; display: flex; flex-direction: column; gap: 6px; }
.ast-name-input-wrap { display: flex; align-items: center; position: relative; }
.ast-at-prefix {
  position: absolute; left: 10px; color: #38bdf8; font-weight: 700; font-size: 14px;
}
.ast-name-input-wrap .ast-input { padding-left: 26px; }

.ast-label-row {
  display: flex; align-items: center; justify-content: space-between;
}
.ast-btn-copy-prompt {
  background: rgba(56, 189, 248, .15); border: 1px solid rgba(56, 189, 248, .35);
  color: #38bdf8; font-size: 11px; font-weight: 600; border-radius: 5px;
  padding: 2px 8px; cursor: pointer; transition: all .12s ease;
}
.ast-btn-copy-prompt:hover {
  background: rgba(56, 189, 248, .3); color: #fff; border-color: #38bdf8;
}

.ast-input, .ast-textarea {
  width: 100%; padding: 8px 12px; border-radius: 8px;
  background: rgba(0, 0, 0, .4); border: 1px solid rgba(255, 255, 255, .1);
  color: #f8fafc; font-size: 12.5px; outline: none; font-family: inherit;
  box-sizing: border-box; transition: border-color .2s, box-shadow .2s;
}
.ast-input:focus, .ast-textarea:focus {
  border-color: #38bdf8; box-shadow: 0 0 0 2px rgba(56, 189, 248, .2);
}
.ast-textarea { resize: vertical; line-height: 1.5; }
.copy-flash {
  border-color: #10b981 !important;
  box-shadow: 0 0 14px rgba(16, 185, 129, .6) !important;
}

.ast-m-media-preview {
  width: 120px; height: 120px; border-radius: 8px; overflow: hidden;
  background: rgba(0, 0, 0, .5); border: 1px dashed rgba(255, 255, 255, .2);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  position: relative;
}
.ast-m-media-preview:hover { border-color: #38bdf8; }
.ast-m-media-preview img { width: 100%; height: 100%; object-fit: cover; }
.ast-m-ph { font-size: 10.5px; color: #64748b; text-align: center; padding: 10px; }
.ast-btn-clear-img {
  background: transparent; border: none; color: #f87171; font-size: 11px;
  cursor: pointer; padding: 2px; text-align: center;
}

.ast-modal-footer {
  display: flex; align-items: center; justify-content: flex-end; gap: 8px;
  padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .02);
}

/* @ 智能联想菜单中的资产标签 */
.mention-asset-item { border-left: 2px solid #38bdf8; }
.mention-emoji-badge {
  width: 22px; height: 22px; border-radius: 4px; background: rgba(56, 189, 248, .15);
  display: inline-flex; align-items: center; justify-content: center; font-size: 13px;
  flex-shrink: 0;
}
.mention-ast-tag { color: #38bdf8 !important; font-weight: 600; }

.sm-item mark { background: rgba(251,191,36,.35); color: #fff; padding: 0 1px; border-radius: 2px; }

/* 角色声线标签与试听按钮 */
.ast-voice-pill {
  position: absolute;
  top: 6px;
  right: 6px;
  background: rgba(168, 85, 247, 0.85);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 3px;
  transition: transform .1s, background .15s;
}
.ast-voice-pill:hover {
  transform: scale(1.05);
  background: #a855f7;
}
.ast-act-voice {
  color: #d8b4fe !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
}
.ast-act-voice:hover {
  background: rgba(168, 85, 247, 0.2) !important;
  border-color: #a855f7 !important;
}



