.dashboard-doctor-filter { padding: 1rem 1.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
.dashboard-doctor-filter > div { display: grid; grid-template-columns: max-content minmax(0, 17rem); align-items: center; gap: .75rem; min-width: 0; width: 100%; }
.dashboard-doctor-filter label { margin: 0; }
.doctor-access-choice { display: flex; align-items: flex-start; gap: .75rem; }
.doctor-access-choice input[type="checkbox"] { width: 1.2rem; height: 1.2rem; flex: 0 0 auto; margin-top: .15rem; accent-color: var(--coral); }
.patient-reproductive-summary { container-type: inline-size; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-block: 1rem 2rem; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
.patient-reproductive-summary > * { min-width: 0; }
.patient-reproductive-summary > turbo-frame { border-left: 1px solid var(--line); }
.patient-reproductive-summary .menstrual-summary,
.patient-reproductive-summary .ovarian-reserve-summary { margin: 0; padding: 1rem 1.5rem 1.25rem; border: 0; }
.patient-reproductive-summary .section-heading,
.patient-reproductive-summary .ovarian-reserve-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; margin: 0 0 1rem; padding: 0; }
.patient-reproductive-summary .section-heading h2,
.patient-reproductive-summary .ovarian-reserve-heading h2 { margin: 0; font: 600 1.125rem/1.4 var(--font-sans); }
.patient-reproductive-summary .menstrual-summary-facts { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: start; gap: 1rem; margin: 0; }
.patient-reproductive-summary .menstrual-summary-facts > div { display: grid; grid-template-rows: subgrid; grid-row: span 2; row-gap: .5rem; }
.ovarian-reserve-facts { display: grid; grid-template-columns: 1.15fr .85fr 1.2fr; align-items: start; gap: 1rem; }
.patient-reproductive-summary .ovarian-reserve-facts > div { display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: .5rem; }
.patient-reproductive-summary .ovarian-reserve-facts > div > dd { margin-top: 0; }
.ovarian-reserve-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ovarian-reserve-facts dt { color: var(--muted); font-size: .875rem; }
.ovarian-reserve-facts dd { margin: .5rem 0 0; font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.patient-reproductive-summary :is(.menstrual-summary-facts, .ovarian-reserve-facts) > div { min-width: 0; overflow-wrap: anywhere; }
.patient-reproductive-summary :is(.menstrual-summary-facts, .ovarian-reserve-facts) dt { font-size: .8125rem; line-height: 1.5; color: var(--muted); }
.patient-reproductive-summary :is(.menstrual-summary-facts, .ovarian-reserve-facts) dd { margin: .5rem 0 0; font-size: 1.375rem; line-height: 1.4; font-weight: 600; font-variant-numeric: tabular-nums; }
.patient-reproductive-summary .menstrual-summary-date dd { font-size: 1.125rem; }
.patient-reproductive-summary .menstrual-summary-facts dd { margin-top: 0; }
.patient-reproductive-summary .clinical-summary-unit,
.patient-reproductive-summary .ovarian-reserve-facts dd.clinical-summary-context { color: var(--muted); font-size: .8125rem; font-weight: 400; }
.patient-reproductive-summary .ovarian-reserve-facts dd.clinical-summary-context { margin-top: .25rem; }
.clinical-summary-result { display: inline-block; font-size: .875rem; line-height: 1.5; font-weight: 500; }
.clinical-summary-result--group { padding: .25rem .625rem; border-radius: 6px; background: var(--lilac-soft); color: var(--periwinkle); font-weight: 600; }
.clinical-summary-assessed { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.clinical-summary-assessed .ui-icon { width: 1rem; height: 1rem; flex: 0 0 1rem; }
.ovarian-reserve-group { display: flex; flex-wrap: wrap; gap: .75rem; padding-block: 1rem; border-block: 1px solid var(--line-strong); }
.ovarian-reserve-summary summary { color: var(--periwinkle); cursor: pointer; padding-block: .75rem; }
.ovarian-reserve-summary form { margin-top: 1rem; }
@media (max-width: 1100px) {
  .patient-reproductive-summary { grid-template-columns: minmax(0, 1fr); }
  .patient-reproductive-summary > turbo-frame { border-left: 0; border-top: 1px solid var(--line); }
}
@container (max-width: 900px) {
  .patient-reproductive-summary > * { grid-column: 1 / -1; }
  .patient-reproductive-summary > turbo-frame { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 500px) {
  .patient-reproductive-summary .menstrual-summary,
  .patient-reproductive-summary .ovarian-reserve-summary { padding: .75rem 1rem 1rem; }
  .patient-reproductive-summary .menstrual-summary-facts,
  .patient-reproductive-summary .ovarian-reserve-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .patient-reproductive-summary .menstrual-summary-date,
  .patient-reproductive-summary .clinical-summary-classification { grid-column: 1 / -1; }
}
@media (max-width: 480px) { .ovarian-reserve-fields { grid-template-columns: minmax(0, 1fr); } }
.ovarian-reserve-summary { padding-block: 1rem; }
.ovarian-reserve-dialog { width: min(42rem, calc(100vw - 2rem)); }
.ovarian-reserve-dialog .ovarian-reserve-fields { align-items: end; }
.ovarian-reserve-dialog input[type="submit"] { margin-top: 1.5rem; }
.ovarian-reserve-heading { display: flex; align-items: center; gap: .5rem; }
.ovarian-reserve-heading h2 { margin: 0; }
.patient-profile-edit-icon { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; padding: .25rem; border: 0; border-radius: 8px; background: transparent; color: var(--periwinkle); cursor: pointer; }
@media (hover: hover) and (pointer: fine) {
  .ovarian-reserve-edit:hover, .patient-profile-edit-icon:hover { background: var(--lilac-soft); }
}
.ovarian-reserve-edit:focus-visible, .patient-profile-edit-icon:focus-visible { outline: 2px solid var(--periwinkle); outline-offset: 2px; }
.patient-detail-name { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.patient-detail-name h1 { min-width: 0; overflow-wrap: anywhere; }
.patient-detail-facts.patient-facts-inline { flex-direction: column; align-items: flex-start; }

.ovarian-reserve-edit { flex: 0 0 auto; min-height: 2.75rem; padding: .5rem .625rem; border: 0; border-radius: 8px; background: transparent; color: var(--periwinkle); font: inherit; font-size: .8125rem; font-weight: 500; cursor: pointer; }

#patient-profile-header .patient-detail-header { align-items: flex-start; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line-strong); }
.patient-detail-identity { display: grid; gap: .75rem; min-width: 0; }
.patient-detail-identity .patient-detail-name h1 { margin: 0; line-height: 1.15; }
.patient-detail-identity .patient-detail-facts { margin: 0; padding: 0; border: 0; gap: .375rem; }
.patient-detail-identity .patient-detail-facts > div { display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: .75rem; align-items: baseline; }
.patient-detail-identity .patient-detail-facts dt { font-family: inherit; font-size: .8125rem; letter-spacing: normal; text-transform: none; }
.patient-detail-identity .patient-detail-facts dd { font-size: .875rem; }

.clinical-history-status-card { padding: 1.25rem 1.5rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.clinical-history-status-card .clinical-history-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem 1.5rem; padding: 0; border: 0; border-radius: 0; }
.clinical-history-status-card .clinical-history-heading h2 { margin: 0; }
.clinical-history-status-card .clinical-history-header-actions { display: contents; }
.clinical-history-status-card .clinical-history-header-actions .pill { grid-column: 1; justify-self: start; }
.clinical-history-status-card .clinical-history-header-actions .button { grid-column: 2; grid-row: 1 / 3; }
.clinical-history-status-card .clinical-history-flow { margin-top: 1.25rem; padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
.clinical-history-status-card .clinical-history-flow strong { font-size: .875rem; font-weight: 600; }
.clinical-history-status-card .clinical-history-consultation { margin-top: 1.25rem; padding: 1.25rem 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; }
@media (max-width: 600px) {
  .clinical-history-status-card { padding: 1.25rem; }
  .clinical-history-status-card .clinical-history-heading { grid-template-columns: minmax(0, 1fr); }
  .clinical-history-status-card .clinical-history-header-actions .button { grid-column: 1; grid-row: auto; justify-self: start; }
}
