﻿:root {
  --canvas: #f4f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #17181c;
  --muted: #6f737d;
  --border: #e2e4e9;
  --accent: #6957d7;
  --accent-soft: #eeebff;
  --positive: #1f8f62;
  --positive-soft: #e5f5ed;
  --warning: #c77a13;
  --warning-soft: #fff2dc;
  --danger: #c04a56;
  --danger-soft: #fdebed;
  --nav: #17171b;
  --shadow: 0 12px 32px rgba(25, 28, 38, .06);
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-family: Inter, "Segoe UI", "Microsoft YaHei", sans-serif; font-size: 14px; }
button, input { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 232px minmax(0, 1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: var(--nav); color: white; display: flex; flex-direction: column; }
.brand { display: flex; gap: 11px; align-items: center; padding: 4px 8px 24px; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); font-weight: 800; }
.brand strong, .brand small { display: block; }.brand small { margin-top: 3px; color: #90909a; font-size: 11px; }
nav { display: grid; gap: 5px; }
.nav-item { border: 0; padding: 11px 12px; border-radius: 9px; background: transparent; color: #9b9ba5; display: flex; gap: 11px; align-items: center; text-align: left; }
.nav-item span { width: 18px; color: #777780; }.nav-item:hover, .nav-item.active { background: #28272d; color: white; }.nav-item.active span { color: #aa9eff; }
.sidebar-note { margin-top: auto; padding: 13px; border: 1px solid #303038; border-radius: 11px; display: flex; gap: 10px; align-items: flex-start; }
.sidebar-note b, .sidebar-note small { display: block; }.sidebar-note b { font-size: 12px; }.sidebar-note small { margin-top: 4px; color: #85858f; font-size: 10px; line-height: 1.4; }
.status-dot { width: 7px; height: 7px; margin-top: 4px; border-radius: 50%; background: #4fd39b; box-shadow: 0 0 0 4px rgba(79,211,155,.1); }
main { min-width: 0; padding: 27px 30px 48px; max-width: 1640px; width: 100%; margin: 0 auto; }
.topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }.topbar h1 { margin: 2px 0 0; font-size: 24px; letter-spacing: -.03em; }.eyebrow, .card-kicker { margin: 0; color: #8b8e97; font-size: 10px; letter-spacing: .14em; font-weight: 700; }
.top-actions { display: flex; align-items: center; gap: 9px; }.date-chip { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 7px 11px; }.date-chip span { color: var(--muted); font-size: 10px; display: block; }.date-chip b { font-size: 13px; }.button { border: 0; border-radius: 9px; padding: 11px 14px; font-weight: 650; }.button.secondary { background: var(--ink); color: white; }
.notice { border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; background: var(--warning-soft); color: #80500e; border: 1px solid #f1d49d; }.hidden { display: none !important; }
.hero-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 14px; }.decision-card, .score-card, .panel, .metric-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.decision-card, .score-card { min-height: 214px; padding: 22px; }.decision-row { display: flex; align-items: center; gap: 18px; margin-top: 29px; }.decision-icon { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 25px; font-weight: 800; }.decision-icon.cash { background: var(--warning-soft); color: var(--warning); }.decision-icon.buy { background: var(--positive-soft); color: var(--positive); }.decision-row h2 { margin: 0 0 7px; font-size: 25px; letter-spacing: -.035em; }.decision-row p { margin: 0; color: var(--muted); line-height: 1.6; }.decision-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }.tag { display: inline-flex; align-items: center; padding: 5px 8px; border-radius: 6px; font-size: 11px; font-weight: 650; }.tag.neutral { background: #f0f1f4; color: #60636b; }.tag.shortlist { background: var(--accent-soft); color: var(--accent); }.tag.qualified { background: var(--positive-soft); color: var(--positive); }.tag.rejected { background: var(--danger-soft); color: var(--danger); }.muted { color: var(--muted); font-size: 11px; }
.score-header { display: flex; justify-content: space-between; align-items: flex-start; }.score-header strong { display: block; margin-top: 7px; font-size: 17px; }.score-number { font-size: 43px; font-weight: 730; letter-spacing: -.06em; }.score-track { height: 8px; background: #eceef2; margin: 24px 0 21px; border-radius: 99px; position: relative; }.score-fill { height: 100%; width: 0; background: var(--accent); border-radius: inherit; transition: width .5s ease; }.threshold { position: absolute; top: 13px; font-size: 9px; color: #9699a2; transform: translateX(-50%); }.threshold::before { content: ""; width: 1px; height: 12px; position: absolute; left: 50%; bottom: 14px; background: #b8bbc3; }.threshold-watch { left: 55%; }.threshold-buy { left: 70%; }.mini-bars { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-top: 31px; }.mini-bar label { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted); margin-bottom: 5px; }.mini-bar-track { height: 4px; border-radius: 99px; background: #eceef2; overflow: hidden; }.mini-bar-fill { height: 100%; background: #8b7de3; border-radius: inherit; }
.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 14px; }.metric-card { padding: 16px 17px; box-shadow: none; }.metric-card p { margin: 0; color: var(--muted); font-size: 11px; }.metric-card strong { display: block; margin-top: 7px; font-size: 22px; letter-spacing: -.04em; }.metric-card small { display: block; margin-top: 6px; color: #999ca4; font-size: 10px; }
.content-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; margin-top: 14px; }.panel { padding: 20px; box-shadow: none; }.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; }.panel-header h3 { margin: 4px 0 0; font-size: 16px; }.panel-hint { color: var(--muted); font-size: 10px; }.text-button { border: 0; background: transparent; color: var(--accent); font-weight: 650; font-size: 11px; }
.pipeline { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }.pipeline-step { min-width: 0; padding: 13px; border-radius: 10px; background: var(--surface-soft); border: 1px solid #eceef2; position: relative; }.pipeline-step:not(:last-child)::after { content: "→"; position: absolute; right: -10px; top: 28px; z-index: 2; color: #aaaeb7; }.pipeline-step.blocked { background: var(--warning-soft); border-color: #f3d7a3; }.pipeline-step.success { background: var(--positive-soft); border-color: #c5e7d6; }.pipeline-step span { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.pipeline-step strong { display: block; margin-top: 8px; font-size: 22px; }.pipeline-step small { display: block; margin-top: 5px; color: #8d9098; font-size: 9px; line-height: 1.35; }
.rejection-list { display: grid; gap: 11px; }.rejection-row { display: grid; grid-template-columns: minmax(120px, 1fr) 2fr 38px; gap: 10px; align-items: center; }.rejection-row label { color: #565962; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.rejection-track { height: 6px; border-radius: 99px; background: #eff0f3; overflow: hidden; }.rejection-fill { height: 100%; border-radius: inherit; background: #c8c1ef; }.rejection-row b { font-size: 11px; text-align: right; }
.candidate-panel { margin-top: 14px; padding: 0; overflow: hidden; }.candidate-panel .panel-header { padding: 20px; margin: 0; }.table-header { align-items: flex-end; }.table-tools, .filter-group { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }.filter-button { border: 1px solid var(--border); background: white; color: var(--muted); border-radius: 7px; padding: 7px 9px; font-size: 10px; }.filter-button.active { border-color: #b8aff0; color: var(--accent); background: var(--accent-soft); }.search { display: flex; gap: 6px; align-items: center; padding: 7px 9px; border: 1px solid var(--border); border-radius: 8px; background: white; }.search input { width: 170px; border: 0; outline: 0; color: var(--ink); }.search span { color: #999ca4; }.table-wrap { overflow: auto; max-height: 520px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); } table { border-collapse: collapse; width: 100%; min-width: 980px; } th { position: sticky; top: 0; z-index: 1; padding: 11px 14px; text-align: left; background: #f7f8fa; color: #858891; font-size: 10px; letter-spacing: .04em; border-bottom: 1px solid var(--border); } td { padding: 12px 14px; border-bottom: 1px solid #eceef1; vertical-align: middle; } tbody tr { cursor: pointer; } tbody tr:hover { background: #fafafe; }.stock-name b, .stock-name span { display: block; }.stock-name span { color: var(--muted); font-size: 10px; margin-top: 3px; }.reason-cell { max-width: 310px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #656871; font-size: 11px; }.row-action { color: var(--accent); font-size: 16px; }.table-footer { padding: 12px 20px; color: var(--muted); font-size: 10px; display: flex; justify-content: space-between; }
.risk-grid { grid-template-columns: 1fr 1fr; }.risk-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.risk-item { padding: 13px; border-radius: 9px; background: var(--surface-soft); }.risk-item span { color: var(--muted); font-size: 10px; }.risk-item b { display: block; margin-top: 5px; font-size: 17px; }.plan-list { display: grid; gap: 9px; }.empty-state { padding: 24px 14px; text-align: center; border: 1px dashed #d8dae0; border-radius: 10px; color: var(--muted); }.plan-item { padding: 13px; border: 1px solid var(--border); border-radius: 10px; display: flex; justify-content: space-between; gap: 14px; }.plan-item p { margin: 4px 0 0; color: var(--muted); font-size: 10px; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(20,21,25,.28); z-index: 10; }.drawer { position: fixed; z-index: 11; right: 0; top: 0; height: 100vh; width: min(480px, 94vw); background: white; box-shadow: -20px 0 60px rgba(20,21,25,.16); padding: 28px; transform: translateX(105%); transition: transform .22s ease; overflow: auto; }.drawer.open { transform: translateX(0); }.drawer-close { position: absolute; right: 18px; top: 16px; border: 0; background: #f2f3f5; width: 32px; height: 32px; border-radius: 8px; font-size: 20px; }.drawer h2 { margin: 18px 0 4px; font-size: 25px; }.drawer-subtitle { color: var(--muted); margin: 0 0 22px; }.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.detail-item { padding: 12px; background: var(--surface-soft); border-radius: 9px; }.detail-item span { display: block; color: var(--muted); font-size: 10px; }.detail-item b { display: block; margin-top: 5px; }.drawer-section { margin-top: 24px; }.drawer-section h4 { margin: 0 0 10px; font-size: 12px; }.reason-stack { display: flex; flex-wrap: wrap; gap: 7px; }.reason-pill { padding: 7px 9px; border-radius: 7px; background: var(--danger-soft); color: var(--danger); font-size: 10px; }.reason-pill.positive { background: var(--positive-soft); color: var(--positive); }
@media (max-width: 1100px) { .app-shell { grid-template-columns: 76px 1fr; }.brand div, .nav-item:not(.active)::after, .nav-item { font-size: 0; }.brand { justify-content: center; }.nav-item { justify-content: center; }.nav-item span { font-size: 17px; }.sidebar-note { display: none; }.hero-grid, .content-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .app-shell { display: block; }.sidebar { position: static; height: auto; padding: 10px; flex-direction: row; align-items: center; }.brand { padding: 0 8px 0 0; }.sidebar nav { display: flex; margin-left: auto; }.nav-item { padding: 9px; }.nav-item.active { font-size: 0; }.sidebar-note { display: none; } main { padding: 18px 12px 36px; }.topbar { align-items: flex-start; }.top-actions { flex-direction: column; align-items: stretch; }.hero-grid, .content-grid, .risk-grid { grid-template-columns: 1fr; }.metric-grid { grid-template-columns: 1fr 1fr; }.pipeline { grid-template-columns: 1fr; }.pipeline-step:not(:last-child)::after { content: "↓"; right: 16px; top: auto; bottom: -12px; }.table-header { align-items: flex-start; flex-direction: column; }.table-tools { width: 100%; }.search { flex: 1; }.search input { width: 100%; }.mini-bars { grid-template-columns: repeat(3, 1fr); } }

/* ---- LLM review panel ---- */
.llm-review-panel { margin-top: 14px; padding: 20px; }
.llm-review-list { display: grid; gap: 14px; }
.llm-card { border: 1px solid var(--border); border-radius: 12px; padding: 16px 18px; background: var(--surface-soft); }
.llm-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.llm-card-head b { font-size: 16px; }
.llm-card-head > span { color: var(--muted); font-size: 12px; }
.llm-card-head .tag { margin-left: auto; }
.llm-verdicts { display: grid; gap: 10px; }
.llm-verdict { border: 1px solid var(--border); border-radius: 9px; padding: 12px 14px; background: white; }
.llm-verdict.pass { border-left: 3px solid var(--positive); }
.llm-verdict.veto { border-left: 3px solid var(--danger); background: var(--danger-soft); }
.llm-verdict.abstain { border-left: 3px solid var(--warning); }
.llm-verdict-head { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.llm-verdict-head b { font-size: 13px; }
.llm-verdict-head .llm-conf { margin-left: auto; color: var(--muted); font-size: 11px; font-weight: 650; }
.tag.pass { background: var(--positive-soft); color: var(--positive); }
.tag.veto { background: var(--danger-soft); color: var(--danger); }
.tag.abstain { background: var(--warning-soft); color: var(--warning); }
.llm-risks { margin: 0 0 8px; padding-left: 18px; color: var(--danger); font-size: 12px; line-height: 1.6; }
.llm-risks li { margin-bottom: 3px; }
.llm-reasoning { margin: 0; color: #4a4d56; font-size: 12.5px; line-height: 1.7; white-space: pre-wrap; word-break: break-word; }
.llm-status { display: block; margin-top: 6px; color: var(--warning); font-size: 10px; }
