/* ============ mixmaster · 专业深色 studio 主题 ============ */
:root {
  --bg: #0a0b0f;
  --bg-2: #101219;
  --bg-3: #161922;
  --bg-4: #1c2029;
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);
  --text: #e8eaf0;
  --text-dim: #9aa1b0;
  --text-faint: #5f6675;
  --accent: #7c6cff;
  --accent-2: #26d5e8;
  --grad: linear-gradient(120deg, #7c6cff 0%, #26d5e8 100%);
  --good: #35d399;
  --warn: #f6b73c;
  --bad: #f2685f;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --r: 14px;
  --r-sm: 10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 28px 60px;
  position: relative;
  overflow-x: hidden;
}

.glow {
  position: fixed;
  top: -30%; left: 50%;
  width: 900px; height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(124, 108, 255, 0.16), transparent 62%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
main, .topbar, .foot { position: relative; z-index: 1; }

/* ---------- 顶栏 ---------- */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px; flex-wrap: wrap;
  padding-bottom: 24px; margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 15px; }
.logo {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--bg-3); border: 1px solid var(--line-2);
  display: flex; align-items: flex-end; justify-content: center;
  gap: 3px; padding: 11px;
}
.logo .bar { width: 4px; border-radius: 2px; background: var(--grad); animation: eq 1.1s ease-in-out infinite; }
.logo .b1 { height: 40%; animation-delay: 0s; }
.logo .b2 { height: 80%; animation-delay: .15s; }
.logo .b3 { height: 55%; animation-delay: .3s; }
.logo .b4 { height: 95%; animation-delay: .45s; }
@keyframes eq { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
.brand-text h1 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.brand-text p { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge {
  font-size: 11.5px; font-weight: 600; padding: 6px 11px; border-radius: 100px;
  border: 1px solid var(--line-2); color: var(--text-dim); font-family: var(--mono);
  white-space: nowrap;
}
.badge-cpu { color: var(--good); border-color: rgba(53, 211, 153, 0.3); background: rgba(53, 211, 153, 0.07); }
.badge-spec { color: var(--text-faint); }

/* ---------- 面板 ---------- */
.panel {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 20px;
}

/* ---------- 模式 tabs ---------- */
.mode-tabs { display: flex; gap: 6px; background: var(--bg); padding: 5px; border-radius: 12px; border: 1px solid var(--line); margin-bottom: 18px; }
.mode-tab {
  flex: 1; padding: 10px 12px; border: 0; border-radius: 8px; cursor: pointer;
  background: transparent; color: var(--text-dim); font-size: 13.5px; font-weight: 600;
  font-family: var(--sans); transition: all .18s ease; white-space: nowrap;
}
.mode-tab:hover { color: var(--text); background: var(--bg-3); }
.mode-tab.active { color: #fff; background: var(--bg-4); box-shadow: inset 0 0 0 1px var(--line-2); }

.hint { color: var(--text-dim); font-size: 13.5px; padding: 6px 2px 2px; }

/* ---------- 拖放区 ---------- */
.drops.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.drop {
  display: block; text-align: center; cursor: pointer;
  border: 1.5px dashed var(--line-2); border-radius: var(--r-sm);
  padding: 22px 16px; background: var(--bg); transition: all .18s ease;
}
.drop:hover, .drop.drag { border-color: var(--accent); background: rgba(124, 108, 255, 0.06); }
.drop.filled { border-style: solid; border-color: rgba(53,211,153,.4); background: rgba(53,211,153,.05); }
.drop-icon { font-size: 24px; }
.drop-title { font-weight: 650; margin-top: 6px; font-size: 14px; }
.drop-sub { color: var(--text-faint); font-size: 12px; margin-top: 3px; }
.drop-file { color: var(--good); font-size: 12px; margin-top: 8px; font-family: var(--mono); word-break: break-all; }
.drop-multi { padding: 30px; }

/* ---------- 选项 ---------- */
.vocal-opts { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 14px; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); cursor: pointer; user-select: none; }
.switch input { display: none; }
.switch span { width: 34px; height: 20px; border-radius: 100px; background: var(--bg-4); border: 1px solid var(--line-2); position: relative; transition: all .18s; flex: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: var(--text-faint); transition: all .18s; }
.switch input:checked + span { background: rgba(124,108,255,.35); border-color: var(--accent); }
.switch input:checked + span::after { left: 16px; background: var(--accent); }

.keysel { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); }
.keysel select {
  background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 7px 10px; font-family: var(--sans); font-size: 13px; cursor: pointer;
}

/* ---------- 底部动作 ---------- */
.composer-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--grad); color: #0a0b0f; font-weight: 700; font-size: 14.5px;
  border: 0; border-radius: 10px; padding: 12px 28px; cursor: pointer;
  font-family: var(--sans); transition: transform .12s, box-shadow .2s;
  box-shadow: 0 6px 20px rgba(124, 108, 255, 0.28);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(124, 108, 255, 0.4); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: .55; cursor: default; transform: none; box-shadow: none; }
.spinner { width: 15px; height: 15px; border: 2px solid rgba(10,11,15,.35); border-top-color: #0a0b0f; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.status { margin-top: 12px; font-size: 13px; color: var(--text-dim); min-height: 18px; font-family: var(--mono); }
.status.err { color: var(--bad); }

/* ---------- 结果 ---------- */
.results { margin-top: 26px; }
.results-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.results-head h2 { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
.target-chips { display: flex; gap: 7px; }
.target-chips .chip { font-family: var(--mono); font-size: 11.5px; color: var(--text-dim); padding: 5px 10px; border: 1px solid var(--line); border-radius: 100px; }

/* 人声前后 */
.vocal-ab { margin-bottom: 18px; }
.vocal-ab-head { font-size: 13.5px; font-weight: 650; margin-bottom: 12px; color: var(--text); }
.ab-rows { display: grid; gap: 10px; }
.ab-row { display: flex; align-items: center; gap: 14px; }
.ab-tag { width: 42px; font-size: 12px; color: var(--text-dim); font-weight: 600; flex: none; }
.ab-row canvas { flex: 1; height: 40px; }
.ab-play { flex: none; }

/* 候选卡片 */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.card {
  background: linear-gradient(180deg, var(--bg-2), var(--bg));
  border: 1px solid var(--line); border-radius: var(--r); padding: 16px;
  transition: border-color .2s, transform .12s; position: relative;
}
.card:hover { border-color: var(--line-2); }
.card.playing { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 10px 30px rgba(124,108,255,.15); }
.card.rank-1::before { content: "推荐"; position: absolute; top: 14px; right: 14px; font-size: 10.5px; font-weight: 700; color: #0a0b0f; background: var(--grad); padding: 3px 9px; border-radius: 100px; }

.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.card-num { font-family: var(--mono); font-size: 13px; color: var(--text-faint); font-weight: 700; }
.card-label { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0 12px; }
.tag { font-size: 11px; color: var(--accent-2); background: rgba(38,213,232,.08); border: 1px solid rgba(38,213,232,.2); padding: 3px 8px; border-radius: 100px; font-weight: 600; }

/* 波形 + 播放 */
.wave-wrap { position: relative; cursor: pointer; }
.wave-wrap canvas { width: 100%; height: 62px; display: block; }
.play-fab {
  position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(10,11,15,.7); backdrop-filter: blur(6px); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 13px;
  box-shadow: 0 2px 10px rgba(0,0,0,.4); transition: background .15s;
}
.play-fab:hover { background: var(--accent); }

/* 仪表读数 */
.meters { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 12px; }
.meter { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 6px; text-align: center; }
.meter .m-k { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .04em; }
.meter .m-v { font-family: var(--mono); font-size: 14px; font-weight: 700; margin-top: 2px; }
.meter.good .m-v { color: var(--good); }
.meter.warn .m-v { color: var(--warn); }

.recipe { margin: 0 0 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.recipe summary { font-size: 12px; color: var(--accent-2); cursor: pointer; font-weight: 600; list-style: none; user-select: none; }
.recipe summary::before { content: "▸ "; }
.recipe[open] summary::before { content: "▾ "; }
.recipe-master { font-size: 11.5px; color: var(--text-dim); margin: 8px 0 6px; font-family: var(--mono); line-height: 1.5; }
.recipe .rt { display: flex; align-items: baseline; gap: 8px; font-size: 11px; padding: 2px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.recipe .rt b { color: var(--text); font-weight: 600; min-width: 84px; }
.recipe .rt em { color: var(--faint); font-style: normal; font-family: var(--mono); min-width: 44px; font-size: 10px; }
.recipe .rt span { color: var(--text-dim); font-family: var(--mono); font-size: 10.5px; }
.btn-card-steps { width: 100%; margin-top: 10px; padding: 7px; border-radius: var(--r-sm);
  border: 1px solid var(--accent-2); background: transparent; color: var(--accent-2);
  font-size: 11.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.btn-card-steps:hover:not(:disabled) { background: var(--accent-2); color: var(--bg-1); }
.btn-card-steps:disabled { opacity: .6; cursor: default; }
.card-steps-list .steps-hint { font-size: 10.5px; }
.card-steps-list .step-row { grid-template-columns: 130px auto 1fr auto; }
.card-steps-list .step-name { font-size: 11px; }

.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.deliver { font-size: 12px; font-weight: 650; display: inline-flex; align-items: center; gap: 5px; }
.deliver.ok { color: var(--good); }
.deliver.no { color: var(--warn); }
.btn-dl { font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--bg-3); border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 14px; cursor: pointer; text-decoration: none; transition: background .15s; }
.btn-dl:hover { background: var(--bg-4); }

/* 空状态 */
.empty { text-align: center; padding: 70px 20px; color: var(--text-dim); }
.empty-art { display: flex; align-items: flex-end; justify-content: center; gap: 6px; height: 60px; margin-bottom: 22px; }
.empty-art span { width: 6px; border-radius: 3px; background: var(--bg-4); animation: eq 1.4s ease-in-out infinite; }
.empty-art span:nth-child(1) { height: 30%; animation-delay: 0s; }
.empty-art span:nth-child(2) { height: 70%; animation-delay: .2s; }
.empty-art span:nth-child(3) { height: 45%; animation-delay: .4s; }
.empty-art span:nth-child(4) { height: 90%; animation-delay: .6s; }
.empty-art span:nth-child(5) { height: 55%; animation-delay: .8s; }
.empty-art span:nth-child(6) { height: 35%; animation-delay: 1s; }
.empty p { font-size: 14px; max-width: 460px; margin: 0 auto; }
.empty strong { color: var(--text); }

/* 页脚 */
.foot { margin-top: 46px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-faint); }
.foot .dot { opacity: .5; }

.hidden { display: none !important; }

@media (max-width: 720px) {
  body { padding: 18px 16px 50px; }
  .cards { grid-template-columns: 1fr; }
  .mode-tab { font-size: 12px; padding: 9px 8px; }
  .composer-foot { flex-direction: column; align-items: stretch; }
  .btn-primary { justify-content: center; }
}

/* ============ 歌曲分析:曲风 + 结构 ============ */
.analysis {
  padding: 16px 18px;
  margin-bottom: 16px;
  border: 1px solid var(--line-2);
  background: linear-gradient(180deg, rgba(124,108,255,0.06), rgba(38,213,232,0.03));
}
.ana-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.ana-k { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 5px; }
.ana-genre-name { font-size: 20px; font-weight: 650; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.ana-sig { color: var(--text-dim); font-size: 13px; margin-top: 2px; }
.ana-auto, .ana-manual { font-size: 10px; padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.ana-auto { background: rgba(53,211,153,0.16); color: var(--good); }
.ana-manual { background: rgba(124,108,255,0.18); color: var(--accent); }
.ana-hint { font-size: 11px; color: var(--text-faint); margin-left: 6px; }
.ana-feats { display: flex; gap: 7px; flex-wrap: wrap; }
.ana-feat { font-family: var(--mono); font-size: 11px; color: var(--text-dim); background: var(--bg-3); border: 1px solid var(--line); padding: 4px 9px; border-radius: var(--r-sm); }
.ana-struct { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.seg-flow { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; margin: 7px 0 6px; }
.seg { font-size: 12px; font-weight: 600; padding: 4px 11px; border-radius: 999px; background: var(--bg-4); color: var(--text-dim); border: 1px solid var(--line); }
.seg-副歌 { background: rgba(124,108,255,0.22); color: #cfc7ff; border-color: rgba(124,108,255,0.4); }
.seg-主歌 { background: rgba(38,213,232,0.14); color: #bff0f6; border-color: rgba(38,213,232,0.3); }
.seg-arrow { color: var(--text-faint); font-style: normal; font-size: 11px; margin: 0 1px; }
.ana-sub { font-size: 12px; color: var(--text-faint); margin-top: 4px; }

/* 参考曲上传行 */
.drop-ref { display: flex; align-items: center; gap: 10px; padding: 11px 14px; margin-bottom: 12px;
  border: 1px dashed var(--line-2); border-radius: var(--r-sm); background: var(--bg-2); cursor: pointer;
  transition: border-color .15s, background .15s; }
.drop-ref:hover { border-color: var(--accent); background: var(--bg-3); }
.drop-ref.filled { border-style: solid; border-color: var(--accent); }
.drop-ref .ref-icon { font-size: 18px; }
.drop-ref .ref-txt { font-size: 13px; color: var(--text-dim); }
.drop-ref .ref-txt b { color: var(--text); font-weight: 600; }
.drop-ref .drop-file { margin-left: auto; font-size: 12px; color: var(--accent-2); font-family: var(--mono); }

/* 分步试听诊断 */
.steps-panel { margin-top: 16px; }
.steps-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.steps-head > span { font-size: 13px; color: var(--text-dim); }
.btn-steps { background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 8px; padding: 7px 14px; font-size: 13px; font-family: inherit; cursor: pointer; white-space: nowrap; }
.btn-steps:hover:not(:disabled) { border-color: var(--accent); }
.btn-steps:disabled { opacity: .6; cursor: default; }
.steps-hint { font-size: 12px; color: var(--text-dim); margin-bottom: 12px; line-height: 1.6; }
.step-row { display: grid; grid-template-columns: 180px auto 1fr auto; gap: 12px; align-items: center;
  padding: 8px 0; border-top: 1px solid var(--line); }
.step-info { display: flex; align-items: center; gap: 8px; min-width: 0; }
.step-num { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--bg-3);
  color: var(--accent-2); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.step-name { font-size: 12px; color: var(--text); }
.step-ab { display: flex; gap: 6px; flex: none; }
.ab-btn { font-size: 11px; font-family: inherit; white-space: nowrap; padding: 5px 10px;
  border-radius: 999px; border: 1px solid var(--line-2); background: var(--bg-3); color: var(--text-dim);
  cursor: pointer; transition: border-color .15s, color .15s; }
.ab-btn:hover { border-color: var(--accent); color: var(--text); }
.ab-btn.ab-before { }
.ab-btn.ab-after { color: var(--accent-2); border-color: var(--accent-2); }
.ab-btn.playing { background: var(--accent); color: var(--bg-1); border-color: var(--accent); font-weight: 700; }
.step-wave { height: 30px; opacity: .7; }
.step-metrics { display: flex; gap: 6px; flex: none; }
.step-metrics .sm { font-size: 11px; color: var(--text-dim); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 6px; padding: 2px 7px; font-family: var(--mono); white-space: nowrap; }
.step-metrics .sm.warn { color: #e8956b; border-color: #d4674a; }
.step-metrics .sm.jump { color: #e8b84a; border-color: #c99a2e; font-weight: 700; }
.steps-group { margin-top: 10px; }
.steps-group:first-of-type { margin-top: 0; }
.steps-group-head { display: flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  font-size: 12px; font-weight: 700; color: var(--accent-2); letter-spacing: .03em;
  padding: 8px 0; border-top: 1px solid var(--line-2); }
.steps-group-head:hover { color: var(--accent); }
.steps-group-head .grp-caret { font-size: 10px; transition: transform .15s; }
.steps-group.collapsed .grp-caret { transform: rotate(-90deg); }
.steps-group-head .grp-name { flex: 1; }
.steps-group-head .grp-count { font-size: 11px; font-weight: 400; color: var(--text-dim); font-family: var(--mono); }
.steps-group.collapsed .steps-group-body { display: none; }
@media (max-width: 640px) { .step-row { grid-template-columns: 1fr; gap: 6px; } .step-metrics { flex-wrap: wrap; } }

/* 美学质量分徽章 */
.aes-badge { margin-left: 8px; font-size: 11px; font-weight: 600; color: var(--bg-1);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); padding: 2px 8px;
  border-radius: 999px; white-space: nowrap; }
.card-head .aes-badge:first-of-type { margin-left: auto; }
.aes-badge.aes-warn { background: linear-gradient(135deg, #e8956b, #d4674a); }

/* 对话精修:目标候选选择器 */
.chat-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.chat-target-row { font-size: 12px; color: var(--text-dim); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
#chat-target { background: var(--bg-3); color: var(--text); border: 1px solid var(--line-2);
  border-radius: 6px; padding: 3px 8px; font-size: 12px; font-family: inherit; max-width: 210px; }
#chat-target:focus { outline: none; border-color: var(--accent); }

/* 首屏"要求"输入 */
.req-row { display: flex; align-items: center; gap: 10px; padding: 10px 14px; margin-bottom: 12px;
  border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--bg-2);
  transition: border-color .15s, background .15s; }
.req-row:focus-within { border-color: var(--accent); background: var(--bg-3); }
.req-row .req-label { font-size: 13px; color: var(--text-dim); white-space: nowrap; }
.req-row input { flex: 1; min-width: 0; border: none; background: transparent; outline: none;
  color: var(--text); font-size: 14px; font-family: inherit; }
.req-row input::placeholder { color: var(--text-dim); opacity: .7; }

/* 多设备试听栏 */
.device-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px;
  padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-2); }
.device-label { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-faint); }
.device-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.device-btns .dev { font-size: 12px; padding: 5px 11px; border-radius: 999px; cursor: pointer;
  background: var(--bg-3); color: var(--text-dim); border: 1px solid var(--line); transition: all .12s; }
.device-btns .dev:hover { color: var(--text); border-color: var(--line-2); }
.device-btns .dev.active { background: var(--grad); color: #08111a; border-color: transparent; font-weight: 600; }
.device-hint { font-size: 11px; color: var(--text-faint); margin-left: auto; }

/* 调整/重混面板 */
.refine { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 8px; }
.refine > summary { cursor: pointer; font-size: 12px; color: var(--accent-2); list-style: none; user-select: none; }
.refine > summary::-webkit-details-marker { display: none; }
.refine-knobs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; margin: 10px 0; }
.refine-knobs label { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-dim); }
.refine-knobs input[type=range] { flex: 1; accent-color: var(--accent); height: 3px; }
.refine-knobs label i { font-family: var(--mono); font-size: 10px; color: var(--text-faint); min-width: 30px; text-align: right; font-style: normal; }
.btn-remix { width: 100%; padding: 8px; border: none; border-radius: var(--r-sm); cursor: pointer;
  background: var(--grad); color: #08111a; font-weight: 600; font-size: 13px; transition: opacity .15s; }
.btn-remix:hover { opacity: .9; }
.btn-remix:disabled { opacity: .5; cursor: default; }

/* 分析方案 chip */
.ana-feat.plan { background: rgba(124,108,255,0.14); color: #cfc7ff; border-color: rgba(124,108,255,0.35); }

/* 对话式微调 */
.chatbox { margin-top: 18px; padding: 14px 16px; }
.chat-head { font-size: 13px; color: var(--text); font-weight: 600; margin-bottom: 10px; }
.chat-log { display: flex; flex-direction: column; gap: 8px; max-height: 360px; overflow-y: auto; margin-bottom: 10px; }
.chat-row { display: flex; gap: 8px; align-items: baseline; font-size: 13px; }
.chat-row.you { color: var(--text); }
.chat-row.bot { color: var(--text-dim); }
.chat-who { flex: 0 0 auto; font-size: 10px; padding: 2px 7px; border-radius: 999px; }
.chat-row.you .chat-who { background: rgba(124,108,255,0.2); color: var(--accent); }
.chat-row.bot .chat-who { background: var(--bg-3); color: var(--text-faint); }
.chat-txt { line-height: 1.5; }
.chat-mix { margin: 2px 0 6px; }
.chat-input { display: flex; gap: 8px; }
.chat-input input { flex: 1; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--r-sm); color: var(--text); padding: 9px 12px; font-size: 13px; font-family: var(--sans); }
.chat-input input:focus { outline: none; border-color: var(--accent); }
.chat-input button { padding: 9px 18px; border: none; border-radius: var(--r-sm); background: var(--grad); color: #08111a; font-weight: 600; cursor: pointer; }
.chat-input button:disabled { opacity: .5; }
