* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f7fa; --card: #fff; --ink: #1f2933; --muted: #6b7280;
  --line: #e5e7eb; --accent: #3498db; --pos: #2e7d32; --neg: #c62828;
}
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif; background: var(--bg); color: var(--ink); }
#app { min-height: 100vh; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; background: var(--card); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 14px; }
.logo { font-size: 30px; }
.topbar h1 { font-size: 20px; font-weight: 700; }
.subtitle { font-size: 12px; color: var(--muted); }
.badge { font-size: 12px; color: #92400e; background: #fef3c7; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.content { padding: 24px; max-width: 1100px; margin: 0 auto; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 20px; }
.card h3 { font-size: 15px; margin-bottom: 16px; }
.field { margin-bottom: 14px; }
.field-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.field label { font-size: 13px; }
.miss-toggle { font-size: 12px; color: var(--muted); cursor: pointer; }
.field input[type=number] { width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; font-size: 14px; }
.reset-btn { margin-top: 8px; padding: 8px 14px; border: 1px solid var(--line); background: var(--card); border-radius: 8px; cursor: pointer; }
.reset-btn:hover { background: var(--bg); }
.result-card { display: flex; flex-direction: column; }
.score { font-size: 56px; font-weight: 800; color: var(--accent); text-align: center; margin: 8px 0; }
.score-note { text-align: center; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.band { text-align: center; padding: 8px; border-radius: 8px; font-weight: 600; margin-bottom: 16px; }
.band.low { background: #e8f5e9; color: var(--pos); }
.band.mid { background: #fff8e1; color: #f57f17; }
.band.high { background: #fdecea; color: var(--neg); }
.breakdown { width: 100%; border-collapse: collapse; font-size: 13px; }
.breakdown th, .breakdown td { padding: 6px 8px; border-bottom: 1px solid var(--line); }
.breakdown th { color: var(--muted); font-weight: 600; text-align: left; }
.pos { color: var(--pos); }
.neg { color: var(--neg); }
.disclaimer { font-size: 11px; color: var(--muted); margin-top: 14px; line-height: 1.5; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
