/* Trang xác nhận từ thông báo Bark (/a/<id>): mở trong Safari, không có header/thanh tab của app. */
.ack-page {
  max-width: 480px;
  margin: 0 auto;
  padding: max(var(--space-5), env(safe-area-inset-top)) max(var(--space-4), env(safe-area-inset-right))
    calc(env(safe-area-inset-bottom) + var(--space-6)) max(var(--space-4), env(safe-area-inset-left));
}

.ack-page:focus {
  outline: none;
}

.ack-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  color: var(--color-text-muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

.ack-brand img {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
}

/* Nút lớn, dễ bấm ngay trên màn hình khoá vừa mở. */
.ack-actions .btn {
  min-height: 56px;
  font-size: var(--fs-lg);
}

.ack-result {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-4);
  text-align: center;
}

.ack-result__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: var(--radius-full);
  background: var(--color-success-soft);
  color: var(--color-success);
}

.ack-result__icon--warn {
  background: var(--color-warning-soft);
  color: var(--color-warning);
}

.ack-result__title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: var(--lh-tight);
}

.ack-result__title:focus {
  outline: none;
}

.ack-result__text {
  max-width: 36ch;
  color: var(--color-text-muted);
}

/* Tự ghi nhận khi mở từ thông báo: thanh chạy đúng bằng AUTO_DELAY_MS trong ack-link.js và pages/reminder.js
   (app trên MH chính cũng nạp file này cho màn tự ghi nhận ở /r/<id>?auto=1). */
.ack-auto__bar {
  width: 100%;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-primary);
  transform-origin: left center;
  animation: ack-auto-fill 1.5s linear forwards;
}

.ack-auto .snooze-row .btn {
  min-height: 48px;
}

@keyframes ack-auto-fill {
  from {
    transform: scaleX(0);
  }

  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ack-auto__bar {
    animation: none;
  }
}
