/* Team names act as a distinct, generous target; editing remains separate. */
.team-member-profile{display:flex;align-items:center;gap:11px;flex:1;min-width:0;text-align:left;border:0;padding:4px 0;background:transparent;color:inherit;border-radius:8px;cursor:pointer;font:inherit}
.team-member-profile:hover .team-member-name{color:#00865a;text-decoration:underline;text-underline-offset:4px}
.team-member-profile:focus-visible{outline:2px solid #00865a;outline-offset:4px}
.team-member-profile .team-member-work{color:#507065}
.member-profile-dialog{width:920px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 48px);padding:0;border:1px solid #dce6e1;border-radius:20px;background:#fff;color:#20392e;box-shadow:0 28px 100px #142f2940;overflow:auto}
.member-profile-dialog::backdrop{background:#142b2661;backdrop-filter:blur(4px)}
.member-profile-shell{padding:32px;min-width:0}
.member-profile-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.member-profile-identity{display:flex;align-items:center;gap:18px;min-width:0}
.member-profile-avatar{flex-shrink:0;display:grid;place-items:center;width:64px;height:64px;border-radius:20px;background:#dff8ec;color:#00865a;font-size:25px;font-weight:750}
.member-profile-eyebrow{display:block;color:#578270;font-size:10px;letter-spacing:1.5px;font-weight:700;margin-bottom:7px}
.member-profile-identity h2{font-size:29px;line-height:1.25;letter-spacing:-.9px;margin:0 0 9px;overflow-wrap:anywhere}
.member-profile-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:13px;color:#647970}
.member-profile-level{background:#e8f5ee;color:#16764e;border-radius:6px;font-size:12px;font-weight:700;padding:4px 8px}
.member-profile-archived{font-size:11px;border:1px solid #dce5df;padding:3px 7px;border-radius:5px}
.member-profile-close{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid #e2e9e5;border-radius:10px;background:#f5f8f6;color:#5b7365;font-size:27px;line-height:1;cursor:pointer}
.member-profile-close:hover{background:#e8f4ed;border-color:#bad3c5;color:#00865a}
.member-profile-close:focus-visible,.member-project-card:focus-visible{outline:3px solid #00865a;outline-offset:3px}
.member-profile-summary{font-size:13px;color:#5d7468;margin:25px 0 18px;padding-top:20px;border-top:1px solid #e5ece8}
.member-profile-benefits{border:1px solid #d8eadf;background:#f2faf5;border-radius:12px;padding:17px 20px;margin:0 0 27px}
.member-profile-benefits h3{font-size:13px;font-weight:750;color:#22744e;margin:0 0 9px}
.member-profile-benefits p{font-size:13px;line-height:1.8;color:#536d5e;white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.member-profile-sections{display:grid;gap:28px}
.member-project-section-heading{display:flex;justify-content:space-between;gap:12px;margin-bottom:14px}
.member-project-section-heading h3{display:flex;align-items:center;gap:9px;font-size:17px;letter-spacing:-.4px;margin:0 0 6px}
.member-project-section-heading p{font-size:12px;line-height:1.6;color:#718078;margin:0}
.member-project-count{display:inline-grid;place-items:center;min-width:24px;height:23px;background:#edf2ef;border-radius:7px;color:#607567;font-size:12px;font-weight:700;padding:0 6px}
.is-pm .member-project-count{color:#5e4ac3;background:#eeeaff}
.member-project-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.member-project-card{display:flex;flex-direction:column;align-items:stretch;min-width:0;text-align:left;border:1px solid #dce6e0;border-radius:12px;padding:18px;background:#fff;color:inherit;cursor:pointer;font:inherit;transition:border-color .15s,box-shadow .15s,background .15s}
.member-project-card:hover{border-color:#78b595;background:#fcfefd;box-shadow:0 5px 16px #15442a0b}
.member-project-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.member-project-status{padding:4px 7px;border-radius:5px;background:#edf1f4;color:#637581;font-size:10px;font-weight:700}
.member-project-status[data-status="doing"]{background:#e5f0ff;color:#2370c5}
.member-project-status[data-status="review"]{background:#fff2d9;color:#a66c06}
.member-project-status[data-status="done"]{background:#e3f6e9;color:#21824a}
.member-project-relation{font-size:11px;font-weight:650;color:#77847c}
.is-pm .member-project-relation{color:#795ac8}
.member-project-name{font-size:16px;font-weight:700;letter-spacing:-.4px;line-height:1.55;overflow-wrap:anywhere;margin:14px 0 8px}
.member-project-period{font-size:12px;font-variant-numeric:tabular-nums;color:#687d70;line-height:1.65;margin:0 0 18px;overflow-wrap:anywhere}
.member-project-footer{display:flex;align-items:center;justify-content:space-between;gap:9px;margin-top:auto;padding-top:13px;border-top:1px solid #eef2ef;color:#7a8a80;font-size:11px}
.member-project-arrow{font-size:16px;color:#00865a}
.member-project-empty{grid-column:1/-1;margin:0;padding:25px 18px;border:1px dashed #d9e4dd;border-radius:12px;background:#f9fbfa;color:#7a8c80;text-align:center;font-size:13px;line-height:1.7}
@media(max-width:620px){
  .member-profile-dialog{max-width:calc(100vw - 20px);max-height:calc(100dvh - 24px);border-radius:16px}
  .member-profile-shell{padding:24px 19px}
  .member-profile-avatar{width:50px;height:50px;border-radius:15px;font-size:21px}
  .member-profile-identity{gap:12px}
  .member-profile-identity h2{font-size:24px}
  .member-profile-eyebrow{font-size:8px;letter-spacing:1.1px}
  .member-profile-meta{font-size:12px}
  .member-profile-close{width:36px;height:36px}
  .member-profile-summary{font-size:12px}
  .member-profile-benefits{padding:15px 16px}
  .member-project-grid{grid-template-columns:minmax(0,1fr)}
  .member-project-card{padding:16px}
  .team-member-profile{gap:9px}
}
@media(prefers-reduced-motion:reduce){.member-project-card{transition:none}}
