/* Patient journal: shared web/Android controls, native focus and input. */
.metric-entry[hidden], .entry-confirmation[hidden], .wellbeing-card [hidden] { display: none !important; }
.metric-entry .form-group { display: flex; flex-direction: column; gap: 8px; }
.metric-entry .form-control { font-size: 16px; min-height: 46px; margin-top: 4px; }
.logs-grid button.log-btn { font: inherit; color: inherit; border: 1px solid var(--color-border-grey); }
.entry-options { border: 0; display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; padding: 0; }
.entry-options legend { font-size: 13px; font-weight: 600; margin-bottom: 9px; }
.entry-options label { position: relative; display: inline-flex; cursor: pointer; }
.entry-options input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.entry-options span, .entry-presets button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 9px 12px; border: 1px solid var(--color-border-grey); border-radius: 12px; background: #fffefc; font-size: 13px; }
.entry-options input:checked + span { color: var(--color-forest-green); border-color: var(--color-forest-green); background: var(--color-keylime-wash); box-shadow: inset 0 0 0 1px var(--color-forest-green); }
.entry-options input:focus-visible + span, .metric-entry button:focus-visible, .wellbeing-card button:focus-visible, .logs-grid button:focus-visible { outline: 3px solid #417866; outline-offset: 3px; }
.entry-options:disabled { opacity: .55; }
.entry-presets { display: flex; gap: 8px; margin-top: -5px; }
.entry-presets button { font: inherit; font-size: 13px; cursor: pointer; }
.entry-error { color: #a82323; font-size: 13px; line-height: 1.45; margin: 8px 0; }
.entry-error:empty { display: none; }
.metric-entry [aria-invalid="true"] { border-color: #a82323; }
.entry-note, .wellbeing-note { font-size: 12px; line-height: 1.5; color: #59635a; margin: 8px 0; }
.entry-time { margin: 16px 0; font-size: 13px; }
.entry-time summary { min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--color-forest-green); }
.entry-time label { display: block; margin: 8px 0; }
.metric-entry > .btn + .btn { margin-top: 8px; }
.entry-confirmation { border: 1px solid var(--color-mint-glaze); border-radius: 14px; padding: 14px; margin-bottom: 14px; font-size: 14px; background: var(--color-keylime-wash); }
.entry-confirmation p { overflow-wrap: anywhere; margin-bottom: 8px; }
.wellbeing-card { padding: 16px; }
.wellbeing-card h3 { font-size: 17px; line-height: 1.4; margin: 0; }
.wellbeing-heading, .wellbeing-period-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.wellbeing-period-nav button { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid var(--color-border-grey); background: transparent; border-radius: 12px; color: var(--color-forest-green); font: inherit; cursor: pointer; }
.wellbeing-period-nav button:disabled { opacity: .35; cursor: default; }
.wellbeing-period-nav strong { font-size: 14px; text-align: center; }
.wellbeing-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wellbeing-stat { border: 1px solid var(--color-border-grey); border-radius: 13px; padding: 12px; min-width: 0; }
.wellbeing-stat h4 { font-size: 12px; font-weight: 500; color: #59635a; }
.wellbeing-stat strong { display: block; font-size: 22px; line-height: 1.4; margin: 4px 0; color: var(--color-forest-green); }
.wellbeing-stat p { font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.wellbeing-card details > summary { min-height: 44px; padding: 14px 0 8px; font-size: 14px; cursor: pointer; }
.wellbeing-table-wrap { overflow-x: auto; }
.wellbeing-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.wellbeing-table caption { text-align: left; font-size: 12px; color: #59635a; padding: 8px 0; }
.wellbeing-table th, .wellbeing-table td { padding: 9px 5px; border-bottom: 1px solid var(--color-border-grey); text-align: right; white-space: nowrap; }
.wellbeing-table th:first-child, .wellbeing-table td:first-child { text-align: left; }
.symptom-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.symptom-weekday { text-align: center; color: #59635a; font-size: 11px; padding: 8px 0; }
.symptom-day { min-width: 0; min-height: 48px; padding: 4px 0; border-radius: 10px; background: #faf9f6; border: 1px solid transparent; font: inherit; font-size: 14px; color: #303730; cursor: pointer; }
.symptom-day small { display: block; font-size: 10px; line-height: 12px; min-height: 12px; }
.symptom-day.has-symptoms { background: #f8e6d2; color: #663d16; }
.symptom-day.no-symptoms { background: var(--color-keylime-wash); color: var(--color-forest-green); }
.symptom-day.menstruation { border-bottom: 3px solid #a85d72; }
.symptom-day[aria-pressed="true"] { outline: 2px solid var(--color-forest-green); outline-offset: 1px; }
.symptom-day:disabled { opacity: .35; cursor: default; }
.symptom-legend { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; color: #59635a; margin: 14px 0; }
.symptom-legend span::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 4px; border-radius: 3px; background: #faf9f6; border: 1px solid #d7d9d3; }
.symptom-legend .has-symptoms::before { background: #f8e6d2; }
.symptom-legend .no-symptoms::before { background: var(--color-keylime-wash); }
.symptom-legend .menstruation::before { background: #a85d72; }
.symptom-day-detail { margin-top: 12px; border-top: 1px solid var(--color-border-grey); padding-top: 12px; font-size: 13px; line-height: 1.55; }
.symptom-day-detail p { margin-bottom: 7px; }
.symptom-day-detail .btn { margin-top: 10px; }
.period-history { display: flex; flex-direction: column; gap: 10px; }
.period-history-row { border-top: 1px solid var(--color-border-grey); padding-top: 10px; }
.period-history-row p { font-size: 13px; line-height: 1.5; margin-bottom: 8px; }
.period-history-row button { min-height: 44px; }
@media (max-width: 360px) { .wellbeing-card { padding: 12px; } .symptom-calendar { gap: 3px; } .wellbeing-stat { padding: 10px; } }
