/* @ekm-tags: style, patient */
/* EKM OS - Care team card on the patient chart's face sheet (js/ekm-patient-careteam.js). Scoped under .pch-root and built
   from the chart kit's tokens (css/ekm-patient-chart.css), so light and dark themes follow the chart. Every control is a
   44px target; nothing scrolls sideways at 390px. */
.pch-root .pch-bblock#pch-bblock-care-team { margin-top: 14px; }
.pch-root .pct .pch-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pch-root .pct .pct-btn { min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: var(--pch-card); color: var(--pch-ink); }
.pch-root .pct .pct-btn.pch-btn--primary { background: var(--pch-ink); border-color: var(--pch-ink); color: var(--pch-on-ink); }
.pch-root .pct .pct-btn--danger { color: var(--pch-red-soft); border-color: var(--pch-red-soft); }
.pch-root .pct .pct-btn:focus-visible, .pch-root .pct .pct-in:focus-visible, .pch-root .pct .pct-cb:focus-visible { outline: 2px solid var(--pch-ink); outline-offset: 2px; }

.pch-root .pct-list { list-style: none; margin: 0; padding: 0; }
.pch-root .pct-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--pch-border-soft); }
.pch-root .pct-row:first-child { border-top: 0; }
.pch-root .pct-main { min-width: 0; flex: 1 1 auto; }
.pch-root .pct-type { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--pch-ink-soft); overflow-wrap: anywhere; }
.pch-root .pct-name { margin-top: 1px; font-size: 15px; font-weight: 600; line-height: 1.3; color: var(--pch-ink); overflow-wrap: anywhere; }
.pch-root .pct-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; margin-top: 2px; font-size: 13px; color: var(--pch-ink-soft); overflow-wrap: anywhere; }
.pch-root .pct-sep { color: var(--pch-muted); }
.pch-root .pct-phone { font-variant-numeric: tabular-nums; }
.pch-root .pct-nr { color: var(--pch-muted); }
.pch-root .pct-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pch-root .pct-badges .pch-badge { font-size: 11px; }
.pch-root .pct-badges:empty { display: none; }
.pch-root .pct-actions, .pch-root .pct-confirm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; flex: 0 0 auto; }
.pch-root .pct-confirm-q { font-size: 13px; font-weight: 600; color: var(--pch-ink); }

.pch-root .pct-ok { margin: 0 0 10px; font-size: 13px; color: var(--pch-green); font-weight: 600; }
.pch-root .pct-err { margin: 10px 0; font-size: 13px; color: var(--pch-red-soft); font-weight: 600; }
.pch-root .pct-ferr { margin: 4px 0 0; font-size: 12px; color: var(--pch-red-soft); font-weight: 600; }

.pch-root .pct-form { margin: 0 0 14px; padding: 14px; border: 1px solid var(--pch-border); border-radius: 12px; background: var(--pch-card); }
.pch-root .pct-form-title { margin: 0 0 10px; font-family: var(--pch-serif); font-size: 15px; font-weight: 600; color: var(--pch-ink); }
.pch-root .pct-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.pch-root .pct-field { min-width: 0; }
.pch-root .pct-field--wide { grid-column: 1 / -1; }
.pch-root .pct-label { display: block; margin-bottom: 4px; font-size: 12.5px; font-weight: 600; color: var(--pch-ink-soft); }
.pch-root .pct-req { font-weight: 500; color: var(--pch-ink-soft); }
.pch-root .pct-in { box-sizing: border-box; width: 100%; min-height: 44px; padding: 8px 10px; border: 1px solid var(--pch-border); border-radius: 10px;
  background: var(--pch-card); color: var(--pch-ink); font: 14px var(--pch-sans); }
.pch-root textarea.pct-in { min-height: 64px; resize: vertical; }
.pch-root .pct-in[aria-invalid="true"] { border-color: var(--pch-red-soft); }
.pch-root .pct-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 8px; font-size: 14px; color: var(--pch-ink); }
.pch-root .pct-check label { cursor: pointer; }
.pch-root .pct-cb { width: 22px; height: 22px; margin: 0; accent-color: var(--pch-ink); flex: 0 0 auto; cursor: pointer; }
.pch-root .pct-release { margin: 10px 0 0; padding: 4px 12px 12px; border: 1px solid var(--pch-border-soft); border-radius: 10px; }
.pch-root .pct-release legend { padding: 0 6px; font-size: 12.5px; font-weight: 600; color: var(--pch-ink-soft); }
.pch-root .pct-link { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--pch-ink); font: inherit; text-decoration: underline; cursor: pointer; }
.pch-root .pct-link:focus-visible { outline: 2px solid var(--pch-ink); outline-offset: 2px; }
.pch-root .pct-form-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }

@media (max-width: 640px) {
  .pch-root .pct-grid { grid-template-columns: minmax(0, 1fr); }
  .pch-root .pct-row { flex-direction: column; align-items: stretch; }
  .pch-root .pct-actions, .pch-root .pct-confirm { justify-content: flex-start; }
}
