:root {
  --bg: #0d0f14;
  --bg2: #12151c;
  --panel: #171b24;
  --panel2: #1d2230;
  --border: #262c3b;
  --border2: #333b50;
  --text: #e8eaf2;
  --muted: #9aa3b8;
  --dim: #6b7387;
  --accent: #4f7cff;
  --accent2: #7c5cff;
  --green: #34c77b;
  --amber: #f5a524;
  --red: #f04f5f;
  --radius: 12px;
  --shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; font-size: 14px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3145; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 布局 ---------- */
.layout { display: flex; min-height: 100vh; }
.sidebar {
  width: 216px; flex-shrink: 0; background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.logo {
  padding: 20px 18px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.logo b { font-size: 15px; display: block; line-height: 1.25; }
.logo span { font-size: 11px; color: var(--dim); }
.nav { padding: 12px 10px; flex: 1; overflow-y: auto; }
.nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 9px; color: var(--muted);
  margin-bottom: 2px; font-size: 14px;
}
.nav a:hover { background: var(--panel); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(79,124,255,.18), rgba(124,92,255,.10)); color: #fff; }
.nav a.active .ico { color: var(--accent); }
.nav .ico { width: 20px; text-align: center; font-size: 15px; }
.nav .divider { margin: 10px 12px; border-top: 1px solid var(--border); }
.nav .section { font-size: 11px; color: var(--dim); padding: 4px 12px 6px; letter-spacing: .05em; }
.sidebar .foot {
  padding: 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--dim);
}
.userchip { display: flex; align-items: center; gap: 8px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, #2c3e6e, #4a3a7a);
  display: flex; align-items: center; justify-content: center; font-size: 13px; color: #fff; font-weight: 600;
}
.userchip .meta { flex: 1; min-width: 0; }
.userchip .meta b { display: block; color: var(--text); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.userchip .meta span { font-size: 11px; }
.role-badge {
  display: inline-block; padding: 0 6px; border-radius: 5px; font-size: 10px; line-height: 16px;
  background: rgba(245,165,36,.15); color: var(--amber);
}
.role-badge.admin { background: rgba(79,124,255,.18); color: #8fa8ff; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar {
  height: 58px; flex-shrink: 0; display: flex; align-items: center; gap: 14px;
  padding: 0 26px; border-bottom: 1px solid var(--border); background: rgba(13,15,20,.8);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 16px; font-weight: 600; }
.topbar .spacer { flex: 1; }
.content { padding: 24px 26px 60px; max-width: 1280px; width: 100%; margin: 0 auto; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: 9px; border: 1px solid var(--border2);
  background: var(--panel2); color: var(--text); font-size: 13.5px; transition: .15s;
  white-space: nowrap;
}
.btn:hover { border-color: #45507a; background: #232a3c; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #fff; font-weight: 600;
}
.btn.primary:hover { filter: brightness(1.12); }
.btn.danger { color: #ff8791; border-color: rgba(240,79,95,.35); background: rgba(240,79,95,.08); }
.btn.danger:hover { background: rgba(240,79,95,.18); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; border-radius: 7px; }
.btn.lg { padding: 11px 26px; font-size: 15px; border-radius: 11px; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: var(--panel2); color: var(--text); }
.btn:disabled { opacity: .45; cursor: not-allowed; filter: none; }

.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.card .card-h { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.card .card-h h3 { font-size: 14.5px; font-weight: 600; }
.card .card-b { padding: 18px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 6px; font-weight: 500; }
.input, select.input, textarea.input {
  width: 100%; padding: 9px 12px; border-radius: 9px;
  border: 1px solid var(--border2); background: var(--bg2); color: var(--text);
  outline: none; transition: border-color .15s;
}
.input:focus { border-color: var(--accent); }
textarea.input { resize: vertical; min-height: 90px; }
.hint { font-size: 12px; color: var(--dim); margin-top: 5px; line-height: 1.5; }
.hint.warn { color: var(--amber); }

.chip {
  display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px;
  border-radius: 20px; font-size: 11.5px; line-height: 18px; white-space: nowrap;
  background: var(--panel2); color: var(--muted); border: 1px solid var(--border);
}
.chip.green { background: rgba(52,199,123,.12); color: var(--green); border-color: rgba(52,199,123,.3); }
.chip.amber { background: rgba(245,165,36,.12); color: var(--amber); border-color: rgba(245,165,36,.3); }
.chip.red { background: rgba(240,79,95,.12); color: var(--red); border-color: rgba(240,79,95,.3); }
.chip.blue { background: rgba(79,124,255,.14); color: #8fa8ff; border-color: rgba(79,124,255,.35); }
.chip.gray { background: var(--panel2); color: var(--dim); }

/* 分段选择器 */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button {
  padding: 6px 13px; border-radius: 8px; border: 1px solid var(--border2);
  background: var(--bg2); color: var(--muted); font-size: 13px; transition: .12s;
}
.seg button:hover { color: var(--text); border-color: #45507a; }
.seg button.on { background: rgba(79,124,255,.16); border-color: var(--accent); color: #cdd9ff; font-weight: 600; }
.seg button:disabled { opacity: .4; cursor: not-allowed; }

/* 开关 */
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch .track {
  width: 38px; height: 21px; border-radius: 12px; background: #2a3145; position: relative; transition: .18s; flex-shrink: 0;
}
.switch .track::after {
  content: ''; position: absolute; top: 2.5px; left: 3px; width: 16px; height: 16px;
  border-radius: 50%; background: #8891a8; transition: .18s;
}
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { left: 19px; background: #fff; }
.switch .lb { font-size: 13px; color: var(--muted); }

/* toast */
#toast-root { position: fixed; top: 18px; left: 50%; transform: translateX(-50%); z-index: 1000; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  padding: 10px 18px; border-radius: 10px; font-size: 13.5px; max-width: 560px;
  background: #222839; border: 1px solid var(--border2); box-shadow: var(--shadow);
  animation: slideDown .2s ease;
}
.toast.err { border-color: rgba(240,79,95,.5); background: #2c1a20; color: #ffb3ba; }
.toast.ok { border-color: rgba(52,199,123,.5); background: #16241d; color: #9be8bd; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; } }

/* modal */
.modal-mask {
  position: fixed; inset: 0; background: rgba(5,7,12,.66); z-index: 500;
  display: flex; align-items: center; justify-content: center; padding: 24px;
  backdrop-filter: blur(3px);
}
.modal {
  background: var(--panel); border: 1px solid var(--border2); border-radius: 14px;
  width: 100%; max-width: 720px; max-height: 86vh; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.modal.wide { max-width: 920px; }
.modal .m-h { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.modal .m-h h3 { font-size: 15px; flex: 1; }
.modal .m-b { padding: 18px 20px; overflow-y: auto; flex: 1; }
.modal .m-f { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 10px; }
.m-close { background: none; border: none; color: var(--dim); font-size: 20px; line-height: 1; }
.m-close:hover { color: var(--text); }

/* ---------- 登录页 ---------- */
.login-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(79,124,255,.14), transparent),
    radial-gradient(800px 400px at 90% 110%, rgba(124,92,255,.12), transparent),
    var(--bg);
  padding: 20px;
}
.login-card { width: 380px; background: var(--panel); border: 1px solid var(--border2); border-radius: 18px; padding: 36px 34px; box-shadow: var(--shadow); }
.login-card .logo { border: none; padding: 0 0 22px; }
.login-card h2 { font-size: 19px; margin-bottom: 4px; }
.login-card .sub { color: var(--dim); font-size: 13px; margin-bottom: 24px; }
.login-card .btn { width: 100%; margin-top: 6px; }
.login-foot { margin-top: 20px; font-size: 12px; color: var(--dim); text-align: center; line-height: 1.7; }

/* ---------- 生成页 ---------- */
.gen-layout { display: grid; grid-template-columns: 1fr 330px; gap: 20px; align-items: start; }
@media (max-width: 1100px) { .gen-layout { grid-template-columns: 1fr; } }
.mode-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.mode-tabs button {
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border2);
  background: var(--panel); color: var(--muted); font-size: 14px; font-weight: 500;
}
.mode-tabs button.on {
  background: linear-gradient(135deg, rgba(79,124,255,.22), rgba(124,92,255,.16));
  border-color: var(--accent); color: #fff; font-weight: 600;
}
.mode-desc { font-size: 12.5px; color: var(--dim); margin: -6px 0 14px; padding-left: 2px; }

.ref-group { margin-bottom: 18px; }
.ref-group .rg-h { display: flex; align-items: center; gap: 10px; margin-bottom: 9px; }
.ref-group .rg-h b { font-size: 13.5px; }
.ref-group .rg-h .cnt { font-size: 12px; color: var(--dim); }
.ref-group .rg-h .rg-actions { margin-left: auto; display: flex; gap: 6px; }
.ref-slots { display: flex; flex-wrap: wrap; gap: 10px; }
.ref-item {
  width: 96px; height: 96px; border-radius: 10px; overflow: hidden; position: relative;
  border: 1px solid var(--border2); background: var(--bg2);
}
.ref-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ref-item .rm {
  position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.6); color: #fff; border: none; font-size: 12px; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.ref-item .cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 10px 6px 4px;
  background: linear-gradient(transparent, rgba(0,0,0,.78)); font-size: 10px; color: #dfe3ee;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ref-item.url-type::after {
  content: '链接'; position: absolute; top: 4px; left: 4px; font-size: 10px;
  background: rgba(79,124,255,.85); color: #fff; padding: 1px 5px; border-radius: 4px;
}
.add-slot {
  width: 96px; height: 96px; border-radius: 10px; border: 1.5px dashed var(--border2);
  background: transparent; color: var(--dim); font-size: 12px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 4px; transition: .15s;
}
.add-slot:hover { border-color: var(--accent); color: var(--accent); background: rgba(79,124,255,.05); }
.add-slot .plus { font-size: 20px; line-height: 1; }
.flf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 480px; }
.flf-slot {
  border: 1.5px dashed var(--border2); border-radius: 12px; min-height: 150px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; color: var(--dim); font-size: 13px; cursor: pointer; transition: .15s; position: relative; overflow: hidden;
}
.flf-slot:hover { border-color: var(--accent); }
.flf-slot.filled { border-style: solid; border-color: var(--border2); cursor: default; }
.flf-slot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.flf-slot .flf-lb { position: relative; z-index: 2; font-weight: 600; color: var(--muted); text-shadow: 0 1px 4px rgba(0,0,0,.8); }
.flf-slot .flf-clear {
  position: absolute; top: 6px; right: 6px; z-index: 3; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(0,0,0,.65); color: #fff; border: none;
}
.flf-slot .flf-tip { position: relative; z-index: 2; font-size: 11.5px; text-shadow: 0 1px 4px rgba(0,0,0,.8); }

.params-panel { position: sticky; top: 82px; }
.param-row { margin-bottom: 15px; }
.param-row > label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; font-weight: 500; }
.param-row > label.switch { display: inline-flex; margin-bottom: 0; font-weight: 400; }
.locked-note { font-size: 11px; color: var(--amber); margin-top: 5px; }

/* ---------- 素材库 ---------- */
.asset-toolbar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.asset-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.asset-thumb { height: 128px; background: #0a0c10; display: flex; align-items: center; justify-content: center; position: relative; }
.asset-thumb img { width: 100%; height: 100%; object-fit: cover; }
.asset-thumb .kind-ico { font-size: 34px; opacity: .5; }
.asset-thumb .kind-tag { position: absolute; left: 8px; top: 8px; }
.asset-info { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.asset-info .nm { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.asset-info .meta { font-size: 11px; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.asset-info .ark-id { align-items: center; }
.asset-info .ark-id code {
  font-family: ui-monospace, monospace; font-size: 11px; color: #8fa8ff;
  background: rgba(79, 124, 255, .1); border: 1px solid rgba(79, 124, 255, .25);
  padding: 1px 6px; border-radius: 5px; cursor: copy; word-break: break-all;
}
.asset-info .ark-id code:hover { background: rgba(79, 124, 255, .2); }
.asset-acts { display: flex; gap: 6px; padding: 0 12px 12px; flex-wrap: wrap; }
.dropzone {
  border: 2px dashed var(--border2); border-radius: var(--radius); padding: 30px 20px; text-align: center;
  color: var(--dim); transition: .15s; margin-bottom: 18px; cursor: pointer; background: var(--bg2);
}
.dropzone:hover, .dropzone.drag { border-color: var(--accent); color: var(--accent); background: rgba(79,124,255,.05); }
.dropzone b { color: var(--text); }
.upload-opts { display: flex; align-items: center; gap: 18px; justify-content: center; margin-top: 12px; flex-wrap: wrap; }
.up-item { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--panel2); border-radius: 9px; margin-bottom: 8px; font-size: 13px; }
.up-item .bar { flex: 1; height: 5px; border-radius: 3px; background: #262c3b; overflow: hidden; min-width: 60px; }
.up-item .bar i { display: block; height: 100%; background: var(--accent); width: 0; transition: width .2s; }

/* picker modal */
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.pick-card {
  border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer;
  background: var(--bg2); position: relative; transition: .12s;
}
.pick-card:hover { border-color: #45507a; }
.pick-card.sel { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(79,124,255,.25); }
.pick-card.disabled { opacity: .45; cursor: not-allowed; }
.pick-card .pth { height: 84px; display: flex; align-items: center; justify-content: center; background: #0a0c10; }
.pick-card .pth img { width: 100%; height: 100%; object-fit: cover; }
.pick-card .pth span { font-size: 24px; opacity: .5; }
.pick-card .pn { padding: 6px 8px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-card .tick {
  position: absolute; top: 5px; right: 5px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: #fff; font-size: 12px; display: none; align-items: center; justify-content: center;
}
.pick-card.sel .tick { display: flex; }
.pick-card .st { position: absolute; top: 5px; left: 5px; }

/* ---------- 历史任务 ---------- */
.hist-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.hist-toolbar .scope { display: flex; gap: 0; border: 1px solid var(--border2); border-radius: 9px; overflow: hidden; }
.hist-toolbar .scope button { border: none; background: var(--panel); color: var(--muted); padding: 7px 16px; font-size: 13px; }
.hist-toolbar .scope button.on { background: var(--accent); color: #fff; }
.task-card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.task-head { padding: 13px 18px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; border-bottom: 1px solid var(--border); }
.task-head .tid { font-size: 12px; color: var(--dim); font-family: ui-monospace, monospace; }
.task-head .spacer { flex: 1; }
.task-head .time { font-size: 12px; color: var(--dim); }
.task-body { display: grid; grid-template-columns: 300px 1fr; gap: 18px; padding: 16px 18px; }
@media (max-width: 860px) { .task-body { grid-template-columns: 1fr; } }
.task-video { background: #000; border-radius: 10px; overflow: hidden; min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.task-video video { width: 100%; max-height: 320px; display: block; }
.task-video .placeholder { color: #3a4258; font-size: 13px; padding: 40px 10px; text-align: center; line-height: 1.8; }
.task-video .placeholder .spin { font-size: 26px; display: block; margin-bottom: 8px; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }
.task-info { min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.task-info .trow { font-size: 12.5px; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-info .trow b { color: var(--text); font-weight: 500; }
.task-prompt {
  font-size: 13px; color: #cfd5e4; background: var(--bg2); border: 1px solid var(--border);
  border-radius: 9px; padding: 10px 12px; max-height: 88px; overflow-y: auto; line-height: 1.6; white-space: pre-wrap; word-break: break-word;
}
.task-refs { display: flex; gap: 6px; flex-wrap: wrap; }
.task-refs .tref { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); background: var(--panel2); border: 1px solid var(--border); padding: 3px 9px 3px 4px; border-radius: 20px; max-width: 220px; }
.task-refs .tref img { width: 20px; height: 20px; border-radius: 50%; object-fit: cover; }
.task-refs .tref span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-err { font-size: 12.5px; color: #ffb3ba; background: rgba(240,79,95,.08); border: 1px solid rgba(240,79,95,.3); padding: 8px 12px; border-radius: 9px; word-break: break-all; }
.task-foot { padding: 10px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.task-foot .owner { font-size: 12px; color: var(--dim); margin-right: auto; }
.empty-state { text-align: center; color: var(--dim); padding: 70px 20px; }
.empty-state .ico { font-size: 44px; margin-bottom: 12px; }

/* ---------- 设置 / 表单页 ---------- */
.form-narrow { max-width: 620px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 44px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--dim); padding: 6px; }
.kv { display: flex; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.kv .k { color: var(--dim); width: 90px; flex-shrink: 0; }

/* 用户表 */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; color: var(--dim); font-weight: 500; font-size: 12px; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }

/* ---- 生成页：提示词 @ 引用 ---- */
.ref-tokens { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.ref-tokens .rt-lb { font-size: 12px; color: var(--dim); }
.rt-chip { border: 1px solid var(--border2); background: rgba(255,255,255,.04); color: var(--text); border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.rt-chip:hover { border-color: var(--accent); color: var(--accent); }
.at-menu { position: absolute; left: 14px; top: 62px; z-index: 60; min-width: 280px; max-width: 420px; max-height: 240px; overflow: auto;
  background: var(--panel2); border: 1px solid var(--border2); border-radius: 10px; box-shadow: var(--shadow); padding: 5px; }
.at-menu .at-hint { font-size: 11.5px; color: var(--dim); padding: 4px 10px 6px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.at-item { display: flex; gap: 10px; align-items: center; padding: 7px 10px; border-radius: 7px; cursor: pointer; font-size: 13px; }
.at-item.on, .at-item:hover { background: rgba(255,255,255,.07); }
.at-item b { color: var(--accent); white-space: nowrap; font-family: ui-monospace, monospace; font-weight: 600; }
.at-item span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---- 素材选择弹窗：三标签 ---- */
.pk-tabs { display: inline-flex; gap: 0; border: 1px solid var(--border2); border-radius: 9px; overflow: hidden; margin-bottom: 14px; }
.pk-tabs button { border: none; background: var(--panel); color: var(--muted); padding: 7px 16px; font-size: 13px; cursor: pointer; }
.pk-tabs button.on { background: var(--accent); color: #fff; }
.at-item .at-slot { margin-left: auto; color: var(--dim); font-size: 11.5px; font-family: ui-monospace, monospace; white-space: nowrap; }
