.progress-ui .progress-page {
  min-height: calc(100vh - var(--header-height));
}

.progress-ui .progress-shell {
  padding-top: clamp(1rem, 3vw, 2.4rem);
}

.progress-ui #progressPageMount {
  min-height: min(560px, calc(100vh - var(--header-height) - 3rem));
  display: grid;
  align-items: center;
}

.progress-ui .progress-loading-card,
.progress-ui .progress-gate-card,
.progress-ui .progress-hero-card,
.progress-ui .progress-metric-card,
.progress-ui .progress-detail-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px) saturate(135%);
  -webkit-backdrop-filter: blur(14px) saturate(135%);
}

.progress-ui .progress-loading-card {
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 0.8rem;
  width: min(26rem, 100%);
  padding: 1.5rem;
  color: var(--color-text-secondary);
}

.progress-ui .progress-loading-icon {
  width: 2.5rem;
  height: 2.5rem;
  border: 3px solid rgba(37, 99, 235, 0.14);
  border-top-color: var(--color-primary);
  border-radius: 999px;
  animation: progressSpin 900ms linear infinite;
}

.progress-ui .progress-gate-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2rem);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.6rem);
  overflow: hidden;
}

.progress-ui .progress-gate-visual {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 1.2rem;
  min-height: 22rem;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(219, 234, 254, 0.76), rgba(207, 250, 254, 0.54)),
    #f8fafc;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: var(--radius-lg);
}

.progress-ui .progress-gate-icon {
  width: 4.8rem;
  height: 4.8rem;
  display: inline-grid;
  place-items: center;
  color: var(--color-primary);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(37, 99, 235, 0.14);
}

.progress-ui .progress-gate-icon .lucide {
  width: 2.2rem;
  height: 2.2rem;
  stroke-width: 2.1;
}

.progress-ui .progress-gate-lines {
  width: min(17rem, 100%);
  display: grid;
  gap: 0.7rem;
}

.progress-ui .progress-gate-lines span {
  height: 0.72rem;
  background: rgba(255, 255, 255, 0.74);
  border-radius: 999px;
}

.progress-ui .progress-gate-lines span:nth-child(2) {
  width: 78%;
}

.progress-ui .progress-gate-lines span:nth-child(3) {
  width: 54%;
}

.progress-ui .progress-gate-copy {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
}

.progress-ui .progress-gate-copy h1,
.progress-ui .progress-hero-copy h1 {
  margin-bottom: 0;
}

.progress-ui .progress-gate-copy p,
.progress-ui .progress-hero-text,
.progress-ui .progress-status-card p,
.progress-ui .progress-metric-card p,
.progress-ui .progress-detail-card p {
  margin: 0;
  color: var(--color-text-secondary);
}

.progress-ui .progress-auth-button {
  margin-top: 0.35rem;
}

.progress-ui .progress-dashboard {
  display: grid;
  gap: 1.05rem;
}

.progress-ui .progress-hero-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.38fr);
  gap: clamp(1rem, 2.5vw, 1.45rem);
  align-items: stretch;
  padding: clamp(1rem, 3vw, 1.7rem);
  overflow: hidden;
}

.progress-ui .progress-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(20, 184, 166, 0.08) 45%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.progress-ui .progress-hero-copy {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 0.7rem;
}

.progress-ui .progress-hero-copy h1 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.progress-ui .progress-user-email {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  max-width: 100%;
  margin: 0;
  padding: 0.42rem 0.64rem;
  color: var(--color-primary-hover);
  background: var(--color-primary-light);
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 800;
}

.progress-ui .progress-user-email span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.progress-ui .progress-user-email .lucide {
  width: 0.92rem;
  height: 0.92rem;
  flex: 0 0 auto;
}

.progress-ui .progress-hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.72rem;
  width: 100%;
  margin-top: 0.35rem;
}

.progress-ui .progress-hero-summary > div {
  min-width: 0;
  padding: 0.82rem;
  background: rgba(248, 250, 252, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: var(--radius-md);
}

.progress-ui .progress-hero-summary span {
  display: block;
  color: var(--color-text-secondary);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.progress-ui .progress-hero-summary strong {
  display: block;
  margin-top: 0.24rem;
  color: var(--color-text-primary);
  font-size: 0.98rem;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.progress-ui .progress-status-card {
  position: relative;
  display: grid;
  align-content: center;
  gap: 0.45rem;
  padding: 1.15rem;
  background:
    linear-gradient(145deg, rgba(239, 246, 255, 0.96), rgba(236, 253, 245, 0.82)),
    #ffffff;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 38px rgba(37, 99, 235, 0.11);
}

.progress-ui .progress-status-card p {
  max-width: 34rem;
}

.progress-ui .progress-status-card span,
.progress-ui .progress-metric-card span {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-ui .progress-status-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  width: fit-content;
}

.progress-ui .progress-status-eyebrow .lucide {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--color-primary);
}

.progress-ui .progress-status-card strong {
  color: var(--color-text-primary);
  font-size: 1.18rem;
  line-height: 1.22;
}

.progress-ui .progress-status-card small {
  width: fit-content;
  padding: 0.28rem 0.5rem;
  color: #047857;
  background: rgba(209, 250, 229, 0.78);
  border: 1px solid rgba(16, 185, 129, 0.18);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.progress-ui .progress-status-link {
  width: fit-content;
  margin-top: 0.35rem;
  padding: 0.58rem 0.78rem;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-strong));
  border-radius: 999px;
  box-shadow: 0 12px 22px rgba(37, 99, 235, 0.18);
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.progress-ui .progress-status-link:hover {
  text-decoration: underline;
}

.progress-ui .progress-metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.progress-ui .progress-metric-card {
  min-height: 6.9rem;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.62rem;
  align-items: center;
  padding: 0.84rem;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.progress-ui .progress-metric-card:hover {
  border-color: rgba(37, 99, 235, 0.26);
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.progress-ui .progress-metric-icon {
  grid-column: 1;
  grid-row: 1;
  width: 2.36rem;
  height: 2.36rem;
  display: inline-grid;
  place-items: center;
  color: var(--color-primary);
  background: rgba(219, 234, 254, 0.78);
  border-radius: 13px;
}

.progress-ui .progress-metric-card > div {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
}

.progress-ui .progress-metric-card--green .progress-metric-icon {
  color: #047857;
  background: rgba(209, 250, 229, 0.86);
}

.progress-ui .progress-metric-card--amber .progress-metric-icon {
  color: #b45309;
  background: rgba(254, 243, 199, 0.92);
}

.progress-ui .progress-metric-card--cyan .progress-metric-icon {
  color: var(--color-accent-strong);
  background: #cffafe;
}

.progress-ui .progress-metric-icon .lucide {
  width: 1.12rem;
  height: 1.12rem;
  stroke-width: 2.2;
}

.progress-ui .progress-metric-card strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--color-text-primary);
  font-size: clamp(1.08rem, 1.5vw, 1.32rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.progress-ui .progress-metric-card p {
  margin-top: 0.24rem;
  font-size: 0.84rem;
  line-height: 1.45;
}

.progress-ui .progress-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 0.9rem;
}

.progress-ui .progress-detail-card {
  display: grid;
  align-content: start;
  gap: 0.9rem;
  padding: 1rem;
}

.progress-ui .progress-panel-label {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-ui .progress-empty-text {
  font-size: 0.95rem;
  line-height: 1.5;
}

.progress-ui .progress-history-list,
.progress-ui .progress-detail-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-ui .progress-history-list li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.65rem 0.8rem;
  align-items: center;
  min-width: 0;
  padding: 0.75rem;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
}

.progress-ui .progress-history-dot {
  width: 0.68rem;
  height: 0.68rem;
  margin-top: 0.25rem;
  background: var(--color-primary);
  border: 3px solid #dbeafe;
  border-radius: 999px;
}

.progress-ui .progress-history-list div {
  min-width: 0;
}

.progress-ui .progress-history-score {
  justify-self: end;
  margin: 0;
  padding: 0.24rem 0.5rem;
  color: var(--color-primary-hover);
  background: rgba(219, 234, 254, 0.58);
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 999px;
  font-weight: 800;
  white-space: nowrap;
}

.progress-ui .progress-history-list span,
.progress-ui .progress-history-list p {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.progress-ui .progress-history-list .progress-history-score {
  color: var(--color-primary-hover);
}

.progress-ui .progress-history-list strong {
  display: block;
  margin-top: 0.12rem;
  color: var(--color-text-primary);
  font-size: 0.96rem;
  line-height: 1.28;
  overflow-wrap: anywhere;
}

.progress-ui .progress-user-heading {
  display: flex;
  align-items: center;
  gap: 0.78rem;
  min-width: 0;
}

.progress-ui .progress-user-heading > div {
  min-width: 0;
}

.progress-ui .progress-user-avatar {
  width: clamp(3rem, 6vw, 4.25rem);
  height: clamp(3rem, 6vw, 4.25rem);
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  color: #ffffff;
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent-strong));
  border: 2px solid rgba(255, 255, 255, 0.82);
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.16);
  font-weight: 900;
}

.progress-ui .progress-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.progress-ui .progress-detail-list li {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
  padding-top: 0.55rem;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.progress-ui .progress-detail-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.progress-ui .progress-detail-list strong {
  color: var(--color-text-primary);
  font-size: 0.92rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.progress-ui .progress-detail-list span {
  color: var(--color-text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.progress-ui .progress-area-list {
  display: grid;
  gap: 0.7rem;
}

.progress-ui .progress-area-row {
  display: grid;
  gap: 0.62rem;
  padding: 0.82rem;
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
}

.progress-ui .progress-area-row--empty {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.88), rgba(239, 246, 255, 0.62));
  border-color: rgba(37, 99, 235, 0.18);
}

.progress-ui .progress-area-row__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.8rem;
}

.progress-ui .progress-area-row__top > div,
.progress-ui .progress-area-score {
  min-width: 0;
}

.progress-ui .progress-area-row strong {
  display: block;
  color: var(--color-text-primary);
  font-size: 0.98rem;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.progress-ui .progress-area-row span,
.progress-ui .progress-area-score span {
  color: var(--color-text-secondary);
  font-size: 0.78rem;
  font-weight: 800;
}

.progress-ui .progress-area-row__hint {
  width: fit-content;
  padding: 0.18rem 0.46rem;
  color: var(--color-primary-hover);
  background: rgba(219, 234, 254, 0.72);
  border: 1px solid rgba(37, 99, 235, 0.14);
  border-radius: 999px;
  font-size: 0.72rem;
  line-height: 1.2;
}

.progress-ui .progress-area-score {
  display: grid;
  justify-items: end;
  flex: 0 0 auto;
}

.progress-ui .progress-area-score strong {
  font-size: 1.2rem;
}

.progress-ui .progress-area-bar {
  height: 0.48rem;
  overflow: hidden;
  background: rgba(226, 232, 240, 0.95);
  border-radius: 999px;
}

.progress-ui .progress-area-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-strong));
  border-radius: inherit;
}

@keyframes progressSpin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 1024px) {
  .progress-ui .progress-gate-card,
  .progress-ui .progress-hero-card {
    grid-template-columns: 1fr;
  }

  .progress-ui .progress-gate-visual {
    min-height: 14rem;
  }

  .progress-ui .progress-metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .progress-ui .progress-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .progress-ui #progressPageMount {
    min-height: auto;
  }

  .progress-ui .progress-shell {
    padding-top: 0.65rem;
  }

  .progress-ui .progress-dashboard {
    gap: 0.74rem;
  }

  .progress-ui .progress-gate-card,
  .progress-ui .progress-hero-card {
    padding: 0.76rem;
  }

  .progress-ui .progress-hero-copy {
    gap: 0.48rem;
  }

  .progress-ui .progress-user-heading {
    align-items: flex-start;
    gap: 0.58rem;
  }

  .progress-ui .progress-user-avatar {
    width: 2.65rem;
    height: 2.65rem;
    margin-top: 0.05rem;
    font-size: 0.82rem;
  }

  .progress-ui .progress-hero-copy h1 {
    font-size: clamp(1.72rem, 9vw, 2.18rem);
    line-height: 1;
  }

  .progress-ui .progress-hero-text,
  .progress-ui .progress-status-card p,
  .progress-ui .progress-metric-card p,
  .progress-ui .progress-detail-card p,
  .progress-ui .progress-empty-text {
    font-size: 0.84rem;
    line-height: 1.38;
  }

  .progress-ui .progress-hero-summary {
    grid-template-columns: 1fr;
    gap: 0.5rem;
    margin-top: 0.12rem;
  }

  .progress-ui .progress-hero-summary > div {
    padding: 0.58rem 0.64rem;
  }

  .progress-ui .progress-hero-summary strong {
    margin-top: 0.12rem;
    font-size: 0.9rem;
  }

  .progress-ui .progress-gate-visual {
    min-height: 10.5rem;
    padding: 1rem;
  }

  .progress-ui .progress-gate-icon {
    width: 3.7rem;
    height: 3.7rem;
    border-radius: 15px;
  }

  .progress-ui .progress-gate-icon .lucide {
    width: 1.7rem;
    height: 1.7rem;
  }

  .progress-ui .progress-metric-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .progress-ui .progress-metric-card {
    min-height: auto;
    gap: 0.46rem;
    padding: 0.66rem 0.72rem;
  }

  .progress-ui .progress-metric-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 11px;
  }

  .progress-ui .progress-metric-card strong {
    margin-top: 0.06rem;
    font-size: 1rem;
  }

  .progress-ui .progress-status-card {
    gap: 0.3rem;
    padding: 0.7rem;
  }

  .progress-ui .progress-status-card p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .progress-ui .progress-status-link {
    width: 100%;
    margin-top: 0.18rem;
    padding: 0.52rem 0.7rem;
    text-align: center;
  }

  .progress-ui .progress-detail-grid,
  .progress-ui .progress-detail-card,
  .progress-ui .progress-history-list,
  .progress-ui .progress-detail-list,
  .progress-ui .progress-area-list {
    gap: 0.52rem;
  }

  .progress-ui .progress-detail-card {
    padding: 0.72rem;
  }

  .progress-ui .progress-history-list li {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.42rem 0.55rem;
    padding: 0.56rem;
  }

  .progress-ui .progress-history-dot {
    width: 0.56rem;
    height: 0.56rem;
    border-width: 2px;
  }

  .progress-ui .progress-history-list span,
  .progress-ui .progress-history-list p,
  .progress-ui .progress-detail-list span,
  .progress-ui .progress-area-row span,
  .progress-ui .progress-area-score span {
    font-size: 0.76rem;
    line-height: 1.28;
  }

  .progress-ui .progress-history-list strong,
  .progress-ui .progress-detail-list strong,
  .progress-ui .progress-area-row strong {
    font-size: 0.88rem;
    line-height: 1.22;
  }

  .progress-ui .progress-history-score {
    grid-column: 2;
    justify-self: start;
    margin-top: 0.18rem;
    padding: 0.2rem 0.44rem;
  }

  .progress-ui .progress-area-row {
    gap: 0.46rem;
    padding: 0.62rem;
  }

  .progress-ui .progress-area-row__top {
    display: grid;
    gap: 0.28rem;
  }

  .progress-ui .progress-area-score {
    justify-items: start;
  }

  .progress-ui .progress-area-score strong {
    font-size: 1rem;
  }

  .progress-ui .progress-auth-button {
    width: 100%;
  }
}
