:root {
  --bg: #f4f6f8; --panel: #ffffff; --line: #dde3ea; --text: #1c2733; --muted: #64748b;
  --accent: #0f6bff; --accent-soft: #e8f0ff;
  --removed: #0e7a4e; --remaining: #b45309; --new: #b91c1c; --ne: #6b7280; --skip: #9aa4b2;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--text); }
header { background: #123a5e; color: #fff; padding: 14px 20px; }
header h1 { margin: 0; font-size: 18px; }
header .tagline { font-size: 12px; opacity: .85; }
#layout { display: flex; gap: 16px; padding: 16px; align-items: flex-start; }
#sidebar { width: 280px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
#main { flex: 1; min-width: 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.project-list { display: flex; flex-direction: column; gap: 6px; }
.project-item { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; background: #fff; }
.project-item:hover { border-color: var(--accent); }
.project-item.active { border-color: var(--accent); background: var(--accent-soft); }
.project-item .pname { font-weight: 600; }
.project-item .pmeta { font-size: 11px; color: var(--muted); }
.project-item .del { float: right; color: #b91c1c; cursor: pointer; border: none; background: none; font-size: 13px; }
form label { display: block; font-size: 13px; margin: 6px 0; color: var(--muted); }
input, select { width: 100%; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; font-size: 13px; background: #fff; }
button { padding: 7px 14px; border: none; border-radius: 6px; background: var(--accent); color: #fff; font-size: 13px; cursor: pointer; }
button.secondary { background: #e2e8f0; color: var(--text); }
button.danger { background: #fde8e8; color: #b91c1c; }
button:disabled { opacity: .5; cursor: not-allowed; }
.tabs { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.tab { padding: 7px 14px; border-radius: 6px; background: #e8edf3; cursor: pointer; font-size: 13px; border: 1px solid transparent; }
.tab.active { background: var(--accent); color: #fff; }
.space-card { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; background: #fff; overflow: hidden; }
.space-head { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #f8fafc; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.space-head input, .space-head select { width: auto; }
.state-toggle { display: flex; gap: 4px; margin: 10px 14px 0; }
.state-toggle button { font-size: 12px; padding: 4px 10px; background: #e2e8f0; color: var(--text); }
.state-toggle button.active { background: var(--accent); color: #fff; }
table { width: 100%; border-collapse: collapse; font-size: 12.5px; margin-top: 8px; }
th, td { border: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: top; }
th { background: #f1f5f9; font-weight: 600; white-space: nowrap; }
td input, td select { width: auto; min-width: 52px; padding: 3px 4px; font-size: 12px; }
td input[type=number] { width: 64px; }
td input[type=checkbox] { width: auto; }
.obj-facts { font-size: 12px; color: var(--muted); }
.obj-facts label { display: inline-block; margin: 2px 6px 2px 0; font-size: 12px; }
.fact-inputs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ev { font-size: 10.5px; color: var(--muted); }
.state-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-weight: 700; color: #fff; font-size: 14px; }
.state-PASS { background: var(--removed); } .state-REVISE { background: var(--remaining); } .state-FAIL { background: var(--new); }
.counts { display: flex; gap: 10px; margin: 10px 0; flex-wrap: wrap; }
.count { padding: 6px 12px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.badge { display: inline-block; padding: 1px 7px; border-radius: 10px; font-size: 11px; color: #fff; }
.badge.REMOVED { background: var(--removed); } .badge.REMAINING { background: var(--remaining); }
.badge.NEW { background: var(--new); } .badge.NOT_EVALUATED { background: var(--ne); } .badge.SKIP { background: var(--skip); }
.badge.SIMULATION_CONFLICT { background: #7c3aed; } .badge.PROVISIONAL { background: #b45309; } .badge.VERIFIED { background: #0e7a4e; }
.sev-high { color: #b91c1c; } .sev-medium { color: #b45309; } .sev-low { color: var(--muted); }
.finding-row td { border-bottom: 1px solid var(--line); }
.hint { color: var(--muted); font-size: 12px; }
.note { color: var(--muted); font-size: 12px; font-style: italic; }
.toast { position: fixed; bottom: 20px; right: 20px; background: #123a5e; color: #fff; padding: 10px 16px; border-radius: 8px; display: none; z-index: 99; }
.toast.error { background: #b91c1c; }
.section-title { font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; }
