.oatmeal-spice-section {
  cursor: pointer;
}

.oatmeal-spice-section .cell,
.oatmeal-spice-section .cell svg {
  cursor: pointer;
}

.grid {
  display: grid;
  gap: 1rem;
  width: 100%;
}

.cell {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(42, 42, 50, 0.1);
  line-height: 0;
  aspect-ratio: 1;
  background: #f4f3f6;
}

.cell-generating {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 0.75rem;
  color: #8a8a98;
  line-height: 1.2;
}

.cell svg {
  display: block;
  width: 100%;
  height: auto;
}

.cell-tooltip {
  position: fixed;
  z-index: 1000;
  max-width: 18rem;
  padding: 0.45rem 0.65rem;
  border-radius: 8px;
  background: #1e1e26;
  color: #f4f2ee;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
  pointer-events: none;
  white-space: pre-wrap;
}

.cell-tooltip[hidden] {
  display: none;
}

.oatmeal-spice-section .field-viewport {
  cursor: grab;
}

.oatmeal-spice-section .field-viewport.is-dragging {
  cursor: grabbing;
}

.field-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 10px;
  background: #f4f3f6;
  box-shadow: 0 2px 12px rgba(42, 42, 50, 0.1);
  line-height: 0;
  touch-action: none;
  cursor: grab;
  user-select: none;
}

.field-viewport.is-dragging {
  cursor: grabbing;
}

.field-canvas {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform;
}

.field-canvas svg {
  display: block;
  width: 100%;
  height: 100%;
}

.field-start-prompt {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #0f0f1a;
  color: #c8c8d4;
  font-size: 0.875rem;
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
}

.field-start-prompt:hover {
  color: #f4f2ee;
}

.field-progress {
  position: absolute;
  inset: auto 1rem 1rem;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  pointer-events: none;
}

.field-progress-track {
  flex: 1;
  height: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.15);
}

.field-progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #98c1d9, #f4d35e);
  transition: width 0.12s ease-out;
}

.field-progress-label {
  min-width: 2.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: #f4f2ee;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  line-height: 1;
}
