/* Explicit foregrounds keep clinical references readable in every interaction state. */
.session-goal-template-panel {color:#182230;background:#f8faff;padding:16px}
.session-goal-template-panel .item-head strong {font-size:17px;color:#182230}
.session-goal-template-panel p {margin:6px 0 10px;line-height:1.6}
.session-goal-template-panel .goal-reference-guide {color:#344054;margin-bottom:14px}
.session-goal-template-panel .goal-template-option {padding:14px;cursor:default;color:#182230}
.session-goal-template-panel .goal-template-option strong,
.session-goal-template-panel .goal-template-option:hover strong,
.session-goal-template-panel .goal-template-option.selected strong {color:#182230;font-size:14px;line-height:1.6}
.session-goal-template-panel .goal-reference-secondary {font-size:13px;color:#475467;margin:2px 0 6px}
.session-goal-template-panel button.ghost,
.session-goal-template-panel button.ghost span {color:#123bb2;background:#eaf0ff}
.goal-reference-card-actions {display:flex;align-items:center;justify-content:flex-end;gap:12px;flex-wrap:wrap}
.goal-reference-editor {margin-top:16px;padding:18px;background:#fff;border:1px solid #99b2ef;border-radius:12px}
.goal-reference-editor h4 {margin:0 0 12px;color:#182230}
.goal-reference-fields {display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:12px}
.goal-reference-fields input,.goal-reference-fields select {min-width:0;color:#182230;background:#fff}
.session-goal-template-panel .goal-reference-preview {white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#f0f5ff;border-radius:8px;color:#182230}
.goal-reference-preview:empty {display:none}
.goal-reference-previous {padding:12px;border-left:3px solid #9c6500;background:#fff9e9;margin:12px 0}
.goal-reference-previous p {white-space:pre-wrap;overflow-wrap:anywhere;color:#182230}
.goal-reference-editor details {margin-bottom:12px;color:#475467}
.goal-reference-actions {display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.session-goal-template-panel .goal-reference-apply,
.session-goal-template-panel .goal-reference-apply span {color:#fff;background:#123bb2}
.session-goal-template-panel button:focus-visible {outline:3px solid #b77b00;outline-offset:3px}
.session-goal-template-panel [hidden] {display:none!important}
.session-goal-template-panel [data-goal-reference-message]:empty {display:none}
.session-goal-choice-tools {display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin:12px 0}
.session-goal-choice-tools [data-goal-choice-state] {flex-basis:100%;font-size:13px;color:#475467}
.session-goal-choice-tools button,.session-goal-choice-tools button span {color:#123bb2}
.session-goal-template-panel,.session-focus-selector {scroll-margin-top:210px}
.goal-reference-availability {display:flex;gap:12px;justify-content:space-between;align-items:center;flex-wrap:wrap;color:#344054}
.session-goal-template-panel .goal-reference-gap {padding:10px 12px;background:#fff9e9;border-left:3px solid #9c6500;color:#5b4100}
@media (max-width:640px) {.goal-reference-fields {grid-template-columns:1fr}.goal-reference-editor {padding:12px}}
