.pp-care {
  --pc-text: #1d3550;
  --pc-subtle: #4c637a;
  --pc-line: #dbe5ef;
  --pc-link: #215ba4;
  color: var(--pc-text);
  font-size: 1rem;
  text-align: left;
  max-width: 100%;
  min-width: 0;
}
.pp-care *, .pp-care *::before, .pp-care *::after { box-sizing: border-box; }
.pp-care [hidden], .pp-care .pc-status:empty { display: none !important; }
.pp-care a { color: var(--pc-link); text-decoration: underline; text-underline-offset: .18em; }
.pp-care h3 { margin: 0; color: var(--pc-text); font-size: 1.22rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.3; }
.pp-care p { margin: .45rem 0; line-height: 1.5; }
.pp-care .pc-muted, .pp-care small { color: var(--pc-subtle); font-size: .9rem; line-height: 1.5; }
.pp-care .pc-box {
  margin: 0 0 1rem; padding: clamp(1.08rem, 2.5vw, 1.7rem); background: #fff; border: 1px solid var(--pc-line);
  box-shadow: 0 3px 12px #13365b07; border-radius: 15px; min-width: 0; overflow-wrap: anywhere;
}
.pp-care .pc-head, .pp-care .pc-actions, .pp-care .pc-manager-row, .pp-care .pc-partner-tools, .pp-care .pc-tabs {
  display: flex; flex-wrap: wrap; align-items: center; gap: .62rem;
}
.pp-care .pc-head, .pp-care .pc-partner-tools, .pp-care .pc-manager-row { justify-content: space-between; }
.pp-care .pc-actions, .pp-care .pc-partner-tools { margin-top: .9rem; }
.pp-care .pc-tabs { margin: 0 0 1rem; gap: .4rem; }
.pp-care .pc-btn { cursor: pointer; font: inherit; font-weight: 650; font-size: .9rem; line-height: 1.3; display: inline-flex; align-items: center; justify-content: center; min-height: 2.6rem; margin: 0; padding: .58rem .88rem; border: 1px solid #cddbec; border-radius: 8px; color: var(--pc-link); background: #fff; }
.pp-care .pc-btn:hover { background: #edf4fc; }
.pp-care .pc-primary, .pp-care .pc-tabs [aria-pressed="true"] { background: #255da0; border-color: #255da0; color: #fff; }
.pp-care .pc-primary:hover, .pp-care .pc-tabs [aria-pressed="true"]:hover { background: #17487f; }
.pp-care .pc-btn:focus-visible, .pp-care .pc-input:focus-visible, .pp-care a:focus-visible { outline: 3px solid #3779ce; outline-offset: 2px; }
.pp-care .pc-list, .pp-care .pc-messages { list-style: none; padding: 0; margin: 0; }
.pp-care .pc-list > li { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--pc-line); }
.pp-care .pc-count, .pp-care .pc-badge { padding: .27rem .57rem; border-radius: 8px; background: #eef3f9; color: #3b5878; font-size: .83rem; font-weight: 650; }
.pp-care .pc-badge { background: #fff0e4; color: #814413; }
.pp-care .pc-green { background: #e7f5ee; color: #236144; }
.pp-care .pc-contact, .pp-care .pc-photo-edit { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; min-width: 0; }
.pp-care .pc-box > h3 + .pc-contact, .pp-care .pc-box > h3 + .pc-form { margin-top: 1rem; }
.pp-care .pc-contact > div { min-width: 0; }
.pp-care .pc-avatar { width: 4rem; height: 4rem; display: block; object-fit: cover; border-radius: 50%; flex-shrink: 0; }
.pp-care .pc-initials { display: grid; place-items: center; background: #e7eff9; color: #25558a; font-weight: 700; font-size: 1.25rem; }
.pp-care .pc-contacts { display: flex; flex-wrap: wrap; gap: .15rem 1rem; margin-top: .32rem; }
.pp-care .pc-label { display: grid; gap: .35rem; color: var(--pc-text); font-weight: 600; font-size: .9rem; margin: 0; min-width: 0; }
.pp-care .pc-input { display: block; width: 100%; min-height: 2.65rem; padding: .58rem .78rem; border: 1px solid #bfcedd; border-radius: 8px; background-color: #fff; color: var(--pc-text); font: inherit; font-size: 1rem; font-weight: 400; }
.pp-care select.pc-input { padding-right: 2rem; }
.pp-care textarea { resize: vertical; line-height: 1.5; }
.pp-care .pc-file { padding: .45rem; }
.pp-care .pc-check { display: flex; gap: .65rem; align-items: center; }
.pp-care .pc-check input { width: 1rem; height: 1rem; }
.pp-care .pc-form { display: grid; gap: 1rem; margin: .75rem 0 0; }
.pp-care .pc-form .pc-actions { margin-top: 0; }
.pp-care .pc-search { max-width: 31rem; margin-top: 1rem; }
.pp-care .pc-fields { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0,1fr)); }
.pp-care .pc-assign { display: flex; flex-wrap: wrap; gap: .55rem; align-items: end; margin: 0; }
.pp-care .pc-assign .pc-label { min-width: min(13rem,100%); }
.pp-care .pc-due { margin-top: .3rem; color: #815022; font-size: .9rem; }
.pp-care .pc-due time { white-space: nowrap; }
.pp-care .pc-plan-date { max-width: 15rem; }
.pp-care .pc-thread .pc-back { margin: 0 0 1rem; }
.pp-care .pc-messages { display: grid; gap: .65rem; margin: 1rem 0; max-height: 32rem; overflow-y: auto; }
.pp-care .pc-messages li { justify-self: start; max-width: 90%; border-radius: 10px; padding: .68rem .9rem; background: #f0f4f9; }
.pp-care .pc-messages li.pc-own { justify-self: end; background: #e8f2ff; }
.pp-care .pc-message-meta { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .3rem .75rem; color: var(--pc-subtle); font-size: .83rem; }
.pp-care .pc-messages p { white-space: pre-wrap; margin-bottom: 0; }
.pp-care .pc-status { margin-bottom: .8rem; padding: .7rem 1rem; border-radius: 8px; color: #24583e; background: #e9f5ef; }
.pp-care .pc-status.pc-error { color: #8f271c; background: #fff0ec; }
.pp-care .pc-invite { background: #f7fbff; border-color: #bed9f3; }
@media(max-width:600px) {
  .pp-care .pc-fields { grid-template-columns: minmax(0,1fr); }
  .pp-care .pc-messages li { max-width: 96%; }
  .pp-care .pc-assign, .pp-care .pc-assign .pc-label { width: 100%; }
}

/* Partner contact card. The conversation shares the same surface when opened. */
.pp-care.pc-partner-panel {
  width: min(100%, 34rem);
  margin-block: .75rem 1rem;
  container-type: inline-size;
}
.pp-care .pc-mini {
  background: #fff;
  border: 1px solid #cbdced;
  border-radius: 14px;
  box-shadow: 0 2px 7px rgb(27 62 103 / 6%);
  min-width: 0;
}
.pp-care .pc-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .7rem;
  padding: .7rem .85rem;
}
.pp-care .pc-summary .pc-avatar {
  width: 2.7rem;
  height: 2.7rem;
  border-radius: 12px;
  background-color: #eaf1fa;
  color: #2f5983;
  font-size: 1rem;
}
.pp-care .pc-empty-avatar {
  display: grid;
  place-items: center;
}
.pp-care .pc-empty-avatar::before, .pp-care .pc-chat-toggle::before {
  content: "";
  width: 1.2rem;
  height: 1.2rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11.5a7.5 7.5 0 0 1-7.5 7.5H8l-4 3v-7a7.5 7.5 0 0 1 7-11h1.5a7.5 7.5 0 0 1 7.5 7.5Z' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.pp-care .pc-identity { min-width: 0; overflow-wrap: anywhere; }
.pp-care .pc-caption, .pp-care .pc-pending { display: block; font-size: .83rem; line-height: 1.35; color: #526a81; }
.pp-care .pc-identity h3 { font-size: 1.01rem; line-height: 1.35; letter-spacing: -.015em; }
.pp-care .pc-identity .pc-contacts { column-gap: .75rem; row-gap: .1rem; margin-top: .12rem; font-size: .875rem; line-height: 1.45; }
.pp-care .pc-identity a { text-decoration: none; }
.pp-care .pc-identity a:hover, .pp-care .pc-identity a:focus-visible { text-decoration: underline; }
.pp-care .pc-chat-toggle {
  min-height: 2.6rem;
  gap: .35rem;
  padding: .48rem .68rem;
  border-color: #f3c9ad;
  background: #fff0e4;
  color: #85401e;
  border-radius: 10px;
  white-space: nowrap;
}
.pp-care .pc-chat-toggle:hover { background: #ffe5d1; }
.pp-care .pc-mini .pc-thread {
  margin: 0;
  padding: .8rem .9rem;
  border: 0;
  border-top: 1px solid var(--pc-line);
  border-radius: 0 0 14px 14px;
  box-shadow: none;
}
.pp-care .pc-mini .pc-thread h3 { font-size: 1rem; }
.pp-care .pc-mini .pc-messages { max-height: min(15rem, 38vh); margin: .65rem 0; }
.pp-care .pc-mini .pc-form { gap: .5rem; }
.pp-care .pc-mini textarea { min-height: 3.15rem; }
.pp-care.pc-manager-panel { max-inline-size: 54rem; }
.pp-care.pc-manager-panel .pc-box { padding: clamp(.9rem, 1.75vw, 1.25rem); }
.pp-care.pc-manager-panel .pc-avatar { width: 3rem; height: 3rem; }
.pp-care.pc-manager-panel .pc-list > li { padding-top: .7rem; margin-top: .7rem; }
.pp-care.pc-manager-panel .pc-messages { max-height: min(22rem, 42vh); }
@container (max-width: 27rem) {
  .pp-care .pc-summary { column-gap: .55rem; }
  .pp-care .pc-summary .pc-contacts { flex-direction: column; }
}
@container (max-width: 19rem) {
  .pp-care .pc-summary { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .pp-care .pc-chat-toggle { grid-column: 2; justify-self: start; }
}

.pp-care .pc-chat-toggle.pc-unread { background: #205798; color: #fff; border-color: #205798; }
.pp-care .pc-chat-toggle.pc-unread:hover { background: #18477e; }
.pp-care .pc-agenda .pc-list > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem; }
.pp-care .pc-reasons { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .35rem; }
@container (max-width: 24rem) {
  .pp-care .pc-summary:has(.pc-unread) { grid-template-columns: 2.6rem minmax(0,1fr); }
  .pp-care .pc-chat-toggle.pc-unread { grid-column: 2; justify-self: start; }
}
