/* ═══════════════════════════════════════════════════
   Asunite Parts Gap Intelligence — DEMO UI
   深色工業情報風格 · 統一設計語言
   ═══════════════════════════════════════════════════ */

:root {
  --bg-0: #0b0e14;
  --bg-1: #10141d;
  --bg-2: #161c28;
  --bg-3: #1d2534;
  --line: #232c3d;
  --line-soft: #1a2231;
  --txt-0: #e8edf5;
  --txt-1: #a8b3c7;
  --txt-2: #6b7891;
  --accent: #37c8ab;       /* Asunite 青綠 */
  --accent-soft: rgba(55,200,171,.12);
  --blue: #4f9cf7;
  --purple: #a78bfa;
  --amber: #f2b544;
  --red: #f26d6d;
  --green: #4ade80;
  --deep-green: #16a34a;
  --gray: #64748b;
  --mono: "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", "Noto Sans TC", "PingFang TC", -apple-system, sans-serif;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg-0);
  color: var(--txt-0);
  font-size: 14px;
  overflow: hidden;
}
button { font-family: inherit; cursor: pointer; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: #2a3448; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }

#app { display: flex; height: 100vh; }

/* ─────────── Sidebar ─────────── */
#sidebar {
  width: 248px; min-width: 248px;
  background: var(--bg-1);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 16px 14px; border-bottom: 1px solid var(--line-soft); }
.brand-logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), #1d8f7a);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; color: #06231d;
}
.brand-name { font-weight: 700; font-size: 15px; letter-spacing: .3px; }
.brand-sub { font-size: 10.5px; color: var(--txt-2); letter-spacing: .4px; }

#nav { flex: 1; overflow-y: auto; padding: 10px 10px 20px; }
.nav-section {
  font-size: 10px; text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--txt-2); padding: 14px 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 9px; width: 100%;
  background: none; border: none; color: var(--txt-1);
  padding: 8px 10px; border-radius: 8px; font-size: 13px; text-align: left;
  transition: all .15s;
}
.nav-item:hover { background: var(--bg-2); color: var(--txt-0); }
.nav-item.active { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.nav-ico { width: 18px; text-align: center; font-size: 13px; }
.nav-tag {
  margin-left: auto; font-size: 9px; padding: 2px 6px; border-radius: 20px;
  background: var(--bg-3); color: var(--txt-2); letter-spacing: .5px;
}
.nav-tag.live { background: rgba(242,109,109,.15); color: var(--red); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .55; } }

.sidebar-foot { border-top: 1px solid var(--line-soft); padding: 12px 16px; }
.foot-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--txt-2); padding: 3px 0; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-green { background: var(--green); box-shadow: 0 0 6px var(--green); }
.dot-amber { background: var(--amber); box-shadow: 0 0 6px var(--amber); }

/* ─────────── Main ─────────── */
#main { flex: 1; overflow-y: auto; position: relative; }
#view-container { padding: 26px 32px 80px; max-width: 1240px; margin: 0 auto; }

.view-head { margin-bottom: 20px; }
.view-title { font-size: 22px; font-weight: 700; letter-spacing: .2px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.view-desc { color: var(--txt-1); margin-top: 6px; font-size: 13.5px; line-height: 1.6; max-width: 860px; }

/* ─────────── 通用元件 ─────────── */
.card {
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px 20px; margin-bottom: 16px;
}
.card-title { font-size: 13px; font-weight: 700; letter-spacing: .6px; color: var(--txt-1); text-transform: uppercase; margin-bottom: 14px; display:flex; align-items:center; gap:8px; }
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: 1fr 1fr; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }
@media (max-width: 1100px) { .g4, .g6 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: 1fr; } }

/* KPI */
.kpi { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi-label { font-size: 11px; color: var(--txt-2); letter-spacing: .5px; }
.kpi-value { font-size: 26px; font-weight: 800; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi-delta { font-size: 11px; margin-top: 3px; }
.kpi-delta.up { color: var(--green); }
.kpi-delta.warn { color: var(--amber); }

/* 來源可信度標籤（規格第 0 章） */
.src {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; padding: 2.5px 8px; border-radius: 20px;
  font-weight: 600; letter-spacing: .3px; white-space: nowrap;
}
.src::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.src-verified   { background: rgba(74,222,128,.12); color: var(--green); }     /* 官網已驗證 */
.src-market     { background: rgba(79,156,247,.12); color: var(--blue); }      /* 公開市場已擷取 */
.src-supplier   { background: rgba(167,139,250,.14); color: var(--purple); }   /* 供應商已回覆 */
.src-ai         { background: rgba(242,181,68,.13); color: var(--amber); }     /* AI 推論 */
.src-human      { background: rgba(22,163,74,.18); color: #34d399; }           /* 人工已確認 */
.src-pending    { background: rgba(100,116,139,.15); color: var(--gray); }     /* 待取得 */
.src-demo       { background: rgba(242,109,109,.12); color: var(--red); }      /* DEMO 樣本 */

/* 表格 */
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tbl th {
  text-align: left; color: var(--txt-2); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: .8px; padding: 8px 10px; border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tbl tr:hover td { background: rgba(255,255,255,.015); }
.tbl .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* 按鈕 */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-3); color: var(--txt-0); border: 1px solid var(--line);
  padding: 9px 16px; border-radius: 9px; font-size: 13px; font-weight: 600;
  transition: all .15s;
}
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn-primary { background: var(--accent); color: #06231d; border-color: var(--accent); }
.btn-primary:hover { background: #45dcbe; color: #06231d; }
.btn-ghost { background: transparent; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn-sm { padding: 5px 11px; font-size: 12px; border-radius: 7px; }

/* code / mono 區塊 */
.mono-block {
  font-family: var(--mono); font-size: 12px; line-height: 1.65;
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 9px; padding: 13px 15px; white-space: pre-wrap;
  color: #b9c6dd; overflow-x: auto;
}
.mono-block .k { color: var(--blue); }
.mono-block .v { color: var(--accent); }
.mono-block .c { color: var(--txt-2); }
.mono-block .warn { color: var(--amber); }

/* Gap Score 環 */
.gap-ring { position: relative; width: 92px; height: 92px; }
.gap-ring svg { transform: rotate(-90deg); }
.gap-ring .ring-val { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.gap-ring .ring-num { font-size: 24px; font-weight: 800; font-family: var(--mono); }
.gap-ring .ring-lab { font-size: 9px; color: var(--txt-2); letter-spacing: 1px; }

/* 進度條 */
.bar-row { display: flex; align-items: center; gap: 10px; margin: 7px 0; }
.bar-label { width: 220px; font-size: 12px; color: var(--txt-1); }
.bar-track { flex: 1; height: 8px; background: var(--bg-3); border-radius: 5px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 5px; background: var(--accent); transition: width 1s cubic-bezier(.2,.8,.2,1); }
.bar-val { width: 44px; text-align: right; font-family: var(--mono); font-size: 12px; }

/* ═══════════ Agent Pipeline（核心視覺）═══════════ */
.pipe-wrap { display: flex; gap: 20px; align-items: flex-start; }
.pipe-rail { width: 300px; min-width: 300px; position: sticky; top: 0; }
.pipe-stage {
  display: flex; gap: 12px; padding: 11px 12px; border-radius: 10px;
  border: 1px solid transparent; margin-bottom: 4px; opacity: .38; transition: all .3s;
}
.pipe-stage .st-ico {
  width: 28px; height: 28px; min-width: 28px; border-radius: 8px;
  background: var(--bg-3); display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--txt-2); font-family: var(--mono); font-weight: 700;
}
.pipe-stage .st-name { font-size: 12.5px; font-weight: 600; }
.pipe-stage .st-sub { font-size: 10.5px; color: var(--txt-2); margin-top: 2px; }
.pipe-stage.running { opacity: 1; border-color: var(--accent); background: var(--accent-soft); }
.pipe-stage.running .st-ico { background: var(--accent); color: #06231d; animation: pulse 1.2s infinite; }
.pipe-stage.done { opacity: .85; }
.pipe-stage.done .st-ico { background: rgba(74,222,128,.15); color: var(--green); }

.pipe-flow { flex: 1; min-width: 0; }
.stage-block {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); margin-bottom: 18px; overflow: hidden;
  animation: slideIn .4s ease;
}
@keyframes slideIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.stage-head {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 18px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2);
}
.stage-head .sh-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  background: var(--accent); color: #06231d; border-radius: 6px; padding: 2px 7px;
}
.stage-head .sh-title { font-weight: 700; font-size: 13.5px; }
.stage-head .sh-agent { margin-left: auto; font-size: 10.5px; color: var(--txt-2); font-family: var(--mono); }
.stage-body { padding: 16px 18px; }

/* 思考過程串流 */
.thinking {
  border-left: 3px solid var(--amber); background: rgba(242,181,68,.05);
  border-radius: 0 8px 8px 0; padding: 10px 14px; margin-bottom: 14px;
  font-size: 12.5px; color: #d8c9a4; line-height: 1.7;
}
.thinking .th-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1.2px; color: var(--amber); font-weight: 700; margin-bottom: 5px; display: flex; align-items: center; gap: 6px; }
.thinking .th-label::before { content: "◍"; animation: spin 2s linear infinite; display: inline-block; }
.thinking.done .th-label::before { content: "✓"; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.cursor-blink::after { content: "▌"; animation: blink 1s step-start infinite; color: var(--amber); }
@keyframes blink { 50% { opacity: 0; } }

/* 中間產物 */
.artifact {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-0);
  margin-top: 12px; overflow: hidden; animation: slideIn .35s ease;
}
.artifact-head {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px;
  background: var(--bg-2); font-size: 11px; color: var(--txt-1);
  border-bottom: 1px solid var(--line-soft); letter-spacing: .4px;
}
.artifact-head .a-type { font-family: var(--mono); color: var(--accent); font-weight: 700; }
.artifact-body { padding: 13px 15px; }

/* Scan log */
.scanlog { font-family: var(--mono); font-size: 11.5px; line-height: 1.9; color: var(--txt-1); }
.scanlog .ok { color: var(--green); }
.scanlog .run { color: var(--amber); }
.scanlog .fail { color: var(--red); }
.scanlog .dim { color: var(--txt-2); }

/* Chips */
.chip {
  display: inline-block; padding: 3px 10px; border-radius: 20px;
  background: var(--bg-3); font-size: 11.5px; color: var(--txt-1); margin: 3px 4px 3px 0;
  border: 1px solid var(--line);
}
.chip.on { background: var(--accent-soft); color: var(--accent); border-color: rgba(55,200,171,.35); }

/* Seller 分類徽章 */
.seller-type { font-size: 10.5px; padding: 2px 8px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
.st-auth { background: rgba(74,222,128,.12); color: var(--green); }
.st-longtail { background: rgba(79,156,247,.12); color: var(--blue); }
.st-repair { background: rgba(242,181,68,.13); color: var(--amber); }
.st-cross { background: rgba(167,139,250,.14); color: var(--purple); }
.st-si { background: rgba(242,109,109,.12); color: var(--red); }
.st-refurb { background: rgba(100,116,139,.18); color: #94a3b8; }

/* ═══════════ Wizard ═══════════ */
.wizard-steps { display: flex; gap: 4px; margin-bottom: 22px; }
.wz-step {
  flex: 1; text-align: center; padding: 9px 4px; font-size: 11.5px;
  background: var(--bg-2); color: var(--txt-2); border-radius: 8px; font-weight: 600;
  border: 1px solid transparent;
}
.wz-step.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(55,200,171,.3); }
.wz-step.done { color: var(--green); }
.form-row { display: flex; gap: 14px; margin-bottom: 14px; flex-wrap: wrap; }
.form-field { flex: 1; min-width: 200px; }
.form-field label { display: block; font-size: 11px; color: var(--txt-2); letter-spacing: .5px; margin-bottom: 6px; text-transform: uppercase; }
.form-field select, .form-field input, .form-field textarea {
  width: 100%; background: var(--bg-0); border: 1px solid var(--line); color: var(--txt-0);
  border-radius: 8px; padding: 9px 12px; font-size: 13px; font-family: inherit;
}
.form-field select:focus, .form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--accent); }
.check-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; font-size: 13px; color: var(--txt-1); cursor: pointer; }
.check-row input { accent-color: var(--accent); width: 15px; height: 15px; }

/* ═══════════ Knowledge Graph ═══════════ */
.graph-wrap { display: flex; gap: 16px; height: calc(100vh - 200px); min-height: 560px; }
#graph-canvas-box {
  flex: 1; position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: radial-gradient(ellipse at 50% 40%, #131a27 0%, #0a0d13 75%);
  overflow: hidden;
}
#graph-canvas { position: absolute; inset: 0; cursor: grab; }
#graph-canvas:active { cursor: grabbing; }
.graph-panel {
  width: 320px; min-width: 320px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--bg-1); overflow-y: auto; padding: 16px;
}
.graph-legend {
  position: absolute; left: 14px; bottom: 14px; background: rgba(11,14,20,.85);
  border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; font-size: 11px;
  backdrop-filter: blur(6px);
}
.gl-row { display: flex; align-items: center; gap: 8px; padding: 2.5px 0; color: var(--txt-1); }
.gl-dot { width: 9px; height: 9px; border-radius: 50%; }
.graph-toolbar { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; }
.node-detail-title { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.node-detail-type { font-size: 11px; color: var(--txt-2); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 12px; }
.kv { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.kv .k { color: var(--txt-2); }
.kv .v { text-align: right; font-family: var(--mono); }

/* ═══════════ Voice ═══════════ */
.voice-stage {
  border: 1px solid var(--line); border-radius: 16px;
  background: linear-gradient(180deg, #10141d 0%, #0b0f17 100%);
  padding: 24px; position: relative; overflow: hidden;
}
.wave-box { position: relative; height: 130px; border-radius: 12px; background: #080b11; border: 1px solid var(--line-soft); overflow: hidden; }
.wave-box canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave-status {
  position: absolute; top: 10px; left: 14px; font-size: 11px; font-family: var(--mono);
  letter-spacing: 1px; display: flex; align-items: center; gap: 7px; z-index: 2;
}
.wave-status .ws-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray); }
.wave-status.listening .ws-dot { background: var(--red); box-shadow: 0 0 10px var(--red); animation: pulse 1s infinite; }
.wave-status.speaking .ws-dot { background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 1s infinite; }

.voice-controls { display: flex; gap: 12px; justify-content: center; margin: 18px 0 6px; align-items: center; }
.mic-btn {
  width: 66px; height: 66px; border-radius: 50%; border: 2px solid var(--line);
  background: var(--bg-3); font-size: 26px; transition: all .2s; position: relative;
}
.mic-btn:hover { border-color: var(--accent); transform: scale(1.05); }
.mic-btn.rec { background: rgba(242,109,109,.18); border-color: var(--red); box-shadow: 0 0 0 8px rgba(242,109,109,.08), 0 0 26px rgba(242,109,109,.35); }

.chat-log { max-height: 420px; overflow-y: auto; padding: 6px 2px; }
.msg { display: flex; gap: 10px; margin: 12px 0; animation: slideIn .3s ease; }
.msg .avatar {
  width: 32px; height: 32px; min-width: 32px; border-radius: 9px; display: flex;
  align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.msg.user .avatar { background: var(--bg-3); }
.msg.agent .avatar { background: linear-gradient(135deg, var(--accent), #1d8f7a); color: #06231d; }
.msg .bubble {
  background: var(--bg-2); border: 1px solid var(--line-soft); border-radius: 12px;
  padding: 10px 14px; font-size: 13px; line-height: 1.65; max-width: 640px;
}
.msg.user .bubble { background: var(--bg-3); }
.msg .meta { font-size: 10px; color: var(--txt-2); margin-top: 5px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.speak-btn { background: none; border: 1px solid var(--line); color: var(--txt-2); border-radius: 6px; font-size: 10px; padding: 2px 8px; }
.speak-btn:hover { color: var(--accent); border-color: var(--accent); }

/* 語音側欄：即時萃取 */
.live-extract { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 16px; }
.extract-field { display: flex; justify-content: space-between; padding: 7px 2px; border-bottom: 1px dashed var(--line-soft); font-size: 12.5px; }
.extract-field .ef-k { color: var(--txt-2); }
.extract-field .ef-v { font-family: var(--mono); color: var(--txt-2); }
.extract-field.filled .ef-v { color: var(--accent); font-weight: 600; }
.extract-field.filled { animation: fieldGlow 1s ease; }
@keyframes fieldGlow { 0% { background: var(--accent-soft); } 100% { background: transparent; } }

/* ═══════════ Skill 蒸餾 ═══════════ */
.source-card {
  border: 1px solid var(--line); border-radius: 10px; background: var(--bg-1);
  padding: 13px 15px; cursor: pointer; transition: all .18s; position: relative;
}
.source-card:hover { border-color: var(--accent); }
.source-card.selected { border-color: var(--accent); background: var(--accent-soft); }
.source-card .sc-type { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--txt-2); margin-bottom: 6px; display: flex; align-items: center; gap: 6px; }
.source-card .sc-title { font-weight: 600; font-size: 13px; }
.source-card .sc-preview { font-size: 11.5px; color: var(--txt-2); margin-top: 6px; line-height: 1.55; max-height: 52px; overflow: hidden; }

.skill-card {
  border: 1px solid rgba(55,200,171,.3); border-radius: 12px;
  background: linear-gradient(160deg, rgba(55,200,171,.06), transparent 55%), var(--bg-1);
  padding: 15px 17px; animation: slideIn .4s ease;
}
.skill-card .sk-name { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.skill-card .sk-cat { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.skill-card .sk-quote { font-size: 12.5px; color: var(--txt-1); border-left: 3px solid var(--accent); padding: 6px 12px; margin: 8px 0; background: rgba(55,200,171,.04); border-radius: 0 6px 6px 0; line-height: 1.6; }
.skill-card .sk-stats { display: flex; gap: 14px; font-size: 11px; color: var(--txt-2); margin-top: 8px; }
.skill-card .sk-stats b { color: var(--txt-0); font-family: var(--mono); }

/* ═══════════ Coach ═══════════ */
.coach-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.coach-hint {
  border-left: 3px solid var(--amber); background: rgba(242,181,68,.06);
  padding: 10px 14px; border-radius: 0 9px 9px 0; margin: 10px 0; font-size: 12.5px;
  animation: slideIn .3s ease;
}
.coach-hint.good { border-color: var(--green); background: rgba(74,222,128,.06); }
.coach-hint.risk { border-color: var(--red); background: rgba(242,109,109,.06); }
.coach-hint .ch-label { font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 4px; }
.coach-hint.good .ch-label { color: var(--green); }
.coach-hint.risk .ch-label { color: var(--red); }
.coach-hint .ch-label { color: var(--amber); }

.score-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-size: 12px; }
.score-row .sr-name { width: 170px; color: var(--txt-1); }
.score-row .sr-track { flex: 1; height: 7px; background: var(--bg-3); border-radius: 4px; overflow: hidden; }
.score-row .sr-fill { height: 100%; border-radius: 4px; transition: width 1.2s cubic-bezier(.2,.8,.2,1); }

/* FAB */
#voice-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 50;
  display: flex; align-items: center; gap: 9px;
  background: linear-gradient(135deg, var(--accent), #1d8f7a); color: #06231d;
  padding: 12px 20px; border-radius: 40px; font-weight: 700; font-size: 13.5px;
  cursor: pointer; box-shadow: 0 8px 30px rgba(55,200,171,.35);
  transition: transform .18s;
}
#voice-fab:hover { transform: translateY(-3px) scale(1.03); }

/* misc */
.flex { display: flex; align-items: center; gap: 10px; }
.spread { justify-content: space-between; }
.muted { color: var(--txt-2); }
.small { font-size: 11.5px; }
.mt8 { margin-top: 8px; } .mt16 { margin-top: 16px; } .mb8 { margin-bottom: 8px; }
.accent { color: var(--accent); }
.amber { color: var(--amber); }
.red { color: var(--red); }
.green { color: var(--green); }
.price { font-family: var(--mono); font-weight: 700; }
.hr { border: none; border-top: 1px solid var(--line-soft); margin: 14px 0; }

.compare-cols { display: grid; grid-template-columns: 1fr 60px 1fr; gap: 0; align-items: stretch; }
.compare-col { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-1); padding: 18px; }
.compare-col.winner { border-color: rgba(55,200,171,.45); box-shadow: 0 0 30px rgba(55,200,171,.07); }
.compare-vs { display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--txt-2); font-size: 15px; }

.alert-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; align-items: flex-start; }
.alert-item .ai-ico { font-size: 13px; margin-top: 1px; }

.tab-row { display: flex; gap: 6px; margin-bottom: 16px; flex-wrap: wrap; }
.tab-btn {
  background: var(--bg-2); border: 1px solid var(--line); color: var(--txt-1);
  padding: 7px 14px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
}
.tab-btn.active { background: var(--accent-soft); color: var(--accent); border-color: rgba(55,200,171,.35); }

.empty-hint { text-align: center; color: var(--txt-2); padding: 40px 20px; font-size: 13px; line-height: 1.8; }
