:root {
  --bg: #0a0e1a;
  --bg-soft: #111728;
  --card: #141b30;
  --card-2: #1a2342;
  --border: #25304f;
  --text: #e8ecf6;
  --muted: #93a0bd;
  --accent: #4a63ff;         /* VendSolution 品牌蓝（提亮用于暗色界面） */
  --accent-strong: #1d30c7; /* VendSolution 品牌原蓝 */
  --accent-2: #ff6a00;      /* VendSolution 品牌橙 */
  --good: #36d399;
  --warn: #fbbd23;
  --bad: #f87272;
  --shadow: 0 10px 40px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: radial-gradient(1200px 600px at 70% -10%, #1d2a5e 0%, transparent 60%), var(--bg);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Topbar */
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px; border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,.7); backdrop-filter: blur(8px);
  position: sticky; top: 0; z-index: 10;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-logo { height: 22px; width: auto; display: block; }
.brand-name { font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.brand-sub { font-size: 12px; color: var(--muted); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.badge {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: var(--card-2); border: 1px solid var(--border); color: var(--muted);
}
.badge.live { color: var(--good); border-color: rgba(54,211,153,.4); }
.badge.mock { color: var(--warn); border-color: rgba(251,189,35,.4); }
.ghost-btn {
  font-size: 13px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--border); color: var(--text); background: var(--card);
}
.ghost-btn:hover { border-color: var(--accent); text-decoration: none; }

/* Hero */
.hero { max-width: 920px; margin: 0 auto; padding: 72px 24px 40px; text-align: center; }
.hero h1 { font-size: 46px; line-height: 1.15; margin: 0 0 18px; font-weight: 850;
  background: linear-gradient(90deg, #fff, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--muted); font-size: 17px; max-width: 720px; margin: 0 auto 14px; }
.hero-sub b { color: var(--text); }
.hero-sub i { color: var(--accent-2); }
.hero-brand { color: var(--muted); font-size: 13.5px; max-width: 720px; margin: 0 auto 28px; }
.hero-brand b { color: var(--accent-2); }
.primary-btn {
  font-size: 16px; font-weight: 700; color: #06121f; cursor: pointer;
  padding: 13px 30px; border: none; border-radius: 12px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 30px rgba(108,140,255,.35); transition: transform .15s;
}
.primary-btn:hover { transform: translateY(-2px); }
.hero-tags { margin-top: 26px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.hero-tags span { font-size: 13px; color: var(--muted); background: var(--card); border: 1px solid var(--border); padding: 6px 12px; border-radius: 999px; }

/* Analyzer */
.analyzer { max-width: 1080px; margin: 24px auto; padding: 0 24px; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab {
  font-size: 15px; cursor: pointer; padding: 10px 18px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--card); color: var(--muted);
}
.tab.active { color: var(--text); border-color: var(--accent); background: var(--card-2); }
.tab-panel { animation: fade .25s ease; }
.hidden { display: none !important; }
.hint { color: var(--muted); font-size: 14px; margin: 0 0 16px; }

/* 分类切换：模拟数据 / 已有数据 */
.seg { display: inline-flex; gap: 4px; padding: 4px; background: var(--card); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 18px; }
.seg-btn {
  font-size: 14px; font-weight: 600; cursor: pointer; padding: 9px 18px; border-radius: 9px;
  border: none; background: transparent; color: var(--muted); transition: .15s;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.active { color: #06121f; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Scenario grid */
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 16px; }
.scenario-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  cursor: pointer; transition: transform .15s, border-color .15s; position: relative;
}
.scenario-card:hover { transform: translateY(-3px); border-color: var(--accent); }
.scenario-card .icon { font-size: 32px; }
.scenario-card .name { font-weight: 700; font-size: 17px; margin: 8px 0 4px; }
.scenario-card .tag { color: var(--accent-2); font-size: 13px; }
.scenario-card .loc { color: var(--muted); font-size: 12px; margin-top: 8px; }
.scenario-card .run { margin-top: 14px; font-size: 14px; font-weight: 700; color: var(--accent); }
.scenario-card.real { border-color: rgba(255,106,0,.4); background: linear-gradient(160deg, var(--card), rgba(255,106,0,.06)); }
.scenario-card.real:hover { border-color: var(--accent-2); }
.scenario-card.real .run { color: var(--accent-2); }
.dtype {
  position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 700;
  padding: 4px 9px; border-radius: 999px; color: #06121f;
  background: linear-gradient(90deg, var(--accent-2), #ffb066);
}
/* 模拟数据卡片在未登录时的「需登录」提示 */
.scenario-card .lock {
  display: inline-block; margin-top: 8px; font-size: 11px; font-weight: 600;
  color: #ffd28a; background: rgba(255,170,40,.12);
  border: 1px solid rgba(255,170,40,.35); border-radius: 999px; padding: 3px 9px;
}

/* 「上传你的数据」加号卡片 */
.upload-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-style: dashed; border-color: var(--border);
  background: transparent; color: var(--muted); min-height: 170px;
}
.upload-card:hover { border-color: var(--accent); color: var(--text); transform: translateY(-3px); }
.upload-plus {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center;
  font-size: 34px; font-weight: 300; line-height: 1; margin-bottom: 10px;
  color: #06121f; background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(29,48,199,.25);
}
.upload-card .name { font-size: 16px; }
.upload-card .tag { color: var(--muted); font-size: 12px; margin-top: 4px; }
.upload-card .upload-list {
  margin-top: 10px; font-size: 11.5px; color: var(--muted);
  background: var(--bg-soft); border: 1px solid var(--border);
  border-radius: 8px; padding: 6px 10px; line-height: 1.5;
}
.upload-card .need-title { margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--text); }
.upload-card .need-list {
  margin: 6px 0 0; padding-left: 16px; font-size: 11.5px; color: var(--muted);
  text-align: left; line-height: 1.6;
}
.upload-card .need-list li { list-style: disc; }
.upload-card .tpl-down {
  display: inline-block; margin-top: 12px; font-size: 12.5px; font-weight: 700;
  color: #06121f; text-decoration: none; cursor: pointer;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 999px; padding: 7px 14px;
}
.upload-card .tpl-down:hover { filter: brightness(1.06); }
.upload-card .run { color: var(--accent); margin-top: 12px; }

/* 「预览报告」模块卡片 */
.report-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; border-color: rgba(74,99,255,.45);
  background: linear-gradient(160deg, var(--card), rgba(74,99,255,.10));
}
.report-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.report-card .report-ic {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 30px; margin-bottom: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  box-shadow: 0 6px 18px rgba(74,99,255,.3);
}
.report-card .name { font-size: 16px; }
.report-card .tag { color: var(--muted); font-size: 12px; margin-top: 4px; }
.report-card .run { color: var(--accent); margin-top: 12px; }

/* 场景点击后的「AI 正在分析」过程动画层 */
.analyze-overlay {
  position: fixed; inset: 0; z-index: 90; display: grid; place-items: center;
  background: rgba(6,18,31,.62); backdrop-filter: blur(3px);
}
.ao-card {
  width: min(440px, 92vw); padding: 26px 26px 20px; border-radius: 18px;
  background: var(--card); border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0,0,0,.45); animation: qrPop .18s ease-out;
}
.ao-title { font-size: 16px; font-weight: 800; color: var(--text); margin-bottom: 20px; }
.ao-title b { color: var(--accent-2); }
.ao-steps { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.ao-step { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); transition: color .2s; }
.ao-step .ao-ic {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 auto;
  border: 2px solid var(--border); display: grid; place-items: center;
  font-size: 12px; color: #fff; transition: .25s;
}
.ao-step.done { color: var(--text); }
.ao-step.done .ao-ic { background: var(--good); border-color: var(--good); }
.ao-step.done .ao-ic::after { content: '✓'; }
.ao-step.err .ao-ic { background: var(--bad); border-color: var(--bad); }
.ao-step.err .ao-ic::after { content: '!'; }
.ao-step.running .ao-ic { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.ao-final { font-weight: 600; }
.ao-log {
  max-height: 150px; overflow: auto; margin: 4px 0 0; padding: 12px 14px;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  font-size: 12px; line-height: 1.6; color: var(--muted); white-space: pre-wrap;
}

/* 上传数据二维码弹窗 */
.qr-modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; }
.qr-backdrop { position: absolute; inset: 0; background: rgba(6,18,31,.62); backdrop-filter: blur(3px); }
.qr-card {
  position: relative; z-index: 1; width: min(360px, 90vw); padding: 28px 24px 24px;
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  text-align: center; box-shadow: 0 24px 70px rgba(0,0,0,.45);
  animation: qrPop .18s ease-out;
}
@keyframes qrPop { from { transform: scale(.94); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.qr-close {
  position: absolute; top: 10px; right: 14px; border: none; background: transparent;
  font-size: 26px; line-height: 1; color: var(--muted); cursor: pointer;
}
.qr-close:hover { color: var(--text); }
.qr-title { font-size: 20px; font-weight: 800; color: var(--text); }
.qr-sub { color: var(--muted); font-size: 13px; margin: 6px 0 16px; }
.qr-img {
  width: 200px; height: 200px; margin: 0 auto 16px; border-radius: 14px;
  background: #fff; padding: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.18);
}
.qr-text { font-size: 14px; color: var(--text); line-height: 1.6; }
.qr-text b { color: var(--accent-2); }

/* Form */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--muted); }
.form-grid .span2 { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea, .form-grid select {
  background: var(--bg-soft); border: 1px solid var(--border); color: var(--text);
  border-radius: 10px; padding: 10px 12px; font-size: 14px; font-family: inherit;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { outline: none; border-color: var(--accent); }
.form-grid textarea { resize: vertical; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.checkbox { flex-direction: row; align-items: center; gap: 8px; }
.checkbox input { width: auto; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 2px; }
.checks .mini { flex-direction: row; align-items: center; gap: 6px; font-size: 13px; color: var(--text); }
.checks .mini input { width: auto; }
#customRun { margin-top: 18px; }

/* Progress */
.progress-section { max-width: 920px; margin: 28px auto; padding: 0 24px; }
.progress-head { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.spinner {
  width: 18px; height: 18px; border-radius: 50%; border: 3px solid var(--border);
  border-top-color: var(--accent); animation: spin 1s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.progress-log {
  margin-top: 14px; background: #070b14; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px;
  color: var(--accent-2); max-height: 280px; overflow: auto; white-space: pre-wrap; line-height: 1.7;
}
.progress-bar { margin-top: 14px; height: 8px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.progress-bar > i { display: block; height: 100%; width: 0%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .1s linear; }

/* Results */
.result-section { max-width: 1080px; margin: 28px auto 60px; padding: 0 24px; }
.result-section > * { margin-bottom: 22px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.card h2 { margin: 0 0 14px; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.decision {
  background: linear-gradient(135deg, var(--card-2), #161433);
  border-color: rgba(255,106,0,.4); box-shadow: 0 10px 40px rgba(255,106,0,.12);
  font-size: 19px; line-height: 1.7; font-weight: 600;
}
.decision .label { display:block; font-size: 12px; color: var(--accent-2); letter-spacing: 2px; margin-bottom: 8px; font-weight: 700; }

/* 选品动作清单（独立高亮卡） */
.card.action {
  background: linear-gradient(135deg, #10231a, var(--card-2));
  border-color: rgba(54,211,153,.45); box-shadow: 0 10px 40px rgba(54,211,153,.14);
}
.card.action h2 { color: #6ee7b7; }
.action-list { font-size: 15px; line-height: 1.85; color: #d7f5e8; }
.action-list ul { margin: 0; padding-left: 22px; }
.action-list li { margin: 6px 0; }
.action-list li::marker { color: #6ee7b7; font-weight: 700; }
.action-list strong { color: #a7f3d0; }

/* Scene */
.scene-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); gap: 14px; }
.scene-item { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.scene-item .k { font-size: 12px; color: var(--muted); }
.scene-item .v { font-size: 16px; font-weight: 700; margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.chip { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--border); }
.chip.add { color: var(--good); border-color: rgba(54,211,153,.4); }
.chip.remove { color: var(--bad); border-color: rgba(248,114,114,.4); }

/* Scores */
.scores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px,1fr)); gap: 16px; }
.score-card { background: var(--bg-soft); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.score-head { display: flex; align-items: center; gap: 14px; }
.ring {
  --p: 0; --c: var(--accent);
  width: 64px; height: 64px; border-radius: 50%; flex: 0 0 64px;
  background: conic-gradient(var(--c) calc(var(--p)*1%), #20283f 0);
  display: grid; place-items: center; position: relative;
}
.ring::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--bg-soft); }
.ring .num { position: relative; font-weight: 800; font-size: 18px; }
.score-meta { flex: 1; }
.score-meta .pname { font-weight: 700; font-size: 16px; }
.score-meta .sug { font-size: 13px; margin-top: 4px; }
.sug.up { color: var(--good); } .sug.down { color: var(--bad); } .sug.flat { color: var(--muted); }
.subs { margin-top: 12px; display: grid; gap: 6px; }
.sub-row { display: grid; grid-template-columns: 64px 1fr 34px; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.bar { height: 7px; background: #20283f; border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }

/* Basket / Tomorrow */
.list-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 14px; }
.list-row:last-child { border-bottom: none; }
.list-row .tag { font-size: 12px; padding: 2px 8px; border-radius: 6px; background: var(--card-2); color: var(--accent-2); }
.list-row .up { color: var(--good); } .list-row .down { color: var(--bad); }

/* Report */
/* ===== Markdown 报告排版（marked 输出） ===== */
.report { font-size: 14.5px; line-height: 1.75; color: #cdd6ea; }
.report > :first-child { margin-top: 0; }
.report > :last-child { margin-bottom: 0; }
.report h1, .report h2, .report h3, .report h4 { color: var(--text); font-weight: 700; line-height: 1.35; }
.report h1 { font-size: 22px; margin: 22px 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border); }
.report h2 { font-size: 18px; margin: 20px 0 10px; border-left: 3px solid var(--accent); padding-left: 10px; }
.report h3 { font-size: 15.5px; margin: 16px 0 8px; color: #dbe3f5; }
.report h4 { font-size: 14px; margin: 14px 0 6px; color: var(--muted); }
.report p { margin: 9px 0; color: #cdd6ea; }
.report a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(74,99,255,.4); }
.report a:hover { color: #fff; border-bottom-color: var(--accent); }
.report strong { color: #fff; font-weight: 700; }
.report em { color: #e7c9a8; }
.report ul, .report ol { margin: 9px 0; padding-left: 24px; color: #cdd6ea; }
.report li { margin: 4px 0; }
.report li::marker { color: var(--accent); }
.report hr { border: none; border-top: 1px solid var(--border); margin: 18px 0; }

/* 表格：品牌色表头 + 斑马纹 */
.report table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 13px; overflow: hidden; border-radius: 8px; }
.report th, .report td { border: 1px solid var(--border); padding: 8px 11px; text-align: left; vertical-align: top; }
.report thead th { background: linear-gradient(135deg, #1d30c7, #4a63ff); color: #fff; font-weight: 600; border-color: #2a3a8f; }
.report tbody tr:nth-child(even) { background: rgba(255,255,255,.025); }
.report tbody tr:hover { background: rgba(74,99,255,.08); }
.report td code, .report th code { background: rgba(0,0,0,.3); }

/* 代码块 */
.report code { background: var(--bg-soft); padding: 1.5px 6px; border-radius: 5px; font-size: 12.5px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: #ffd9b0; }
.report pre { background: #070b14; border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; overflow: auto; margin: 10px 0; }
.report pre code { background: none; padding: 0; color: #d6e0f5; }

/* 引用块：品牌橙 */
.report blockquote, blockquote { border-left: 3px solid var(--accent-2); background: rgba(255,106,0,.07);
  margin: 10px 0; padding: 10px 14px; border-radius: 0 8px 8px 0; color: #f0d9c4; }
.report blockquote p { margin: 4px 0; color: #f0d9c4; }

/* 图片 */
.report img { max-width: 100%; border-radius: 8px; margin: 8px 0; }

/* 库未加载时的纯文本兜底 */
.md-fallback { white-space: pre-wrap; word-break: break-word; color: #cdd6ea; font-size: 14px; }

/* Actions */
.actions { display: flex; gap: 12px; flex-wrap: wrap; }
.actions button { font-size: 14px; font-weight: 600; cursor: pointer; padding: 11px 20px; border-radius: 10px; border: 1px solid var(--border); background: var(--card); color: var(--text); }
.actions button:hover { border-color: var(--accent); }
.actions .primary { background: linear-gradient(90deg, var(--accent), var(--accent-2)); color: #06121f; border: none; }

/* Footer */
.footer { text-align: center; padding: 30px 24px 50px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--border); }
.footer-brand { display: flex; justify-content: center; margin-bottom: 14px; }
.footer-logo { height: 20px; width: auto; opacity: .92; }
.footer-sub { margin-top: 6px; font-size: 12px; opacity: .8; }

@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Print */
@media print {
  .topbar, .hero, .analyzer, .progress-section, .footer, .actions { display: none !important; }
  body { background: #fff; color: #111; }
  .result-section { max-width: 100%; }
  .card { box-shadow: none; border: 1px solid #ccc; break-inside: avoid; }
  .ring { background: #eee; } .ring::after { background: #fff; }
}
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .hero h1 { font-size: 34px; } }

/* 场景识别：品类加减表 */
.addreduce { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ar-row { display: grid; grid-template-columns: 110px 1fr 2fr; gap: 10px; align-items: center;
  background: var(--card-2); border: 1px solid var(--border); border-radius: 10px; padding: 8px 12px; font-size: 13px; }
.ar-act { font-weight: 700; }
.ar-act.up { color: var(--good); } .ar-act.down { color: var(--bad); } .ar-act.flat { color: var(--muted); }
.ar-cat { color: var(--text); font-weight: 600; }
.ar-reason { color: var(--muted); }
.scene-md { margin-top: 6px; }
.scene-md .report { margin-top: 0; }

/* 列表子说明 */
.list-sub { font-size: 12.5px; color: var(--muted); padding: 2px 0 8px 4px; grid-column: 1 / -1; }

/* 引用块（报告中一句话决策等） */
.report blockquote, blockquote { border-left: 3px solid var(--accent-2); background: rgba(255,106,0,.06);
  margin: 10px 0; padding: 10px 14px; border-radius: 8px; color: var(--text); }

/* 数据来源标注 */
.src { margin-left: auto; font-size: 12px; color: var(--muted); align-self: center; }
@media (max-width: 640px) { .ar-row { grid-template-columns: 1fr; } .src { margin-left: 0; } }

/* —— 登录 / SSO —— */
.auth-area { display: inline-flex; align-items: center; gap: 8px; }
.login-btn { color: var(--accent); border: 1px solid var(--accent); padding: 6px 12px; border-radius: 8px; text-decoration: none; font-size: 13px; font-weight: 600; white-space: nowrap; }
.login-btn:hover { background: var(--accent); color: #06121f; }
.user-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.avatar { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; border: 1px solid var(--line); }
.avatar-text { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: #06121f; font-weight: 700; font-size: 13px; }
.uname { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ghost-btn.small { padding: 4px 10px; font-size: 12px; }
.auth-banner { margin-top: 16px; font-size: 14px; color: var(--muted); background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.25); padding: 10px 14px; border-radius: 10px; }
.auth-banner a { color: var(--accent); font-weight: 600; }
.user-credit { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #a7f3d0; font-size: 14px; }
.real-credit { margin: 4px 0 14px; padding: 10px 14px; border-radius: 10px; background: rgba(255,106,0,.1); border: 1px solid rgba(255,106,0,.35); color: #ffd0a8; font-size: 14px; }
.real-credit code { background: rgba(0,0,0,.25); padding: 1px 6px; border-radius: 5px; font-size: 12.5px; }
