/* Project Details popup refinement: compact layout and individual horizontal concern cards. */
.project-modal{width:min(860px,calc(100vw - 24px));max-height:min(88vh,820px)}
.project-modal-panel{border-radius:22px;overflow:hidden;box-shadow:0 28px 72px rgba(15,45,78,.22)}
.project-modal-header{position:relative;padding:20px 78px 14px 22px;background:linear-gradient(180deg,#fff 0%,#f6fbff 100%);border-bottom:1px solid var(--line-soft)}
.project-modal-header h2{font-size:30px;line-height:1.04;letter-spacing:-.02em;margin:0 0 7px;color:var(--navy)}
.project-modal-sub{font-size:14px;line-height:1.4;color:#49627c}
.modal-close{position:absolute!important;top:18px!important;right:20px!important;width:38px;height:38px;border-radius:11px;font-size:24px;font-weight:400;display:grid!important;place-items:center!important;margin:0!important;flex:0 0 auto;z-index:2}
.project-modal-body{display:flex;flex-direction:column;gap:10px;padding:14px;background:#f6f8fb;max-height:68vh;overflow:auto}
.modal-overview-strip.compact{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.modal-stat-chip{padding:10px 12px;border-radius:12px;border:1px solid #dce6f0;background:#fff;box-shadow:0 3px 10px rgba(17,51,85,.035)}
.modal-stat-chip span{display:block;font-size:9.5px;letter-spacing:.07em;text-transform:uppercase;color:var(--muted);font-weight:800;margin-bottom:4px}
.modal-stat-chip strong{display:block;font-size:20px;line-height:1;color:var(--navy)}
.modal-stat-chip em{display:block;margin-top:4px;font-style:normal;font-size:10.5px;color:#6b8299}
.modal-concerns-full{padding:14px;border-top:3px solid var(--coral);border-radius:14px}
.modal-section-head.modal-section-head-stack{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:10px}
.modal-section-head-stack h3{font-size:20px;line-height:1.12;margin:3px 0 0;color:var(--navy)}
.modal-section-head-stack p{font-size:11.5px;line-height:1.4;margin:5px 0 0;color:#688095}
.modal-kicker{font-size:9px!important}
.modal-count.coral{display:grid;place-items:center;min-width:58px;height:30px;padding:0 10px;border-radius:999px;background:#fff1ef;color:#bd4d46;font-size:10.5px;font-weight:850;white-space:nowrap}
.modal-concern-list.horizontal-cards{display:flex;flex-direction:column;gap:8px}
.modal-concern-card{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:center;gap:11px;padding:10px 12px;border:1px solid #f2d9d6;border-radius:12px;background:linear-gradient(180deg,#fffefe 0%,#fff8f7 100%);box-shadow:0 3px 10px rgba(189,77,70,.045)}
.modal-concern-card-index{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:44px;padding:7px 5px;border-radius:9px;background:#fff0ee;border:1px solid #f7d8d4;color:#bd4d46}
.modal-concern-card-index span{font-size:8px;letter-spacing:.07em;text-transform:uppercase;font-weight:800;line-height:1}
.modal-concern-card-index strong{font-size:16px;line-height:1;font-weight:900;color:#9b3e38}
.modal-concern-card-content{min-width:0;display:flex;flex-direction:column;gap:3px}
.modal-concern-card-content h4{margin:0;font-size:14.5px;line-height:1.22;color:#6f332f;word-break:break-word}
.modal-concern-card-content p{margin:0;font-size:10.5px;line-height:1.3;color:#a0605a}
.modal-note{margin-top:1px;padding:9px 11px;border-radius:10px;background:#f7f9fc;border:1px solid var(--line-soft);font-size:10.5px;line-height:1.4;color:#61778d}
@media(max-width:760px){
  .project-modal{width:calc(100vw - 12px);max-height:92vh}
  .project-modal-header{padding:16px 62px 12px 14px}
  .project-modal-header h2{font-size:25px}
  .project-modal-sub{font-size:12px}
  .modal-close{top:13px!important;right:13px!important;width:36px;height:36px;font-size:22px}
  .project-modal-body{padding:10px;gap:8px;max-height:74vh}
  .modal-overview-strip.compact{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
  .modal-stat-chip{padding:8px 9px;border-radius:10px}
  .modal-stat-chip span{font-size:8px}
  .modal-stat-chip strong{font-size:17px}
  .modal-stat-chip em{font-size:8.5px}
  .modal-concerns-full{padding:11px}
  .modal-section-head.modal-section-head-stack{gap:8px;margin-bottom:8px}
  .modal-section-head-stack h3{font-size:17px}
  .modal-section-head-stack p{font-size:10px}
  .modal-count.coral{min-width:52px;height:27px;padding:0 8px;font-size:9.5px}
  .modal-concern-list.horizontal-cards{gap:6px}
  .modal-concern-card{grid-template-columns:44px minmax(0,1fr);gap:9px;padding:8px 9px;border-radius:10px}
  .modal-concern-card-index{min-height:38px;padding:5px 4px;border-radius:8px}
  .modal-concern-card-index strong{font-size:14px}
  .modal-concern-card-content h4{font-size:13.5px}
  .modal-concern-card-content p{font-size:9.5px}
  .modal-note{padding:8px 9px;font-size:9.5px}
}
@media(max-width:480px){
  .modal-overview-strip.compact{grid-template-columns:1fr 1fr 1fr}
  .modal-stat-chip em{display:none}
  .modal-section-head.modal-section-head-stack{flex-direction:column}
}
@media print{.project-modal{display:none!important}}
