:root {
  --jaim-green: #1B4332;
  --jaim-coral: #FF6B4A;
  --bg-neutral: #EAF2ED;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'Pretendard', -apple-system, sans-serif; background: var(--bg-neutral); color: #1B2621; }

.topbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; background: white; border-bottom: 1px solid #E0E6E2; }
.brand { font-weight: 800; font-size: 18px; color: var(--jaim-green); }
.brand span { color: var(--jaim-coral); }
.brand small { font-weight: 400; color: #7A8A80; margin-left: 6px; }
.tabs { display: flex; gap: 8px; }
.tab-btn { padding: 8px 16px; border: 1px solid #D5DED8; background: white; border-radius: 999px; cursor: pointer; font-size: 13px; }
.tab-btn.active { background: var(--jaim-green); color: white; border-color: var(--jaim-green); }

main { padding: 20px 24px; max-width: 1100px; margin: 0 auto; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.hint { color: #5D6B62; font-size: 13px; margin: 4px 0 12px; }
.sim-buttons { display: flex; gap: 8px; margin-bottom: 12px; }
.sim-buttons button, .draft-controls button, #genDraftBtn {
  padding: 8px 14px; border-radius: 8px; border: none; background: var(--jaim-green); color: white; cursor: pointer; font-size: 13px;
}
.sim-buttons button:hover, #genDraftBtn:hover { opacity: 0.9; }

.kpi-bar { display: flex; gap: 16px; }
.kpi { background: white; border-radius: 10px; padding: 8px 14px; font-size: 12px; border: 1px solid #E0E6E2; }
.kpi span { display: block; color: #7A8A80; }
.kpi b { font-size: 16px; }

.action-center { background: white; border-radius: 12px; padding: 12px 16px; margin: 12px 0; border: 1px solid #E0E6E2; }
.ac-title { font-size: 12px; font-weight: 700; color: #7A8A80; margin-bottom: 8px; }
.ac-card { font-size: 13px; padding: 4px 0; }
.ac-empty { color: var(--jaim-green); font-size: 13px; }
.ac-overflow { font-size: 12px; color: #7A8A80; margin-top: 4px; }

.heatmap { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-bottom: 20px; }
.student-card { background: white; border-radius: 10px; padding: 10px; border: 2px solid #E0E6E2; }
.sc-name { font-weight: 700; font-size: 13px; }
.sc-tier { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin: 4px 0; }
.sc-count { font-size: 11px; color: #7A8A80; }

.draft-panel { background: white; border-radius: 12px; padding: 16px; border: 1px solid #E0E6E2; }
.draft-controls { display: flex; gap: 8px; margin: 8px 0; }
.draft-controls select { padding: 6px; border-radius: 6px; border: 1px solid #D5DED8; }
.draft-result { margin-top: 10px; font-size: 13px; }
.draft-text { background: var(--bg-neutral); padding: 10px; border-radius: 8px; line-height: 1.6; }
.draft-evidence { color: #7A8A80; font-size: 11px; margin-top: 6px; }

#workspace { border: 1px solid #E0E6E2; border-radius: 8px; overflow: hidden; }

.student-picker select { padding: 6px; border-radius: 6px; border: 1px solid #D5DED8; }

footer { text-align: center; padding: 16px; color: #7A8A80; font-size: 11px; }
