.exam-progress-clear {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 80;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid #cfd9df;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  color: #52637a;
  padding: 10px 16px;
  font-size: 0.8rem;
  font-weight: 850;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(16, 42, 86, 0.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(12px) scale(0.98);
  transition:
    opacity 180ms ease,
    visibility 180ms ease,
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
}

.exam-progress-clear.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.exam-progress-clear svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.exam-progress-clear:hover {
  border-color: #d49ca1;
  background: #fff7f7;
  color: #96383f;
  box-shadow: 0 10px 28px rgba(164, 59, 66, 0.18);
  transform: translateY(-2px) scale(1);
}

.exam-progress-clear:active {
  transform: translateY(0) scale(0.98);
}

.exam-progress-clear:focus-visible {
  outline: 3px solid rgba(0, 165, 181, 0.25);
  outline-offset: 3px;
}

@media (max-width: 600px) {
  .exam-progress-clear {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 48px;
    min-height: 48px;
    padding: 0;
  }

  .exam-progress-clear span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    clip-path: inset(50%);
  }

  .exam-progress-clear svg {
    width: 20px;
    height: 20px;
  }
}

@media print {
  .exam-progress-clear {
    display: none !important;
  }
}