.privacy-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
  padding: 22px 24px;
  color: #f6f2e8;
  border: 1px solid rgba(213, 188, 132, .28);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 20%, rgba(195, 161, 91, .18), transparent 34%),
    linear-gradient(135deg, #132f29 0%, #1d493d 100%);
  box-shadow: 0 18px 42px rgba(24, 63, 53, .16);
}

.privacy-command > div:first-child {
  display: flex;
  align-items: center;
  gap: 16px;
}

.privacy-command b {
  display: block;
  margin-bottom: 5px;
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 18px;
}

.privacy-command p {
  max-width: 720px;
  margin: 0;
  color: rgba(246, 242, 232, .72);
  font-size: 13px;
  line-height: 1.7;
}

.privacy-seal {
  display: grid;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  place-items: center;
  color: #e8cf9b;
  border: 1px solid rgba(232, 207, 155, .55);
  border-radius: 50%;
  font-family: "Noto Serif SC", "Songti SC", serif;
  letter-spacing: 2px;
}

.privacy-command-stats {
  display: flex;
  gap: 20px;
}

.privacy-command-stats span {
  display: grid;
  gap: 3px;
  min-width: 64px;
  text-align: right;
}

.privacy-command-stats strong {
  color: #f4dfb2;
  font-size: 24px;
}

.privacy-command-stats small {
  color: rgba(246, 242, 232, .64);
  white-space: nowrap;
}

.privacy-value {
  font-variant-numeric: tabular-nums;
  letter-spacing: .04em;
}

.risk-count {
  display: inline-grid;
  min-width: 30px;
  height: 28px;
  padding: 0 9px;
  place-items: center;
  color: #9a3c34;
  border: 1px solid #ecd4cf;
  border-radius: 999px;
  background: #fbf1ef;
  font-weight: 700;
}

.risk-count.clear {
  color: #31705e;
  border-color: #d3e5de;
  background: #eef7f3;
}

.customer-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1c594a;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.customer-link::after {
  content: "›";
  color: #aa8950;
}

.privacy-copy-restricted [data-sensitive] {
  -webkit-user-select: none;
  user-select: none;
}

.customer-risk-modal {
  width: min(880px, calc(100vw - 40px));
}

.customer-risk-hero {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, minmax(100px, .6fr));
  gap: 12px;
  margin-bottom: 18px;
}

.customer-risk-identity,
.customer-risk-metric {
  padding: 18px;
  border: 1px solid #e7e1d5;
  border-radius: 16px;
  background: #faf8f3;
}

.customer-risk-identity {
  background: linear-gradient(135deg, #173e34, #27624f);
  color: #fff;
}

.customer-risk-identity b,
.customer-risk-metric strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
}

.customer-risk-identity small {
  color: rgba(255, 255, 255, .7);
}

.customer-risk-metric span {
  color: #827b70;
  font-size: 12px;
}

.restriction-grid {
  display: grid;
  gap: 10px;
  max-height: 360px;
  overflow: auto;
}

.restriction-card {
  display: grid;
  grid-template-columns: 120px 1fr 110px;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid #e9e3d8;
  border-radius: 14px;
}

.restriction-card small {
  color: #8c8478;
}

.import-hint {
  padding: 11px 13px;
  color: #6d6559;
  border-radius: 10px;
  background: #f6f2e9;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 980px) {
  .privacy-command,
  .privacy-command > div:first-child {
    align-items: flex-start;
  }

  .privacy-command {
    flex-direction: column;
  }

  .privacy-command-stats {
    width: 100%;
    justify-content: flex-start;
  }

  .privacy-command-stats span {
    text-align: left;
  }

  .customer-risk-hero {
    grid-template-columns: repeat(2, 1fr);
  }

  .customer-risk-identity {
    grid-column: 1 / -1;
  }
}
