.customer-attribution-spotlight {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin: 28px 0 18px;
  padding: 22px 24px;
  background: #fff8e4;
  border: 2px solid #b88a00;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(78, 54, 41, .12);
  animation: attribution-arrival 1.1s ease-out both, attribution-reminder 1.8s ease-in-out 1.2s 3;
}
.customer-attribution-spotlight::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -35%;
  width: 22%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  animation: attribution-sheen 1.2s ease-out .35s 1;
}
.attribution-badge {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #4e3629;
  color: #fff;
  font: 800 15px Georgia, serif;
  letter-spacing: .08em;
}
.customer-attribution-spotlight h2 { margin: 2px 0 7px; color: #2b211d; font: 600 24px/1.15 Georgia, serif; }
.customer-attribution-spotlight blockquote { margin: 0; color: #342a25; font-weight: 650; line-height: 1.5; }
.customer-attribution-spotlight > a { position: relative; z-index: 1; white-space: nowrap; color: #4e3629; font-weight: 800; }
.customer-primary-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 24px 0 18px; }
.customer-primary-tabs button { display: grid; gap: 3px; border: 2px solid #b9c9c8; border-radius: 14px; padding: 16px 20px; background: #fff; color: #334f54; cursor: pointer; text-align: left; box-shadow: 0 4px 14px rgba(18,55,61,.06); }
.customer-primary-tabs button span { font: 800 19px "Segoe UI", Arial, sans-serif; }
.customer-primary-tabs button small { color: inherit; font-size: 12px; opacity: .8; }
.customer-primary-tabs button.active { border-color: #4e3629; background: #4e3629; color: #fff; box-shadow: 0 8px 22px rgba(78,54,41,.22); }
.customer-data-tabs { display: flex; gap: 9px; width: max-content; margin: 18px 0 16px; padding: 6px; background: #dfe9e7; border: 1px solid #bfd0ce; border-radius: 13px; }
.customer-data-tabs button { min-width: 150px; border: 2px solid transparent; border-radius: 9px; padding: 11px 22px; background: #fff; color: #3c595e; cursor: pointer; font: 800 15px "Segoe UI", Arial, sans-serif; }
.customer-data-tabs button.active { border-color: #287f84; background: #287f84; color: #fff; box-shadow: 0 4px 12px rgba(40,127,132,.24); }
.customer-analyzed-data { display: grid; gap: 16px; }
.analyzed-project { overflow: hidden; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 6px 22px rgba(18,55,61,.06); }
.analyzed-project > header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; border-bottom: 1px solid var(--line); background: #f5f8f7; }
.analyzed-project h2 { margin: 2px 0 0; font: 600 21px Georgia, serif; }
.analyzed-project > header > span { border-radius: 999px; background: #e2efed; color: #215f63; padding: 6px 10px; font-weight: 800; }
.analyzed-file-list { display: grid; }
.analyzed-file { display: grid; grid-template-columns: auto minmax(0,1fr) auto; align-items: center; gap: 14px; padding: 15px 22px; border-bottom: 1px solid #e3e9e8; }
.analyzed-file:last-child { border-bottom: 0; }
.analyzed-file-icon { display: grid; place-items: center; width: 48px; height: 42px; border-radius: 8px; background: #eaf3f2; color: #246e72; font-size: 11px; font-weight: 900; }
.analyzed-file strong,.analyzed-file small { display: block; }
.analyzed-file small { margin-top: 3px; color: var(--muted); }
.customer-project-downloads { display: grid; gap: 12px; }
.project-download-row { display: grid; grid-template-columns: minmax(260px, 1fr) auto; align-items: center; gap: 18px; padding: 20px 22px; background: #fff; border: 1px solid var(--line); border-radius: 15px; box-shadow: 0 6px 22px rgba(18, 55, 61, .06); }
.project-download-row h3 { margin: 0 0 4px; font: 600 20px Georgia, serif; }
.project-download-row p { margin: 0; color: var(--muted); }
.project-download-row .reliable-summary { max-width: 720px; margin-top: 8px; color: #315b60; font-size: 13px; line-height: 1.45; }
.project-archive-action { display: grid; justify-items: end; gap: 8px; min-width: min(380px, 42vw); }
.project-archive-action button, .project-archive-action a { min-width: 180px; text-align: center; }
.project-download-buttons { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.project-download-buttons .project-reliable-button { background: #287f84; border-color: #287f84; color: #fff; }
.project-download-buttons .project-archive-button { background: #fff; border-color: #9bb4b4; color: #294f54; }
.reliable-download-help { width: 100%; max-width: 560px; padding: 13px 15px; border: 1px solid #8dbfbd; border-radius: 11px; background: #eef8f6; color: #244f53; }
.reliable-download-help[hidden] { display: none; }
.reliable-download-help > strong,.reliable-download-help > span,.reliable-download-help > small { display: block; }
.reliable-download-help > span { margin-top: 4px; font-size: 13px; line-height: 1.4; }
.reliable-download-help > div { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px; margin: 9px 0 5px; }
.reliable-download-help code { overflow: auto; padding: 9px 10px; border-radius: 7px; background: #fff; color: #243f43; font-size: 12px; white-space: nowrap; }
.reliable-download-help .copy-reliable-command { min-width: 110px; padding: 8px 10px; }
.reliable-download-help small { color: #527176; line-height: 1.35; }
.project-archive-progress { width: 100%; max-width: 520px; padding: 10px 12px; border: 1px solid #c9dcda; border-radius: 11px; background: #f5faf9; }
.project-archive-progress[hidden] { display: none; }
.project-archive-progress-track { overflow: hidden; height: 10px; border-radius: 999px; background: #dce7e5; box-shadow: inset 0 1px 2px rgba(16,47,52,.16); }
.project-archive-progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg,#287f84,#45a4a6); transition: width .35s ease-out; }
.project-archive-progress-meta { display: flex; justify-content: space-between; gap: 16px; margin-top: 5px; color: #274e53; font-size: 12px; }
.project-archive-progress-meta strong { font-weight: 800; }
.project-archive-progress-meta span { font-variant-numeric: tabular-nums; font-weight: 800; }
.project-archive-status { max-width: 520px; color: #315b60; font-size: 13px; line-height: 1.45; text-align: right; }
.project-archive-status.error { color: #8e3441; }
.grant-language { margin: 14px 0; padding: 18px 20px; background: #f8f6f4; border-left: 4px solid #b88a00; }
.grant-language h4 { margin: 0 0 10px; color: #4e3629; font: 600 19px Georgia, serif; }
.grant-language p { margin-top: 0; }
.grant-language li { margin: 8px 0; }
@keyframes attribution-arrival { from { opacity: 0; transform: translateY(-14px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes attribution-reminder { 0%, 100% { box-shadow: 0 8px 28px rgba(78, 54, 41, .12); } 50% { box-shadow: 0 0 0 7px rgba(184, 138, 0, .2), 0 12px 34px rgba(78, 54, 41, .2); } }
@keyframes attribution-sheen { from { left: -35%; } to { left: 125%; } }
@media (prefers-reduced-motion: reduce) { .customer-attribution-spotlight, .customer-attribution-spotlight::after { animation: none; } }
@media (max-width: 820px) {
  .customer-attribution-spotlight { grid-template-columns: auto 1fr; }
  .customer-attribution-spotlight > a { grid-column: 1 / -1; }
  .project-download-row { grid-template-columns: 1fr; }
  .project-archive-action { justify-items: stretch; min-width: 0; }
  .project-download-buttons { display: grid; justify-content: stretch; }
  .reliable-download-help > div { grid-template-columns: 1fr; }
  .project-archive-status { text-align: left; }
  .customer-data-tabs { width: 100%; }
  .customer-data-tabs button { flex: 1; }
  .customer-primary-tabs { grid-template-columns: 1fr; }
  .analyzed-file { grid-template-columns: auto minmax(0,1fr); }
  .analyzed-file .download { grid-column: 1 / -1; text-align: center; }
}
