/*
 * Phase 9C — Client Workspace
 *
 * Additive presentation only.
 * All new rules are phase9c-* scoped.
 */

.phase9c-workspace {
  margin-top: 2px;
}

.phase9c-topbar,
.phase9c-client-header,
.phase9c-client-title-line,
.phase9c-section-heading,
.phase9c-analysis-card,
.phase9c-analysis-title-line,
.phase9c-summary-heading,
.phase9c-summary-footer {
  display: flex;
}

.phase9c-topbar {
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
}

.phase9c-back {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  color: #526275;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}

.phase9c-back:hover {
  color: #16324d;
}

.phase9c-back:focus-visible,
.phase9c-button:focus-visible,
.phase9c-open-client:focus-visible {
  outline: 3px solid rgba(22, 50, 77, .18);
  outline-offset: 2px;
}

.phase9c-client-header {
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
  border: 1px solid #dde4e0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 22px rgba(22, 50, 77, .05);
}

.phase9c-eyebrow {
  margin: 0 0 5px;
  color: #7a897f;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.phase9c-client-title-line {
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.phase9c-client-title-line h2,
.phase9c-section-heading h3,
.phase9c-summary-heading h3 {
  margin: 0;
  color: #16324d;
}

.phase9c-contact {
  margin-top: 8px;
  color: #66737f;
  font-size: 13px;
}

.phase9c-status,
.phase9c-archived,
.phase9c-strategy,
.phase9c-analysis-id {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.phase9c-status {
  background: #edf5f0;
  color: #355d48;
}

.phase9c-status-on_hold {
  background: #f7f1df;
  color: #746139;
}

.phase9c-status-closed,
.phase9c-archived {
  background: #eef0f1;
  color: #61707a;
}

.phase9c-client-activity {
  min-width: 190px;
  text-align: right;
}

.phase9c-client-activity span,
.phase9c-last-worked-label {
  display: block;
  color: #7b8790;
  font-size: 11px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.phase9c-client-activity strong,
.phase9c-last-worked {
  display: block;
  margin-top: 4px;
  color: #2d4656;
  font-size: 13px;
}

.phase9c-client-activity small {
  display: block;
  margin-top: 4px;
  color: #8a949a;
  font-size: 11px;
}

.phase9c-notes {
  margin-top: 14px;
  padding: 16px 18px;
  border: 1px solid #e3e8e5;
  border-radius: 12px;
  background: #fafaf8;
}

.phase9c-notes > span {
  display: block;
  color: #526275;
  font-size: 12px;
  font-weight: 800;
}

.phase9c-notes > div {
  margin-top: 7px;
  color: #2d4656;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.phase9c-notes small {
  display: block;
  margin-top: 7px;
  color: #8a949a;
  font-size: 11px;
}

.phase9c-section-heading {
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin: 26px 0 12px;
}

.phase9c-order-note {
  color: #7b8790;
  font-size: 12px;
}

.phase9c-analysis-list {
  display: grid;
  gap: 10px;
}

.phase9c-analysis-card {
  align-items: stretch;
  justify-content: space-between;
  gap: 22px;
  padding: 17px 18px;
  border: 1px solid #e0e6e2;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color .15s ease,
    box-shadow .15s ease;
}

.phase9c-analysis-card.selected {
  border-color: #aabdb2;
  box-shadow: 0 7px 20px rgba(22, 50, 77, .06);
}

.phase9c-analysis-main {
  min-width: 0;
}

.phase9c-analysis-title-line {
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.phase9c-analysis-title-line strong {
  color: #16324d;
  font-size: 14px;
}

.phase9c-strategy {
  background: #f1f4f2;
  color: #52675a;
}

.phase9c-analysis-project {
  margin-top: 8px;
  color: #2d4656;
  font-size: 13px;
  font-weight: 750;
}

.phase9c-analysis-location,
.phase9c-analysis-facts {
  margin-top: 4px;
  color: #72808a;
  font-size: 12px;
  line-height: 1.45;
}

.phase9c-analysis-side {
  display: flex;
  flex: 0 0 205px;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  text-align: right;
}

.phase9c-analysis-side .phase9c-button {
  margin-top: 11px;
}

.phase9c-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 8px 12px;
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.phase9c-button-secondary {
  border-color: #d6dfda;
  background: #fff;
  color: #355063;
}

.phase9c-button-secondary:hover {
  border-color: #bdcbc3;
  background: #f8faf8;
}

.phase9c-financial-summary {
  margin-top: 18px;
  padding: 20px;
  border: 1px solid #dce5df;
  border-radius: 14px;
  background: #fbfcfa;
}

.phase9c-summary-heading {
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.phase9c-analysis-id {
  background: #eef1f3;
  color: #526275;
}

.phase9c-summary-note {
  max-width: 720px;
  margin: 8px 0 0;
  color: #748088;
  font-size: 12px;
  line-height: 1.5;
}

.phase9c-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.phase9c-kpi {
  padding: 14px;
  border: 1px solid #e3e8e5;
  border-radius: 11px;
  background: #fff;
}

.phase9c-kpi span {
  display: block;
  color: #77838b;
  font-size: 11px;
  line-height: 1.35;
}

.phase9c-kpi strong {
  display: block;
  margin-top: 6px;
  color: #16324d;
  font-size: 16px;
}

.phase9c-summary-footer {
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding-top: 13px;
  border-top: 1px solid #e4e9e6;
}

.phase9c-summary-footer > span {
  color: #7b858c;
  font-size: 11px;
  line-height: 1.45;
}

.phase9c-empty,
.phase9c-state {
  padding: 32px 20px;
  border: 1px dashed #d7dfda;
  border-radius: 12px;
  background: #fafaf8;
  text-align: center;
  color: #6b7880;
}

.phase9c-empty strong {
  color: #2d4656;
}

.phase9c-empty p {
  max-width: 560px;
  margin: 7px auto 0;
  line-height: 1.5;
}

.phase9c-error {
  padding: 13px 14px;
  border: 1px solid #e4c7c3;
  border-radius: 10px;
  background: #fbf3f2;
  color: #71443f;
  font-size: 12px;
}

.phase9c-muted {
  color: #8a949a;
}

@media (max-width: 900px) {
  .phase9c-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .phase9c-client-header,
  .phase9c-analysis-card,
  .phase9c-summary-heading,
  .phase9c-summary-footer {
    flex-direction: column;
  }

  .phase9c-client-activity,
  .phase9c-analysis-side {
    width: 100%;
    min-width: 0;
    flex-basis: auto;
    align-items: flex-start;
    text-align: left;
  }

  .phase9c-kpis {
    grid-template-columns: 1fr;
  }

  .phase9c-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}
