/* Azulejo patterns — inline data URIs keep everything same-origin and
   html2canvas-safe. The strip is the bold cobalt motif; the page background is
   a whisper-quiet version so text stays readable on top of it. */

:root {
  --azulejo-strip: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Crect width='48' height='48' fill='%23F9F8F6'/%3E%3Cpath d='M24 2 L46 24 L24 46 L2 24 Z' fill='%23002B49'/%3E%3Cpath d='M24 11 L37 24 L24 37 L11 24 Z' fill='%23F9F8F6'/%3E%3Crect x='20' y='20' width='8' height='8' fill='%23002B49' transform='rotate(45 24 24)'/%3E%3Cpath d='M0 0 L6 0 L0 6 Z' fill='%23002B49'/%3E%3Cpath d='M42 0 L48 0 L48 6 Z' fill='%23002B49'/%3E%3Cpath d='M0 42 L0 48 L6 48 Z' fill='%23002B49'/%3E%3Cpath d='M48 42 L48 48 L42 48 Z' fill='%23002B49'/%3E%3C/svg%3E");
  --azulejo-soft: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='36' height='36' viewBox='0 0 36 36'%3E%3Crect width='36' height='36' fill='%23F9F8F6'/%3E%3Cpath d='M18 2 L34 18 L18 34 L2 18 Z' fill='none' stroke='%23002B49' stroke-opacity='0.09'/%3E%3Ccircle cx='18' cy='18' r='2' fill='%23002B49' fill-opacity='0.07'/%3E%3Cpath d='M0 0 L5 0 L0 5 Z' fill='%23002B49' fill-opacity='0.07'/%3E%3Cpath d='M36 31 L36 36 L31 36 Z' fill='%23002B49' fill-opacity='0.07'/%3E%3C/svg%3E");
}

body {
  background-color: var(--branco);
  background-image: var(--azulejo-soft);
  background-size: 36px 36px;
}

.azulejo-strip {
  height: 40px;
  background-image: var(--azulejo-strip);
  background-size: 40px 40px;
  border-bottom: var(--border);
}

.tile-mark {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: var(--space-2);
  vertical-align: -4px;
  background-image: var(--azulejo-strip);
  background-size: 22px 22px;
  border: 3px solid var(--preto);
}

.tile-spinner {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-3);
  background-color: var(--branco);
  background-image: var(--azulejo-strip);
  background-size: 28px 28px;
  border: var(--border);
  box-shadow: var(--shadow-small);
  animation: tile-spin 1.6s linear infinite;
}

@keyframes tile-spin {
  to { transform: rotate(360deg); }
}

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