.technical-progress[hidden] { display: none; }
.technical-progress {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  width: 100vw;
  max-width: none;
  height: 100dvh;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 0;
  pointer-events: auto;
  background: rgba(7, 26, 51, 0.22);
  font-family: Inter, system-ui, sans-serif;
  color: #071a33;
}
.technical-progress::backdrop { background: rgba(7, 26, 51, 0.22); }
.technical-progress__top {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  overflow: hidden;
  background: #dbe5f2;
}
.technical-progress__top span {
  display: block;
  width: 0;
  height: 100%;
  background: #2563ff;
  transition: width 0.16s ease;
}
.technical-progress__panel {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: min(30rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  border: 1px solid #d6e0ec;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1.25rem;
  box-shadow: 0 24px 70px rgba(7, 26, 51, 0.25);
}
.technical-progress__header { display: flex; align-items: center; gap: 0.75rem; }
.technical-progress__mark {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 0.65rem;
  background: #071a33;
  color: #fff;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
}
.technical-progress__header p {
  margin: 0;
  color: #2563ff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.technical-progress__header h2 {
  margin: 0.15rem 0 0;
  font-family: Poppins, Inter, sans-serif;
  font-size: 1.08rem;
  line-height: 1.35;
  font-weight: 800;
}
.technical-progress__context {
  margin: 0.85rem 0 0;
  color: #52647b;
  font-size: 0.84rem;
  line-height: 1.55;
}
.technical-progress__total { margin-top: 1rem; }
.technical-progress__total > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.78rem;
}
.technical-progress__total strong { font-weight: 800; }
.technical-progress__total span {
  color: #075db5;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.technical-progress progress {
  display: block;
  width: 100%;
  height: 0.55rem;
  margin-top: 0.45rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e7eef7;
  accent-color: #2563ff;
}
.technical-progress progress::-webkit-progress-bar { border-radius: 999px; background: #e7eef7; }
.technical-progress progress::-webkit-progress-value { border-radius: 999px; background: #2563ff; }
.technical-progress progress::-moz-progress-bar { border-radius: 999px; background: #2563ff; }
.technical-progress__tasks {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.technical-progress__task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.15rem 0.75rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.6rem;
  background: #f8fafc;
  padding: 0.75rem;
}
.technical-progress__task strong { overflow-wrap: anywhere; font-size: 0.8rem; line-height: 1.4; }
.technical-progress__task > span {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #075db5;
  font-size: 0.78rem;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}
.technical-progress__task small { color: #64748b; font-size: 0.7rem; line-height: 1.4; }
.technical-progress__task[data-state="complete"] { border-color: #b7eadc; background: #edfcf7; }
.technical-progress__task[data-state="complete"] > span { color: #087461; }
.technical-progress__task[data-state="error"] { border-color: #fecaca; background: #fff1f2; }
.technical-progress__task[data-state="error"] > span { color: #b91c1c; }
.technical-progress__note { margin: 0.85rem 0 0; color: #64748b; font-size: 0.7rem; line-height: 1.45; }
.technical-progress__error {
  margin: 0.8rem 0 0;
  border-left: 3px solid #b91c1c;
  background: #fff1f2;
  padding: 0.7rem;
  color: #881337;
  font-size: 0.78rem;
  font-weight: 700;
}
.technical-progress__dismiss {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  margin-top: 0.75rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.4rem;
  background: #fff;
  padding: 0.6rem 1rem;
  color: #071a33;
  font-size: 0.8rem;
  font-weight: 800;
}
.technical-progress__dismiss[hidden] { display: none; }
.technical-progress__dismiss:focus-visible { outline: 3px solid #ff7a00; outline-offset: 2px; }
.technical-progress[data-state="error"] .technical-progress__top span { background: #b91c1c; }
@media (max-width: 480px) {
  .technical-progress__panel {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100vw - 1.5rem);
    max-height: calc(100vh - 1.5rem);
    padding: 1rem;
  }
  .technical-progress__mark { width: 2.5rem; height: 2.5rem; }
  .technical-progress__task { padding: 0.68rem; }
  .technical-progress__dismiss { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .technical-progress__top span { transition: none; }
}
