/* Psychology summary and its record inspector. */
:where(.hcgeneric--general-medicine) {
  --hcpsych-app-canvas: var(--bg-main);
  --hcpsych-app-surface: var(--bg-elevated);
  --hcpsych-app-inset: var(--bg-secondary);
  --hcpsych-app-card: var(--bg-card);
  --hcpsych-app-ink: var(--text-primary);
  --hcpsych-app-muted: var(--text-secondary);
  --hcpsych-app-border: var(--border);
}
:where(.hcgeneric--general-medicine) .hcpsych.hcpsych-summary {
  --sum-ink: var(--hcpsych-app-ink);
  --sum-muted: var(--hcpsych-app-muted);
  --sum-line: var(--hcpsych-app-border);
  --sum-surface: var(--hcpsych-app-surface);
  --sum-inset: var(--hcpsych-app-inset);
  --sum-white: var(--hcpsych-app-card);
  --sum-orange: #ae3900;
  --sum-orange-action: #b93d00;
  --sum-orange-bright: #e66313;
  --sum-orange-soft: #fbe6d6;
  --sum-violet: #6e36c6;
  --sum-violet-soft: #efe2fb;
  --sum-focus: #7040ba;
  --sum-success-bg: #def2e4;
  --sum-success-ink: #21613a;
  --sum-selected: #c94b09;
  --sum-shadow: 0 2px 5px #4120370b;
  container: psych-summary / inline-size;
  display: grid;
  gap: 10px;
  min-width: 0;
  color: var(--sum-ink);
  color-scheme: light;
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
[data-theme="dark"] :where(.hcgeneric--general-medicine) .hcpsych.hcpsych-summary {
  --sum-orange: #ffb57d;
  --sum-orange-action: #b93d00;
  --sum-orange-bright: #ff9a52;
  --sum-orange-soft: #442c25;
  --sum-violet: #cba8ff;
  --sum-violet-soft: #3e2b58;
  --sum-focus: #cfadff;
  --sum-success-bg: #254034;
  --sum-success-ink: #a2dfbc;
  --sum-selected: #ff9757;
  --sum-shadow: 0 2px 5px #0003;
  color-scheme: dark;
}
:where(.hcgeneric--general-medicine) .hcpsych-summary :is(h2, h3, p, ul, dl, dd) { margin: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-summary :is(button, summary, a):focus-visible, :where(.hcgeneric--general-medicine) .hcpsych-summary :is(input, textarea, select):focus-visible {
  outline: 2px solid var(--sum-focus);
  outline-offset: 2px;
}
:where(.hcgeneric--general-medicine) .hcpsych-summary svg { flex: none; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__workspace { display: grid; gap: 12px; align-items: start; min-width: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__overview, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail {
  display: grid;
  gap: 14px;
  padding: 14px;
  min-width: 0;
  background: var(--sum-surface);
  border: 1px solid var(--sum-line);
  border-radius: 17px;
  box-shadow: var(--sum-shadow);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading { padding: 4px 2px 2px; flex-wrap: wrap; align-items: center; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading > svg { color: var(--sum-orange-bright); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading > div:nth-child(2), :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head > div {
  flex: 1 1 150px;
  min-width: 0;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading h2, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head h2 {
  color: var(--sum-ink);
  font-weight: 800;
  line-height: 1.16;
  letter-spacing: -.025em;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading h2 { font-size: 23px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head h2 { font-size: 18px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading p, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head p { margin-top: 3px; color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__heading-actions, :where(.hcgeneric--general-medicine) .hcpsych-sum__card-actions, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__button, :where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 7px 11px;
  min-width: 36px;
  min-height: 38px;
  text-align: center;
  color: var(--sum-orange);
  background: var(--sum-white);
  border: 1px solid var(--sum-line);
  border-radius: 9px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__button:hover:not(:disabled), :where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary:hover {
  border-color: var(--sum-orange);
  background: var(--sum-orange-soft);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__button:disabled { opacity: .65; cursor: default; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__button.hcpsych-sum__primary {
  background: var(--sum-orange-action);
  border-color: var(--sum-orange-action);
  color: #fff;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__button.hcpsych-sum__primary:hover:not(:disabled) { background: #9d3300; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu { position: relative; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary, :where(.hcgeneric--general-medicine) .hcpsych-sum__button.hcpsych-sum__icon-button { padding: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary { list-style: none; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary::-webkit-details-marker { display: none; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu > div {
  position: absolute;
  z-index: 2;
  inset-inline-end: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 5px;
  min-width: 210px;
  padding: 7px;
  border: 1px solid var(--sum-line);
  border-radius: 10px;
  background: var(--sum-white);
  box-shadow: 0 8px 24px #19142028;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__menu .hcpsych-sum__button { justify-content: start; text-align: start; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief {
  display: grid;
  gap: 9px;
  padding: 11px 13px;
  border: 1px solid var(--sum-line);
  border-inline-start: 3px solid var(--sum-orange-bright);
  border-radius: 11px;
  background: var(--sum-white);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief > header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 3px 12px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief h3 { color: var(--sum-ink); font-size: 17px; font-weight: 800; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief :is(time, dd > span) { color: var(--sum-muted); font-size: 14px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields { display: grid; gap: 8px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields > div {
  display: grid;
  gap: 2px 10px;
  padding-top: 7px;
  min-width: 0;
  border-top: 1px solid var(--sum-line);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields dt { font-weight: 750; color: var(--sum-ink); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields dd { color: var(--sum-ink); white-space: pre-wrap; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields dd > span { display: block; margin-top: 1px; }
@container psych-summary (min-width: 490px) {
  :where(.hcgeneric--general-medicine) .hcpsych-sum__brief-fields > div { grid-template-columns: minmax(0, 154px) minmax(0, 1fr); }
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 11px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card {
  --card-ink: var(--sum-orange);
  --card-strong: var(--sum-orange-bright);
  --card-soft: var(--sum-orange-soft);
  min-width: 0;
  display: grid;
  align-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  min-height: 141px;
  border: 1px solid var(--sum-line);
  border-radius: 13px;
  background: var(--sum-white);
  box-shadow: var(--sum-shadow);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--state, :where(.hcgeneric--general-medicine) .hcpsych-sum__card--session {
  --card-ink: var(--sum-violet);
  --card-strong: var(--sum-violet);
  --card-soft: var(--sum-violet-soft);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--task { grid-column: 1 / -1; min-height: 122px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card[data-selected] { border-color: var(--sum-selected); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--card-ink, var(--sum-orange));
  background: var(--card-soft, var(--sum-orange-soft));
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-main { min-width: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-head { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 5px 8px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-head > div { flex: 1 1 108px; min-width: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-head h3 {
  color: var(--sum-ink);
  font-size: 17px;
  line-height: 1.17;
  letter-spacing: -.018em;
  font-weight: 800;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-head p, :where(.hcgeneric--general-medicine) .hcpsych-sum__description, :where(.hcgeneric--general-medicine) .hcpsych-sum__meta { color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__trend { color: var(--card-ink); opacity: .62; width: 64px; height: 28px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__description { margin-top: 6px !important; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--task .hcpsych-sum__description { white-space: pre-line; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--task .hcpsych-sum__description strong { display: block; color: var(--sum-ink); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--task .hcpsych-sum__description > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 3px 9px;
  font-weight: 700;
  line-height: 1.4;
  border-radius: 30px;
  color: var(--card-ink);
  background: var(--card-soft);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__badge[data-tone="success"] { color: var(--sum-success-ink); background: var(--sum-success-bg); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__badge[data-tone="reviewed"] { color: var(--sum-violet); background: var(--sum-violet-soft); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__badge[data-tone="pending"]::before {
  content: "";
  background: var(--sum-orange-bright);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  flex: none;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure { display: grid; gap: 3px; margin-top: 6px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure strong { color: var(--sum-ink); font-size: 23px; font-weight: 800; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--goal .hcpsych-sum__measure { grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 10px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--goal .hcpsych-sum__measure strong { grid-column: 2; grid-row: 1; font-size: 14px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--goal .hcpsych-sum__measure progress { grid-column: 1; grid-row: 1; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure progress {
  appearance: none;
  width: 100%;
  border: none;
  height: 8px;
  border-radius: 20px;
  overflow: hidden;
  color: var(--card-strong);
  background: var(--sum-line);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure progress::-webkit-progress-bar { background: var(--sum-line); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure progress::-webkit-progress-value { background: var(--card-strong); border-radius: 20px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__measure progress::-moz-progress-bar { background: var(--card-strong); border-radius: 20px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__card--task .hcpsych-sum__card-foot { border-top: 1px solid var(--sum-line); padding-top: 5px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__meta { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__meta > span { display: inline-flex; align-items: center; gap: 5px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-actions { margin-inline-start: auto; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__card-actions .hcpsych-sum__button, :where(.hcgeneric--general-medicine) .hcpsych-sum__chevron { color: var(--card-ink); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__add { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 146px), 1fr)); gap: 9px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__add .hcpsych-sum__button { min-height: 42px; background: var(--sum-inset); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__add .hcpsych-sum__button:nth-child(2) { color: var(--sum-violet); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__add .hcpsych-sum__button:hover { border-color: currentColor; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail { padding: 14px; scroll-margin: 12px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__workspace[data-detail="default"] .hcpsych-sum__detail { display: none; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__workspace[data-detail="default"] .hcpsych-sum__card[data-selected] { border-color: var(--sum-line); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head { align-items: center; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-head .hcpsych-sum__button { align-self: flex-start; color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  background: var(--sum-white);
  border: 1px solid var(--sum-line);
  border-radius: 10px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__tabs > button {
  flex: 1;
  min-height: 40px;
  padding: 6px 10px;
  color: var(--sum-muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  font: inherit;
  cursor: pointer;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__tabs > button[aria-pressed="true"] { color: var(--sum-orange); font-weight: 700; border-bottom-color: var(--sum-orange-bright); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-body { display: grid; gap: 12px; min-width: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-section, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail-foot { display: grid; gap: 8px; min-width: 0; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields { padding: 2px 3px 3px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields > div { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 7px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields dt { display: flex; gap: 7px; align-items: flex-start; color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields dt svg { margin-top: 2px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__fields dd { color: var(--sum-ink); font-weight: 600; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-section { border-top: 1px solid var(--sum-line); padding-top: 11px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail :is(h3, h4) { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 800; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__description-box {
  padding: 10px 12px;
  background: var(--sum-inset);
  border-radius: 9px;
  white-space: pre-wrap;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-foot {
  padding: 10px 11px;
  border: 1px solid var(--sum-line);
  background: var(--sum-white);
  border-radius: 11px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__detail-actions { align-items: stretch; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__records { display: grid; gap: 7px; padding: 0; list-style: none; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__records > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 3px 8px;
  padding: 8px 10px;
  border: 1px solid var(--sum-line);
  background: var(--sum-inset);
  border-radius: 9px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__records :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0;
  color: var(--sum-orange);
  background: transparent;
  border: 0;
  font: inherit;
  font-weight: 700;
  text-align: start;
  cursor: pointer;
  gap: 6px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__records small, :where(.hcgeneric--general-medicine) .hcpsych-sum__records p { grid-column: 2; font-size: 14px; color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__alert, :where(.hcgeneric--general-medicine) .hcpsych-sum__notice {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid var(--sum-line);
  border-radius: 10px;
  background: var(--sum-surface);
  color: var(--sum-muted);
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__alert { background: var(--sum-inset); border-inline-start: 3px solid var(--sum-orange-bright); color: var(--sum-ink); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__alert > svg { color: var(--sum-orange); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__alert > div { flex: 1; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__empty, :where(.hcgeneric--general-medicine) .hcpsych-sum__feedback { color: var(--sum-muted); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__feedback[role="alert"] { color: var(--sum-orange); }
:where(.hcgeneric--general-medicine) .hcpsych-sum__editor, :where(.hcgeneric--general-medicine) .hcpsych-sum__editor label { display: grid; gap: 8px; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__editor label { font-weight: 700; }
:where(.hcgeneric--general-medicine) .hcpsych-sum__editor :is(textarea, input, select) {
  min-width: 0;
  padding: 8px;
  border: 1px solid var(--sum-line);
  border-radius: 8px;
  color: var(--sum-ink);
  background: var(--sum-white);
  font: inherit;
  font-size: 16px;
}
:where(.hcgeneric--general-medicine) .hcpsych-sum__editor textarea { min-height: 80px; resize: vertical; }
@container psych-summary (min-width: 490px) {
  :where(.hcgeneric--general-medicine) .hcpsych-sum__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@container psych-summary (min-width: 875px) {
  :where(.hcgeneric--general-medicine) .hcpsych-sum__workspace[data-detail] { grid-template-columns: minmax(0, 1.7fr) minmax(310px, 1fr); }
  :where(.hcgeneric--general-medicine) .hcpsych-sum__workspace[data-detail="default"] .hcpsych-sum__detail { display: grid; }
  :where(.hcgeneric--general-medicine) .hcpsych-sum__workspace[data-detail="default"] .hcpsych-sum__card[data-selected] { border-color: var(--sum-selected); }
}
@container psych-summary (max-width: 489px) {
  :where(.hcgeneric--general-medicine) .hcpsych-sum__overview, :where(.hcgeneric--general-medicine) .hcpsych-sum__detail { padding: 10px; }
  :where(.hcgeneric--general-medicine) .hcpsych-sum__heading-actions { width: 100%; justify-content: space-between; }
}
@media (pointer: coarse) {
  :where(.hcgeneric--general-medicine) .hcpsych-sum__button, :where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary, :where(.hcgeneric--general-medicine) .hcpsych-sum__tabs > button { min-height: 44px; }
  :where(.hcgeneric--general-medicine) .hcpsych-sum__button.hcpsych-sum__icon-button, :where(.hcgeneric--general-medicine) .hcpsych-sum__menu summary { min-width: 44px; }
}


.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient { --bg-elevated:#131317; --bg-secondary:#131317; --text-primary:#f0effa; --text-secondary:#bdc0d8; color:var(--text-primary); min-width:0; border:1px solid var(--border,#dce1e7); border-radius:14px; background:#131317; overflow:clip; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__identity>.hcdetail__hero { background:#131317; margin:0; border:0; border-radius:0; box-shadow:none; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger { display:flex; align-items:center; justify-content:space-between; gap:16px; min-height:48px; padding:12px 20px; color:var(--text-primary,#17212f); background:#131317; border-top:1px solid var(--border,#dce1e7); font-size:15px; line-height:1.5; font-weight:600; list-style:none; cursor:pointer; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger::-webkit-details-marker { display:none; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger:focus-visible { outline:3px solid #a76cff; outline-offset:-4px; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger>svg { flex:none; color:#9760df; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__disclosure[open]>.hcpsych-patient__trigger>svg { transform:rotate(180deg); }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body { display:grid; min-width:0; gap:16px; padding:20px; border-top:1px solid var(--border,#dce1e7); }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body>.hcsafety,.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body>.hcdetail__quickstats,.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body>.hcdetail__timeline,.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body>.hc-tools { margin:0; min-width:0; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body .hc-tools__buttons { display:grid; grid-template-columns:repeat(auto-fit,minmax(170px,1fr)); gap:10px; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body .hc-tools__buttons>button { min-height:56px; font-size:14px; }
@media(max-width:650px) { .hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger { padding:12px 16px; } .hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body { padding:14px; gap:14px; } .hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__body .hc-tools__buttons { grid-template-columns:minmax(0,1fr); } }

.hcgeneric--general-medicine { container: general-medicine / inline-size; min-width: 0; }

.hcdetail .hcgeneric--general-medicine .hcspecnav {
  position: static;
  padding: 0 0 12px;
  margin-bottom: 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hcgeneric--general-medicine :is(.hcspecnav__head, .hcspecnav__compact) { display: none; }
.hcgeneric--general-medicine .hcspecnav__tabs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .8fr) minmax(0, 1.35fr) minmax(0, 1.05fr) minmax(0, 1.05fr) minmax(0, 1.2fr) minmax(0, 1.65fr);
  overflow: visible;
  padding: 0;
}

.hcgeneric--general-medicine .hcspecnav__tab {
  justify-content: center;
  min-height: 44px;
  padding: 7px 9px;
  border-color: var(--border);
  border-radius: 9px;
  background: var(--bg-elevated);
  font-size: 14px;
  text-align: center;
  white-space: normal;
}

.hcdetail .hcgeneric--general-medicine .hcspecnav__tab--active {
  background: var(--hcspec-accent);
  border-color: var(--hcspec-accent);
  color: #fff;
  box-shadow: none;
}

.hcgeneric--general-medicine .hcspecnav__tab--active .hcspecnav__count {
  background: #fff2;
  color: #fff;
}

.hcgeneric--general-medicine .hcspecnav__tab > svg { flex: none; }
.hcgeneric--general-medicine .hcspecnav__content { padding: 0; min-width: 0; }

[data-theme="dark"] .hcdetail[data-clinical-specialty="medicina-general"] .hcdetail__hero-eyebrow { color: #9ce4d3; }
[data-theme="dark"] .hcdetail[data-clinical-specialty="medicina-general"] .hcdetail__emergency { color: #ffd2a1; }
[data-theme="dark"] .hcdetail[data-clinical-specialty="medicina-general"] > [role="status"] { --info-text: #c4bdff; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger > svg { color: #9ce4d3; }
.hcdetail[data-clinical-specialty="medicina-general"] .hcpsych-patient__trigger:focus-visible { outline-color: #9ce4d3; }
.hcdetail[data-clinical-specialty="medicina-general"] :is(.hcdetail__hero-eyebrow, .hcdetail__hero-tag, .hcdetail__emergency-label, .hcdetail__emergency-value) {
  font-size: 14px;
}

.hcpsych.hc-general-summary {
  --sum-orange: #0f6c64;
  --sum-orange-bright: #168276;
  --sum-orange-soft: #dff4ef;
  --sum-violet: #493cb2;
  --sum-violet-soft: #eae7ff;
  --sum-focus: #0f766e;
  --sum-selected: #168276;
}

[data-theme="dark"] .hcpsych.hc-general-summary {
  --sum-orange: #9ce4d3;
  --sum-orange-bright: #6bcdb6;
  --sum-orange-soft: #233f39;
  --sum-violet: #cec5ff;
  --sum-violet-soft: #352d5f;
  --sum-focus: #9ce4d3;
  --sum-selected: #6bcdb6;
}

.hc-general-summary__preview {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  margin-top: 6px !important;
  color: var(--sum-ink);
}

.hc-general-summary .hcpsych-sum__button { min-height: 44px; }
.hc-general-summary .hcpsych-sum__icon-button { min-width: 44px; }
.hc-general-summary .hcpsych-sum__badge[data-tone="pending"] { background: #ffe0bc; color: #733800; }
.hc-general-summary .hcpsych-sum__badge[data-tone="pending"]::before { display: none; }
.hc-general-summary .hcpsych-sum__detail-section:first-child { border-top: 0; padding-top: 0; }
.hc-general-summary__values { display: grid; gap: 6px; padding: 0; list-style: none; }
.hc-general-summary__values li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 3px 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: var(--sum-inset);
}
.hc-general-summary__values li > span + span { color: var(--sum-muted); }

@container general-medicine (max-width: 919px) {
  /* The shared mobile shell uses an important display rule for the tab list. */
  body .hcdetail .hcdetail__spec-render .hcgeneric--general-medicine .hcspecnav .hcspecnav__tabs[role="tablist"] { display: none !important; }
  .hcgeneric--general-medicine .hcspecnav__compact {
    display: grid;
    gap: 5px;
    font-size: 14px;
    color: var(--text-secondary);
  }
  .hcgeneric--general-medicine .hcspecnav__compact select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 7px 12px;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    background: var(--bg-elevated);
    font: inherit;
    font-size: 16px;
  }
}

@media (forced-colors: active) {
  .hcgeneric--general-medicine .hcspecnav__tab--active,
  .hc-general-summary .hcpsych-sum__card[data-selected] { outline: 2px solid Highlight; }
}
