/* TDP Monitor v2.2 — unified role model and participant-linked work queues */
:root { --heading:'Plus Jakarta Sans','Inter',system-ui,sans-serif; --body:'Inter',system-ui,sans-serif; }
body {font-size:14.5px}
.team-hero h2 em {font-style:normal;color:#f0c9d8}
.team-hero .hero-content {max-width:710px}
.duty-grid {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:13px}
.duty-card {background:#fff;border:1px solid var(--border);border-radius:17px;padding:18px 16px;min-width:0;box-shadow:var(--shadow);display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.duty-card .quick-icon {display:grid;place-items:center;height:44px;width:44px;border-radius:13px;margin-bottom:9px}
.duty-card strong {font:750 14px/1.35 var(--heading);color:#253543;letter-spacing:-.2px}
.duty-card small {font-size:12px;line-height:1.6;color:#6c7a85}
.team-task {display:flex;align-items:center;gap:14px;padding:17px 0;border-bottom:1px solid #e9eeee;min-width:0}
.team-task:first-of-type {padding-top:3px}
.team-task:last-child {border-bottom:0;padding-bottom:4px}
.team-task .task-ico {width:44px;height:44px;flex:none}
.team-task-copy {min-width:0;flex:1;display:flex;flex-direction:column;gap:4px}
.team-task-meta {font-size:10px;color:#8a556b;font-weight:750;letter-spacing:.35px;line-height:1.5}
.team-task-copy strong {font:700 13.5px/1.45 var(--heading);color:#233542;overflow-wrap:anywhere}
.team-task-copy small {font-size:11.5px;color:#77858f;line-height:1.45}
.team-task-side {display:flex;align-items:center;gap:9px;flex:none}
.team-open {border:1px solid #e3e7e8;background:#fff;color:#743b51;border-radius:11px;display:grid;place-items:center;width:44px;height:44px;cursor:pointer}
.team-open:hover,.activity-footer button:hover {background:#f7edf1;border-color:#d7b9c5}
.team-task-panel {margin-top:15px}
.team-filter-panel {display:flex;align-items:flex-end;justify-content:space-between;gap:18px}
.team-filter-panel .field {width:min(100%,270px);margin:0}
.team-filter-panel .field select {width:100%;min-height:46px}
.team-filter-copy {display:flex;flex-direction:column;gap:5px}
.team-filter-copy strong {font:750 17px var(--heading);color:#273847}
.team-filter-copy small {font-size:12px;color:#74828d}
.team-note {display:flex;align-items:flex-start;gap:11px;border:1px solid #e2e8e9;background:#f2f6f6;color:#4b6371;border-radius:12px;padding:15px 17px;font-size:12.5px;line-height:1.65;margin-top:18px}
.team-note .ico {flex:none;margin-top:2px;color:#3d7580}
.context-banner {display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid #e2e8e9;background:#f3f7f7;border-radius:13px;padding:12px 15px;margin-bottom:22px}
.context-banner > div {display:flex;align-items:center;gap:9px;flex-wrap:wrap;color:#455968;font-size:12.5px}
.context-banner strong {color:#243c4b}
.context-banner small {font-size:11.5px;color:#6e7e88}
.context-banner button {display:inline-flex;align-items:center;gap:5px;min-height:44px;border:1px solid #dbe3e5;border-radius:10px;background:#fff;color:#5e3446;padding:8px 12px;font-weight:700;font-size:12px;cursor:pointer;white-space:nowrap}
.activity-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:13px}
.activity-card {border:1px solid #e6eaeb;border-radius:15px;background:#fff;padding:19px;display:flex;flex-direction:column;gap:9px;min-width:0;min-height:218px;position:relative}
.activity-number {font:800 11px var(--heading);letter-spacing:1px;color:#90536b;position:absolute;top:21px;right:20px}
.activity-icon {width:46px;height:46px;display:grid;place-items:center;border-radius:13px;background:#f6eaf0;color:#713a50;margin-bottom:3px}
.activity-card h3 {font:750 15px/1.35 var(--heading);color:#263947;margin:0}
.activity-card p {font-size:12px;color:#687a86;line-height:1.6;margin:0;flex:1}
.activity-footer {border-top:1px solid #e9eeee;padding-top:11px;display:flex;justify-content:space-between;align-items:center;gap:8px}
.activity-footer span {font-size:11px;color:#617480;font-weight:650;overflow-wrap:anywhere}
.activity-footer button {width:44px;height:44px;display:grid;place-items:center;border-radius:11px;background:#fff;border:1px solid #e2e6e8;color:#713a50;cursor:pointer;flex:none}
.assigned-roles {margin-top:22px;padding-top:17px;border-top:1px solid #e9eeee}
.assigned-roles > strong {display:block;font:750 14px var(--heading);margin-bottom:5px}
.assigned-roles > p {font-size:12px;color:#667986;line-height:1.6;margin:0 0 12px}
.duty-chip {display:inline-flex;align-items:center;gap:6px;background:#f5eef1;border:1px solid #e8dce1;color:#743b53;border-radius:8px;padding:7px 9px;font-size:11px;font-weight:650;margin:0 5px 6px 0}
@media(max-width:1200px) { .duty-grid {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:950px) { .activity-grid {grid-template-columns:repeat(2,minmax(0,1fr))} }
@media(max-width:650px) {
  .duty-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .duty-card {padding:15px 12px;gap:6px}
  .duty-card .quick-icon {margin-bottom:7px}
  .duty-card strong {font-size:12.5px}
  .duty-card small {font-size:11px}
  .activity-grid {grid-template-columns:minmax(0,1fr);gap:11px}
  .activity-card {min-height:0;padding:17px;gap:7px}
  .activity-card p {font-size:12.5px}
  .team-task {align-items:flex-start;gap:10px;padding:16px 0}
  .team-task .task-ico {width:39px;height:39px}
  .team-task-copy strong {font-size:13px}
  .team-task-meta {font-size:10px}
  .team-task-side {flex-direction:column;align-items:flex-end;gap:6px}
  .team-task-side .chip {font-size:10px;padding:5px 7px}
  .team-open {width:44px;height:44px}
  .team-filter-panel {align-items:stretch;flex-direction:column;gap:13px}
  .team-filter-panel .field {width:100%}
  .context-banner {align-items:stretch;flex-direction:column;gap:9px;padding:12px}
  .context-banner > div {gap:7px}
  .context-banner small {flex-basis:100%;margin-left:25px}
  .context-banner button {align-self:flex-start}
  .team-note {font-size:12px}
  .role-select select {width:125px;max-width:125px}
  .mobile-current {max-width:95px}
}
@media(max-width:370px) {
  .role-select select {width:105px;max-width:105px}
  .mobile-current {max-width:68px}
  .team-task .task-ico {display:none}
}
