.bwfd-action-activity {
  --bwfd-accent: #2d6cdf;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  margin: 0 0 1rem;
  padding: 1.15rem;
  border: 1px solid color-mix(in srgb, var(--bwfd-accent) 28%, transparent);
  border-radius: 1rem;
  background: linear-gradient(135deg, color-mix(in srgb, var(--bwfd-accent) 9%, white), #fff 68%);
  box-shadow: 0 .7rem 1.8rem rgba(17, 36, 66, .08);
  color: #17243a;
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.bwfd-action-activity.is-idle { --bwfd-accent: #778399; }
.bwfd-action-activity.is-success { --bwfd-accent: #198754; }
.bwfd-action-activity.is-error { --bwfd-accent: #c73737; }

.bwfd-activity-icon {
  position: relative;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--bwfd-accent) 13%, white);
  border: 2px solid color-mix(in srgb, var(--bwfd-accent) 40%, white);
}

.bwfd-activity-icon span {
  width: .8rem;
  height: .8rem;
  border-radius: 50%;
  background: var(--bwfd-accent);
}

.bwfd-action-activity.is-running .bwfd-activity-icon::after {
  content: "";
  position: absolute;
  inset: -.15rem;
  border: 3px solid transparent;
  border-top-color: var(--bwfd-accent);
  border-right-color: color-mix(in srgb, var(--bwfd-accent) 45%, transparent);
  border-radius: 50%;
  animation: bwfd-spin 1s linear infinite;
}

.bwfd-action-activity.is-success .bwfd-activity-icon span {
  width: .65rem;
  height: 1.15rem;
  border: solid var(--bwfd-accent);
  border-width: 0 .22rem .22rem 0;
  border-radius: 0;
  background: transparent;
  transform: rotate(45deg) translate(-.1rem, -.1rem);
}

.bwfd-activity-copy { min-width: 0; }
.bwfd-activity-copy strong { display: block; font-size: 1.05rem; line-height: 1.35; }
.bwfd-activity-copy p { margin: .25rem 0 .7rem; color: #536177; line-height: 1.45; }

.bwfd-activity-track {
  position: relative;
  height: .55rem;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(57, 76, 105, .13);
}

.bwfd-activity-track span {
  position: relative;
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in srgb, var(--bwfd-accent) 70%, white), var(--bwfd-accent));
  transition: width .8s ease;
}

.bwfd-action-activity.is-running .bwfd-activity-track span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 15%, rgba(255,255,255,.7) 45%, transparent 75%);
  transform: translateX(-100%);
  animation: bwfd-shimmer 1.4s ease-in-out infinite;
}

.bwfd-activity-percent {
  display: block;
  margin-top: .35rem;
  color: var(--bwfd-accent);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

/* Legacy fallback; the customer interface owns available/disabled button colors. */
.bwfd-result.is-success {
  border-color: rgba(25, 135, 84, .45);
  background: linear-gradient(135deg, rgba(25, 135, 84, .1), rgba(255,255,255,.96));
}

.bwfd-result.is-success .bwfd-result-state { color: #117346; }
.bwfd-result:disabled:not(.is-success) { opacity: .62; cursor: not-allowed; }

@keyframes bwfd-spin { to { transform: rotate(360deg); } }
@keyframes bwfd-shimmer { to { transform: translateX(140%); } }

@media (max-width: 560px) {
  .bwfd-action-activity { grid-template-columns: 2.65rem minmax(0, 1fr); padding: 1rem; }
  .bwfd-activity-icon { width: 2.65rem; height: 2.65rem; }
}

@media (prefers-reduced-motion: reduce) {
  .bwfd-action-activity *, .bwfd-action-activity *::after { animation: none !important; transition: none !important; }
}
.bwfd-completion {
  box-sizing: border-box;
  width: min(760px, calc(100% - 32px));
  margin: clamp(72px, 12vh, 150px) auto;
  padding: clamp(36px, 7vw, 72px);
  border: 1px solid rgba(18, 65, 92, .14);
  border-radius: 28px;
  background: linear-gradient(145deg, #fff 0%, #f3fbf7 100%);
  box-shadow: 0 24px 70px rgba(18, 65, 92, .12);
  text-align: center;
}
.bwfd-completion-check {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin: 0 auto 24px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: 46px;
  line-height: 1;
  box-shadow: 0 12px 30px rgba(25, 135, 84, .28);
}
.bwfd-completion-status {
  margin: 0 0 10px;
  color: #198754;
  font-size: .82rem;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.bwfd-completion h1 { margin: 0 0 14px; color: #123f59; font-size: clamp(2rem, 5vw, 3.4rem); }
.bwfd-completion h1 + p { margin: 0; color: #536978; font-size: clamp(1.05rem, 2vw, 1.3rem); }
.bwfd-build-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 28px;
  padding: 15px 20px;
  border: 1px solid #e7bd54;
  border-radius: 14px;
  background: #fff6d8;
  color: #61470b;
  box-shadow: 0 8px 24px rgba(97, 71, 11, .08);
}
.bwfd-build-banner strong {
  flex: 0 0 auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e7bd54;
  color: #382700;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.bwfd-build-banner span { font-weight: 600; }
@media (max-width: 600px) {
  .bwfd-build-banner { align-items: flex-start; flex-direction: column; }
}
.bwfd-report-note { margin: 18px 0 8px; color: #31546b; font-size: 15px; line-height: 1.55; }
.bwfd-report-note:empty { display: none; }
.bwfd-report-confirm { padding: 14px 22px; border: 0; border-radius: 10px; background: #087fbd; color: white; cursor: pointer; font-weight: 700; }
.bwfd-report-confirm[hidden] { display: none; }
.bwfd-result.is-report-pending .bwfd-result-state::before { content: ''; display: inline-block; width: 11px; height: 11px; margin-right: 8px; border: 2px solid #9ac8e2; border-top-color: #087fbd; border-radius: 50%; animation: bwfd-report-spin 1s linear infinite; }
@keyframes bwfd-report-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .bwfd-result.is-report-pending .bwfd-result-state::before { animation: none; } }
.bwfd-activity-track.is-indeterminate span { animation: bwfd-id-progress 1.4s ease-in-out infinite alternate; }
.bwfd-completion-result { color: #176b49; font-weight: 600; }
@keyframes bwfd-id-progress { to { transform: translateX(150%); } }
@media (prefers-reduced-motion: reduce) { .bwfd-activity-track.is-indeterminate span { animation: none; } }
