.backup-card {
  grid-column: 1/-1;
}
.backup-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.backup-status {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #f8fbfd;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.backup-progress {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid #cfe0ec;
  border-radius: 11px;
  background: #f7fbfe;
}
.backup-progress > span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #c7d9e8;
  border-top-color: var(--blue);
  animation: backup-spin 0.8s linear infinite;
}
.backup-progress b,
.backup-progress small {
  display: block;
}
.backup-progress b {
  font-size: 11px;
}
.backup-progress small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
}
@keyframes backup-spin {
  to {
    transform: rotate(360deg);
  }
}
@media (max-width: 760px) {
  .backup-actions {
    display: grid;
  }
  .backup-actions .btn {
    width: 100%;
  }
}

/* Native hidden must win over button display rules. */
[hidden] {
  display: none !important;
}
:is(button, a, input, select, textarea, [contenteditable]):focus-visible {
  outline: 3px solid #1765ca;
  outline-offset: 3px;
}
.x,
.irp-modal-close {
  min-width: 44px;
  min-height: 44px;
}
.irp-storage-notice {
  padding: 12px 16px;
  border: 1px solid #d8e2ec;
  border-radius: 12px;
  background: #f8fbff;
  color: #344054;
  line-height: 1.5;
  font-size: 13px;
}
@media (max-width: 1100px) {
  .studio-layout .canvas-shell {
    grid-row: 1;
    min-height: 420px;
    max-height: 65vh;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.irp-storage-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 12px 0;
}
.irp-storage-links a {
  color: #2756c8;
  text-underline-offset: 3px;
}
.backup-status {
  overflow-wrap: anywhere;
}
