/* Closing Desk visual alignment with Investor Room */
.closing-page .suite-main-pane {
  background: linear-gradient(180deg, #f7f5f0, #ffffff 44%, #efede7);
}

.closing-shell {
  max-width: 1420px;
  padding: 18px clamp(20px, 3vw, 42px) 64px;
}

.closing-title {
  border: 0;
  border-radius: 26px;
  box-shadow: 0 24px 68px rgba(6, 7, 6, .16), inset 0 1px 0 rgba(255, 255, 255, .16);
  min-height: 330px;
  overflow: hidden;
  padding: 30px clamp(24px, 3.4vw, 42px);
}

.closing-title h1 {
  font-family: var(--display);
  font-size: clamp(42px, 5vw, 64px);
  font-weight: 600;
  line-height: .96;
}

.closing-title::after {
  display: none;
}

.closing-hero-card {
  border-radius: 24px;
  max-width: 430px;
}

.closing-pulse-grid div {
  border-radius: 16px;
}

.closing-kpis .kpi,
.closing-tabs,
.closing-view .panel,
.closing-column,
.closing-card,
.closing-checklist div,
.closing-checklist .checklist-card,
.closing-report div,
.closing-action-row,
.close-status-grid span,
.case-checklist span {
  border-color: rgba(6, 7, 6, .09);
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(6, 7, 6, .055), inset 0 1px 0 rgba(255, 255, 255, .76);
}

.closing-tabs {
  border-radius: 28px;
}

.closing-tabs button {
  border-radius: 20px;
}

.closing-overview-grid {
  gap: 22px;
  grid-template-columns: minmax(0, 1.34fr) minmax(320px, .66fr);
}

.forecast-list {
  gap: 18px;
  padding: 20px;
}

.closing-forecast-row.project-forecast-card {
  gap: 18px;
  grid-template-columns: 1fr;
  padding: 22px;
}

.project-forecast-card .forecast-main {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(210px, .34fr);
}

.project-forecast-card h3 {
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.02;
  max-width: 680px;
}

.project-forecast-card p {
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  display: -webkit-box;
  font-size: 14px;
  line-height: 1.55;
  max-width: 760px;
  overflow: hidden;
}

.forecast-scope,
.forecast-chip-row div,
.forecast-progress-track,
.forecast-path span,
.document-drilldown-hero,
.document-investor-row,
.owner-next-action,
.profile-project-strip,
.profile-timeline div,
.drawer-checklist div {
  background: linear-gradient(180deg, #ffffff, #f3f2ee);
  border: 1px solid rgba(6, 7, 6, .09);
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(6, 7, 6, .05), inset 0 1px 0 rgba(255, 255, 255, .78);
}

.forecast-scope {
  display: grid;
  gap: 6px;
  padding: 14px;
}

.forecast-scope span,
.forecast-chip-row span,
.forecast-progress-track span,
.document-drilldown-hero span,
.document-investor-row small,
.profile-drawer-head span,
.profile-project-strip span,
.profile-timeline span,
.owner-next-action span,
.drawer-checklist span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.forecast-scope strong {
  font-size: 18px;
  line-height: 1.15;
}

.forecast-scope small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.forecast-chip-row {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.forecast-chip-row div {
  display: grid;
  gap: 5px;
  min-height: 82px;
  padding: 14px;
}

.forecast-chip-row strong {
  font-family: var(--display);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.forecast-chip-row .is-risk {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .96), rgba(246, 238, 234, .92));
  border-color: rgba(140, 98, 80, .22);
}

.forecast-progress-area {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.forecast-progress-track {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.forecast-progress-track div {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.forecast-progress-track strong {
  font-size: 17px;
}

.forecast-progress-track i {
  background: linear-gradient(90deg, var(--green), #8ca78b);
  border-radius: 999px;
  box-shadow: 0 4px 10px rgba(107, 143, 106, .24);
  display: block;
  height: 10px;
  width: var(--progress);
}

.forecast-progress-track i.gold {
  background: linear-gradient(90deg, var(--gold), #d8ce96);
  box-shadow: 0 4px 10px rgba(197, 184, 124, .32);
}

.forecast-path {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.forecast-path span {
  color: var(--muted);
  display: grid;
  font-size: 12px;
  gap: 3px;
  padding: 12px;
}

.forecast-path b {
  color: var(--ink);
  font-size: 18px;
}

.document-drilldown-panel {
  min-height: 100%;
}

.closing-source-grid {
  grid-template-columns: 1fr;
}

.closing-checklist .checklist-card {
  appearance: none;
  background: linear-gradient(180deg, #ffffff, #f0efec);
  border: 1px solid rgba(6, 7, 6, .09);
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 8px;
  padding: 14px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.closing-checklist .checklist-card:hover,
.closing-checklist .checklist-card.is-active {
  border-color: rgba(6, 7, 6, .38);
  box-shadow: 0 16px 34px rgba(6, 7, 6, .10), inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: translateY(-1px);
}

.closing-checklist .checklist-card p {
  color: var(--muted);
  font-size: 13px;
}

.document-drilldown {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.document-drilldown-hero {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.document-drilldown-hero strong {
  font-family: var(--display);
  font-size: clamp(24px, 2.3vw, 34px);
  font-weight: 600;
  line-height: 1;
}

.document-drilldown-hero p,
.document-investor-row p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.document-status-columns {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.document-status-columns h3 {
  font-size: 15px;
  margin-bottom: 8px;
}

.document-investor-list {
  display: grid;
  gap: 9px;
}

.document-investor-row {
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 6px;
  padding: 12px;
  text-align: left;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
  width: 100%;
}

.document-investor-row:hover {
  border-color: rgba(6, 7, 6, .36);
  box-shadow: 0 14px 28px rgba(6, 7, 6, .08), inset 0 1px 0 rgba(255, 255, 255, .8);
  transform: translateY(-1px);
}

.document-investor-row.is-missing {
  border-color: rgba(140, 98, 80, .22);
}

.document-investor-row strong {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.document-investor-row strong span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.profile-open-button {
  justify-self: start;
}

.profile-drawer-open {
  overflow: hidden;
}

.profile-drawer-shell {
  display: grid;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  z-index: 80;
}

.profile-drawer-shell[aria-hidden="false"] {
  opacity: 1;
  pointer-events: auto;
}

.profile-drawer-backdrop {
  background: rgba(6, 7, 6, .48);
  border: 0;
  cursor: pointer;
  inset: 0;
  position: absolute;
}

.profile-drawer {
  background: linear-gradient(180deg, #ffffff 0%, #f6f5f1 100%);
  border-left: 1px solid rgba(255, 255, 255, .68);
  box-shadow: -30px 0 90px rgba(6, 7, 6, .28);
  display: block;
  height: 100vh;
  justify-self: end;
  max-width: 100%;
  overflow-y: auto;
  padding: 22px;
  position: relative;
  transform: translateX(24px);
  transition: transform .22s ease;
  width: min(640px, calc(100vw - 28px));
}

.profile-drawer-shell[aria-hidden="false"] .profile-drawer {
  transform: translateX(0);
}

.profile-drawer-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.profile-drawer-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  line-height: .94;
  margin-top: 5px;
}

.profile-drawer-head p,
.profile-project-strip p,
.owner-next-action p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}

.drawer-close {
  background: var(--near-black);
  border: 1px solid rgba(6, 7, 6, .7);
  border-radius: 999px;
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  min-height: 36px;
  padding: 0 14px;
}

.profile-project-strip {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
  padding: 14px;
}

.profile-project-strip strong {
  font-size: 22px;
}

.profile-drawer-score {
  margin-bottom: 14px;
}

.profile-timeline {
  display: grid;
  gap: 10px;
}

.profile-timeline div {
  display: grid;
  gap: 6px;
  padding: 12px;
}

.profile-timeline strong {
  font-size: 16px;
}

.profile-timeline p {
  color: var(--muted);
  font-size: 13px;
}

.drawer-checklist {
  display: grid;
  gap: 9px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.drawer-checklist div {
  color: inherit;
  display: grid;
  gap: 5px;
  padding: 11px;
  text-align: left;
}

.drawer-checklist div.is-complete {
  border-color: rgba(107, 143, 106, .22);
}

.drawer-checklist div.is-missing {
  border-color: rgba(140, 98, 80, .22);
}

.drawer-checklist strong {
  font-size: 15px;
}

.drawer-checklist small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.owner-next-action {
  display: grid;
  gap: 7px;
  padding: 14px;
}

.owner-next-action strong {
  font-size: 18px;
}

.closing-report .weekly-report-section {
  gap: 9px;
  padding: 16px;
}

.closing-report .weekly-report-section.is-executive {
  background:
    radial-gradient(circle at 88% 16%, rgba(197, 184, 124, .22), transparent 30%),
    linear-gradient(155deg, #121211 0%, #2b2926 100%);
  color: white;
}

.closing-report .weekly-report-section.is-executive span,
.closing-report .weekly-report-section.is-executive p {
  color: rgba(255, 255, 255, .72);
}

.weekly-report-section ul {
  color: var(--muted);
  display: grid;
  font-size: 13px;
  gap: 8px;
  line-height: 1.45;
  list-style: none;
  margin: 0;
  padding: 0;
}

.weekly-report-section li {
  border-top: 1px solid rgba(6, 7, 6, .08);
  padding-top: 8px;
}

.weekly-report-section li:first-child {
  border-top: 0;
  padding-top: 0;
}

.weekly-report-section button {
  background: rgba(6, 7, 6, .06);
  border: 1px solid rgba(6, 7, 6, .10);
  border-radius: 999px;
  color: var(--near-black);
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  margin-left: 6px;
  padding: 4px 8px;
}

@media (max-width: 980px) {
  .closing-shell {
    padding: 18px;
  }

  .closing-title {
    border-radius: 26px;
    min-height: 0;
  }

  .closing-overview-grid,
  .project-forecast-card .forecast-main,
  .forecast-progress-area,
  .document-status-columns {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .closing-shell {
    padding: 12px;
  }

  .closing-title {
    border-radius: 24px;
    padding: 24px 18px;
  }

  .closing-title h1 {
    font-size: clamp(36px, 11vw, 48px);
  }

  .forecast-chip-row,
  .forecast-path,
  .drawer-checklist {
    grid-template-columns: 1fr;
  }

  .profile-drawer {
    padding: 18px;
    width: 100vw;
  }

  .profile-drawer-head {
    align-items: start;
    display: grid;
  }
}
