/* Calm personal Today and user-led medicine questions. Existing category colours stay intact. */
#view-today.reference-today { max-width: 1320px; }
#view-today .reference-intro { margin-bottom: 18px; }
#view-today .page-subtitle { max-width: 48ch; }
#view-today .hub-alert-shortcut { margin-bottom: 18px; }
.today-compact-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .95fr) minmax(0, 1.2fr); gap: 16px; align-items: stretch; }
.today-compact-panel { min-width: 0; padding: 22px; border: 1px solid #d7e4ee; border-radius: 20px; background: #fff; box-shadow: 0 8px 28px #0e426108; }
.today-compact-medicines { border-top: 3px solid #207ec0; background: linear-gradient(165deg, #f5faff, #fff 45%); }
.today-compact-appointment { border-top: 3px solid #a27537; background: linear-gradient(165deg, #fffaf0, #fff 45%); }
.today-compact-diary { border-top: 3px solid #458a76; background: linear-gradient(165deg, #f3fbf7, #fff 45%); }
.today-panel-kicker { margin: 0 0 10px; color: #496579; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.today-panel-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.today-panel-heading h2 { margin: 0; font-size: clamp(20px, 2vw, 25px); line-height: 1.2; }
.today-panel-heading .text-button { min-height: 40px; padding: 7px 0; white-space: nowrap; }
.today-compact-list { min-height: 102px; }
.today-compact-list p, .today-compact-diary > p, .medication-learning-panel p, .diary-question-panel p { margin: 0 0 14px; color: #415d70; line-height: 1.6; }
#today-compact-recent-note { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 2; padding: 9px 11px; border-radius: 9px; background: #eaf6f0; }
.today-compact-list ul, #diary-question-list ul { margin: 0; padding: 0; list-style: none; }
.today-compact-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #e4edf3; }
.today-compact-list li b { min-width: 0; overflow-wrap: anywhere; }
.today-compact-list li span { color: #476277; text-align: right; }
.today-panel-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.today-compact-panel .secondary-button { min-height: 44px; }
.today-compact-diary form, .medication-learning-panel form { display: grid; gap: 8px; }
.today-compact-diary label, .medication-learning-panel label { font-weight: 700; }
.today-compact-diary textarea, .medication-learning-panel textarea { width: 100%; min-height: 72px; padding: 11px 13px; border: 1px solid #a7bccd; border-radius: 11px; background: white; color: #18364e; font: inherit; resize: vertical; }
.today-compact-diary form button, .medication-learning-panel form button { width: fit-content; min-height: 44px; }
.today-compact-diary > .text-button { margin-top: 8px; }
.today-save-status { min-height: 1.5em; color: #235d4c; font-size: 13px; }
.today-compact-boundary { max-width: 95ch; margin: 18px 0 0; color: #506879; font-size: 13px; line-height: 1.55; }
.medication-learning-panel { margin-top: 18px; padding: clamp(20px, 3vw, 30px); border: 1px solid #d7e4ee; border-left: 3px solid #a27537; border-radius: 18px; background: #fffcf7; }
.medication-learning-panel h2 { margin: 0 0 12px; font-size: clamp(21px, 2vw, 27px); }
.medication-learning-panel a { color: #0759b6; text-decoration: underline; }
.medication-question-suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 18px; }
.medication-question-suggestions button { min-height: 44px; padding: 9px 13px; border: 1px solid #b6c9d9; border-radius: 100px; background: #fff; color: #173f5d; font: inherit; font-weight: 600; cursor: pointer; }
.medication-question-suggestions button:hover { background: #eaf4fb; }
.diary-question-panel { margin: 18px 0; padding: 20px; border-top: 3px solid #458a76; }
#diary-question-list li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e1e9ed; }
#diary-question-list li span { overflow-wrap: anywhere; }
#diary-question-list li small { display: block; margin-top: 5px; color: #597082; }
.term-profile-form { display: grid; gap: 16px; grid-column: 1 / -1; }
.term-profile-section { min-width: 0; padding: 16px; border: 1px solid #d7e4ee; border-radius: 14px; background: #f8fbfd; }
.term-profile-section h3 { margin: 0 0 5px; font-size: 18px; }
.term-profile-section > p { margin: 0 0 13px; color: #506879; }
.term-picker { position: relative; margin: 12px 0; }
.term-picker label, .term-choice-label { display: block; margin-bottom: 6px; font-weight: 700; }
.term-picker-input { display: flex; flex-wrap: wrap; gap: 8px; }
.term-picker input { flex: 1 1 220px; min-width: 0; min-height: 44px; padding: 10px 12px; border: 1px solid #93b1c5; border-radius: 9px; background: #fff; font: inherit; }
.term-picker-input button { min-height: 44px; padding: 8px 12px; border: 1px solid #9eb9c9; border-radius: 9px; background: #fff; color: #17415e; font: inherit; font-weight: 600; cursor: pointer; }
.term-options { position: absolute; z-index: 20; top: 100%; left: 0; right: 0; max-height: 220px; overflow-y: auto; padding: 5px; border: 1px solid #8eafc3; border-radius: 8px; background: #fff; box-shadow: 0 10px 20px #173b6720; }
.term-options [role="option"] { padding: 10px; border-radius: 6px; cursor: pointer; }
.term-options [role="option"]:hover, .term-options [aria-selected="true"] { background: #e7f2fd; }
.term-profile-section select { min-height: 44px; max-width: 100%; margin: 0 10px 10px 0; padding: 8px 12px; border: 1px solid #93b1c5; border-radius: 9px; background: #fff; color: #18364e; font: inherit; }
.term-profile-section > .secondary-button { min-height: 44px; }
.term-picker-message { min-height: 1.4em; margin: 7px 0; color: #235d4c; font-size: 13px; }
.term-saved-list { margin: 8px 0 0; padding: 0; list-style: none; }
.term-saved-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px solid #dce7ee; overflow-wrap: anywhere; }
.term-saved-list .term-list-empty { color: #597082; }
.appointment-request-boundary { max-width: 90ch; margin: 13px 0 0; color: #526879; font-size: 14px; line-height: 1.6; }
.appointment-request-form .appointment-request-boundary { padding: 12px 14px; border-left: 3px solid #9a733b; background: #fff9ee; }
.appointment-request-form { gap: 17px; }
.appointment-request-form > label { display: grid; gap: 8px; color: #14344e; font-size: 16px; font-weight: 700; line-height: 1.4; }
.appointment-request-form > label :is(input, textarea) { width: 100%; min-height: 44px; padding: 11px 12px; border: 1px solid #93b1c5; border-radius: 10px; background: #fff; color: #14344e; font: inherit; font-size: 16px; font-weight: 400; }
.appointment-request-form > label textarea { min-height: 100px; resize: vertical; }
.appointment-request-form > label :is(input, textarea):focus-visible { outline: 3px solid #087ac5; outline-offset: 2px; }
.appointment-request-form > p { font-size: 14px; line-height: 1.6; }
.appointment-request-form .modal-actions, .care-summary-review .care-print-actions { flex-wrap: wrap; }
.appointment-request-form .modal-actions > button, .care-summary-review .care-print-actions > button { min-height: 44px; font-size: 14px; }
.care-summary-form .care-summary-choice { min-height: 44px; cursor: pointer; }
.care-summary-form .care-summary-choice:focus-within { outline: 3px solid #087ac5; outline-offset: 2px; }
#appointment-request-reviewed { padding: 18px; border: 1px solid #cfdee7; border-radius: 12px; background: #fff; overflow-wrap: anywhere; }
#appointment-request-reviewed h2 { margin-top: 0; }
#appointment-request-reviewed p { white-space: pre-wrap; }
@media (max-width: 1050px) { .today-compact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .today-compact-diary { grid-column: 1 / -1; } }
@media (max-width: 680px) { .today-compact-grid { grid-template-columns: minmax(0, 1fr); } .today-compact-diary { grid-column: auto; } .today-compact-panel { padding: 18px; } .today-panel-heading h2 { font-size: 21px; } .today-compact-list { min-height: auto; } .today-compact-list li { display: block; } .today-compact-list li span { display: block; margin-top: 3px; text-align: left; } .term-profile-section { padding: 13px; } }
@media (max-width: 520px) { .appointment-request-form .modal-actions > button, .care-summary-review .care-print-actions > button { flex: 1 1 100%; } }
@media (forced-colors: active) { .today-compact-panel, .medication-learning-panel, .diary-question-panel, .term-profile-section, .term-options { border: 1px solid CanvasText; } }
