/**
 * Planning → Business Understanding compact card stack (shared goldwash shell).
 */

#oa-plan-business-understanding.oa-plan-section {
  padding: 0 !important;
  margin: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.oa-plan-body--business-understanding-v2 {
  padding: 12px 0 0 !important;
}

#oa-plan-business-understanding .oa-bu-stack {
  display: flex;
  flex-direction: column;
  gap: 11px;
}

#oa-plan-business-understanding .oa-bu-card {
  border: 1px solid rgba(197, 154, 53, 0.34);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(201, 169, 110, 0.07) 0%, rgba(20, 17, 14, 0.96) 100%),
    #161310;
  padding: 14px 16px;
  min-width: 0;
}

#oa-plan-business-understanding .oa-bu-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

#oa-plan-business-understanding .oa-bu-card__lead {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
}

#oa-plan-business-understanding .oa-bu-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(197, 154, 53, 0.35);
  background: rgba(197, 154, 53, 0.08);
  color: var(--brand-gold, #c59a35);
}

#oa-plan-business-understanding .oa-bu-card__title {
  margin: 0;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary, #f2ece0);
}

#oa-plan-business-understanding .oa-bu-card__help {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-muted, #9a9488);
}

#oa-plan-business-understanding .oa-bu-card-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--brand-gold, #c59a35);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 2px 0;
  white-space: nowrap;
}

#oa-plan-business-understanding .oa-bu-card-link:hover {
  color: #e0bb62;
}

#oa-plan-business-understanding .oa-bu-snapshot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px 24px;
}

#oa-plan-business-understanding .oa-bu-facts {
  margin: 0;
}

#oa-plan-business-understanding .oa-bu-fact {
  display: grid;
  grid-template-columns: minmax(110px, 42%) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid rgba(197, 154, 53, 0.1);
}

#oa-plan-business-understanding .oa-bu-fact dt {
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a8378;
}

#oa-plan-business-understanding .oa-bu-fact dd {
  margin: 0;
  font-size: 12.5px;
  color: #ece7dd;
}

#oa-plan-business-understanding .oa-bu-depth-select {
  min-width: 220px;
  max-width: 320px;
  min-height: 32px !important;
}

#oa-plan-business-understanding .oa-bu-helper,
#oa-plan-business-understanding .oa-bu-core-line {
  margin: 0;
  font-size: 11.5px;
  line-height: 1.45;
  color: #8a8378;
}

#oa-plan-business-understanding .oa-bu-prose,
#oa-plan-business-understanding .oa-bu-empty {
  margin: 0 0 8px;
  font-size: 12.5px;
  line-height: 1.55;
  color: #ece7dd;
}

#oa-plan-business-understanding .oa-bu-empty,
#oa-plan-business-understanding .oa-bu-empty-block {
  color: #8a8378;
}

#oa-plan-business-understanding .oa-bu-empty-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
}

#oa-plan-business-understanding .oa-bu-textarea {
  min-height: 120px !important;
  height: auto !important;
  resize: vertical;
  font-size: 12.5px !important;
  line-height: 1.5;
}

#oa-plan-business-understanding .oa-bu-flow-lanes {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 10px;
}

#oa-plan-business-understanding .oa-bu-flow-lane {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

#oa-plan-business-understanding .oa-bu-flow-parent {
  align-self: flex-start;
  border: 0;
  background: transparent;
  color: var(--brand-gold, #c59a35);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0;
  cursor: pointer;
}

#oa-plan-business-understanding .oa-bu-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 0;
  list-style: none;
}

#oa-plan-business-understanding .oa-bu-flow-step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

#oa-plan-business-understanding .oa-bu-flow-arrow {
  color: #c59a35;
}

#oa-plan-business-understanding .oa-bu-flow-node,
#oa-plan-business-understanding .oa-bu-core-link {
  border: 1px solid rgba(197, 154, 53, 0.32);
  background: rgba(0, 0, 0, 0.28);
  color: #ece7dd;
  min-height: 32px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
}

#oa-plan-business-understanding .oa-bu-flow-node:hover,
#oa-plan-business-understanding .oa-bu-core-link:hover {
  border-color: rgba(197, 154, 53, 0.5);
}

#oa-plan-business-understanding .oa-bu-core-link {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #c59a35;
}

#oa-plan-business-understanding .oa-bu-flow-notes {
  margin: 8px 0 0;
}

#oa-plan-business-understanding .oa-bu-flow-notes summary {
  cursor: pointer;
  color: #c59a35;
  font-size: 12px;
  margin-bottom: 6px;
}

#oa-plan-business-understanding .oa-bu-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(197, 154, 53, 0.22);
}

#oa-plan-business-understanding .oa-bu-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 12.5px;
}

#oa-plan-business-understanding .oa-bu-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8a8378;
  border-bottom: 1px solid rgba(197, 154, 53, 0.2);
}

#oa-plan-business-understanding .oa-bu-table td {
  padding: 8px 10px;
  min-height: 34px;
  color: #ece7dd;
  border-bottom: 1px solid rgba(197, 154, 53, 0.1);
  vertical-align: middle;
}

#oa-plan-business-understanding .oa-bu-row-remove {
  border: 0;
  background: transparent;
  color: #c59a35;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
}

#oa-plan-business-understanding .oa-bu-add-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

#oa-plan-business-understanding .oa-bu-add-actions,
#oa-plan-business-understanding .oa-bu-card-foot,
#oa-plan-business-understanding .oa-bu-save-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}

#oa-plan-business-understanding .oa-bu-notice {
  margin: 0 0 8px;
  color: #7ecf9a;
  font-size: 12px;
}

#oa-plan-business-understanding .oa-bu-error {
  margin: 0 0 8px;
  color: #e0a090;
  font-size: 12px;
}

#oa-plan-business-understanding .oa-bu-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

#oa-plan-business-understanding .secondary-btn,
#oa-plan-business-understanding .primary-btn {
  min-height: 32px;
}

@media (max-width: 960px) {
  #oa-plan-business-understanding .oa-bu-snapshot-grid,
  #oa-plan-business-understanding .oa-bu-add-form {
    grid-template-columns: 1fr;
  }

  #oa-plan-business-understanding .oa-bu-card-head {
    flex-wrap: wrap;
  }
}
