.section-switch { display: grid; gap: 8px; margin-bottom: 18px; }
.section-btn { padding: 13px 14px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-dim); background: #15171dd9; text-align: left; font: inherit; font-size: 15px; font-weight: 650; cursor: pointer; }
.section-btn small { display: block; font-size: 11px; font-weight: 400; margin-top: 3px; }
.section-btn.active { color: #eef7ff; border-color: #4a9eff88; background: #4a9eff18; }
#ratings-nav[hidden], #page-goals[hidden], #goal-player-wrap[hidden], #goals-undo[hidden] { display: none; }
.goals-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin: 4px 0 26px; }
.goals-heading h2 { margin: 4px 0; font-size: 30px; letter-spacing: -.6px; }
.goals-heading p { color: var(--text-dim); margin: 0; max-width: 600px; }
.goals-eyebrow { color: #8bbff5; font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.goals-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.goals-stat { border: 1px solid var(--border); border-radius: 10px; padding: 18px 22px; background: var(--card); }
.goals-stat strong { font-size: 30px; display: block; }
.goals-stat span { color: var(--text-dim); font-size: 12px; }
.goals-stat.done strong { color: #83d9ab; }.goals-stat.late strong { color: #efae7f; }
.goals-progress-row { display: flex; gap: 18px; align-items: center; margin: 16px 0 26px; color: var(--text-dim); font-size: 12px; }
.goals-progress-row progress { width: 180px; height: 6px; accent-color: #83d9ab; }
.goals-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.goals-toolbar input { flex: 1; min-width: 190px; }
.goals-toolbar input, .goals-toolbar select, .goal-editor input, .goal-editor select, .goal-editor textarea { background: #12151c; border: 1px solid #3a414f; color: var(--text); padding: 11px 12px; border-radius: 7px; font: inherit; color-scheme: dark; }
.goal-group { margin: 0 0 24px; border: 1px solid var(--border); border-radius: 12px; background: var(--card); overflow: hidden; }
.goal-group header { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 22px; background: #ffffff03; border-bottom: 1px solid var(--border); }
.goal-group h3 { margin: 4px 0 0; font-size: 18px; }.goal-group-count { color: var(--text-dim); font-size: 12px; }
.goal-card { display: flex; gap: 16px; padding: 20px 22px; border-bottom: 1px solid var(--border-soft); }.goal-card:last-child { border-bottom: 0; }
.goal-main { flex: 1; min-width: 0; }.goal-check { display: flex; align-items: flex-start; gap: 13px; font-weight: 600; overflow-wrap: anywhere; }
.goal-check input { flex: 0 0 auto; width: 19px; height: 19px; margin: 3px 0 0; accent-color: #83d9ab; cursor: pointer; }
.goal-card.is-complete .goal-check span { color: var(--text-dim); text-decoration: line-through; }
.goal-meta { display: flex; gap: 12px; flex-wrap: wrap; margin: 8px 0 0 32px; font-size: 11px; color: var(--text-dim); }
.goal-date.overdue { color: #efae7f; }.goal-completed { color: #83d9ab; }
.goal-notes { white-space: pre-wrap; overflow-wrap: anywhere; margin: 12px 0 0 32px; color: #afb6c4; font-size: 13px; line-height: 1.7; }
.goal-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }.goal-actions button { white-space: nowrap; }.goal-delete { color: #a5a9b3; }
.goals-empty { text-align: center; padding: 54px 30px; border: 1px dashed #394354; border-radius: 12px; background: var(--card); }.goals-empty p { color: var(--text-dim); max-width: 520px; margin: 12px auto 24px; }
.goals-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 24px 0; }.goals-footer span { color: var(--text-faint); font-size: 11px; margin-left: auto; }
.goals-message { min-height: 24px; color: #83d9ab; font-size: 13px; margin: 8px 0; }.goals-message.error { color: #ffa99d; }
.goal-editor { width: min(600px, 90vw); max-height: 90vh; padding: 28px; border: 1px solid #4c566a; border-radius: 14px; color: var(--text); background: #171b24; }
.goal-editor::backdrop { background: #000b; }.goal-editor h2 { margin: 0 0 20px; }.goal-editor form { display: grid; gap: 16px; }.goal-editor label { display: grid; gap: 7px; font-size: 13px; }.goal-editor input, .goal-editor select, .goal-editor textarea { width: 100%; }.goal-editor textarea { resize: vertical; min-height: 110px; }.goal-editor .button-row { justify-content: flex-end; }.goal-editor-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }.goal-editor small { color: var(--text-dim); }
@media (max-width: 1100px) { .goal-card { flex-direction: column; }.goal-actions { margin-left: 32px; }.goals-heading { align-items: flex-start; }.goals-heading h2 { font-size: 25px; }.goals-summary { gap: 8px; }.goals-stat { padding: 12px 16px; } }
.player-result-row { display: flex; align-items: center; gap: 8px; width: 100%; }
.player-result-name { flex: 1; min-width: 0; text-align: left; color: var(--text); background: transparent; border: 0; padding: 9px 4px; font: inherit; cursor: pointer; display: grid; gap: 3px; overflow-wrap: anywhere; }
.player-star, .player-compare { flex: 0 0 auto; background: transparent; border: 1px solid transparent; border-radius: 5px; color: var(--text-dim); padding: 5px 8px; font: 21px/1.1 system-ui; cursor: pointer; }
.player-star[aria-pressed="true"] { color: #e0a92b; }.player-star:hover, .player-compare:hover { background: #ffffff0b; border-color: var(--border); }.player-star:disabled { opacity: .4; cursor: default; }
.goal-player-wrap { display: grid; gap: 7px; position: relative; }.goal-player-input { display: flex; gap: 7px; }.goal-player-input input { flex: 1; min-width: 0; }.goal-player-results { border: 1px solid #444f62; border-radius: 8px; background: #11151d; max-height: 205px; overflow-y: auto; padding: 5px; }.goal-player-results[hidden] { display: none; }.goal-player-results .player-result-row:hover { background: #ffffff06; }.player-picker-hint { font-size: 12px; color: var(--text-dim); padding: 8px; margin: 0; }.goal-group h3 .player-star { margin-right: 5px; }
