/* Automatic missions (goals.js). Uses the panel tokens (--radpa-*). */
.goals-box { margin-bottom: 20px; }
.goals-box h2 { margin: 0 0 6px; }
.goals-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.goal-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.goal-card { display: grid; gap: 10px; align-content: start; padding: 16px; border: 1px solid #e1e6ed; border-radius: 18px; background: #fff; }
.goal-card.done { border-color: var(--radpa-positive); }
.goal-card header { display: flex; justify-content: space-between; align-items: start; gap: 10px; }
.goal-card h3 { margin: 4px 0 0; font-size: 17px; }
.goal-reward { flex-shrink: 0; padding: 4px 12px; border-radius: 999px; background: #f6e9ee; color: var(--radpa-wine); font-weight: 800; font-size: 14px; }
.goal-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.goal-list li { display: flex; gap: 10px; align-items: start; }
.goal-list li > div { flex: 1; min-width: 0; display: grid; gap: 4px; }
.goal-list b { font-size: 14px; font-weight: 700; color: var(--radpa-navy); line-height: 1.7; }
.goal-mark { flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; border: 2px solid #c9d3df; display: grid; place-items: center; font-size: 13px; color: #fff; }
.goal-list li.done .goal-mark { background: var(--radpa-positive); border-color: var(--radpa-positive); }
.goal-amount { font-size: 13px; color: #64758a; }
.goal-bar { display: block; height: 6px; border-radius: 6px; background: #edf1f6; overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--radpa-wine); border-radius: 6px; }
.goal-fill-0 { width: 0; } .goal-fill-1 { width: 10%; } .goal-fill-2 { width: 20%; } .goal-fill-3 { width: 30%; } .goal-fill-4 { width: 40%; } .goal-fill-5 { width: 50%; }
.goal-fill-6 { width: 60%; } .goal-fill-7 { width: 70%; } .goal-fill-8 { width: 80%; } .goal-fill-9 { width: 90%; } .goal-fill-10 { width: 100%; }
.goal-list li.done .goal-bar i { background: var(--radpa-positive); }
.goal-foot { margin: 0; font-size: 12px; color: #64758a; line-height: 1.8; }
.goal-paused { padding: 10px 14px; border-radius: 12px; background: var(--radpa-warning-tint); color: var(--radpa-warning); }
.goal-history, .goal-templates, .goal-awards { margin-top: 16px; }
.goal-history summary, .goal-templates summary, .goal-awards summary { cursor: pointer; font-weight: 700; color: var(--radpa-navy); min-height: 44px; display: flex; align-items: center; }
.goal-history p { margin: 6px 0; font-size: 14px; }
.goal-history .revoked, .goal-award.revoked { color: var(--radpa-danger); }
.goal-students { display: grid; gap: 8px; }
.goal-student { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 0; border-bottom: 1px solid #e7edf3; }
.goal-student b { flex: 1 1 140px; }
.goal-switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.goal-switch input { width: 22px; height: 22px; min-height: 0; accent-color: var(--radpa-wine); }
.goal-template-pick { display: inline-flex; align-items: center; gap: 8px; }
.goal-template-pick select { min-height: 40px; }
.goal-flag { font-size: 12px; font-weight: 700; color: var(--radpa-danger); }
.goal-template-pair { margin-top: 14px; }
.goal-template-pair h3 { font-size: 16px; margin: 0 0 8px; }
.goal-template { display: grid; gap: 8px; padding: 12px 14px; margin-bottom: 10px; border: 1px solid #e1e6ed; border-radius: 14px; }
.goal-template h4 { margin: 0; font-size: 15px; }
.goal-template h4 small { color: var(--radpa-wine); }
.goal-template label { display: grid; grid-template-columns: 1fr 96px; align-items: center; gap: 10px; font-size: 13px; }
.goal-template input { min-height: 40px; text-align: center; }
.goal-award { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e7edf3; }
.goal-award p { margin: 4px 0 0; font-size: 13px; color: #64758a; }
@media (max-width: 900px) { .goal-grid { grid-template-columns: 1fr; } }
