#diagnosis-progress {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  background: var(--surface-hover);
  color: var(--text);
}

#diagnosis-progress::backdrop { background: #f4f8f6; }
.progress-shell { display: grid; grid-template-rows: auto 1fr; min-height: 100%; }
.progress-header { position: sticky; z-index: 1; top: 0; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); background: var(--surface); }
.progress-header-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: min(1224px, calc(100% - 36px)); min-height: 65px; margin-inline: auto; }
.progress-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 19px; font-weight: 780; letter-spacing: -.045em; white-space: nowrap; }
.progress-brand img { display: block; }
.progress-accent { color: var(--accent); }
.progress-cancel { min-height: 42px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--accent); font-size: 13px; font-weight: 690; }
.progress-cancel:hover { border-color: #9bbab0; background: var(--accent-soft); }

.progress-main { display: grid; align-items: center; width: min(560px, calc(100% - 36px)); margin-inline: auto; padding-block: 28px max(28px, env(safe-area-inset-bottom)); }
.progress-copy { min-width: 0; padding: clamp(20px, 5.5vw, 34px); border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.progress-copy h2 { font-size: clamp(22px, 5.5vw, 30px); font-weight: 720; letter-spacing: -.025em; line-height: 1.35; }
.progress-description { margin-top: 8px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.progress-indicator { position: relative; height: 4px; margin-top: 20px; overflow: hidden; border-radius: 4px; background: var(--accent-soft); }
.progress-indicator::after { position: absolute; inset: 0 auto 0 0; width: 34%; border-radius: 4px; background: var(--accent); content: ""; transform: translateX(96%); }
.progress-target { margin-top: 18px; border-block: 1px solid var(--line); }
.progress-target > div { display: grid; grid-template-columns: 6.9em minmax(0, 1fr); align-items: baseline; gap: 8px 11px; padding-block: 9px; }
.progress-target > div + div { border-top: 1px solid var(--line); }
.progress-target dt { color: var(--muted); font-size: 13px; }
.progress-target dd { min-width: 0; color: var(--text); font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.progress-status { margin-top: 13px; color: var(--muted); font-size: 13px; }
.progress-guidance { margin-top: 4px; color: var(--text); font-size: 13px; }

@media (min-width: 760px) {
  .progress-header-inner { width: min(1224px, calc(100% - 72px)); min-height: 70px; }
}

@media (prefers-reduced-motion: no-preference) {
  #diagnosis-progress[open] .progress-indicator::after { animation: diagnosis-scan 3s ease-in-out infinite; }
}

@keyframes diagnosis-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(300%); }
}
